Host Datastore System Create Vmfs Datastore
Creates a new VMFS datastore.
Required privileges: Host.Config.Storage
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 HostDatastoreSystem/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
"CreateVmfsDatastoreRequestType Object"
This data object type is used when creating a new VMFS datastore, to create a specification for the VMFS datastore.
The newly created datastore.
"MoRefDatastore Object"
DuplicateName: if a datastore with the same name already exists.
InvalidArgument: if the datastore name is invalid, or the spec is invalid.
NotSupported: if the host is not an ESX Server system.
HostConfigFault: if unable to format the VMFS volume or gather information about the created volume.
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostDatastoreSystem/{moId}/CreateVmfsDatastore