List User Instances
Returns namespaces that user making the call is authorized to access.
Request
URLURL
https://{api_host}/api/vcenter/namespaces-user/namespaces
Header Parameters
Header Parameters
string
vmware-api-session-id
Required
Required session ID, obtained by first calling Create Session API
Response
Response
Response BodyResponse Body
200 OK returns
array
of
NamespacesUserInstancesSummary of type application/json
List of Namespace identifiers together with the API endpoint for each namespace.
{
"master_host": "string",
"namespace": "string"
}
string
master_host
Required
IP address or FQDN of the API endpoint for the given namespace.
string
namespace
Required
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.
cURL Command
curl -H "vmware-api-session-id: b00db39f948d13ea1e59b4d6fce56389" https://{api_host}/api/vcenter/namespaces-user/namespaces
Errors
500
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
Availability
Added in 7.0.0