RemoveAccessControlListFromLoadBalancer
API Request
URLs
DELETE zstack/v1/load-balancers/listeners/{listenerUuid}/access-control-lists
Headers
Authorization: OAuth the-session-uuid
Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X DELETE http://localhost:8080/zstack/v1/load-balancers/listeners/0299b3e26af5350c8db91930723d2065/access-control-lists
Request Parameters
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
aclUuids | List | body | The UUID of the access control list. | 3.9.0 | |
listenerUuid | String | url | The listener UUID. | 3.9.0 | |
serverGroupUuids | List | body | Optional. The UUID of the load balancer server group. | 4.1.0 | |
systemTags | List | body | Optional. The system tags. | 3.9.0 | |
userTags | List | body | Optional. The user tags. | 3.9.0 |
API Response
Sample
Response
{
"inventory": {
"uuid": "fb39937eaf5b3564af4b23d48802d438",
"name": "test-lb-listener"
}
}
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.9.0 |
inventory | LoadBalancerListenerInventory | See inventory. | 3.9.0 |
#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.9.0 |
description | String | The brief description of the error. | 3.9.0 |
details | String | The details about the error. | 3.9.0 |
elaboration | String | The reserved field. Default value: null. | 3.9.0 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 3.9.0 |
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.9.0 |
#inventory
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 3.9.0 |
name | String | The resource name. | 3.9.0 |
description | String | The detailed description of the resource. | 3.9.0 |
loadBalancerUuid | String | The load balancer UUID. | 3.9.0 |
instancePort | Integer | 3.9.0 | |
loadBalancerPort | Integer | 3.9.0 | |
protocol | String | 3.9.0 | |
createDate | Timestamp | The creation date. | 3.9.0 |
lastOpDate | Timestamp | The last operation date. | 3.9.0 |
vmNicRefs | List | See vmNicRefs. | 3.9.0 |
aclRefs | List | See aclRefs. | 3.9.0 |
certificateRefs | List | See certificateRefs. | 3.9.0 |
serverGroupRefs | List | See serverGroupRefs. | 4.1.0 |
#vmNicRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | Long | 3.9.0 | |
listenerUuid | String | 3.9.0 | |
vmNicUuid | String | The VM NIC UUID. | 3.9.0 |
status | String | 3.9.0 | |
createDate | Timestamp | The creation date. | 3.9.0 |
lastOpDate | Timestamp | The last operation date. | 3.9.0 |
#aclRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | Long | The resource UUID. | 3.9.0 |
listenerUuid | String | The listener UUID. | 3.9.0 |
aclUuid | String | The UUID of the access control list. | 3.9.0 |
type | String | The access control type. | 3.9.0 |
createDate | Timestamp | The creation date. | 3.9.0 |
lastOpDate | Timestamp | The last operation date. | 3.9.0 |
#certificateRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | Long | 3.9.0 | |
listenerUuid | String | 3.9.0 | |
certificateUuid | String | 3.9.0 | |
createDate | Timestamp | The creation date. | 3.9.0 |
lastOpDate | Timestamp | The last operation date. | 3.9.0 |
#serverGroupRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | Long | 4.1.0 | |
listenerUuid | String | 4.1.0 | |
serverGroupUuid | String | 4.1.0 | |
createDate | Timestamp | The creation date. | 4.1.0 |
lastOpDate | Timestamp | The last operation date. | 4.1.0 |
SDK Sample
Java
SDK
RemoveAccessControlListFromLoadBalancerAction action = new RemoveAccessControlListFromLoadBalancerAction();
action.aclUuids = asList("027bfcc0fddf39e3be51badf4777c0cd");
action.listenerUuid = "0299b3e26af5350c8db91930723d2065";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
RemoveAccessControlListFromLoadBalancerAction.Result res = action.call();
Python
SDK
RemoveAccessControlListFromLoadBalancerAction action = RemoveAccessControlListFromLoadBalancerAction()
action.aclUuids = [027bfcc0fddf39e3be51badf4777c0cd]
action.listenerUuid = "0299b3e26af5350c8db91930723d2065"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
RemoveAccessControlListFromLoadBalancerAction.Result res = action.call()