1. Packages
  2. NS1
  3. API Docs
  4. Dnsview
NS1 v3.4.2 published on Tuesday, Sep 17, 2024 by Pulumi

ns1.Dnsview

Explore with Pulumi AI

ns1 logo
NS1 v3.4.2 published on Tuesday, Sep 17, 2024 by Pulumi

    Create Dnsview Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Dnsview(name: string, args?: DnsviewArgs, opts?: CustomResourceOptions);
    @overload
    def Dnsview(resource_name: str,
                args: Optional[DnsviewArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Dnsview(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                name: Optional[str] = None,
                networks: Optional[Sequence[int]] = None,
                preference: Optional[int] = None,
                read_acls: Optional[Sequence[str]] = None,
                update_acls: Optional[Sequence[str]] = None,
                zones: Optional[Sequence[str]] = None)
    func NewDnsview(ctx *Context, name string, args *DnsviewArgs, opts ...ResourceOption) (*Dnsview, error)
    public Dnsview(string name, DnsviewArgs? args = null, CustomResourceOptions? opts = null)
    public Dnsview(String name, DnsviewArgs args)
    public Dnsview(String name, DnsviewArgs args, CustomResourceOptions options)
    
    type: ns1:Dnsview
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DnsviewArgs
    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 DnsviewArgs
    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 DnsviewArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsviewArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsviewArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dnsviewResource = new Ns1.Dnsview("dnsviewResource", new()
    {
        Name = "string",
        Networks = new[]
        {
            0,
        },
        Preference = 0,
        ReadAcls = new[]
        {
            "string",
        },
        UpdateAcls = new[]
        {
            "string",
        },
        Zones = new[]
        {
            "string",
        },
    });
    
    example, err := ns1.NewDnsview(ctx, "dnsviewResource", &ns1.DnsviewArgs{
    	Name: pulumi.String("string"),
    	Networks: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	Preference: pulumi.Int(0),
    	ReadAcls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UpdateAcls: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Zones: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var dnsviewResource = new Dnsview("dnsviewResource", DnsviewArgs.builder()
        .name("string")
        .networks(0)
        .preference(0)
        .readAcls("string")
        .updateAcls("string")
        .zones("string")
        .build());
    
    dnsview_resource = ns1.Dnsview("dnsviewResource",
        name="string",
        networks=[0],
        preference=0,
        read_acls=["string"],
        update_acls=["string"],
        zones=["string"])
    
    const dnsviewResource = new ns1.Dnsview("dnsviewResource", {
        name: "string",
        networks: [0],
        preference: 0,
        readAcls: ["string"],
        updateAcls: ["string"],
        zones: ["string"],
    });
    
    type: ns1:Dnsview
    properties:
        name: string
        networks:
            - 0
        preference: 0
        readAcls:
            - string
        updateAcls:
            - string
        zones:
            - string
    

    Dnsview 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 Dnsview resource accepts the following input properties:

    Name string
    Networks List<int>
    Preference int
    ReadAcls List<string>
    UpdateAcls List<string>
    Zones List<string>
    Name string
    Networks []int
    Preference int
    ReadAcls []string
    UpdateAcls []string
    Zones []string
    name String
    networks List<Integer>
    preference Integer
    readAcls List<String>
    updateAcls List<String>
    zones List<String>
    name string
    networks number[]
    preference number
    readAcls string[]
    updateAcls string[]
    zones string[]
    name str
    networks Sequence[int]
    preference int
    read_acls Sequence[str]
    update_acls Sequence[str]
    zones Sequence[str]
    name String
    networks List<Number>
    preference Number
    readAcls List<String>
    updateAcls List<String>
    zones List<String>

    Outputs

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

    CreatedAt int
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    CreatedAt int
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    createdAt Integer
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Integer
    createdAt number
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt number
    created_at int
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at int
    createdAt Number
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Number

    Look up Existing Dnsview Resource

    Get an existing Dnsview 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?: DnsviewState, opts?: CustomResourceOptions): Dnsview
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[int] = None,
            name: Optional[str] = None,
            networks: Optional[Sequence[int]] = None,
            preference: Optional[int] = None,
            read_acls: Optional[Sequence[str]] = None,
            update_acls: Optional[Sequence[str]] = None,
            updated_at: Optional[int] = None,
            zones: Optional[Sequence[str]] = None) -> Dnsview
    func GetDnsview(ctx *Context, name string, id IDInput, state *DnsviewState, opts ...ResourceOption) (*Dnsview, error)
    public static Dnsview Get(string name, Input<string> id, DnsviewState? state, CustomResourceOptions? opts = null)
    public static Dnsview get(String name, Output<String> id, DnsviewState 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:
    CreatedAt int
    Name string
    Networks List<int>
    Preference int
    ReadAcls List<string>
    UpdateAcls List<string>
    UpdatedAt int
    Zones List<string>
    CreatedAt int
    Name string
    Networks []int
    Preference int
    ReadAcls []string
    UpdateAcls []string
    UpdatedAt int
    Zones []string
    createdAt Integer
    name String
    networks List<Integer>
    preference Integer
    readAcls List<String>
    updateAcls List<String>
    updatedAt Integer
    zones List<String>
    createdAt number
    name string
    networks number[]
    preference number
    readAcls string[]
    updateAcls string[]
    updatedAt number
    zones string[]
    created_at int
    name str
    networks Sequence[int]
    preference int
    read_acls Sequence[str]
    update_acls Sequence[str]
    updated_at int
    zones Sequence[str]
    createdAt Number
    name String
    networks List<Number>
    preference Number
    readAcls List<String>
    updateAcls List<String>
    updatedAt Number
    zones List<String>

    Package Details

    Repository
    NS1 pulumi/pulumi-ns1
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ns1 Terraform Provider.
    ns1 logo
    NS1 v3.4.2 published on Tuesday, Sep 17, 2024 by Pulumi