Datastore Namespace Manager Create Directory
Creates a top-level directory on the given datastore, using the given user display name hint and opaque storage policy.
The optional given display name hint may be used by the underlying storage system for user display purposes, but it may not be relied upon for future directory references.
Clients must use the returned stable path for future directory references.
See also DeleteDirectory.
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 DatastoreNamespaceManager/{moId}
.
The vSphere release schema. The current specification covers vSphere 8.0.3.0 APIs.
Show optional properties
{
"datastore": {}
}
{
"datastore": {
"_typeName": "string",
"type": "string",
"value": "string"
},
"displayName": "string",
"policy": "string",
"size": 0
}
display name hint for the directory to create
opaque storage policy to associate with the directory
directory size in MB on vvol/vsan backed object storage. default directory size will be used for vsan backed object storage if not set.
Since: vSphere API Release 7.0.2.0
a stable vmfs path which may be used for future reference of the created directory, of the form
/vmfs/volumes/[datastore-uuid]/[directory-uuid]
CannotCreateFile: if a general system error occurred while creating directory on the datastore
FileAlreadyExists: if the given directory already exists
InvalidDatastore: if the given datastore is not supported by the DatastoreNamespaceManage
{
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
}