| Local Properties | Local Methods | |
Managed Object Types | Data Object Types | All Properties | All Methods |
Properties
Name | Type | Description |
---|---|---|
capability | DVSCapability |
The capability of the switch. Queried against hosts, the property should
always return configModificationSupported as false.
|
config | DVSConfigInfo |
The configuration of the switch.
|
networkResourcePool* | DVSNetworkResourcePool[] |
The network resource pool information for the switch.
Since vSphere API 4.1 |
portgroup* | ManagedObjectReference[]
to a DistributedVirtualPortgroup[] |
The portgroups that are defined on the switch.
|
summary | DVSSummary |
The summary of the switch.
|
uuid | xsd:string |
The generated UUID of the switch. Unique across vCenter Server
inventory and instances.
|
Properties inherited from ManagedEntity | ||
alarmActionsEnabled, configIssue, configStatus, customValue, declaredAlarmState, disabledMethod, effectiveRole, name, overallStatus, parent, permission, recentTask, tag, triggeredAlarmState | ||
Properties inherited from ExtensibleManagedObject | ||
availableField, value |
Methods
Methods defined in this Managed Object |
---|
AddDVPortgroup_Task, AddNetworkResourcePool, EnableNetworkResourceManagement, FetchDVPortKeys, FetchDVPorts, MergeDvs_Task, MoveDVPort_Task, PerformDvsProductSpecOperation_Task, QueryUsedVlanIdInDvs, ReconfigureDVPort_Task, ReconfigureDvs_Task, RectifyDvsHost_Task, RefreshDVPortState, RemoveNetworkResourcePool, UpdateDvsCapability, UpdateNetworkResourcePool |
Methods inherited from ManagedEntity |
Destroy_Task, Reload, Rename_Task |
Methods inherited from ExtensibleManagedObject |
setCustomValue |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
spec | DVPortgroupConfigSpec[] |
The specification for the portgroup.
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task |
Faults
Type | Description |
---|---|
DuplicateName | |
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidName | |
NotSupported | Thrown if called directly on a host. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
configSpec | DVSNetworkResourcePoolConfigSpec[] |
the network resource pool configuration specification.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidName | |
NotSupported | Thrown if network I/O control is not supported on the vSphere Distributed Switch. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
enable | xsd:boolean |
If true, enables I/O control. If false,
disables network I/O control.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
DvsFault | Thrown if the enabling/disabling fails. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
NotSupported | Thrown if network I/O control is not supported on the vSphere Distributed Switch. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
criteria* | DistributedVirtualSwitchPortCriteria |
The port selection criteria. If unset, the operation
returns the keys of all the ports in the switch.
|
Return Value
Type | Description |
---|---|
xsd:string[] |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
criteria* | DistributedVirtualSwitchPortCriteria |
The port selection criteria. If unset, the operation
returns the keys of all the ports in the portgroup.
|
Return Value
Type | Description |
---|---|
DistributedVirtualPort[] |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
In summary, this operation does the following:
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
dvs P | ManagedObjectReference
to a DistributedVirtualSwitch |
The switch (source) to be merged
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task |
Faults
Type | Description |
---|---|
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidHostState | |
NotFound | |
NotSupported | Thrown if called directly on a host. |
ResourceInUse | Thrown if failed to delete the source switch |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
portKey | xsd:string[] |
The keys of the ports to be moved into the portgroup.
|
destinationPortgroupKey* | xsd:string |
The key of the portgroup to be moved into.
If unset, the port will be moved under the switch.
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task |
Faults
Type | Description |
---|---|
ConcurrentAccess | |
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
NotFound | |
NotSupported | Thrown if called directly on a host. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
operation | xsd:string |
The operation. See DistributedVirtualSwitchProductSpecOperationType for
valid values. For
VmwareDistributedVirtualSwitch,
only upgrade
is valid.
|
productSpec* | DistributedVirtualSwitchProductSpec |
The product info of the implementation.
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task |
Faults
Type | Description |
---|---|
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidState | |
NotSupported | Thrown if called directly on a host. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
TaskInProgress |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
Return Value
Type | Description |
---|---|
xsd:int[] |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
port | DVPortConfigSpec[] |
The specification of the ports.
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task |
Faults
Type | Description |
---|---|
ConcurrentAccess | |
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidArgument | Thrown if the array have different elements for the same port. |
NotFound | |
NotSupported | Thrown if called directly on a host or if the switch implementation doesn't support this API or if the spec includes settings for any vSphere Distributed Switch feature that is not supported on this switch. |
ResourceInUse | |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Reconfiguring the switch may require any of the following privileges, depending on what is being changed:
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
spec | DVSConfigSpec |
The configuration of the switch
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task |
Faults
Type | Description |
---|---|
AlreadyExists | |
ConcurrentAccess | |
DuplicateName | |
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidArgument | Thrown if any of the hosts being added lack support for any of the overlay classes of the switch's overlay instances. |
InvalidName | |
InvalidState | |
LimitExceeded | |
NotFound | |
NotSupported | Thrown if called directly on a host or if the spec includes settings for any vNetwork Distributed Switch feature that is not supported on this switch. |
ResourceInUse | |
ResourceNotAvailable | Thrown if there is no port available in the portgroup |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
VspanDestPortConflict | Thrown if a dvPort is used as desination ports in multiple Distributed Port Mirroring sessions. |
VspanPortConflict | Thrown if dvPort is used as both the transmitted source and destination ports in Distributed Port Mirroring sessions. |
VspanPromiscuousPortNotSupported | Thrown if a promiscuous port is used as transmitted source or destination in the Distributed Port Mirroring sessions. |
VspanSameSessionPortConflict | Thrown if a dvPort is used as both the source and destination in the same Distributed Port Mirroring session. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
hosts* | ManagedObjectReference[]
to a HostSystem[] |
The hosts to be rectified.
|
Return Value
Type | Description |
---|---|
ManagedObjectReference
to a Task |
Faults
Type | Description |
---|---|
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
NotFound | |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
portKeys* | xsd:string[] |
The keys of the ports to be refreshed. If not set, all port
states are refreshed.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
NotFound | |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
key | xsd:string[] |
the network resource pool key
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidName | Thrown if the name of the resource pool is invalid. |
NotFound | Thrown if the resource pool does not exist on the dvs. |
NotSupported | Thrown if network I/O control is not supported on the vSphere Distributed Switch. |
ResourceInUse | Thrown if network resource pool is associated with a network entity |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
capability | DVSCapability |
The capability of the switch.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
NotSupported | Thrown if called directly on a host or if the switch implementation doesn't support this API. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the DistributedVirtualSwitch used to make the method call. |
configSpec | DVSNetworkResourcePoolConfigSpec[] |
the network resource pool configuration specification.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
ConcurrentAccess | Thrown if a network resource pool is modified by two or more clients at the same time. |
DvsFault | Thrown if operation fails on any host or if there are other update failures. |
DvsNotAuthorized | Thrown if login-session's extension key does not match the switch's configured extensionKey. |
InvalidName | Thrown if the name of the resource pool is invalid. |
NotFound | Thrown if the resource pool does not exist on the dvs. |
NotSupported | Thrown if network I/O control is not supported on the vSphere Distributed Switch. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Top of page | Local Properties | Local Methods | |
Managed Object Types | Data Object Types | All Properties | All Methods |