Managed Object - DatastoreNamespaceManager(vim.DatastoreNamespaceManager)

Property of
ServiceContent
See also
Datacenter, Datastore
Since
vSphere API 5.5


Managed Object Description

The DatastoreNamespaceManager managed object exposes APIs for manipulating top-level directories of datastores which do not support the traditional top-level directory creation.
See topLevelDirectoryCreateSupported

Properties

Name Type Description
None

Methods

Methods defined in this Managed Object
ConvertNamespacePathToUuidPath, CreateDirectory, DeleteDirectory

ConvertNamespacePathToUuidPath

Convert the namespace path to the namespace UUID path.
Required Privileges
System.View
Since
vSphere API 6.5

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the DatastoreNamespaceManager used to make the method call.
datacenter*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.
namespaceUrlxsd:string

Namesapce URL of the form
[ds://]/vmfs/volumes/[datastore-uuid]/[directory-name]/...

*Need not be set

Return Value

Type Description
xsd:stringThe URL path with namespace object UUID, of the form
[ds://]/vmfs/volumes/[datastore-uuid]/[directory-uuid]/...

Faults

Type Description
InvalidDatastoreThrown if the given datastore is not supported by the DatastoreNamespaceManager
InvalidDatastorePathThrown if the given path is not a top-level directory
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



CreateDirectory

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 DeleteDirectory

Required Privileges
Datastore.Config

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the DatastoreNamespaceManager used to make the method call.
datastoreManagedObjectReference
to a Datastore

datastore on which to create a top-level directory
See DeleteDirectory

displayName*xsd:string

display name hint for the directory to create
See DeleteDirectory

policy*xsd:string

opaque storage policy to associate with the directory
See DeleteDirectory

*Need not be set

Return Value

Type Description
xsd:stringA 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
CannotCreateFileThrown if a general system error occurred while creating directory on the datastore
See DeleteDirectory
FileAlreadyExistsThrown if the given directory already exists
See DeleteDirectory
InvalidDatastoreThrown if the given datastore is not supported by the DatastoreNamespaceManage
See DeleteDirectory
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition



DeleteDirectory

Deletes the given top-level directory from a datastore.

The top-level directory must be a full path of the form

/vmfs/volumes/[datastore-uuid]/[directory-uuid]
as returned by CreateDirectory.
See CreateDirectory
Required Privileges
Datastore.Config

Parameters

NameTypeDescription
_thisManagedObjectReference A reference to the DatastoreNamespaceManager used to make the method call.
datacenter* PManagedObjectReference
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

datastorePathxsd:string

Stable vmfs path of the directory to delete.
See CreateDirectory

*Need not be set P Required privilege: System.View

Return Value

Type Description
None

Faults

Type Description
FileFaultThrown if a generic system error happened.
See CreateDirectory
FileNotFoundThrown if the given directory can not be found
See CreateDirectory
InvalidDatastoreThrown if the given datastore is not supported by the DatastoreNamespaceManager
See CreateDirectory
InvalidDatastorePathThrown if the given path is not a top-level directory
See CreateDirectory
RuntimeFaultThrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition