1. Operations
2. vapi
3. metadata
4. cli
5. namespace

## 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

#### Representations:

- JSON
- XML

{
"value": [
{
"name": "string",
"path": "string"
},
{
"name": "string",
"path": "string"
}
]
}
<?xml version="1.0" ?>
<ns0:List-Result xmlns:ns0="http://vmware.com/vapi/metadata/cli/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<value-array>
<array-item>
<name>string</name>
<path>string</path>
</array-item>
<array-item>
<name>string</name>
<path>string</path>
</array-item>
</value-array>
</ns0:List-Result>

#### 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