Creates one or more data shards for an ApsaraDB for Redis cluster instance.

The instance must be a persistent memory-optimized instance in the cluster architecture.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes AddShardingNode

The operation that you want to perform. Set the value to AddShardingNode.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

ShardClass String Yes redis.shard.small.ce

The shard specifications. For more information about the specifications, see Persistent memory-optimized instances.

RegionId String No cn-hangzhou

The region ID of the instance.

ShardCount Integer No 2

The number of the data shards that you want to create. Default value: 1.

Note You can create up to 32 data shards for an instance. Make sure that the total number of data shards for an instance is smaller than or equal to 32.
AutoPay Boolean No false

Specifies whether to enable automatic payment. Valid values:

  • true: enables automatic payment. Make sure that your account has sufficient balance.
  • false: disables automatic payment. You must manually renew the instance in the console before the instance expires. For more information, see Renew an instance.
Note Default value: true.
CouponNo String No youhuiquan_promotion_option_id_for_blank

The ID of the coupon that you want to use.

BusinessInfo String No 000000000

The business information. It is an additional parameter.

SourceBiz String No SDK

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

Response parameters

Parameter Type Example Description
NodeIds List [ "r-8vb0i6z4npbxrf****-db-4", "r-8vb0i6z4npbxrf****-db-5" ]

The IDs of the created data shards.

OrderId Long 20741011111111

The ID of the order.

RequestId String B79C1A90-495B-4E99-A2AA-A4DB13B8****

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "B79C1A90-495B-4E99-A2AA-A4DB13B8****",
    "NodeIds": [
    "OrderId": 207794311111111

Error codes

For a list of error codes, visit the API Error Center.