REST API - list

vapi metadata cli namespace: list

Returns the identifiers of all namespaces registered with the infrastructure.

Request:

HTTP request

GET https://{server}/rest/com/vmware/vapi/metadata/cli/namespace
No request parameters

Response:

HTTP Status Code: 200

Representation:

{
    "value"[
        {
            "path""string",
            "name""string"
        },
        {
            "path""string",
            "name""string"
        }
    ]
}

Response Type:

Name Type Description
bold = required
value identity[] Identifiers of all the namespaces.
value[].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[].name string The name displayed to the user for this namespace.

Errors:

None