Host Datastore System Create Local Datastore
Creates a new local 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.2.0 APIs.
"CreateLocalDatastoreRequestType Object"
The name of a datastore to create on the local host.
The file path for a directory in which the virtual machine data will be stored.
DuplicateName: if a datastore with the same name already exists.
HostConfigFault: if unable to create the datastore on host.
InvalidName: if name is not valid datastore name
FileNotFound: if path doesn't exist
"VimFault Object"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/HostDatastoreSystem/{moId}/CreateLocalDatastore