SyncLdapServer
API Request
URLs
PUT zstack/v1/ldap/servers/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.
{
"syncLdapServer": {},
"systemTags": [],
"userTags": []
}

Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"syncLdapServer":{}}' http://localhost:8080/zstack/v1/ldap/servers/7a3718959bae3ac88e0b828e06ab2e22/actions
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
uuid | String | url | The resource UUID. | 3.5.1 | |
systemTags | List | body | Optional. The system tags. | 3.5.1 | |
userTags | List | body | Optional. The user tags. | 3.5.1 |
API Response
Sample
Response
{
"inventory": {
"uuid": "14dc461677b23ea1a984849f501a7152"
}
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 3.5.1 |
inventory | LongJobInventory | See inventory. | 3.5.1 |
#error
Name | Type | Description | Starting Version |
---|---|---|---|
code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 3.5.1 |
description | String | The brief description of the error. | 3.5.1 |
details | String | The details about the error. | 3.5.1 |
elaboration | String | The reserved field. Default value: null. | 3.5.1 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 3.5.1 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 3.5.1 |
#inventory
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 3.5.1 |
name | String | The resource name. | 3.5.1 |
description | String | The detailed description of the resource. | 3.5.1 |
apiId | String | The API ID used to associate with the task progress. | 3.5.1 |
jobName | String | The job name. | 3.5.1 |
jobData | String | The job data. | 3.5.1 |
jobResult | String | The job result. | 3.5.1 |
targetResourceUuid | String | The target resource UUID. | 3.5.1 |
managementNodeUuid | String | The management node UUID. | 3.5.1 |
createDate | Timestamp | The creation date. | 3.5.1 |
lastOpDate | Timestamp | The last operation date. | 3.5.1 |
state | LongJobState | See state. | 3.5.1 |
#state
Name | Type | Description | Starting Version |
---|---|---|---|
name | String | The resource name. | 3.5.1 |
ordinal | int | 3.5.1 |
SDK Sample
Java
SDK
SyncLdapServerAction action = new SyncLdapServerAction();
action.uuid = "7a3718959bae3ac88e0b828e06ab2e22";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
SyncLdapServerAction.Result res = action.call();
Python
SDK
SyncLdapServerAction action = SyncLdapServerAction()
action.uuid = "7a3718959bae3ac88e0b828e06ab2e22"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
SyncLdapServerAction.Result res = action.call()