Folder Create DVS Task
Create a DistributedVirtualSwitch in the folder according to the specified DVSCreateSpec.
The specified Folder must be a Network entity folder.
Required privileges: DVSwitch.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 Folder/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"CreateDVSRequestType Object"
This method returns a Task object with which to monitor the operation. After successful completion, the Task.info.result property contains the newly registered DistributedVirtualSwitch.
"MoRefTask Object"
NotSupported: if called directly on a host.
DvsNotAuthorized: if login-session's extension key does not match (extensionKey).
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/Folder/{moId}/CreateDVS_Task