This operation adjusts the bandwidth for an ApsaraDB for Redis instance that uses the pay-as-you-go billing method. You need to specify only the InstanceId, NodeId (optional), Bandwidth, and ChargeType parameters.
Operation description
If auto scaling of bandwidth is enabled when you call this operation, the auto scaling feature takes precedence. When the bandwidth scales back, it reverts to the default bandwidth of the instance type. For more information about the feature's limitations, billing details, and FAQ, see Adjust instance bandwidth.
Before you call this operation, you can call the DescribeRoleZoneInfo operation to query the current bandwidth for each data node of the instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:EnableAdditionalBandwidth |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. You can call the DescribeInstances operation to query the instance ID. |
r-bp1zxszhcgatnx**** |
| CouponNo |
string |
No |
The coupon ID. |
youhuiquan_promotion_option_id_for_blank |
| AutoPay |
boolean |
No |
Specifies whether to enable auto-payment. Valid values:
|
true |
| NodeId |
string |
No |
The ID of the data shard. You can call the DescribeLogicInstanceTopology operation to query data shard IDs. Separate multiple data shard IDs with commas (,). You can also set this parameter to All to specify all data shards. Note
This parameter is required only when the instance uses the cluster architecture or the read/write splitting architecture. |
r-bp1zxszhcgatnx****-db-0 |
| Bandwidth |
string |
No |
The amount of bandwidth to add, in MB/s. The value must be an integer greater than or equal to 0. The maximum value is six times the default bandwidth of the instance type or a single data shard, with an upper limit of 192 MB/s. For example, if the default bandwidth of an instance is 10 MB/s, the valid values for this parameter are 0 to 60. Note
|
20 |
| OrderTimeLength |
string |
No |
The subscription duration, in days. Valid values: 1, 2, 3, 7, 14, 30, 60, 90, 180, 365, 730, 1095, and 1825. Note
To continue using the purchased bandwidth, you must call the RenewAdditionalBandwidth operation to renew the bandwidth before it expires. |
30 |
| SourceBiz |
string |
No |
The source of the call. This parameter is used for internal maintenance. Do not specify it. |
SDK |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
|
false |
| AutoRenewPeriod |
integer |
No |
The auto-renewal period, in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, and 60. Note
|
1 |
| ChargeType |
string |
No |
The billing method for the additional bandwidth. Valid values:
|
PrePaid |
| BandWidthBurst |
boolean |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| OrderId |
string |
The order ID. |
2084452111111 |
| RequestId |
string |
The request ID. |
D622714-AEDD-4609-9167-F5DDD3D1**** |
Examples
Success response
JSON format
{
"OrderId": "2084452111111",
"RequestId": "D622714-AEDD-4609-9167-F5DDD3D1****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.