vapi metadata cli namespace: get
Retreives information about a namespace including information about children of that namespace.
Request:
HTTP request
POST https://{server}/rest/com/vmware/vapi/metadata/cli/namespace?~action=get
Request Body Structure:
{
"identity" : {
"path" : "string",
"name" : "string"
}
}
"identity" : {
"path" : "string",
"name" : "string"
}
}
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
identity | identity | Identifier of the namespace for which to retreive information. |
identity.path | string | The dot-separated path of the namespace containing the namespace in the CLI node tree. For top-level namespace this will be empty. |
identity.name | string | The name displayed to the user for this namespace. |
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"children" : [
{
"path" : "string",
"name" : "string"
},
{
"path" : "string",
"name" : "string"
}
],
"identity" : {
"path" : "string",
"name" : "string"
},
"description" : "string"
}
}
"value" : {
"children" : [
{
"path" : "string",
"name" : "string"
},
{
"path" : "string",
"name" : "string"
}
],
"identity" : {
"path" : "string",
"name" : "string"
},
"description" : "string"
}
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | info | Information about the namespace including information about child of that namespace. |
value.identity | identity | Basic namespace identity. |
value.identity.path | string | The dot-separated path of the namespace containing the namespace in the CLI node tree. For top-level namespace this will be empty. |
value.identity.name | string | The name displayed to the user for this namespace. |
value.description | string | The text description displayed to the user in help output. |
value.children | identity[] | The children of this namespace in the tree of CLI namespaces. |
value.children[].path | string | The dot-separated path of the namespace containing the namespace in the CLI node tree. For top-level namespace this will be empty. |
value.children[].name | string | The name displayed to the user for this namespace. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
404 | not_found | if a namespace corresponding to identity doesn't exist. |