BindNlb
Binds a Network Load Balancer (NLB) to an application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:BindNlb |
create |
*All Resource
|
None | None |
Request syntax
POST /pop/v1/sam/app/nlb HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
The ID of the application. |
7171a6ca-d1cd-4928-8642-7d5cfe69**** |
| NlbId |
string |
No |
The ID of the NLB instance. |
nlb-7z7jjbzz44d82c9*** |
| Listeners |
string |
No |
The JSON array string of the listeners to be configured. The structure of each listener is as follows:
|
[{"Port":80,"TargetPort":8080,"Protocol":"TCP"}] |
| ZoneMappings |
string |
No |
The JSON string of the zone and vSwitch mapping list. You can add up to 10 zones. If the current region supports two or more zones, you must add at least two zones. The structure of a ZoneMapping is as follows:
|
vsw-sersdf**** cn-hangzhou-a |
| AddressType |
string |
No |
The address type. Valid values:
|
Internet |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The additional information. Valid values:
|
success |
| TraceId |
string |
The trace ID, which is used to accurately query the call information. |
0a06dfe717389800573793090e0589 |
| Data |
object |
The returned result. |
|
| ChangeOrderId |
string |
The ID of the change order, which is used to query the execution status of the task. |
ba386059-69b1-4e65-b1e5-0682d9fa**** |
| ErrorCode |
string |
The error code. Valid values:
|
|
| Code |
string |
The HTTP status code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the applications were stopped in batches successfully. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a06dfe717389800573793090e0589",
"Data": {
"ChangeOrderId": "ba386059-69b1-4e65-b1e5-0682d9fa****"
},
"ErrorCode": "",
"Code": "200",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.