ModifyListenerAttribute
1. API Description
This API is used to modify the listener configurations.
2. Input Parameters
The following request parameter list only provides API request parameters.
listenerId
Yes
String
The listener ID.
listenerName
No
String
Listener name. This parameter can contain up to 64 characters. Only letters, numbers, - and periods (.) are supported.
protocol
No
String
Listening protocols.
Available values:
TCP
UDP
backendProtocol
No
String
Backend forwarding protocol.
Available values:
TCP
UDP
scheduler
No
String
Scheduling algorithm. Available values:
wrr
(default): Weighted round robin, the higher the weight value of the backend server, the higher the probability of being polled.rr
: Round robin, distribute external requests to backend servers in the order of access.
kind
No
String
Forwarding modes.
Available values:
NAT
DR
3. Output Parameters
requestId
String
The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4. Code Example
Modify listener configurations.
POST /api/v2/bmc HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: ModifyListenerAttribute
<Common Request Params>
Request:
{
"listenerId": "xxxx",
"listenerName": "xxxx"
}
Response:
{
"requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F",
"response": {
"requestId": "TEEFDCA5B-76FB-4E91-A18E-DF7F5D2CE41F"
}
}
5. Developer Resources
Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.
6. Error Codes
No error codes related to the API business logic. For other error codes, see Common Error Codes.
Last updated