Syntax for Retrieving Directories
GET /api/tenants/{tenantId}/directories retrieves a list of directories for a tenant.
Input
Use the supported input parameters to control the command output.
Parameter | Description |
---|---|
URL | https://$vRA/identity/api/tenants/{tenantId}/directories, where tenantId is the ID of the tenant. |
$vRA |
Specifies the appliance name and fully qualified domain name, or IP address of the vRealize Automation server. |
$token |
Specifies a valid HTTP bearer token with necessary credentials. The bearer token is included in the HEADER of the request. |
Output
The command output contains property names and values based on the command input parameters.
Parameter | Description |
---|---|
Links |
Specifies an array of link objects, each of which contains the following parts:
|
Content | Specifies an array of data rows, each of
which represents one of the objects returned in a pageable list. Each object
can contain the following information:
|
Metadata |
Specifies the
following paging-related data:
|
curl Command to Retrieve Directories
The following example command
retrieves all directories for the tenant.
curl -X --insecure -H "accept: application/json" -H "Authorization: Bearer $token” https://$vRA/identity/api/$tenantId/directories
The response in JSON lists the information for the tenant specified.
{ "links": [], "content": [ { "@type": "IdentityStore", "domain": "domain_name1", "name": "Active Directory Example 1", "description": "Active Directory Example 1", "alias": "", "type": "AD", ... } { "@type": "IdentityStore", "domain": "domain_name2", "name": "Active Directory Example 2", "description": "Active Directory Example 2", "alias": "", "type": "AD", ... } ], "metadata": { "size": 20, "totalElements": 1, "totalPages": 1, "number": 1, "offset": 0 } }