Distributed Virtual Switch Add DV Portgroup Task
Creates one or more DistributedVirtualPortgroups and adds them to the distributed virtual switch.
Required privileges: DVPortgroup.Create
The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId
, in this case DistributedVirtualSwitch/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"AddDVPortgroupRequestType Object"
The specification for the portgroup.
Returns a Task object with which to monitor the operation. The method does not return a value in the Task.info.result property. Use the portgroup property to obtain managed object references to the new portgroups.
"MoRefTask Object"
NotSupported: If called directly on a host.
DvsFault: if operation fails on any host or if there are other update failures.
DvsNotAuthorized: if login-session's extension key does not match the switch's configured extensionKey.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/DistributedVirtualSwitch/{moId}/AddDVPortgroup_Task