Folder Create DVS Task

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

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/Folder/{moId}/CreateDVS_Task
COPY
Path Parameters
string
moId
Required

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}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
CreateDVSRequestType of type(s) application/json
Required
"CreateDVSRequestType Object"
object
spec
Required

Specification to create a DistributedVirtualSwitch.

Authentication
This operation uses the following authentication methods.
Responses
200

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.

Returns MoRefTask of type(s) application/json
"MoRefTask Object"

500

NotSupported: if called directly on a host.

DvsNotAuthorized: if login-session's extension key does not match (extensionKey).

Returns VimFault of type(s) application/json
This response body class contains all of the following: InlineVimFault0
"VimFault Object"

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/Folder/{moId}/CreateDVS_Task