|
| Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |
Properties
| Name | Type | Description |
|---|---|---|
| None | ||
Methods
| Methods defined in this Managed Object |
|---|
| ConvertNamespacePathToUuidPath, CreateDirectory, DeleteDirectory, IncreaseDirectorySize, QueryDirectoryInfo |
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the DatastoreNamespaceManager used to make the method call. |
| datacenter* P | ManagedObjectReference
to a Datacenter |
The datacenter of the namespace path. Needs to be set
when making the call to VC; ignored when the call is
made to ESX.
Since vSphere API 6.5 |
| namespaceUrl P | xsd:string |
Namesapce URL of the form
[ds://]/vmfs/volumes/[datastore-uuid]/[directory-name]/...Since vSphere API 6.5 |
Return Value
| Type | Description |
|---|---|
| xsd:string | The URL path with namespace object UUID, of the form [ds://]/vmfs/volumes/[datastore-uuid]/[directory-uuid]/... |
Faults
| Type | Description |
|---|---|
| InvalidDatastore | Thrown if the given datastore is not supported by the DatastoreNamespaceManager |
| InvalidDatastorePath | Thrown if the given path is not a top-level directory |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
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 DeleteDirectory
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the DatastoreNamespaceManager used to make the method call. |
| datastore P | ManagedObjectReference
to a Datastore |
datastore on which to create a top-level directory See DeleteDirectory Since vSphere API 5.5 |
| displayName* P | xsd:string |
display name hint for the directory to create See DeleteDirectory Since vSphere API 5.5 |
| policy* P | xsd:string |
opaque storage policy to associate with the directory See DeleteDirectory Since vSphere API 5.5 |
| size* P | xsd:long |
directory size in MB on vvol/vsan backed object storage.
default directory size will be used for vsan backed
object storage if not set. See DeleteDirectory Since vSphere API 5.5 |
Return Value
| Type | Description |
|---|---|
| xsd:string | A stable vmfs path which may be used for future reference of the created directory, of the form /vmfs/volumes/[datastore-uuid]/[directory-uuid] |
Faults
| Type | Description |
|---|---|
| CannotCreateFile | Thrown if a general system error occurred while creating directory on the datastore See DeleteDirectory |
| FileAlreadyExists | Thrown if the given directory already exists See DeleteDirectory |
| InvalidDatastore | Thrown if the given datastore is not supported by the DatastoreNamespaceManage See DeleteDirectory |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
The top-level directory must be a full path of the form
/vmfs/volumes/[datastore-uuid]/[directory-uuid]as returned by CreateDirectory.
Requires Datastore.Config privilege on the datastore.
See CreateDirectory
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the DatastoreNamespaceManager used to make the method call. |
| datacenter* P | ManagedObjectReference
to a Datacenter |
The datacenter of the datastore path. Needs to be set
when making the call to VC; ignored when the call is
made to ESX. See CreateDirectory Since vSphere API 5.5 |
| datastorePath P | xsd:string |
Stable vmfs path of the directory to delete. See CreateDirectory Since vSphere API 5.5 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if a generic system error happened. See CreateDirectory |
| FileNotFound | Thrown if the given directory can not be found See CreateDirectory |
| InvalidDatastore | Thrown if the given datastore is not supported by the DatastoreNamespaceManager See CreateDirectory |
| InvalidDatastorePath | Thrown if the given path is not a top-level directory See CreateDirectory |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
The top-level directory must be a full path in the form
/vmfs/volumes/[datastore-uuid]/[directory-uuid]as returned by CreateDirectory.
Requires Datastore.Config privilege on the datastore.
See CreateDirectory
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the DatastoreNamespaceManager used to make the method call. |
| datacenter* P | ManagedObjectReference
to a Datacenter |
the datacenter of the namespace path. Needs to be set
when making the call to VC; ignored when the call is
made to ESX. See CreateDirectory Since 8.0.1.0 |
| stableName P | xsd:string |
stable vmfs path of the top-level directory See CreateDirectory Since 8.0.1.0 |
| size P | xsd:long |
the desired final size in MB of the directory, not a diff
from the current size; should be more than current size See CreateDirectory Since 8.0.1.0 |
Return Value
| Type | Description |
|---|---|
| None | |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if a generic system error happened See CreateDirectory |
| FileNotFound | Thrown if the given directory can not be found See CreateDirectory |
| InvalidArgument | Thrown if passed size is not valid See CreateDirectory |
| InvalidDatastore | Thrown if the given datastore is not supported by the DatastoreNamespaceManager See CreateDirectory |
| NotSupported | Thrown if resize is not supported on the directory See CreateDirectory |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
The top-level directory must be a full path in the form
/vmfs/volumes/[datastore-uuid]/[directory-uuid]as returned by CreateDirectory.
See CreateDirectory
Parameters
| Name | Type | Description |
|---|---|---|
| _this | ManagedObjectReference | A reference to the DatastoreNamespaceManager used to make the method call. |
| datacenter* P | ManagedObjectReference
to a Datacenter |
the datacenter of the namespace path. Needs to be set
when making the call to VC; ignored when the call is
made to ESX. See CreateDirectory Since 8.0.1.0 |
| stableName P | xsd:string |
stable vmfs path of the top-level directory to query See CreateDirectory Since 8.0.1.0 |
Return Value
| Type | Description |
|---|---|
| DatastoreNamespaceManagerDirectoryInfo | directory information defined by DirectoryInfo |
Faults
| Type | Description |
|---|---|
| FileFault | Thrown if a generic system error happened See CreateDirectory |
| FileNotFound | Thrown if the given directory can not be found See CreateDirectory |
| InvalidDatastore | Thrown if the given datastore is not supported by the DatastoreNamespaceManager See CreateDirectory |
| NotSupported | Thrown if query is not supported on the directory See CreateDirectory |
| RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
| Type | |
|---|---|
| None | |
| Top of page | Local Methods | ||
| Managed Object Types | Data Object Types | All Properties | All Methods |