nsxt.IpPool
Explore with Pulumi AI
Create IpPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpPool(name: string, args?: IpPoolArgs, opts?: CustomResourceOptions);
@overload
def IpPool(resource_name: str,
args: Optional[IpPoolArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IpPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
ip_pool_id: Optional[str] = None,
subnets: Optional[Sequence[IpPoolSubnetArgs]] = None,
tags: Optional[Sequence[IpPoolTagArgs]] = None)
func NewIpPool(ctx *Context, name string, args *IpPoolArgs, opts ...ResourceOption) (*IpPool, error)
public IpPool(string name, IpPoolArgs? args = null, CustomResourceOptions? opts = null)
public IpPool(String name, IpPoolArgs args)
public IpPool(String name, IpPoolArgs args, CustomResourceOptions options)
type: nsxt:IpPool
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 IpPoolArgs
- 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 IpPoolArgs
- 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 IpPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpPoolArgs
- 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 ipPoolResource = new Nsxt.IpPool("ipPoolResource", new()
{
Description = "string",
DisplayName = "string",
IpPoolId = "string",
Subnets = new[]
{
new Nsxt.Inputs.IpPoolSubnetArgs
{
AllocationRanges = new[]
{
"string",
},
Cidr = "string",
DnsNameservers = new[]
{
"string",
},
DnsSuffix = "string",
GatewayIp = "string",
},
},
Tags = new[]
{
new Nsxt.Inputs.IpPoolTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewIpPool(ctx, "ipPoolResource", &nsxt.IpPoolArgs{
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
IpPoolId: pulumi.String("string"),
Subnets: nsxt.IpPoolSubnetArray{
&nsxt.IpPoolSubnetArgs{
AllocationRanges: pulumi.StringArray{
pulumi.String("string"),
},
Cidr: pulumi.String("string"),
DnsNameservers: pulumi.StringArray{
pulumi.String("string"),
},
DnsSuffix: pulumi.String("string"),
GatewayIp: pulumi.String("string"),
},
},
Tags: nsxt.IpPoolTagArray{
&nsxt.IpPoolTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var ipPoolResource = new IpPool("ipPoolResource", IpPoolArgs.builder()
.description("string")
.displayName("string")
.ipPoolId("string")
.subnets(IpPoolSubnetArgs.builder()
.allocationRanges("string")
.cidr("string")
.dnsNameservers("string")
.dnsSuffix("string")
.gatewayIp("string")
.build())
.tags(IpPoolTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
ip_pool_resource = nsxt.IpPool("ipPoolResource",
description="string",
display_name="string",
ip_pool_id="string",
subnets=[{
"allocation_ranges": ["string"],
"cidr": "string",
"dns_nameservers": ["string"],
"dns_suffix": "string",
"gateway_ip": "string",
}],
tags=[{
"scope": "string",
"tag": "string",
}])
const ipPoolResource = new nsxt.IpPool("ipPoolResource", {
description: "string",
displayName: "string",
ipPoolId: "string",
subnets: [{
allocationRanges: ["string"],
cidr: "string",
dnsNameservers: ["string"],
dnsSuffix: "string",
gatewayIp: "string",
}],
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:IpPool
properties:
description: string
displayName: string
ipPoolId: string
subnets:
- allocationRanges:
- string
cidr: string
dnsNameservers:
- string
dnsSuffix: string
gatewayIp: string
tags:
- scope: string
tag: string
IpPool 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 IpPool resource accepts the following input properties:
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Ip
Pool stringId - ID of the IP pool.
- Subnets
List<Ip
Pool Subnet> - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- List<Ip
Pool Tag> - A list of scope + tag pairs to associate with this IP pool.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Ip
Pool stringId - ID of the IP pool.
- Subnets
[]Ip
Pool Subnet Args - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- []Ip
Pool Tag Args - A list of scope + tag pairs to associate with this IP pool.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- ip
Pool StringId - ID of the IP pool.
- subnets
List<Ip
Pool Subnet> - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- List<Ip
Pool Tag> - A list of scope + tag pairs to associate with this IP pool.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- ip
Pool stringId - ID of the IP pool.
- subnets
Ip
Pool Subnet[] - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- Ip
Pool Tag[] - A list of scope + tag pairs to associate with this IP pool.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- ip_
pool_ strid - ID of the IP pool.
- subnets
Sequence[Ip
Pool Subnet Args] - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- Sequence[Ip
Pool Tag Args] - A list of scope + tag pairs to associate with this IP pool.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- ip
Pool StringId - ID of the IP pool.
- subnets List<Property Map>
- Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- List<Property Map>
- A list of scope + tag pairs to associate with this IP pool.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpPool resource produces the following output properties:
Look up Existing IpPool Resource
Get an existing IpPool 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?: IpPoolState, opts?: CustomResourceOptions): IpPool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
ip_pool_id: Optional[str] = None,
revision: Optional[float] = None,
subnets: Optional[Sequence[IpPoolSubnetArgs]] = None,
tags: Optional[Sequence[IpPoolTagArgs]] = None) -> IpPool
func GetIpPool(ctx *Context, name string, id IDInput, state *IpPoolState, opts ...ResourceOption) (*IpPool, error)
public static IpPool Get(string name, Input<string> id, IpPoolState? state, CustomResourceOptions? opts = null)
public static IpPool get(String name, Output<String> id, IpPoolState state, CustomResourceOptions options)
resources: _: type: nsxt:IpPool 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.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Ip
Pool stringId - ID of the IP pool.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Subnets
List<Ip
Pool Subnet> - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- List<Ip
Pool Tag> - A list of scope + tag pairs to associate with this IP pool.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Ip
Pool stringId - ID of the IP pool.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Subnets
[]Ip
Pool Subnet Args - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- []Ip
Pool Tag Args - A list of scope + tag pairs to associate with this IP pool.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- ip
Pool StringId - ID of the IP pool.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- subnets
List<Ip
Pool Subnet> - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- List<Ip
Pool Tag> - A list of scope + tag pairs to associate with this IP pool.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- ip
Pool stringId - ID of the IP pool.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- subnets
Ip
Pool Subnet[] - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- Ip
Pool Tag[] - A list of scope + tag pairs to associate with this IP pool.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- ip_
pool_ strid - ID of the IP pool.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- subnets
Sequence[Ip
Pool Subnet Args] - Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- Sequence[Ip
Pool Tag Args] - A list of scope + tag pairs to associate with this IP pool.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- ip
Pool StringId - ID of the IP pool.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- subnets List<Property Map>
- Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets. Each subnet has the following arguments:
- List<Property Map>
- A list of scope + tag pairs to associate with this IP pool.
Supporting Types
IpPoolSubnet, IpPoolSubnetArgs
- Allocation
Ranges List<string> - A collection of IPv4 Pool Ranges
- Cidr string
- Network address and the prefix length which will be associated with a layer-2 broadcast domainIPv4 Pool Ranges
- Dns
Nameservers List<string> - A collection of up to 3 DNS servers for the subnet
- Dns
Suffix string - The DNS suffix for the DNS server
- Gateway
Ip string - The default gateway address on a layer-3 router
- Allocation
Ranges []string - A collection of IPv4 Pool Ranges
- Cidr string
- Network address and the prefix length which will be associated with a layer-2 broadcast domainIPv4 Pool Ranges
- Dns
Nameservers []string - A collection of up to 3 DNS servers for the subnet
- Dns
Suffix string - The DNS suffix for the DNS server
- Gateway
Ip string - The default gateway address on a layer-3 router
- allocation
Ranges List<String> - A collection of IPv4 Pool Ranges
- cidr String
- Network address and the prefix length which will be associated with a layer-2 broadcast domainIPv4 Pool Ranges
- dns
Nameservers List<String> - A collection of up to 3 DNS servers for the subnet
- dns
Suffix String - The DNS suffix for the DNS server
- gateway
Ip String - The default gateway address on a layer-3 router
- allocation
Ranges string[] - A collection of IPv4 Pool Ranges
- cidr string
- Network address and the prefix length which will be associated with a layer-2 broadcast domainIPv4 Pool Ranges
- dns
Nameservers string[] - A collection of up to 3 DNS servers for the subnet
- dns
Suffix string - The DNS suffix for the DNS server
- gateway
Ip string - The default gateway address on a layer-3 router
- allocation_
ranges Sequence[str] - A collection of IPv4 Pool Ranges
- cidr str
- Network address and the prefix length which will be associated with a layer-2 broadcast domainIPv4 Pool Ranges
- dns_
nameservers Sequence[str] - A collection of up to 3 DNS servers for the subnet
- dns_
suffix str - The DNS suffix for the DNS server
- gateway_
ip str - The default gateway address on a layer-3 router
- allocation
Ranges List<String> - A collection of IPv4 Pool Ranges
- cidr String
- Network address and the prefix length which will be associated with a layer-2 broadcast domainIPv4 Pool Ranges
- dns
Nameservers List<String> - A collection of up to 3 DNS servers for the subnet
- dns
Suffix String - The DNS suffix for the DNS server
- gateway
Ip String - The default gateway address on a layer-3 router
IpPoolTag, IpPoolTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.