Updates NLB instance attributes, such as the instance name, cross-zone load balancing, and CPS limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nlb:UpdateLoadBalancerAttribute |
update |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
The NLB instance ID. |
nlb-wb7r6dlwetvt5j**** |
| LoadBalancerName |
string |
No |
The NLB instance name. Must be 2 to 128 characters long and start with a letter. Allowed characters: letters, digits, periods (.), underscores (_), and hyphens (-). |
NLB1 |
| CrossZoneEnabled |
boolean |
No |
Whether to enable cross-zone load balancing for the NLB instance. Valid values:
|
false |
| DryRun |
boolean |
No |
Whether to perform a dry run without executing the request. Valid values:
|
false |
| ClientToken |
string |
No |
The client token used to ensure idempotence. Generate the token on the client side. The token must be unique across requests and contain only ASCII characters. Note
If not specified, the system uses the request ID as the client token. Each request has a unique request ID. |
123e4567-e89b-12d3-a456-426655440000 |
| RegionId |
string |
No |
The region ID of the NLB instance. Call the DescribeRegions operation to query available regions. |
cn-beijing |
| Cps |
integer |
No |
The maximum new connections per second per zone (per virtual IP address). Valid values: 1 to 1000000. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
7294679F-08DE-16D4-8E5D-1625685DC10B |
| JobId |
string |
The ID of the asynchronous task. |
aab74cfa-3bc4-48fc-80fc-0101da5a**** |
Examples
Success response
JSON format
{
"RequestId": "7294679F-08DE-16D4-8E5D-1625685DC10B",
"JobId": "aab74cfa-3bc4-48fc-80fc-0101da5a****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | SystemBusy | System is busy, please try again later. | |
| 400 | ResourceInConfiguring.loadbalancer | The specified resource of loadbalancer is being configured, please try again later. | The specified resource of loadbalancer is being configured, please try again later. |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | Request validation has been passed with DryRun flag set. |
| 400 | IllegalParam.loadBalancerName | Param loadBalancerName is illegal. | The instance name is invalid. Check the parameters. |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | Authentication is failed for NoPermission. |
| 404 | ResourceNotFound.loadBalancer | The specified resource of loadbalancer is not found. | The specified load balancer resource was not found. Please check the input parameters. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.