All Products
Search
Document Center

Tair:EnableAdditionalBandwidth

Last Updated:Mar 20, 2023

Adjusts the bandwidth of an ApsaraDB for Redis instance.

Operation Description

For more information about the fees, limits, and answers to some frequently asked questions about bandwidth adjustments, see Adjust the bandwidth of an ApsaraDB for Redis instance.

NoteBefore you call this operation, you can call the DescribeRoleZoneInfo operation to query the bandwidth of each data shard in the instance.

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.
OperationAccess levelResource typeCondition keyAssociation operation
kvstore:EnableAdditionalBandwidthWrite
  • Redis
    acs:kvstore:{#regionId}:{#accountId}:dbinstance/{#DBInstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the instance. You can call the DescribeInstances operation to query the IDs of instances.

r-bp1zxszhcgatnx****
CouponNostringNo

The ID of the coupon that you want to use.

youhuiquan_promotion_option_id_for_blank
AutoPaybooleanNo

Specifies whether to enable automatic payment. Valid values:

  • true: enables automatic payment. Make sure that your Alibaba Cloud account has a sufficient balance.
  • false: disables automatic payment. To manually complete the payment, you can perform the following procedure: In the top navigation bar of the ApsaraDB for Redis console, choose Expenses > Renewal Management. In the left-side navigation pane of the Billing Management console, click Orders****. On the page that appears, find the order and complete the payment.
true
NodeIdstringNo

The ID of the data shard for which you want to purchase a specific amount of bandwidth. You can call the DescribeLogicInstanceTopology operation to query the IDs of the data shards in an instance. If you specify multiple data shard IDs, separate the data shard IDs with commas (,). You can also set this parameter to ALL, which specifies all the data shards of the instance.

NoteThis parameter takes effect and must be specified only when the instance is a cluster master-replica instance or a read/write splitting instance. For more information, see Cluster master-replica instances or Read/write splitting instances.
r-bp1zxszhcgatnx****-db-0
BandwidthstringYes

The amount of bandwidth that you want to purchase. Unit: MB/s. The value of this parameter must be an integer that is greater than or equal to 0. You can set this parameter to a value that is up to two times the default bandwidth that is supported by the instance type. For example, if the default bandwidth that is supported by the instance type is 10 MB/s, you can set this parameter to a value within the range of 0 to 20.

Note
  • You call the DescribeRoleZoneInfo operation to query the default bandwidth that is supported by an instance type. In the response, the default bandwidth is indicated by the DefaultBandWidth parameter. For more information about instance types, see Overview.
  • If you specify multiple data shard IDs in the NodeId parameter, you must specify the amount of bandwidth that you want to purchase for each specified data shard in the Bandwidth parameter. The bandwidth values that you specify in the Bandwidth parameter must be in the same sequence as the data shard IDs that you specify in the NodeId parameter. In addition, you must separate the bandwidth values with commas (,).
  • 20
    OrderTimeLengthstringNo

    The period of time for which the purchased bandwidth is valid. Unit: days. Valid values: 1, 2, 3, 7, 14, 30, 60, 90, 180, 365, 730, 1095, and 1825.

    NoteIf you want to continue using the purchased bandwidth after the specified period of time elapses, you must call the RenewAdditionalBandwidth operation to submit a renewal order.
    30
    SourceBizstringNo

    The source of the operation. This parameter is used only for internal maintenance. You do not need to specify this parameter.

    SDK
    AutoRenewbooleanNo

    Specifies whether to enable auto-renewal. Valid values:

    • true: enables auto-renewal.
    • false: disables auto-renewal. This is the default value.
    false
    AutoRenewPeriodintegerNo

    The auto-renewal cycle based on which ApsaraDB for Redis automatically renews the purchased bandwidth. Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, and 60.

    Note
  • This parameter takes effect and must be specified only when you set the AutoRenew parameter to true.
  • You cannot query the auto-renewal cycle by calling an API operation. To obtain the auto-renewal cycle, you can perform the following procedure: In the top navigation bar of the ApsaraDB for Redis console, choose Expenses > Renewal Management. On the page that appears, enter the ID of the instance and the -bw suffix in the Instance ID field. Example: r-bp1zxszhcgatnx****-bw.
  • 1

    Response parameters

    ParameterTypeDescriptionExample
    object
    OrderIdstring

    The ID of the order.

    2084452111111
    RequestIdstring

    The ID of the request.

    D622714-AEDD-4609-9167-F5DDD3D1****

    Examples

    Sample success responses

    JSONformat

    {
      "OrderId": "2084452111111",
      "RequestId": "D622714-AEDD-4609-9167-F5DDD3D1****"
    }

    Error codes

    For a list of error codes, visit the Service error codes.