Syntax for Listing All Tenant Identity Stores
GET /api/tenants/{tenantId}/directories lists all available identity stores for a named vRealize Automation tenant, such as the default tenant vsphere.local.
Input
Use the supported input parameters to control the command output.
Parameter | Description |
---|---|
URL | https://$vRA/identity/api/tenants/$tenantId/directories |
$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. |
$tenantId |
Specifies the ID of the tenant. |
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 tenant objects returned in a pageable list. Each tenant object can contain the following information:
|
Metadata |
Specifies the
following paging-related data:
|
curl Command to List All Identity Stores for the Tenant
curl --insecure -H "Accept: application/json" -H 'Content-Type: application/json' -H "Authorization: Bearer $token” https://$vRA/identity/api/tenants/MYCOMPANY/directories
The following JSON output is returned based on the command input.
{ "links":[], "content":[ { "@type":"IdentityStore", "domain":"vcac.mycompany.com", "name":"openLDAPPromocom", "description":null, "alias":"promocom.com", "type":"LDAP", "userNameDn":"cn=promocomadmin,ou=promocom,dc=vcac,dc=mycompany,dc=com", "password":null, "url":"ldap://10.000.00.000:389", "groupBaseSearchDn":"ou=promocom,dc=vcac,dc=mycompany,dc=com", "userBaseSearchDn":"ou=promocom,dc=vcac,dc=mycompany,dc=com" }, { "@type":"IdentityStore", "domain":"example.mycompany.com", "name":"openLDAPDemo", "description":null, "alias":"example.com", "type":"LDAP", "userNameDn":"cn=demoadmin,ou=demo,dc=example,dc=mycompany,dc=com", "password":null, "url":"ldap://10.000.00.000:389", "groupBaseSearchDn":"ou=demo,dc=example,dc=mycompany,dc=com", "userBaseSearchDn":"ou=demo,dc=example,dc=mycompany,dc=com" } ], "metadata":{ "size":20, "totalElements":2, "totalPages":1, "number":1, "offset":0 } }