Vcenter V Storage Object Manager Create Disk Task
Create a virtual disk, which is a storage object with disk as consumption type.
Requires Datastore.FileManagement privilege on the datastore where the virtual disk object is created.
Required privileges: System.View
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 VcenterVStorageObjectManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.
"CreateDiskRequestType Object"
Specification to create a virtual storage object.
This method returns a Task object with which to monitor monitor the operation. The info.result property in the Task contains the newly created VStorageObject upon success.
"MoRefTask Object"
FileFault: If an error occurs when creating the virtual disk.
InvalidDatastore: If the operation cannot be performed on the datastore.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/VcenterVStorageObjectManager/{moId}/CreateDisk_Task