Modifies the specification of a Server Load Balancer (SLB) instance.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
slb:ModifyLoadBalancerInstanceSpec | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The region ID of the CLB instance. You can query the region ID from the Regions and zones list or by calling the DescribeRegions operation. | cn-hangzhou |
LoadBalancerId | string | Yes | The ID of the CLB instance. | lb-bp1b6c719df********* |
LoadBalancerSpec | string | Yes | The specification of the CLB instance. Valid values:
The specifications available vary by region. For more information about the specifications, see High-performance CLB instance. Note
When you switch a shared-resource CLB instance to a high-performance CLB instance, your service may be interrupted for 10 to 30 seconds. We recommend that you modify the specification during off-peak hours or use Alibaba Cloud DNS to schedule your workloads to another CLB instance before you modify the specification.
| slb.s2.small |
AutoPay | boolean | No | Specifies whether to enable automatic payment. Valid values:
Note
This parameter takes effect only for subscription instances.
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"OrderId": 201429619788910,
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ModifySpecNotAllowed | LoadBalancerSpec not allowed for this instance | - |
400 | Operation.NotAllowed | Operation Denied, Your account does not have enough balance. | - |
400 | Operation.NotAllowed | Operation Denied. Unfinished order exists. | - |
400 | Operation.NotAllowed | Operation Denied. Unfinished purchase exists. | The specified action is invalid. Your account contains incomplete purchase orders. |
400 | Operation.NotAllowed | Operation Denied. Prepay instance only permitted to increase loadBalancerSpec. | - |
400 | Operation.NotAllowed | Operation Denied. The Purchase status of the instance is not valid. | - |
400 | InvalidParameter.Bandwidth | The param Bandwidth is invalid. | - |
400 | ChangeLbSpecNotAllowed | You cannot change the specification for the specified load balancer. | - |
400 | OperationDenied.PayByCLCU | The operation is not allowed because the instanceChargeType of loadbalancer is PayByCLCU. | - |
For a list of error codes, visit the Service error codes.