RemoveServerGroupFromLoadBalancerListener
API Request
URLs
DELETE zstack/v1/load-balancers/listeners/{listenerUuid}/servergroups
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/f75607a7bf203e07bab135d9363bd17d/servergroups
Request Parameters
Name | Type | Location | Description | Valid Value | Starting Version |
---|---|---|---|---|---|
serverGroupUuid | String | body | The server group UUID. | 4.0.0 | |
listenerUuid | String | url | The listener UUID. | 4.0.0 | |
systemTags | List | body | Optional. The system tags. | 4.0.0 | |
userTags | List | body | Optional. The user tags. | 4.0.0 |
API Response
Sample Response
{
"inventory": {
"uuid": "0938faf74f7d34cd97d35427b1b562e5",
"name": "Test-Listener",
"loadBalancerUuid": "e64028f4b3f33896a49d4da1d4e51a8f",
"instancePort": 80.0,
"loadBalancerPort": 80.0,
"protocol": "http"
}
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 4.0.0 |
inventory | LoadBalancerListenerInventory | See inventory. | 4.0.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. | 4.0.0 |
description | String | The brief description of the error. | 4.0.0 |
details | String | The details about the error. | 4.0.0 |
elaboration | String | The reserved field. Default value: null. | 4.0.0 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 4.0.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. | 4.0.0 |
#inventory
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The listener UUID. | 4.0.0 |
name | String | The name of the listener. | 4.0.0 |
description | String | The detailed description of the listener. | 4.0.0 |
loadBalancerUuid | String | The load balancer UUID. | 4.0.0 |
instancePort | Integer | 4.0.0 | |
loadBalancerPort | Integer | 4.0.0 | |
protocol | String | 4.0.0 | |
serverGroupUuid | String | 4.0.0 | |
createDate | Timestamp | The time when the listener was created. | 4.0.0 |
lastOpDate | Timestamp | The time when the listener was last modified. | 4.0.0 |
vmNicRefs | List | See vmNicRefs. | 4.0.0 |
aclRefs | List | See aclRefs. | 4.0.0 |
certificateRefs | List | See certificateRefs. | 4.0.0 |
serverGroupRefs | List | See serverGroupRefs. | 4.0.0 |
#vmNicRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | Long | 4.0.0 | |
listenerUuid | String | 4.0.0 | |
vmNicUuid | String | The VM NIC UUID. | 4.0.0 |
status | String | 4.0.0 | |
createDate | Timestamp | The time when the NIC was added to the VM instance. | 4.0.0 |
lastOpDate | Timestamp | The time when the NIC was last modified. | 4.0.0 |
#aclRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | Long | The record ID. | 4.0.0 |
listenerUuid | String | The listener UUID. | 4.0.0 |
aclUuid | String | The UUID of the access control list (ACL). | 4.0.0 |
type | String | The type of the ACL. | 4.0.0 |
createDate | Timestamp | The time when the ACL was created. | 4.0.0 |
lastOpDate | Timestamp | The time when the ACL was last modified. | 4.0.0 |
#certificateRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | Long | 4.0.0 | |
listenerUuid | String | 4.0.0 | |
certificateUuid | String | 4.0.0 | |
createDate | Timestamp | The time when the certificate was created. | 4.0.0 |
lastOpDate | Timestamp | The time when the certificate was last modified. | 4.0.0 |
#serverGroupRefs
Name | Type | Description | Starting Version |
---|---|---|---|
id | long | 4.0.0 | |
listenerUuid | String | 4.0.0 | |
serverGroupUuid | String | 4.0.0 | |
createDate | Timestamp | The time when the server group was created. | 4.0.0 |
lastOpDate | Timestamp | The time when the server group was last modified. | 4.0.0 |
SDK Sample
Java
SDK
RemoveServerGroupFromLoadBalancerListenerAction action = new RemoveServerGroupFromLoadBalancerListenerAction();
action.serverGroupUuid = "f08184f0cda83505bc2a703b5e589160";
action.listenerUuid = "f75607a7bf203e07bab135d9363bd17d";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
RemoveServerGroupFromLoadBalancerListenerAction.Result res = action.call();
Python
SDK
RemoveServerGroupFromLoadBalancerListenerAction action = RemoveServerGroupFromLoadBalancerListenerAction()
action.serverGroupUuid = "f08184f0cda83505bc2a703b5e589160"
action.listenerUuid = "f75607a7bf203e07bab135d9363bd17d"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
RemoveServerGroupFromLoadBalancerListenerAction.Result res = action.call()