GET /lcm/api/v2/settings/ad/getAllDirectories lists all AD servers added to vRealize Suite Lifecycle Manager.

You list all AD servers in your vRealize Suite Lifecycle Manager environment so that you can either edit the AD to add users or groups or use the name to delete the AD.

Prerequisites

Satisfy the following conditions before performing any tasks for this use case.
  • Use POST /lcm/api/v2/login to log in to vRealize Suite Lifecycle Manager.
  • Verify that you have a valid authentication token that matches your login credentials. See Request an Authentication Token.

curl Command

The following example lists all AD servers added to vRealize Suite Lifecycle Manager.
curl -X GET "https://LCM-Hostname/lcm/api/v2/settings/ad/getAllDirectories" \
   -H "accept: application/json" \
   -H "x-xenon-auth-token: $token" \
   

JSON Output

The following example shows a JSON response listing AD servers abc.local and test.
[
  {
    "adName": "abc.local",
    "baseDN": "DC=abc,DC=local",
    "bindDN": "CN=user,OU=Admins,DC=abc,DC=local",
    "bindPassword": "KO89o4fYSB7/+tweSpN8ZQ==",
    "groupDN": [
      "DC=abc,DC=local"
    ],
    "userDN": [
      "CN=user,OU=Admins,DC=abc,DC=local",
      "CN=user1,OU=Admins,DC=abc,DC=local"
    ],
    "uberAdmin": [
      "user1.admin@abc.local",
      "user2@abc.local"
    ],
    "syncNestedGroupMembers": true,
    "directoryType": "ACTIVE_DIRECTORY_LDAP"
  },
  {
    "adName": "test",
    "joinDomain": "abc.local",
    "joinDomainAdmin": "abc.admin",
    "joinDomainAdminPassword": "KO89o4fYSB7/+tweSpN8ZQ==",
    "bindUser": "abc.admin@abc.local",
    "bindPassword": "KO89o4fYSB7/+tweSpN8ZQ==",
    "groupDN": [
      "CN=TestGroup1,OU=Corp,DC=abc,DC=local",
      "DC=random,DC=value1",
      "DC=random,DC=value2"
    ],
    "userDN": [
      "CN=user1,OU=Corp,DC=abc,DC=local",
      "CN=user2,OU=Corp,DC=abc,DC=local"
    ],
    "domains": [
      "abc.local",
      "qe.abc.local"
    ],
    "uberAdmin": [
      "abc.user1@abc.local",
      "abc.user2@abc.local"
    ],
    "syncNestedGroupMembers": false,
    "directoryType": "ACTIVE_DIRECTORY_IWA"
  }
]