Binds a Network Load Balancer (NLB) instance 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 target application. |
7171a6ca-d1cd-4928-8642-7d5cfe69**** |
| NlbId |
string |
No |
The ID of the NLB instance. |
nlb-7z7jjbzz44d82c9*** |
| Listeners |
string |
No |
The listeners, specified as a JSON-formatted string. Each listener object contains the following fields:
|
|
| ZoneMappings |
string |
No |
The mappings between zones and vSwitches, specified as a JSON-formatted string. You can add up to 10 zones. If the current region supports two or more zones, you must specify at least two zones. Each
|
vsw-sersdf**** cn-hangzhou-a |
| AddressType |
string |
No |
The address type of the NLB instance.
|
Internet |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The response message.
|
success |
| TraceId |
string |
The request's trace ID, used for troubleshooting. |
0a06dfe717389800573793090e0589 |
| Data |
object |
The response data. |
|
| ChangeOrderId |
string |
The ID of the change order. You can use this ID to query the task status. |
ba386059-69b1-4e65-b1e5-0682d9fa**** |
| ErrorCode |
string |
The error code.
|
|
| Code |
string |
The HTTP status code.
|
200 |
| Success |
boolean |
Indicates whether the request was successful.
|
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.