nsxt.VpcSubnet
Explore with Pulumi AI
Create VpcSubnet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcSubnet(name: string, args: VpcSubnetArgs, opts?: CustomResourceOptions);
@overload
def VpcSubnet(resource_name: str,
args: VpcSubnetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcSubnet(resource_name: str,
opts: Optional[ResourceOptions] = None,
context: Optional[VpcSubnetContextArgs] = None,
display_name: Optional[str] = None,
access_mode: Optional[str] = None,
advanced_config: Optional[VpcSubnetAdvancedConfigArgs] = None,
description: Optional[str] = None,
dhcp_config: Optional[VpcSubnetDhcpConfigArgs] = None,
ip_addresses: Optional[Sequence[str]] = None,
ip_blocks: Optional[Sequence[str]] = None,
ipv4_subnet_size: Optional[float] = None,
nsx_id: Optional[str] = None,
tags: Optional[Sequence[VpcSubnetTagArgs]] = None,
vpc_subnet_id: Optional[str] = None)
func NewVpcSubnet(ctx *Context, name string, args VpcSubnetArgs, opts ...ResourceOption) (*VpcSubnet, error)
public VpcSubnet(string name, VpcSubnetArgs args, CustomResourceOptions? opts = null)
public VpcSubnet(String name, VpcSubnetArgs args)
public VpcSubnet(String name, VpcSubnetArgs args, CustomResourceOptions options)
type: nsxt:VpcSubnet
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 VpcSubnetArgs
- 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 VpcSubnetArgs
- 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 VpcSubnetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcSubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcSubnetArgs
- 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 vpcSubnetResource = new Nsxt.VpcSubnet("vpcSubnetResource", new()
{
Context = new Nsxt.Inputs.VpcSubnetContextArgs
{
ProjectId = "string",
VpcId = "string",
},
DisplayName = "string",
AccessMode = "string",
AdvancedConfig = new Nsxt.Inputs.VpcSubnetAdvancedConfigArgs
{
ConnectivityState = "string",
DhcpServerAddresses = new[]
{
"string",
},
ExtraConfigs = new[]
{
new Nsxt.Inputs.VpcSubnetAdvancedConfigExtraConfigArgs
{
ConfigPair = new Nsxt.Inputs.VpcSubnetAdvancedConfigExtraConfigConfigPairArgs
{
Key = "string",
Value = "string",
},
},
},
GatewayAddresses = new[]
{
"string",
},
StaticIpAllocation = new Nsxt.Inputs.VpcSubnetAdvancedConfigStaticIpAllocationArgs
{
Enabled = false,
},
},
Description = "string",
DhcpConfig = new Nsxt.Inputs.VpcSubnetDhcpConfigArgs
{
DhcpServerAdditionalConfig = new Nsxt.Inputs.VpcSubnetDhcpConfigDhcpServerAdditionalConfigArgs
{
Options = new Nsxt.Inputs.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsArgs
{
Option121 = new Nsxt.Inputs.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121Args
{
StaticRoutes = new[]
{
new Nsxt.Inputs.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121StaticRouteArgs
{
Network = "string",
NextHop = "string",
},
},
},
Others = new[]
{
new Nsxt.Inputs.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOtherArgs
{
Code = 0,
Values = new[]
{
"string",
},
},
},
},
ReservedIpRanges = new[]
{
"string",
},
},
Mode = "string",
},
IpAddresses = new[]
{
"string",
},
IpBlocks = new[]
{
"string",
},
Ipv4SubnetSize = 0,
NsxId = "string",
Tags = new[]
{
new Nsxt.Inputs.VpcSubnetTagArgs
{
Scope = "string",
Tag = "string",
},
},
VpcSubnetId = "string",
});
example, err := nsxt.NewVpcSubnet(ctx, "vpcSubnetResource", &nsxt.VpcSubnetArgs{
Context: &nsxt.VpcSubnetContextArgs{
ProjectId: pulumi.String("string"),
VpcId: pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
AccessMode: pulumi.String("string"),
AdvancedConfig: &nsxt.VpcSubnetAdvancedConfigArgs{
ConnectivityState: pulumi.String("string"),
DhcpServerAddresses: pulumi.StringArray{
pulumi.String("string"),
},
ExtraConfigs: nsxt.VpcSubnetAdvancedConfigExtraConfigArray{
&nsxt.VpcSubnetAdvancedConfigExtraConfigArgs{
ConfigPair: &nsxt.VpcSubnetAdvancedConfigExtraConfigConfigPairArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
GatewayAddresses: pulumi.StringArray{
pulumi.String("string"),
},
StaticIpAllocation: &nsxt.VpcSubnetAdvancedConfigStaticIpAllocationArgs{
Enabled: pulumi.Bool(false),
},
},
Description: pulumi.String("string"),
DhcpConfig: &nsxt.VpcSubnetDhcpConfigArgs{
DhcpServerAdditionalConfig: &nsxt.VpcSubnetDhcpConfigDhcpServerAdditionalConfigArgs{
Options: &nsxt.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsArgs{
Option121: &nsxt.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121Args{
StaticRoutes: nsxt.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121StaticRouteArray{
&nsxt.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121StaticRouteArgs{
Network: pulumi.String("string"),
NextHop: pulumi.String("string"),
},
},
},
Others: nsxt.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOtherArray{
&nsxt.VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOtherArgs{
Code: pulumi.Float64(0),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
ReservedIpRanges: pulumi.StringArray{
pulumi.String("string"),
},
},
Mode: pulumi.String("string"),
},
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
IpBlocks: pulumi.StringArray{
pulumi.String("string"),
},
Ipv4SubnetSize: pulumi.Float64(0),
NsxId: pulumi.String("string"),
Tags: nsxt.VpcSubnetTagArray{
&nsxt.VpcSubnetTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
VpcSubnetId: pulumi.String("string"),
})
var vpcSubnetResource = new VpcSubnet("vpcSubnetResource", VpcSubnetArgs.builder()
.context(VpcSubnetContextArgs.builder()
.projectId("string")
.vpcId("string")
.build())
.displayName("string")
.accessMode("string")
.advancedConfig(VpcSubnetAdvancedConfigArgs.builder()
.connectivityState("string")
.dhcpServerAddresses("string")
.extraConfigs(VpcSubnetAdvancedConfigExtraConfigArgs.builder()
.configPair(VpcSubnetAdvancedConfigExtraConfigConfigPairArgs.builder()
.key("string")
.value("string")
.build())
.build())
.gatewayAddresses("string")
.staticIpAllocation(VpcSubnetAdvancedConfigStaticIpAllocationArgs.builder()
.enabled(false)
.build())
.build())
.description("string")
.dhcpConfig(VpcSubnetDhcpConfigArgs.builder()
.dhcpServerAdditionalConfig(VpcSubnetDhcpConfigDhcpServerAdditionalConfigArgs.builder()
.options(VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsArgs.builder()
.option121(VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121Args.builder()
.staticRoutes(VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121StaticRouteArgs.builder()
.network("string")
.nextHop("string")
.build())
.build())
.others(VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOtherArgs.builder()
.code(0.0)
.values("string")
.build())
.build())
.reservedIpRanges("string")
.build())
.mode("string")
.build())
.ipAddresses("string")
.ipBlocks("string")
.ipv4SubnetSize(0.0)
.nsxId("string")
.tags(VpcSubnetTagArgs.builder()
.scope("string")
.tag("string")
.build())
.vpcSubnetId("string")
.build());
vpc_subnet_resource = nsxt.VpcSubnet("vpcSubnetResource",
context={
"project_id": "string",
"vpc_id": "string",
},
display_name="string",
access_mode="string",
advanced_config={
"connectivity_state": "string",
"dhcp_server_addresses": ["string"],
"extra_configs": [{
"config_pair": {
"key": "string",
"value": "string",
},
}],
"gateway_addresses": ["string"],
"static_ip_allocation": {
"enabled": False,
},
},
description="string",
dhcp_config={
"dhcp_server_additional_config": {
"options": {
"option121": {
"static_routes": [{
"network": "string",
"next_hop": "string",
}],
},
"others": [{
"code": 0,
"values": ["string"],
}],
},
"reserved_ip_ranges": ["string"],
},
"mode": "string",
},
ip_addresses=["string"],
ip_blocks=["string"],
ipv4_subnet_size=0,
nsx_id="string",
tags=[{
"scope": "string",
"tag": "string",
}],
vpc_subnet_id="string")
const vpcSubnetResource = new nsxt.VpcSubnet("vpcSubnetResource", {
context: {
projectId: "string",
vpcId: "string",
},
displayName: "string",
accessMode: "string",
advancedConfig: {
connectivityState: "string",
dhcpServerAddresses: ["string"],
extraConfigs: [{
configPair: {
key: "string",
value: "string",
},
}],
gatewayAddresses: ["string"],
staticIpAllocation: {
enabled: false,
},
},
description: "string",
dhcpConfig: {
dhcpServerAdditionalConfig: {
options: {
option121: {
staticRoutes: [{
network: "string",
nextHop: "string",
}],
},
others: [{
code: 0,
values: ["string"],
}],
},
reservedIpRanges: ["string"],
},
mode: "string",
},
ipAddresses: ["string"],
ipBlocks: ["string"],
ipv4SubnetSize: 0,
nsxId: "string",
tags: [{
scope: "string",
tag: "string",
}],
vpcSubnetId: "string",
});
type: nsxt:VpcSubnet
properties:
accessMode: string
advancedConfig:
connectivityState: string
dhcpServerAddresses:
- string
extraConfigs:
- configPair:
key: string
value: string
gatewayAddresses:
- string
staticIpAllocation:
enabled: false
context:
projectId: string
vpcId: string
description: string
dhcpConfig:
dhcpServerAdditionalConfig:
options:
option121:
staticRoutes:
- network: string
nextHop: string
others:
- code: 0
values:
- string
reservedIpRanges:
- string
mode: string
displayName: string
ipAddresses:
- string
ipBlocks:
- string
ipv4SubnetSize: 0
nsxId: string
tags:
- scope: string
tag: string
vpcSubnetId: string
VpcSubnet 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 VpcSubnet resource accepts the following input properties:
- Context
Vpc
Subnet Context - Resource context
- Display
Name string - Display name of the resource.
- Access
Mode string - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- Advanced
Config VpcSubnet Advanced Config - Advanced Configuration for the Subnet
- Description string
- Description of the resource.
- Dhcp
Config VpcSubnet Dhcp Config - DHCP configuration block
- Ip
Addresses List<string> - If not provided, Ip assignment will be done based on VPC CIDRs
- Ip
Blocks List<string> - List of IP block path for subnet IP allocation
- Ipv4Subnet
Size double - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- List<Vpc
Subnet Tag> - A list of scope + tag pairs to associate with this resource.
- Vpc
Subnet stringId - ID of the resource.
- Context
Vpc
Subnet Context Args - Resource context
- Display
Name string - Display name of the resource.
- Access
Mode string - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- Advanced
Config VpcSubnet Advanced Config Args - Advanced Configuration for the Subnet
- Description string
- Description of the resource.
- Dhcp
Config VpcSubnet Dhcp Config Args - DHCP configuration block
- Ip
Addresses []string - If not provided, Ip assignment will be done based on VPC CIDRs
- Ip
Blocks []string - List of IP block path for subnet IP allocation
- Ipv4Subnet
Size float64 - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- []Vpc
Subnet Tag Args - A list of scope + tag pairs to associate with this resource.
- Vpc
Subnet stringId - ID of the resource.
- context
Vpc
Subnet Context - Resource context
- display
Name String - Display name of the resource.
- access
Mode String - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced
Config VpcSubnet Advanced Config - Advanced Configuration for the Subnet
- description String
- Description of the resource.
- dhcp
Config VpcSubnet Dhcp Config - DHCP configuration block
- ip
Addresses List<String> - If not provided, Ip assignment will be done based on VPC CIDRs
- ip
Blocks List<String> - List of IP block path for subnet IP allocation
- ipv4Subnet
Size Double - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- List<Vpc
Subnet Tag> - A list of scope + tag pairs to associate with this resource.
- vpc
Subnet StringId - ID of the resource.
- context
Vpc
Subnet Context - Resource context
- display
Name string - Display name of the resource.
- access
Mode string - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced
Config VpcSubnet Advanced Config - Advanced Configuration for the Subnet
- description string
- Description of the resource.
- dhcp
Config VpcSubnet Dhcp Config - DHCP configuration block
- ip
Addresses string[] - If not provided, Ip assignment will be done based on VPC CIDRs
- ip
Blocks string[] - List of IP block path for subnet IP allocation
- ipv4Subnet
Size number - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Vpc
Subnet Tag[] - A list of scope + tag pairs to associate with this resource.
- vpc
Subnet stringId - ID of the resource.
- context
Vpc
Subnet Context Args - Resource context
- display_
name str - Display name of the resource.
- access_
mode str - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced_
config VpcSubnet Advanced Config Args - Advanced Configuration for the Subnet
- description str
- Description of the resource.
- dhcp_
config VpcSubnet Dhcp Config Args - DHCP configuration block
- ip_
addresses Sequence[str] - If not provided, Ip assignment will be done based on VPC CIDRs
- ip_
blocks Sequence[str] - List of IP block path for subnet IP allocation
- ipv4_
subnet_ floatsize - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Sequence[Vpc
Subnet Tag Args] - A list of scope + tag pairs to associate with this resource.
- vpc_
subnet_ strid - ID of the resource.
- context Property Map
- Resource context
- display
Name String - Display name of the resource.
- access
Mode String - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced
Config Property Map - Advanced Configuration for the Subnet
- description String
- Description of the resource.
- dhcp
Config Property Map - DHCP configuration block
- ip
Addresses List<String> - If not provided, Ip assignment will be done based on VPC CIDRs
- ip
Blocks List<String> - List of IP block path for subnet IP allocation
- ipv4Subnet
Size Number - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- vpc
Subnet StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcSubnet resource produces the following output properties:
Look up Existing VpcSubnet Resource
Get an existing VpcSubnet 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?: VpcSubnetState, opts?: CustomResourceOptions): VpcSubnet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
advanced_config: Optional[VpcSubnetAdvancedConfigArgs] = None,
context: Optional[VpcSubnetContextArgs] = None,
description: Optional[str] = None,
dhcp_config: Optional[VpcSubnetDhcpConfigArgs] = None,
display_name: Optional[str] = None,
ip_addresses: Optional[Sequence[str]] = None,
ip_blocks: Optional[Sequence[str]] = None,
ipv4_subnet_size: Optional[float] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[VpcSubnetTagArgs]] = None,
vpc_subnet_id: Optional[str] = None) -> VpcSubnet
func GetVpcSubnet(ctx *Context, name string, id IDInput, state *VpcSubnetState, opts ...ResourceOption) (*VpcSubnet, error)
public static VpcSubnet Get(string name, Input<string> id, VpcSubnetState? state, CustomResourceOptions? opts = null)
public static VpcSubnet get(String name, Output<String> id, VpcSubnetState state, CustomResourceOptions options)
resources: _: type: nsxt:VpcSubnet 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.
- Access
Mode string - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- Advanced
Config VpcSubnet Advanced Config - Advanced Configuration for the Subnet
- Context
Vpc
Subnet Context - Resource context
- Description string
- Description of the resource.
- Dhcp
Config VpcSubnet Dhcp Config - DHCP configuration block
- Display
Name string - Display name of the resource.
- Ip
Addresses List<string> - If not provided, Ip assignment will be done based on VPC CIDRs
- Ip
Blocks List<string> - List of IP block path for subnet IP allocation
- Ipv4Subnet
Size double - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- 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 policy resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Vpc
Subnet Tag> - A list of scope + tag pairs to associate with this resource.
- Vpc
Subnet stringId - ID of the resource.
- Access
Mode string - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- Advanced
Config VpcSubnet Advanced Config Args - Advanced Configuration for the Subnet
- Context
Vpc
Subnet Context Args - Resource context
- Description string
- Description of the resource.
- Dhcp
Config VpcSubnet Dhcp Config Args - DHCP configuration block
- Display
Name string - Display name of the resource.
- Ip
Addresses []string - If not provided, Ip assignment will be done based on VPC CIDRs
- Ip
Blocks []string - List of IP block path for subnet IP allocation
- Ipv4Subnet
Size float64 - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- 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 policy resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Vpc
Subnet Tag Args - A list of scope + tag pairs to associate with this resource.
- Vpc
Subnet stringId - ID of the resource.
- access
Mode String - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced
Config VpcSubnet Advanced Config - Advanced Configuration for the Subnet
- context
Vpc
Subnet Context - Resource context
- description String
- Description of the resource.
- dhcp
Config VpcSubnet Dhcp Config - DHCP configuration block
- display
Name String - Display name of the resource.
- ip
Addresses List<String> - If not provided, Ip assignment will be done based on VPC CIDRs
- ip
Blocks List<String> - List of IP block path for subnet IP allocation
- ipv4Subnet
Size Double - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- 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 policy resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Vpc
Subnet Tag> - A list of scope + tag pairs to associate with this resource.
- vpc
Subnet StringId - ID of the resource.
- access
Mode string - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced
Config VpcSubnet Advanced Config - Advanced Configuration for the Subnet
- context
Vpc
Subnet Context - Resource context
- description string
- Description of the resource.
- dhcp
Config VpcSubnet Dhcp Config - DHCP configuration block
- display
Name string - Display name of the resource.
- ip
Addresses string[] - If not provided, Ip assignment will be done based on VPC CIDRs
- ip
Blocks string[] - List of IP block path for subnet IP allocation
- ipv4Subnet
Size number - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- 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 policy resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Vpc
Subnet Tag[] - A list of scope + tag pairs to associate with this resource.
- vpc
Subnet stringId - ID of the resource.
- access_
mode str - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced_
config VpcSubnet Advanced Config Args - Advanced Configuration for the Subnet
- context
Vpc
Subnet Context Args - Resource context
- description str
- Description of the resource.
- dhcp_
config VpcSubnet Dhcp Config Args - DHCP configuration block
- display_
name str - Display name of the resource.
- ip_
addresses Sequence[str] - If not provided, Ip assignment will be done based on VPC CIDRs
- ip_
blocks Sequence[str] - List of IP block path for subnet IP allocation
- ipv4_
subnet_ floatsize - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- 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 policy resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Vpc
Subnet Tag Args] - A list of scope + tag pairs to associate with this resource.
- vpc_
subnet_ strid - ID of the resource.
- access
Mode String - Subnet access mode, one of
Private
,Public
,Isolated
orPrivate_TGW
. Default isPrivate
- advanced
Config Property Map - Advanced Configuration for the Subnet
- context Property Map
- Resource context
- description String
- Description of the resource.
- dhcp
Config Property Map - DHCP configuration block
- display
Name String - Display name of the resource.
- ip
Addresses List<String> - If not provided, Ip assignment will be done based on VPC CIDRs
- ip
Blocks List<String> - List of IP block path for subnet IP allocation
- ipv4Subnet
Size Number - If IP Addresses are not provided, this field will be used to carve out the ips from respective ip block defined in the parent VPC. The default is 64.
- 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 policy resource.
- 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 resource.
- vpc
Subnet StringId - ID of the resource.
Supporting Types
VpcSubnetAdvancedConfig, VpcSubnetAdvancedConfigArgs
- Connectivity
State string - Connectivity state for the subnet, one of
CONNECTED
,DISCONNECTED
- Dhcp
Server List<string>Addresses - List of DHCP server addresses per address family, in CIDR format
- Extra
Configs List<VpcSubnet Advanced Config Extra Config> - Gateway
Addresses List<string> - List of Gateway IP Addresses per address family, in CIDR format
- Static
Ip VpcAllocation Subnet Advanced Config Static Ip Allocation - Static IP allocation configuration
- Connectivity
State string - Connectivity state for the subnet, one of
CONNECTED
,DISCONNECTED
- Dhcp
Server []stringAddresses - List of DHCP server addresses per address family, in CIDR format
- Extra
Configs []VpcSubnet Advanced Config Extra Config - Gateway
Addresses []string - List of Gateway IP Addresses per address family, in CIDR format
- Static
Ip VpcAllocation Subnet Advanced Config Static Ip Allocation - Static IP allocation configuration
- connectivity
State String - Connectivity state for the subnet, one of
CONNECTED
,DISCONNECTED
- dhcp
Server List<String>Addresses - List of DHCP server addresses per address family, in CIDR format
- extra
Configs List<VpcSubnet Advanced Config Extra Config> - gateway
Addresses List<String> - List of Gateway IP Addresses per address family, in CIDR format
- static
Ip VpcAllocation Subnet Advanced Config Static Ip Allocation - Static IP allocation configuration
- connectivity
State string - Connectivity state for the subnet, one of
CONNECTED
,DISCONNECTED
- dhcp
Server string[]Addresses - List of DHCP server addresses per address family, in CIDR format
- extra
Configs VpcSubnet Advanced Config Extra Config[] - gateway
Addresses string[] - List of Gateway IP Addresses per address family, in CIDR format
- static
Ip VpcAllocation Subnet Advanced Config Static Ip Allocation - Static IP allocation configuration
- connectivity_
state str - Connectivity state for the subnet, one of
CONNECTED
,DISCONNECTED
- dhcp_
server_ Sequence[str]addresses - List of DHCP server addresses per address family, in CIDR format
- extra_
configs Sequence[VpcSubnet Advanced Config Extra Config] - gateway_
addresses Sequence[str] - List of Gateway IP Addresses per address family, in CIDR format
- static_
ip_ Vpcallocation Subnet Advanced Config Static Ip Allocation - Static IP allocation configuration
- connectivity
State String - Connectivity state for the subnet, one of
CONNECTED
,DISCONNECTED
- dhcp
Server List<String>Addresses - List of DHCP server addresses per address family, in CIDR format
- extra
Configs List<Property Map> - gateway
Addresses List<String> - List of Gateway IP Addresses per address family, in CIDR format
- static
Ip Property MapAllocation - Static IP allocation configuration
VpcSubnetAdvancedConfigExtraConfig, VpcSubnetAdvancedConfigExtraConfigArgs
VpcSubnetAdvancedConfigExtraConfigConfigPair, VpcSubnetAdvancedConfigExtraConfigConfigPairArgs
VpcSubnetAdvancedConfigStaticIpAllocation, VpcSubnetAdvancedConfigStaticIpAllocationArgs
- Enabled bool
- Enable ip and mac address allocation for VPC Subnet ports from static ip pool. To enable this, dhcp pool shall be empty and static ip pool shall own all available ip addresses.
- Enabled bool
- Enable ip and mac address allocation for VPC Subnet ports from static ip pool. To enable this, dhcp pool shall be empty and static ip pool shall own all available ip addresses.
- enabled Boolean
- Enable ip and mac address allocation for VPC Subnet ports from static ip pool. To enable this, dhcp pool shall be empty and static ip pool shall own all available ip addresses.
- enabled boolean
- Enable ip and mac address allocation for VPC Subnet ports from static ip pool. To enable this, dhcp pool shall be empty and static ip pool shall own all available ip addresses.
- enabled bool
- Enable ip and mac address allocation for VPC Subnet ports from static ip pool. To enable this, dhcp pool shall be empty and static ip pool shall own all available ip addresses.
- enabled Boolean
- Enable ip and mac address allocation for VPC Subnet ports from static ip pool. To enable this, dhcp pool shall be empty and static ip pool shall own all available ip addresses.
VpcSubnetContext, VpcSubnetContextArgs
- project_
id str - Id of the project which the resource belongs to.
- vpc_
id str - Id of the VPC which the resource belongs to.
VpcSubnetDhcpConfig, VpcSubnetDhcpConfigArgs
- Dhcp
Server VpcAdditional Config Subnet Dhcp Config Dhcp Server Additional Config - Additional DHCP server config
- Mode string
- The operational mode of DHCP within the subnet, can be one of
DHCP_SERVER
,DHCP_RELAY
,DHCP_DEACTIVATED
. Default isDHCP_DEACTIVATED
- Dhcp
Server VpcAdditional Config Subnet Dhcp Config Dhcp Server Additional Config - Additional DHCP server config
- Mode string
- The operational mode of DHCP within the subnet, can be one of
DHCP_SERVER
,DHCP_RELAY
,DHCP_DEACTIVATED
. Default isDHCP_DEACTIVATED
- dhcp
Server VpcAdditional Config Subnet Dhcp Config Dhcp Server Additional Config - Additional DHCP server config
- mode String
- The operational mode of DHCP within the subnet, can be one of
DHCP_SERVER
,DHCP_RELAY
,DHCP_DEACTIVATED
. Default isDHCP_DEACTIVATED
- dhcp
Server VpcAdditional Config Subnet Dhcp Config Dhcp Server Additional Config - Additional DHCP server config
- mode string
- The operational mode of DHCP within the subnet, can be one of
DHCP_SERVER
,DHCP_RELAY
,DHCP_DEACTIVATED
. Default isDHCP_DEACTIVATED
- dhcp_
server_ Vpcadditional_ config Subnet Dhcp Config Dhcp Server Additional Config - Additional DHCP server config
- mode str
- The operational mode of DHCP within the subnet, can be one of
DHCP_SERVER
,DHCP_RELAY
,DHCP_DEACTIVATED
. Default isDHCP_DEACTIVATED
- dhcp
Server Property MapAdditional Config - Additional DHCP server config
- mode String
- The operational mode of DHCP within the subnet, can be one of
DHCP_SERVER
,DHCP_RELAY
,DHCP_DEACTIVATED
. Default isDHCP_DEACTIVATED
VpcSubnetDhcpConfigDhcpServerAdditionalConfig, VpcSubnetDhcpConfigDhcpServerAdditionalConfigArgs
- Options
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options - DHCPv4 options block
- Reserved
Ip List<string>Ranges - Specifies IP ranges that are reserved and excluded from being assigned by the DHCP server to clients. This is a list of IP ranges or IP addresses.
- Options
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options - DHCPv4 options block
- Reserved
Ip []stringRanges - Specifies IP ranges that are reserved and excluded from being assigned by the DHCP server to clients. This is a list of IP ranges or IP addresses.
- options
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options - DHCPv4 options block
- reserved
Ip List<String>Ranges - Specifies IP ranges that are reserved and excluded from being assigned by the DHCP server to clients. This is a list of IP ranges or IP addresses.
- options
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options - DHCPv4 options block
- reserved
Ip string[]Ranges - Specifies IP ranges that are reserved and excluded from being assigned by the DHCP server to clients. This is a list of IP ranges or IP addresses.
- options
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options - DHCPv4 options block
- reserved_
ip_ Sequence[str]ranges - Specifies IP ranges that are reserved and excluded from being assigned by the DHCP server to clients. This is a list of IP ranges or IP addresses.
- options Property Map
- DHCPv4 options block
- reserved
Ip List<String>Ranges - Specifies IP ranges that are reserved and excluded from being assigned by the DHCP server to clients. This is a list of IP ranges or IP addresses.
VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptions, VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsArgs
- Option121
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Option121 - Specification for DHCP option 121
- Others
List<Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Other> - DHCP option in generic format
- Option121
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Option121 - Specification for DHCP option 121
- Others
[]Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Other - DHCP option in generic format
- option121
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Option121 - Specification for DHCP option 121
- others
List<Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Other> - DHCP option in generic format
- option121
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Option121 - Specification for DHCP option 121
- others
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Other[] - DHCP option in generic format
- option121
Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Option121 - Specification for DHCP option 121
- others
Sequence[Vpc
Subnet Dhcp Config Dhcp Server Additional Config Options Other] - DHCP option in generic format
- option121 Property Map
- Specification for DHCP option 121
- others List<Property Map>
- DHCP option in generic format
VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121, VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121Args
- static
Routes List<Property Map> - Static route
VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121StaticRoute, VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOption121StaticRouteArgs
VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOther, VpcSubnetDhcpConfigDhcpServerAdditionalConfigOptionsOtherArgs
VpcSubnetTag, VpcSubnetTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.