nsxt.PolicyIpPoolStaticSubnet
Explore with Pulumi AI
Create PolicyIpPoolStaticSubnet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyIpPoolStaticSubnet(name: string, args: PolicyIpPoolStaticSubnetArgs, opts?: CustomResourceOptions);
@overload
def PolicyIpPoolStaticSubnet(resource_name: str,
args: PolicyIpPoolStaticSubnetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyIpPoolStaticSubnet(resource_name: str,
opts: Optional[ResourceOptions] = None,
allocation_ranges: Optional[Sequence[PolicyIpPoolStaticSubnetAllocationRangeArgs]] = None,
cidr: Optional[str] = None,
display_name: Optional[str] = None,
pool_path: Optional[str] = None,
context: Optional[PolicyIpPoolStaticSubnetContextArgs] = None,
description: Optional[str] = None,
dns_nameservers: Optional[Sequence[str]] = None,
dns_suffix: Optional[str] = None,
gateway: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_ip_pool_static_subnet_id: Optional[str] = None,
tags: Optional[Sequence[PolicyIpPoolStaticSubnetTagArgs]] = None)
func NewPolicyIpPoolStaticSubnet(ctx *Context, name string, args PolicyIpPoolStaticSubnetArgs, opts ...ResourceOption) (*PolicyIpPoolStaticSubnet, error)
public PolicyIpPoolStaticSubnet(string name, PolicyIpPoolStaticSubnetArgs args, CustomResourceOptions? opts = null)
public PolicyIpPoolStaticSubnet(String name, PolicyIpPoolStaticSubnetArgs args)
public PolicyIpPoolStaticSubnet(String name, PolicyIpPoolStaticSubnetArgs args, CustomResourceOptions options)
type: nsxt:PolicyIpPoolStaticSubnet
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 PolicyIpPoolStaticSubnetArgs
- 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 PolicyIpPoolStaticSubnetArgs
- 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 PolicyIpPoolStaticSubnetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyIpPoolStaticSubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyIpPoolStaticSubnetArgs
- 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 policyIpPoolStaticSubnetResource = new Nsxt.PolicyIpPoolStaticSubnet("policyIpPoolStaticSubnetResource", new()
{
AllocationRanges = new[]
{
new Nsxt.Inputs.PolicyIpPoolStaticSubnetAllocationRangeArgs
{
End = "string",
Start = "string",
},
},
Cidr = "string",
DisplayName = "string",
PoolPath = "string",
Context = new Nsxt.Inputs.PolicyIpPoolStaticSubnetContextArgs
{
ProjectId = "string",
},
Description = "string",
DnsNameservers = new[]
{
"string",
},
DnsSuffix = "string",
Gateway = "string",
NsxId = "string",
PolicyIpPoolStaticSubnetId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyIpPoolStaticSubnetTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyIpPoolStaticSubnet(ctx, "policyIpPoolStaticSubnetResource", &nsxt.PolicyIpPoolStaticSubnetArgs{
AllocationRanges: nsxt.PolicyIpPoolStaticSubnetAllocationRangeArray{
&nsxt.PolicyIpPoolStaticSubnetAllocationRangeArgs{
End: pulumi.String("string"),
Start: pulumi.String("string"),
},
},
Cidr: pulumi.String("string"),
DisplayName: pulumi.String("string"),
PoolPath: pulumi.String("string"),
Context: &nsxt.PolicyIpPoolStaticSubnetContextArgs{
ProjectId: pulumi.String("string"),
},
Description: pulumi.String("string"),
DnsNameservers: pulumi.StringArray{
pulumi.String("string"),
},
DnsSuffix: pulumi.String("string"),
Gateway: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyIpPoolStaticSubnetId: pulumi.String("string"),
Tags: nsxt.PolicyIpPoolStaticSubnetTagArray{
&nsxt.PolicyIpPoolStaticSubnetTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyIpPoolStaticSubnetResource = new PolicyIpPoolStaticSubnet("policyIpPoolStaticSubnetResource", PolicyIpPoolStaticSubnetArgs.builder()
.allocationRanges(PolicyIpPoolStaticSubnetAllocationRangeArgs.builder()
.end("string")
.start("string")
.build())
.cidr("string")
.displayName("string")
.poolPath("string")
.context(PolicyIpPoolStaticSubnetContextArgs.builder()
.projectId("string")
.build())
.description("string")
.dnsNameservers("string")
.dnsSuffix("string")
.gateway("string")
.nsxId("string")
.policyIpPoolStaticSubnetId("string")
.tags(PolicyIpPoolStaticSubnetTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_ip_pool_static_subnet_resource = nsxt.PolicyIpPoolStaticSubnet("policyIpPoolStaticSubnetResource",
allocation_ranges=[{
"end": "string",
"start": "string",
}],
cidr="string",
display_name="string",
pool_path="string",
context={
"project_id": "string",
},
description="string",
dns_nameservers=["string"],
dns_suffix="string",
gateway="string",
nsx_id="string",
policy_ip_pool_static_subnet_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyIpPoolStaticSubnetResource = new nsxt.PolicyIpPoolStaticSubnet("policyIpPoolStaticSubnetResource", {
allocationRanges: [{
end: "string",
start: "string",
}],
cidr: "string",
displayName: "string",
poolPath: "string",
context: {
projectId: "string",
},
description: "string",
dnsNameservers: ["string"],
dnsSuffix: "string",
gateway: "string",
nsxId: "string",
policyIpPoolStaticSubnetId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyIpPoolStaticSubnet
properties:
allocationRanges:
- end: string
start: string
cidr: string
context:
projectId: string
description: string
displayName: string
dnsNameservers:
- string
dnsSuffix: string
gateway: string
nsxId: string
policyIpPoolStaticSubnetId: string
poolPath: string
tags:
- scope: string
tag: string
PolicyIpPoolStaticSubnet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PolicyIpPoolStaticSubnet resource accepts the following input properties:
- Allocation
Ranges List<PolicyIp Pool Static Subnet Allocation Range> - One or more IP allocation ranges for the Subnet.
- Cidr string
- The network CIDR
- Display
Name string - The display name for the Static Subnet.
- Pool
Path string - The Policy path to the IP Pool for this Static Subnet.
- Context
Policy
Ip Pool Static Subnet Context - The context which the object belongs to
- Description string
- Description of the resource.
- Dns
Nameservers List<string> - A list of up to 3 DNS nameservers for the Subnet.
- Dns
Suffix string - The DNS suffix for the Subnet.
- Gateway string
- The gateway IP for the Subnet.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Ip stringPool Static Subnet Id - ID of this Static Subnet.
- List<Policy
Ip Pool Static Subnet Tag> - A list of scope + tag pairs to associate with this Static Subnet.
- Allocation
Ranges []PolicyIp Pool Static Subnet Allocation Range Args - One or more IP allocation ranges for the Subnet.
- Cidr string
- The network CIDR
- Display
Name string - The display name for the Static Subnet.
- Pool
Path string - The Policy path to the IP Pool for this Static Subnet.
- Context
Policy
Ip Pool Static Subnet Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Dns
Nameservers []string - A list of up to 3 DNS nameservers for the Subnet.
- Dns
Suffix string - The DNS suffix for the Subnet.
- Gateway string
- The gateway IP for the Subnet.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Ip stringPool Static Subnet Id - ID of this Static Subnet.
- []Policy
Ip Pool Static Subnet Tag Args - A list of scope + tag pairs to associate with this Static Subnet.
- allocation
Ranges List<PolicyIp Pool Static Subnet Allocation Range> - One or more IP allocation ranges for the Subnet.
- cidr String
- The network CIDR
- display
Name String - The display name for the Static Subnet.
- pool
Path String - The Policy path to the IP Pool for this Static Subnet.
- context
Policy
Ip Pool Static Subnet Context - The context which the object belongs to
- description String
- Description of the resource.
- dns
Nameservers List<String> - A list of up to 3 DNS nameservers for the Subnet.
- dns
Suffix String - The DNS suffix for the Subnet.
- gateway String
- The gateway IP for the Subnet.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ip StringPool Static Subnet Id - ID of this Static Subnet.
- List<Policy
Ip Pool Static Subnet Tag> - A list of scope + tag pairs to associate with this Static Subnet.
- allocation
Ranges PolicyIp Pool Static Subnet Allocation Range[] - One or more IP allocation ranges for the Subnet.
- cidr string
- The network CIDR
- display
Name string - The display name for the Static Subnet.
- pool
Path string - The Policy path to the IP Pool for this Static Subnet.
- context
Policy
Ip Pool Static Subnet Context - The context which the object belongs to
- description string
- Description of the resource.
- dns
Nameservers string[] - A list of up to 3 DNS nameservers for the Subnet.
- dns
Suffix string - The DNS suffix for the Subnet.
- gateway string
- The gateway IP for the Subnet.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ip stringPool Static Subnet Id - ID of this Static Subnet.
- Policy
Ip Pool Static Subnet Tag[] - A list of scope + tag pairs to associate with this Static Subnet.
- allocation_
ranges Sequence[PolicyIp Pool Static Subnet Allocation Range Args] - One or more IP allocation ranges for the Subnet.
- cidr str
- The network CIDR
- display_
name str - The display name for the Static Subnet.
- pool_
path str - The Policy path to the IP Pool for this Static Subnet.
- context
Policy
Ip Pool Static Subnet Context Args - The context which the object belongs to
- description str
- Description of the resource.
- dns_
nameservers Sequence[str] - A list of up to 3 DNS nameservers for the Subnet.
- dns_
suffix str - The DNS suffix for the Subnet.
- gateway str
- The gateway IP for the Subnet.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
ip_ strpool_ static_ subnet_ id - ID of this Static Subnet.
- Sequence[Policy
Ip Pool Static Subnet Tag Args] - A list of scope + tag pairs to associate with this Static Subnet.
- allocation
Ranges List<Property Map> - One or more IP allocation ranges for the Subnet.
- cidr String
- The network CIDR
- display
Name String - The display name for the Static Subnet.
- pool
Path String - The Policy path to the IP Pool for this Static Subnet.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- dns
Nameservers List<String> - A list of up to 3 DNS nameservers for the Subnet.
- dns
Suffix String - The DNS suffix for the Subnet.
- gateway String
- The gateway IP for the Subnet.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Ip StringPool Static Subnet Id - ID of this Static Subnet.
- List<Property Map>
- A list of scope + tag pairs to associate with this Static Subnet.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyIpPoolStaticSubnet resource produces the following output properties:
Look up Existing PolicyIpPoolStaticSubnet Resource
Get an existing PolicyIpPoolStaticSubnet 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?: PolicyIpPoolStaticSubnetState, opts?: CustomResourceOptions): PolicyIpPoolStaticSubnet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_ranges: Optional[Sequence[PolicyIpPoolStaticSubnetAllocationRangeArgs]] = None,
cidr: Optional[str] = None,
context: Optional[PolicyIpPoolStaticSubnetContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
dns_nameservers: Optional[Sequence[str]] = None,
dns_suffix: Optional[str] = None,
gateway: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_ip_pool_static_subnet_id: Optional[str] = None,
pool_path: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyIpPoolStaticSubnetTagArgs]] = None) -> PolicyIpPoolStaticSubnet
func GetPolicyIpPoolStaticSubnet(ctx *Context, name string, id IDInput, state *PolicyIpPoolStaticSubnetState, opts ...ResourceOption) (*PolicyIpPoolStaticSubnet, error)
public static PolicyIpPoolStaticSubnet Get(string name, Input<string> id, PolicyIpPoolStaticSubnetState? state, CustomResourceOptions? opts = null)
public static PolicyIpPoolStaticSubnet get(String name, Output<String> id, PolicyIpPoolStaticSubnetState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyIpPoolStaticSubnet get: id: ${id}
- 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.
- Allocation
Ranges List<PolicyIp Pool Static Subnet Allocation Range> - One or more IP allocation ranges for the Subnet.
- Cidr string
- The network CIDR
- Context
Policy
Ip Pool Static Subnet Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - The display name for the Static Subnet.
- Dns
Nameservers List<string> - A list of up to 3 DNS nameservers for the Subnet.
- Dns
Suffix string - The DNS suffix for the Subnet.
- Gateway string
- The gateway IP for the Subnet.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the resource.
- Policy
Ip stringPool Static Subnet Id - ID of this Static Subnet.
- Pool
Path string - The Policy path to the IP Pool for this Static Subnet.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Ip Pool Static Subnet Tag> - A list of scope + tag pairs to associate with this Static Subnet.
- Allocation
Ranges []PolicyIp Pool Static Subnet Allocation Range Args - One or more IP allocation ranges for the Subnet.
- Cidr string
- The network CIDR
- Context
Policy
Ip Pool Static Subnet Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - The display name for the Static Subnet.
- Dns
Nameservers []string - A list of up to 3 DNS nameservers for the Subnet.
- Dns
Suffix string - The DNS suffix for the Subnet.
- Gateway string
- The gateway IP for the Subnet.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the resource.
- Policy
Ip stringPool Static Subnet Id - ID of this Static Subnet.
- Pool
Path string - The Policy path to the IP Pool for this Static Subnet.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Policy
Ip Pool Static Subnet Tag Args - A list of scope + tag pairs to associate with this Static Subnet.
- allocation
Ranges List<PolicyIp Pool Static Subnet Allocation Range> - One or more IP allocation ranges for the Subnet.
- cidr String
- The network CIDR
- context
Policy
Ip Pool Static Subnet Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - The display name for the Static Subnet.
- dns
Nameservers List<String> - A list of up to 3 DNS nameservers for the Subnet.
- dns
Suffix String - The DNS suffix for the Subnet.
- gateway String
- The gateway IP for the Subnet.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the resource.
- policy
Ip StringPool Static Subnet Id - ID of this Static Subnet.
- pool
Path String - The Policy path to the IP Pool for this Static Subnet.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Ip Pool Static Subnet Tag> - A list of scope + tag pairs to associate with this Static Subnet.
- allocation
Ranges PolicyIp Pool Static Subnet Allocation Range[] - One or more IP allocation ranges for the Subnet.
- cidr string
- The network CIDR
- context
Policy
Ip Pool Static Subnet Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - The display name for the Static Subnet.
- dns
Nameservers string[] - A list of up to 3 DNS nameservers for the Subnet.
- dns
Suffix string - The DNS suffix for the Subnet.
- gateway string
- The gateway IP for the Subnet.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the resource.
- policy
Ip stringPool Static Subnet Id - ID of this Static Subnet.
- pool
Path string - The Policy path to the IP Pool for this Static Subnet.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Policy
Ip Pool Static Subnet Tag[] - A list of scope + tag pairs to associate with this Static Subnet.
- allocation_
ranges Sequence[PolicyIp Pool Static Subnet Allocation Range Args] - One or more IP allocation ranges for the Subnet.
- cidr str
- The network CIDR
- context
Policy
Ip Pool Static Subnet Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - The display name for the Static Subnet.
- dns_
nameservers Sequence[str] - A list of up to 3 DNS nameservers for the Subnet.
- dns_
suffix str - The DNS suffix for the Subnet.
- gateway str
- The gateway IP for the Subnet.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the resource.
- policy_
ip_ strpool_ static_ subnet_ id - ID of this Static Subnet.
- pool_
path str - The Policy path to the IP Pool for this Static Subnet.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Policy
Ip Pool Static Subnet Tag Args] - A list of scope + tag pairs to associate with this Static Subnet.
- allocation
Ranges List<Property Map> - One or more IP allocation ranges for the Subnet.
- cidr String
- The network CIDR
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - The display name for the Static Subnet.
- dns
Nameservers List<String> - A list of up to 3 DNS nameservers for the Subnet.
- dns
Suffix String - The DNS suffix for the Subnet.
- gateway String
- The gateway IP for the Subnet.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the resource.
- policy
Ip StringPool Static Subnet Id - ID of this Static Subnet.
- pool
Path String - The Policy path to the IP Pool for this Static Subnet.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this Static Subnet.
Supporting Types
PolicyIpPoolStaticSubnetAllocationRange, PolicyIpPoolStaticSubnetAllocationRangeArgs
PolicyIpPoolStaticSubnetContext, PolicyIpPoolStaticSubnetContextArgs
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
PolicyIpPoolStaticSubnetTag, PolicyIpPoolStaticSubnetTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.