删除AD/LDAP服务器(DeleteLdapServer)

API请求

URLs
DELETE/v1/ldap/servers/{uuid}?deleteMode={deleteMode}
Headers
Authorization: OAuth the-session-uuid
Curl示例
curl -H "Content-Type: application/json" \
-H "Authorization: OAuth a90abb1116c0428097769adfdc9ae867" \
-X DELETE http://localhost:8080/zstack/v1/ldap/servers/93d7c467c493464fa3d244163c94f64e?deleteMode=Permissive
参数列表
名字 类型 位置 描述 可选值 起始版本
uuid String url 资源的UUID,唯一标示该资源 0.6
deleteMode (可选) String url 删除模式 0.6
systemTags (可选) List body 系统标签 0.6
userTags (可选) List body 用户标签 0.6

API返回

该API成功时返回一个空的JSON结构{},出错时返回的JSON结构包含一个error字段,例如:
{
"error": {
"code": "SYS.1001",
"description": "A message or a operation timeout",
"details": "Create VM on KVM timeout after 300s"
    }
}

SDK示例

Java SDK
DeleteLdapServerAction action = new DeleteLdapServerAction();
action.uuid = "0e757aebf26346c19ee1f163ea9f0915";
action.deleteMode = "Permissive";
action.sessionId = "3dae39cdbba749ba91deda6b854695ec";
DeleteLdapServerAction.Result res = action.call();
Python SDK
DeleteLdapServerAction action = DeleteLdapServerAction()
action.uuid = "7755f302acd44c62833f9d4eb3f7327c"
action.deleteMode = "Permissive"
action.sessionId = "61e33f5ab13b44ef873ef7fc719d3804"
DeleteLdapServerAction.Result res = action.call()