Get CLI Namespace
If vSphere APIs begin with /rest (vs /api), any maps are consumed/returned instead as arrays of objects, each containing a key and a value property field.
Retreives information about a namespace including information about children of that namespace.
Request
URLURL
https://{api_host}/rest/com/vmware/vapi/metadata/cli/namespace?~action=get
Query Parameters
Query Parameters
identity
Required
Identifier of the namespace for which to retreive information.
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Example: b00db39f948d13ea1e59b4d6fce56389
Response
Response
Response BodyResponse Body
200 OK returns
MetadataCliNamespaceGetResponseBody
of type application/json
Information about the namespace including information about child of that namespace.
{
"value": {
"children": [
{
"name": "string",
"path": "string"
}
],
"description": "string",
"identity": {
"name": "string",
"path": "string"
}
}
}
value
Optional
Information about the namespace including information about child of that namespace.
cURL Command
curl -X POST -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/rest/com/vmware/vapi/metadata/cli/namespace?~action=get?identity=string
Errors
404
com.vmware.vapi.std.errors.not_found : if a namespace corresponding to identity doesn't exist.