Datastore Namespace Manager Convert Namespace Path To Uuid Path

Datastore Namespace Manager Convert Namespace Path To Uuid Path

Convert the namespace path to the namespace UUID path.

Required privileges: System.View

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/DatastoreNamespaceManager/{moId}/ConvertNamespacePathToUuidPath
COPY
Path Parameters
string
moId
Required

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}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
Required
"ConvertNamespacePathToUuidPathRequestType Object"
object
datacenter
Optional

Reference to an instance of the Datacenter managed object.

string
namespaceUrl
Required

Namesapce URL of the form

[ds://]/vmfs/volumes/[datastore-uuid]/[directory-name]/...

Authentication
This operation uses the following authentication methods.
Responses
200

the URL path with namespace object UUID, of the form

[ds://]/vmfs/volumes/[datastore-uuid]/[directory-uuid]/...

Returns string of type(s) application/json
Operation doesn't return any data structure

500

InvalidDatastore: if the given datastore is not supported by the DatastoreNamespaceManager

InvalidDatastorePath: if the given path is not a top-level directory

Returns InvalidDatastore of type(s) application/json
"InvalidDatastore Object"
object
datastore
Optional

Reference to an instance of the Datastore managed object.

string
name
Optional

The name of the datastore that is invalid.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/DatastoreNamespaceManager/{moId}/ConvertNamespacePathToUuidPath