Syntax for Checking the Synchronization Process
GET /api/tenants/{tenantId}/directories/{id}/status shows the status of the synchronization.
Input
Use the supported input parameters to control the command output.
Parameter | Description |
---|---|
URL | https://$vRA/identity/api/tenants/{tenantId}/directories/{id}/sync,
where:
|
$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 |
---|---|
syncStatus | Specifies the status of the
synchronization:
|
curl Command to Check Status of Synchronization
The following example command checks the synchronization process for a directory with domain name demo.ad-example.local.curl -X --insecure -H "accept: application/json" -H "Authorization: Bearer $token” https://$vRA/identity/api/tenants/$tenantId/directories/demo.ad-example.local/status
The response in JSON provides the status of the synchronization process. The following example is a positive response that shows the synchronization is running.
{ "syncStatus": { "status": "RUNNING", "message": null }, }