CleanInvalidLdapIAM2Binding
API Request
URLs
PUT zstack/v1/iam2/ldap/bindings/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.
{
"cleanInvalidLdapIAM2Binding": {},
"systemTags": [],
"userTags": []
}

Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"cleanInvalidLdapIAM2Binding":{}}' http://localhost:8080/zstack/v1/iam2/ldap/bindings/actions
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
systemTags | List | body | Optional. The system tags. | 3.5.1 | |
userTags | List | body | Optional. The user tags. | 3.5.1 |
API Response
Sample
Response
{
"inventories": [
{
"uuid": "642833fc31983380b25ecf08f3f8f8f4",
"name": "admin",
"state": "Enabled",
"createDate": "Nov 14, 2017 10:20:57 PM",
"lastOpDate": "Nov 14, 2017 10:20:57 PM"
}
]
}
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 |
inventories | List | See inventories. | 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 |
#inventories
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 |
createDate | Timestamp | The creation date. | 3.5.1 |
lastOpDate | Timestamp | The last operation date. | 3.5.1 |
state | State | See state. | 3.5.1 |
attributes | List | See attributes. | 3.5.1 |
#state
Name | Type | Description | Starting Version |
---|---|---|---|
name | String | The resource name. | 3.5.1 |
ordinal | int | 3.5.1 |
#attributes
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 3.5.1 |
name | String | The resource name. | 3.5.1 |
value | String | 3.5.1 | |
type | AttributeType | See type. | 3.5.1 |
#type
Name | Type | Description | Starting Version |
---|---|---|---|
name | String | The resource name. | 3.5.1 |
ordinal | int | 3.5.1 |
SDK Sample
Java
SDK
CleanInvalidLdapIAM2BindingAction action = new CleanInvalidLdapIAM2BindingAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
CleanInvalidLdapIAM2BindingAction.Result res = action.call();
Python
SDK
CleanInvalidLdapIAM2BindingAction action = CleanInvalidLdapIAM2BindingAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
CleanInvalidLdapIAM2BindingAction.Result res = action.call()