NS1 v3.3.0 published on Monday, Jun 24, 2024 by Pulumi
ns1.Dnsview
Explore with Pulumi AI
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
- Read
Acls List<string> - Update
Acls List<string> - Zones List<string>
- Name string
- Networks []int
- Preference int
- Read
Acls []string - Update
Acls []string - Zones []string
- name String
- networks List<Integer>
- preference Integer
- read
Acls List<String> - update
Acls List<String> - zones List<String>
- name string
- networks number[]
- preference number
- read
Acls string[] - update
Acls 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
- read
Acls List<String> - update
Acls List<String> - zones List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the Dnsview resource produces the following output properties:
- created_
at int - id str
- The provider-assigned unique ID for this managed resource.
- updated_
at int
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.
- Created
At int - Name string
- Networks List<int>
- Preference int
- Read
Acls List<string> - Update
Acls List<string> - Updated
At int - Zones List<string>
- Created
At int - Name string
- Networks []int
- Preference int
- Read
Acls []string - Update
Acls []string - Updated
At int - Zones []string
- created
At Integer - name String
- networks List<Integer>
- preference Integer
- read
Acls List<String> - update
Acls List<String> - updated
At Integer - zones List<String>
- created
At number - name string
- networks number[]
- preference number
- read
Acls string[] - update
Acls string[] - updated
At 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]
- created
At Number - name String
- networks List<Number>
- preference Number
- read
Acls List<String> - update
Acls List<String> - updated
At 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.