oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.Dns.View

This resource provides the View resource in Oracle Cloud Infrastructure DNS service.

Creates a new view in the specified compartment.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testView = new Oci.Dns.View("testView", new()
    {
        CompartmentId = @var.Compartment_id,
        Scope = "PRIVATE",
        DefinedTags = @var.View_defined_tags,
        DisplayName = @var.View_display_name,
        FreeformTags = @var.View_freeform_tags,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dns.NewView(ctx, "testView", &Dns.ViewArgs{
			CompartmentId: pulumi.Any(_var.Compartment_id),
			Scope:         pulumi.String("PRIVATE"),
			DefinedTags:   pulumi.Any(_var.View_defined_tags),
			DisplayName:   pulumi.Any(_var.View_display_name),
			FreeformTags:  pulumi.Any(_var.View_freeform_tags),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Dns.View;
import com.pulumi.oci.Dns.ViewArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var testView = new View("testView", ViewArgs.builder()        
            .compartmentId(var_.compartment_id())
            .scope("PRIVATE")
            .definedTags(var_.view_defined_tags())
            .displayName(var_.view_display_name())
            .freeformTags(var_.view_freeform_tags())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_view = oci.dns.View("testView",
    compartment_id=var["compartment_id"],
    scope="PRIVATE",
    defined_tags=var["view_defined_tags"],
    display_name=var["view_display_name"],
    freeform_tags=var["view_freeform_tags"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testView = new oci.dns.View("testView", {
    compartmentId: _var.compartment_id,
    scope: "PRIVATE",
    definedTags: _var.view_defined_tags,
    displayName: _var.view_display_name,
    freeformTags: _var.view_freeform_tags,
});
resources:
  testView:
    type: oci:Dns:View
    properties:
      #Required
      compartmentId: ${var.compartment_id}
      #Optional
      scope: PRIVATE
      definedTags: ${var.view_defined_tags}
      displayName: ${var.view_display_name}
      freeformTags: ${var.view_freeform_tags}

Create View Resource

new View(name: string, args: ViewArgs, opts?: CustomResourceOptions);
@overload
def View(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         compartment_id: Optional[str] = None,
         defined_tags: Optional[Mapping[str, Any]] = None,
         display_name: Optional[str] = None,
         freeform_tags: Optional[Mapping[str, Any]] = None,
         scope: Optional[str] = None)
@overload
def View(resource_name: str,
         args: ViewArgs,
         opts: Optional[ResourceOptions] = None)
func NewView(ctx *Context, name string, args ViewArgs, opts ...ResourceOption) (*View, error)
public View(string name, ViewArgs args, CustomResourceOptions? opts = null)
public View(String name, ViewArgs args)
public View(String name, ViewArgs args, CustomResourceOptions options)
type: oci:Dns:View
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ViewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ViewArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ViewArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ViewArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ViewArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

View Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The View resource accepts the following input properties:

CompartmentId string

(Updatable) The OCID of the owning compartment.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

DisplayName string

(Updatable) The display name of the view.

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Scope string

If specified, must be PRIVATE when creating a view for private zones.

CompartmentId string

(Updatable) The OCID of the owning compartment.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

DisplayName string

(Updatable) The display name of the view.

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Scope string

If specified, must be PRIVATE when creating a view for private zones.

compartmentId String

(Updatable) The OCID of the owning compartment.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName String

(Updatable) The display name of the view.

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

scope String

If specified, must be PRIVATE when creating a view for private zones.

compartmentId string

(Updatable) The OCID of the owning compartment.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName string

(Updatable) The display name of the view.

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

scope string

If specified, must be PRIVATE when creating a view for private zones.

compartment_id str

(Updatable) The OCID of the owning compartment.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

display_name str

(Updatable) The display name of the view.

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

scope str

If specified, must be PRIVATE when creating a view for private zones.

compartmentId String

(Updatable) The OCID of the owning compartment.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName String

(Updatable) The display name of the view.

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

scope String

If specified, must be PRIVATE when creating a view for private zones.

Outputs

All input properties are implicitly available as output properties. Additionally, the View resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

IsProtected bool

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

Self string

The canonical absolute URL of the resource.

State string

The current state of the resource.

TimeCreated string

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

TimeUpdated string

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

Id string

The provider-assigned unique ID for this managed resource.

IsProtected bool

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

Self string

The canonical absolute URL of the resource.

State string

The current state of the resource.

TimeCreated string

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

TimeUpdated string

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

id String

The provider-assigned unique ID for this managed resource.

isProtected Boolean

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

self String

The canonical absolute URL of the resource.

state String

The current state of the resource.

timeCreated String

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

timeUpdated String

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

id string

The provider-assigned unique ID for this managed resource.

isProtected boolean

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

self string

The canonical absolute URL of the resource.

state string

The current state of the resource.

timeCreated string

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

timeUpdated string

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

id str

The provider-assigned unique ID for this managed resource.

is_protected bool

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

self str

The canonical absolute URL of the resource.

state str

The current state of the resource.

time_created str

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

time_updated str

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

id String

The provider-assigned unique ID for this managed resource.

isProtected Boolean

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

self String

The canonical absolute URL of the resource.

state String

The current state of the resource.

timeCreated String

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

timeUpdated String

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

Look up Existing View Resource

Get an existing View resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ViewState, opts?: CustomResourceOptions): View
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, Any]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, Any]] = None,
        is_protected: Optional[bool] = None,
        scope: Optional[str] = None,
        self: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None) -> View
func GetView(ctx *Context, name string, id IDInput, state *ViewState, opts ...ResourceOption) (*View, error)
public static View Get(string name, Input<string> id, ViewState? state, CustomResourceOptions? opts = null)
public static View get(String name, Output<String> id, ViewState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId string

(Updatable) The OCID of the owning compartment.

DefinedTags Dictionary<string, object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

DisplayName string

(Updatable) The display name of the view.

FreeformTags Dictionary<string, object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

IsProtected bool

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

Scope string

If specified, must be PRIVATE when creating a view for private zones.

Self string

The canonical absolute URL of the resource.

State string

The current state of the resource.

TimeCreated string

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

TimeUpdated string

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

CompartmentId string

(Updatable) The OCID of the owning compartment.

DefinedTags map[string]interface{}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

DisplayName string

(Updatable) The display name of the view.

FreeformTags map[string]interface{}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

IsProtected bool

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

Scope string

If specified, must be PRIVATE when creating a view for private zones.

Self string

The canonical absolute URL of the resource.

State string

The current state of the resource.

TimeCreated string

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

TimeUpdated string

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

compartmentId String

(Updatable) The OCID of the owning compartment.

definedTags Map<String,Object>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName String

(Updatable) The display name of the view.

freeformTags Map<String,Object>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

isProtected Boolean

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

scope String

If specified, must be PRIVATE when creating a view for private zones.

self String

The canonical absolute URL of the resource.

state String

The current state of the resource.

timeCreated String

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

timeUpdated String

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

compartmentId string

(Updatable) The OCID of the owning compartment.

definedTags {[key: string]: any}

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName string

(Updatable) The display name of the view.

freeformTags {[key: string]: any}

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

isProtected boolean

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

scope string

If specified, must be PRIVATE when creating a view for private zones.

self string

The canonical absolute URL of the resource.

state string

The current state of the resource.

timeCreated string

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

timeUpdated string

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

compartment_id str

(Updatable) The OCID of the owning compartment.

defined_tags Mapping[str, Any]

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

display_name str

(Updatable) The display name of the view.

freeform_tags Mapping[str, Any]

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

is_protected bool

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

scope str

If specified, must be PRIVATE when creating a view for private zones.

self str

The canonical absolute URL of the resource.

state str

The current state of the resource.

time_created str

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

time_updated str

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

compartmentId String

(Updatable) The OCID of the owning compartment.

definedTags Map<Any>

(Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

displayName String

(Updatable) The display name of the view.

freeformTags Map<Any>

(Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

isProtected Boolean

A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

scope String

If specified, must be PRIVATE when creating a view for private zones.

self String

The canonical absolute URL of the resource.

state String

The current state of the resource.

timeCreated String

The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

timeUpdated String

The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.

Import

Views can be imported using their OCID, e.g.

 $ pulumi import oci:Dns/view:View test_view "id"

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.