_create_time |
Timestamp of resource creation |
EpochMsTimestamp |
Readonly Sortable |
_create_user |
ID of the user who created this resource |
string |
Readonly |
_last_modified_time |
Timestamp of last modification |
EpochMsTimestamp |
Readonly Sortable |
_last_modified_user |
ID of the user who last modified this resource |
string |
Readonly |
_links |
References related to this resource
The server will populate this field when returing the resource. Ignored on PUT and POST. |
array of ResourceLink |
Readonly |
_protection |
Indicates protection status of this resource
Protection status is one of the following:
PROTECTED - the client who retrieved the entity is not allowed
to modify it.
NOT_PROTECTED - the client who retrieved the entity is allowed
to modify it
REQUIRE_OVERRIDE - the client who retrieved the entity is a super
user and can modify it, but only when providing
the request header X-Allow-Overwrite=true.
UNKNOWN - the _protection field could not be determined for this
entity.
|
string |
Readonly |
_revision |
Generation of this resource config
The _revision property describes the current revision of the resource. To prevent clients from overwriting each other's changes, PUT operations must include the current _revision of the resource, which clients should obtain by issuing a GET operation. If the _revision provided in a PUT request is missing or stale, the operation will be rejected. |
int |
|
_schema |
Schema for this resource |
string |
Readonly |
_self |
Link to this resource |
SelfResourceLink |
Readonly |
_system_owned |
Indicates system owned resource |
boolean |
Readonly |
address_bindings |
Address bindings for the Logical switch |
array of PacketAddressClassifier |
Deprecated Minimum items: 0 Maximum items: 100 |
admin_state |
Represents Desired state of the Logical Switch |
string |
Required Enum: UP, DOWN |
description |
Description of this resource |
string |
Maximum length: 1024 Sortable |
display_name |
Identifier to use when displaying entity in logs or GUI
Defaults to ID if not set |
string |
Maximum length: 255 Sortable |
extra_configs |
Extra configs on logical switch
This property could be used for vendor specific configuration in key value
string pairs, the setting in extra_configs will be automatically inheritted
by logical ports in the logical switch.
|
array of ExtraConfig |
|
global_vni |
VNI allocated by the global manager
The VNI is used for intersite traffic and the global logical switch ID. The global VNI pool is agnostic of the local VNI pool, and there is no need to have an exclusive VNI range. For example, VNI x can be the global VNI for logical switch B and the local VNI for logical switch A. |
int |
|
hybrid |
Flag to identify a hybrid logical switch
If this flag is set to true, then all the logical switch ports attached to
this logical switch will behave in a hybrid fashion. The hybrid logical switch port
indicates to NSX that the VM intends to operate in underlay mode,
but retains the ability to forward egress traffic to the NSX overlay network.
This flag can be enabled only for the logical switches in the overlay type transport zone which has
host switch mode as STANDARD and also has either CrossCloud or CloudScope tag scopes.
Only the NSX public cloud gateway (PCG) uses this flag, other host agents like ESX, KVM and Edge
will ignore it. This property cannot be modified once the logical switch is created.
|
boolean |
Default: "False" |
id |
Unique identifier of this resource |
string |
Sortable |
ip_pool_id |
Allocation ip pool associated with the Logical switch
IP pool id that associated with a LogicalSwitch. |
string |
|
mac_pool_id |
Allocation mac pool associated with the Logical switch
Mac pool id that associated with a LogicalSwitch. |
string |
|
replication_mode |
Replication mode of the Logical Switch |
string |
Enum: MTEP, SOURCE |
resource_type |
Must be set to the value LogicalSwitch |
string |
|
span |
List of Local Manager IDs the logical switch extends
Each manager ID represents the NSX Local Manager the logical switch connects. This will be populated by the manager. |
array of string |
Minimum items: 0 Maximum items: 16 |
switch_type |
Type of LogicalSwitch.
This field indicates purpose of a LogicalSwitch. It is set by manager internally
or user can provide this field. If not set, DEFAULT type is assigned.
NSX components can use this field to create LogicalSwitch that provides component
specific functionality.
DEFAULT type LogicalSwitches are created for basic L2 connectivity by API users.
SERVICE_PLANE type LogicalSwitches are system created service plane LogicalSwitches for
Service Insertion service. User can not create SERVICE_PLANE type of LogicalSwitch.
DHCP_RELAY type LogicalSwitches are created by external user like Policy with special
permissions or by system and will be treated as internal LogicalSwitches. Such
LogicalSwitch will not be exposed to vSphere user.
GLOBAL type LogicalSwitches are created to span multiple NSX domains to connect multiple
remote sites.
INTER_ROUTER type LogicalSwitches are policy-created LogicalSwitches which
provide inter-router connectivity
|
string |
Enum: DEFAULT, SERVICE_PLANE, DHCP_RELAY, GLOBAL, INTER_ROUTER, EVPN |
switching_profile_ids |
|
array of SwitchingProfileTypeIdEntry |
|
tags |
Opaque identifiers meaningful to the API user |
array of Tag |
Maximum items: 30 |
transport_zone_id |
Id of the TransportZone to which this LogicalSwitch is associated |
string |
Required |
uplink_teaming_policy_name |
The name of the switching uplink teaming policy for the logical switch
This name has to be one of the switching uplink teaming policy names listed inside the logical switch's TransportZone. If this field is not specified, the logical switch will not have a teaming policy associated with it and the host switch's default teaming policy will be used. |
string |
|
vlan |
VLAN Id of logical switch
This property is dedicated to VLAN based network, to set VLAN of logical
network. It is mutually exclusive with 'vlan_trunk_spec'.
|
VlanID |
|
vlan_trunk_spec |
VLAN trunk spec of logical switch
This property is used for VLAN trunk specification of logical switch.
It's mutually exclusive with 'vlan'. Also it could be set to do guest VLAN
tagging in overlay network.
|
VlanTrunkSpec |
|
vni |
VNI for this LogicalSwitch.
Only for OVERLAY network. A VNI will be auto-allocated from the
default VNI pool if not given; otherwise the given VNI has to be
inside the default pool and not used by any other LogicalSwitch.
|
int |
|