nsxt.LogicalSwitch
Explore with Pulumi AI
Create LogicalSwitch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogicalSwitch(name: string, args: LogicalSwitchArgs, opts?: CustomResourceOptions);
@overload
def LogicalSwitch(resource_name: str,
args: LogicalSwitchArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogicalSwitch(resource_name: str,
opts: Optional[ResourceOptions] = None,
transport_zone_id: Optional[str] = None,
mac_pool_id: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
ip_pool_id: Optional[str] = None,
logical_switch_id: Optional[str] = None,
address_bindings: Optional[Sequence[LogicalSwitchAddressBindingArgs]] = None,
replication_mode: Optional[str] = None,
switching_profile_ids: Optional[Sequence[LogicalSwitchSwitchingProfileIdArgs]] = None,
tags: Optional[Sequence[LogicalSwitchTagArgs]] = None,
admin_state: Optional[str] = None,
vlan: Optional[float] = None,
vni: Optional[float] = None)
func NewLogicalSwitch(ctx *Context, name string, args LogicalSwitchArgs, opts ...ResourceOption) (*LogicalSwitch, error)
public LogicalSwitch(string name, LogicalSwitchArgs args, CustomResourceOptions? opts = null)
public LogicalSwitch(String name, LogicalSwitchArgs args)
public LogicalSwitch(String name, LogicalSwitchArgs args, CustomResourceOptions options)
type: nsxt:LogicalSwitch
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 LogicalSwitchArgs
- 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 LogicalSwitchArgs
- 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 LogicalSwitchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogicalSwitchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogicalSwitchArgs
- 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 logicalSwitchResource = new Nsxt.LogicalSwitch("logicalSwitchResource", new()
{
TransportZoneId = "string",
MacPoolId = "string",
Description = "string",
DisplayName = "string",
IpPoolId = "string",
LogicalSwitchId = "string",
AddressBindings = new[]
{
new Nsxt.Inputs.LogicalSwitchAddressBindingArgs
{
IpAddress = "string",
MacAddress = "string",
Vlan = 0,
},
},
ReplicationMode = "string",
SwitchingProfileIds = new[]
{
new Nsxt.Inputs.LogicalSwitchSwitchingProfileIdArgs
{
Key = "string",
Value = "string",
},
},
Tags = new[]
{
new Nsxt.Inputs.LogicalSwitchTagArgs
{
Scope = "string",
Tag = "string",
},
},
AdminState = "string",
Vni = 0,
});
example, err := nsxt.NewLogicalSwitch(ctx, "logicalSwitchResource", &nsxt.LogicalSwitchArgs{
TransportZoneId: pulumi.String("string"),
MacPoolId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
IpPoolId: pulumi.String("string"),
LogicalSwitchId: pulumi.String("string"),
AddressBindings: nsxt.LogicalSwitchAddressBindingArray{
&nsxt.LogicalSwitchAddressBindingArgs{
IpAddress: pulumi.String("string"),
MacAddress: pulumi.String("string"),
Vlan: pulumi.Float64(0),
},
},
ReplicationMode: pulumi.String("string"),
SwitchingProfileIds: nsxt.LogicalSwitchSwitchingProfileIdArray{
&nsxt.LogicalSwitchSwitchingProfileIdArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Tags: nsxt.LogicalSwitchTagArray{
&nsxt.LogicalSwitchTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
AdminState: pulumi.String("string"),
Vni: pulumi.Float64(0),
})
var logicalSwitchResource = new LogicalSwitch("logicalSwitchResource", LogicalSwitchArgs.builder()
.transportZoneId("string")
.macPoolId("string")
.description("string")
.displayName("string")
.ipPoolId("string")
.logicalSwitchId("string")
.addressBindings(LogicalSwitchAddressBindingArgs.builder()
.ipAddress("string")
.macAddress("string")
.vlan(0)
.build())
.replicationMode("string")
.switchingProfileIds(LogicalSwitchSwitchingProfileIdArgs.builder()
.key("string")
.value("string")
.build())
.tags(LogicalSwitchTagArgs.builder()
.scope("string")
.tag("string")
.build())
.adminState("string")
.vni(0)
.build());
logical_switch_resource = nsxt.LogicalSwitch("logicalSwitchResource",
transport_zone_id="string",
mac_pool_id="string",
description="string",
display_name="string",
ip_pool_id="string",
logical_switch_id="string",
address_bindings=[{
"ip_address": "string",
"mac_address": "string",
"vlan": 0,
}],
replication_mode="string",
switching_profile_ids=[{
"key": "string",
"value": "string",
}],
tags=[{
"scope": "string",
"tag": "string",
}],
admin_state="string",
vni=0)
const logicalSwitchResource = new nsxt.LogicalSwitch("logicalSwitchResource", {
transportZoneId: "string",
macPoolId: "string",
description: "string",
displayName: "string",
ipPoolId: "string",
logicalSwitchId: "string",
addressBindings: [{
ipAddress: "string",
macAddress: "string",
vlan: 0,
}],
replicationMode: "string",
switchingProfileIds: [{
key: "string",
value: "string",
}],
tags: [{
scope: "string",
tag: "string",
}],
adminState: "string",
vni: 0,
});
type: nsxt:LogicalSwitch
properties:
addressBindings:
- ipAddress: string
macAddress: string
vlan: 0
adminState: string
description: string
displayName: string
ipPoolId: string
logicalSwitchId: string
macPoolId: string
replicationMode: string
switchingProfileIds:
- key: string
value: string
tags:
- scope: string
tag: string
transportZoneId: string
vni: 0
LogicalSwitch 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 LogicalSwitch resource accepts the following input properties:
- Transport
Zone stringId - Transport Zone ID for the logical switch.
- Address
Bindings List<LogicalSwitch Address Binding> - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- Admin
State string - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Pool stringId - Ip Pool ID to be associated with the logical switch.
- Logical
Switch stringId - ID of the logical switch.
- Mac
Pool stringId - Mac Pool ID to be associated with the logical switch.
- Replication
Mode string - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- Switching
Profile List<LogicalIds Switch Switching Profile Id> - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- List<Logical
Switch Tag> - A list of scope + tag pairs to associate with this logical switch.
- Vlan double
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- Vni double
- Vni for the logical switch.
- Transport
Zone stringId - Transport Zone ID for the logical switch.
- Address
Bindings []LogicalSwitch Address Binding Args - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- Admin
State string - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Pool stringId - Ip Pool ID to be associated with the logical switch.
- Logical
Switch stringId - ID of the logical switch.
- Mac
Pool stringId - Mac Pool ID to be associated with the logical switch.
- Replication
Mode string - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- Switching
Profile []LogicalIds Switch Switching Profile Id Args - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- []Logical
Switch Tag Args - A list of scope + tag pairs to associate with this logical switch.
- Vlan float64
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- Vni float64
- Vni for the logical switch.
- transport
Zone StringId - Transport Zone ID for the logical switch.
- address
Bindings List<LogicalSwitch Address Binding> - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin
State String - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- ip
Pool StringId - Ip Pool ID to be associated with the logical switch.
- logical
Switch StringId - ID of the logical switch.
- mac
Pool StringId - Mac Pool ID to be associated with the logical switch.
- replication
Mode String - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- switching
Profile List<LogicalIds Switch Switching Profile Id> - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- List<Logical
Switch Tag> - A list of scope + tag pairs to associate with this logical switch.
- vlan Double
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni Double
- Vni for the logical switch.
- transport
Zone stringId - Transport Zone ID for the logical switch.
- address
Bindings LogicalSwitch Address Binding[] - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin
State string - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description string
- Description of the resource.
- display
Name string - Display name, defaults to ID if not set.
- ip
Pool stringId - Ip Pool ID to be associated with the logical switch.
- logical
Switch stringId - ID of the logical switch.
- mac
Pool stringId - Mac Pool ID to be associated with the logical switch.
- replication
Mode string - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- switching
Profile LogicalIds Switch Switching Profile Id[] - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- Logical
Switch Tag[] - A list of scope + tag pairs to associate with this logical switch.
- vlan number
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni number
- Vni for the logical switch.
- transport_
zone_ strid - Transport Zone ID for the logical switch.
- address_
bindings Sequence[LogicalSwitch Address Binding Args] - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin_
state str - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description str
- Description of the resource.
- display_
name str - Display name, defaults to ID if not set.
- ip_
pool_ strid - Ip Pool ID to be associated with the logical switch.
- logical_
switch_ strid - ID of the logical switch.
- mac_
pool_ strid - Mac Pool ID to be associated with the logical switch.
- replication_
mode str - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- switching_
profile_ Sequence[Logicalids Switch Switching Profile Id Args] - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- Sequence[Logical
Switch Tag Args] - A list of scope + tag pairs to associate with this logical switch.
- vlan float
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni float
- Vni for the logical switch.
- transport
Zone StringId - Transport Zone ID for the logical switch.
- address
Bindings List<Property Map> - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin
State String - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- ip
Pool StringId - Ip Pool ID to be associated with the logical switch.
- logical
Switch StringId - ID of the logical switch.
- mac
Pool StringId - Mac Pool ID to be associated with the logical switch.
- replication
Mode String - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- switching
Profile List<Property Map>Ids - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- List<Property Map>
- A list of scope + tag pairs to associate with this logical switch.
- vlan Number
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni Number
- Vni for the logical switch.
Outputs
All input properties are implicitly available as output properties. Additionally, the LogicalSwitch resource produces the following output properties:
Look up Existing LogicalSwitch Resource
Get an existing LogicalSwitch 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?: LogicalSwitchState, opts?: CustomResourceOptions): LogicalSwitch
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address_bindings: Optional[Sequence[LogicalSwitchAddressBindingArgs]] = None,
admin_state: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
ip_pool_id: Optional[str] = None,
logical_switch_id: Optional[str] = None,
mac_pool_id: Optional[str] = None,
replication_mode: Optional[str] = None,
revision: Optional[float] = None,
switching_profile_ids: Optional[Sequence[LogicalSwitchSwitchingProfileIdArgs]] = None,
tags: Optional[Sequence[LogicalSwitchTagArgs]] = None,
transport_zone_id: Optional[str] = None,
vlan: Optional[float] = None,
vni: Optional[float] = None) -> LogicalSwitch
func GetLogicalSwitch(ctx *Context, name string, id IDInput, state *LogicalSwitchState, opts ...ResourceOption) (*LogicalSwitch, error)
public static LogicalSwitch Get(string name, Input<string> id, LogicalSwitchState? state, CustomResourceOptions? opts = null)
public static LogicalSwitch get(String name, Output<String> id, LogicalSwitchState state, CustomResourceOptions options)
resources: _: type: nsxt:LogicalSwitch 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.
- Address
Bindings List<LogicalSwitch Address Binding> - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- Admin
State string - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Pool stringId - Ip Pool ID to be associated with the logical switch.
- Logical
Switch stringId - ID of the logical switch.
- Mac
Pool stringId - Mac Pool ID to be associated with the logical switch.
- Replication
Mode string - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Switching
Profile List<LogicalIds Switch Switching Profile Id> - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- List<Logical
Switch Tag> - A list of scope + tag pairs to associate with this logical switch.
- Transport
Zone stringId - Transport Zone ID for the logical switch.
- Vlan double
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- Vni double
- Vni for the logical switch.
- Address
Bindings []LogicalSwitch Address Binding Args - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- Admin
State string - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- Description string
- Description of the resource.
- Display
Name string - Display name, defaults to ID if not set.
- Ip
Pool stringId - Ip Pool ID to be associated with the logical switch.
- Logical
Switch stringId - ID of the logical switch.
- Mac
Pool stringId - Mac Pool ID to be associated with the logical switch.
- Replication
Mode string - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Switching
Profile []LogicalIds Switch Switching Profile Id Args - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- []Logical
Switch Tag Args - A list of scope + tag pairs to associate with this logical switch.
- Transport
Zone stringId - Transport Zone ID for the logical switch.
- Vlan float64
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- Vni float64
- Vni for the logical switch.
- address
Bindings List<LogicalSwitch Address Binding> - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin
State String - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- ip
Pool StringId - Ip Pool ID to be associated with the logical switch.
- logical
Switch StringId - ID of the logical switch.
- mac
Pool StringId - Mac Pool ID to be associated with the logical switch.
- replication
Mode String - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switching
Profile List<LogicalIds Switch Switching Profile Id> - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- List<Logical
Switch Tag> - A list of scope + tag pairs to associate with this logical switch.
- transport
Zone StringId - Transport Zone ID for the logical switch.
- vlan Double
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni Double
- Vni for the logical switch.
- address
Bindings LogicalSwitch Address Binding[] - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin
State string - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description string
- Description of the resource.
- display
Name string - Display name, defaults to ID if not set.
- ip
Pool stringId - Ip Pool ID to be associated with the logical switch.
- logical
Switch stringId - ID of the logical switch.
- mac
Pool stringId - Mac Pool ID to be associated with the logical switch.
- replication
Mode string - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switching
Profile LogicalIds Switch Switching Profile Id[] - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- Logical
Switch Tag[] - A list of scope + tag pairs to associate with this logical switch.
- transport
Zone stringId - Transport Zone ID for the logical switch.
- vlan number
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni number
- Vni for the logical switch.
- address_
bindings Sequence[LogicalSwitch Address Binding Args] - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin_
state str - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description str
- Description of the resource.
- display_
name str - Display name, defaults to ID if not set.
- ip_
pool_ strid - Ip Pool ID to be associated with the logical switch.
- logical_
switch_ strid - ID of the logical switch.
- mac_
pool_ strid - Mac Pool ID to be associated with the logical switch.
- replication_
mode str - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switching_
profile_ Sequence[Logicalids Switch Switching Profile Id Args] - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- Sequence[Logical
Switch Tag Args] - A list of scope + tag pairs to associate with this logical switch.
- transport_
zone_ strid - Transport Zone ID for the logical switch.
- vlan float
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni float
- Vni for the logical switch.
- address
Bindings List<Property Map> - List of Address Bindings for the logical switch. This setting allows to provide bindings between IP address, mac Address and vlan.
- admin
State String - Admin state for the logical switch. Accepted values - 'UP' or 'DOWN'. The default value is 'UP'.
- description String
- Description of the resource.
- display
Name String - Display name, defaults to ID if not set.
- ip
Pool StringId - Ip Pool ID to be associated with the logical switch.
- logical
Switch StringId - ID of the logical switch.
- mac
Pool StringId - Mac Pool ID to be associated with the logical switch.
- replication
Mode String - Replication mode of the Logical Switch. Accepted values - 'MTEP' (Hierarchical Two-Tier replication) and 'SOURCE' (Head Replication), with 'MTEP' being the default value. Applies to overlay logical switches.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switching
Profile List<Property Map>Ids - List of IDs of switching profiles (of various types) to be associated with this switch. Default switching profiles will be used if not specified.
- List<Property Map>
- A list of scope + tag pairs to associate with this logical switch.
- transport
Zone StringId - Transport Zone ID for the logical switch.
- vlan Number
- Vlan for vlan logical switch. This attribute is deprecated, please use nsxt.VlanLogicalSwitch resource to manage vlan logical switches.
- vni Number
- Vni for the logical switch.
Supporting Types
LogicalSwitchAddressBinding, LogicalSwitchAddressBindingArgs
- Ip
Address string - IP Address
- Mac
Address string - MAC Address
- Vlan double
- Vlan
- Ip
Address string - IP Address
- Mac
Address string - MAC Address
- Vlan float64
- Vlan
- ip
Address String - IP Address
- mac
Address String - MAC Address
- vlan Double
- Vlan
- ip
Address string - IP Address
- mac
Address string - MAC Address
- vlan number
- Vlan
- ip_
address str - IP Address
- mac_
address str - MAC Address
- vlan float
- Vlan
- ip
Address String - IP Address
- mac
Address String - MAC Address
- vlan Number
- Vlan
LogicalSwitchSwitchingProfileId, LogicalSwitchSwitchingProfileIdArgs
LogicalSwitchTag, LogicalSwitchTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.