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.
{
"name": "string",
"path": "string"
}
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.
OK
{
"_typeName": "string",
"type": "string",
"value": "string"
}
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
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}