vcenter namespaces user instances: list
Returns namespaces that user making the call is authorized to access.
Request:
HTTP request
GET https://{server}/api/vcenter/namespaces-user/namespaces
Response:
HTTP Status Code: 200
Response Body Structure:
[
{
"master_host" : "string",
"namespace" : "obj-103"
},
{
"master_host" : "string",
"namespace" : "obj-103"
}
]
{
"master_host" : "string",
"namespace" : "obj-103"
},
{
"master_host" : "string",
"namespace" : "obj-103"
}
]
Headers:
NoneType:
Name | Type | Description |
---|---|---|
bold = required | ||
- | summary[] | List of Namespace identifiers together with the API endpoint for each namespace. |
-[].namespace | string | Identifier of the namespace. When clients pass a value of this structure as a parameter, the field must be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance . When operations return a value of this structure as a result, the field will be an identifier for the resource type: com.vmware.vcenter.namespaces.Instance . |
-[].master_host | string | IP address or FQDN of the API endpoint for the given namespace. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | if the system reports an error while responding to the request. |
401 | unauthenticated | if the user can not be authenticated. |