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.
Debugging
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:
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. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=AddShardingNode
&InstanceId=r-bp1zxszhcgatnx****
&ShardClass=redis.shard.small.ce
&ShardCount=2
&<Common request parameters>
Sample success responses
XML
format
<AddShardingNodeResponse>
<RequestId>B79C1A90-495B-4E99-A2AA-A4DB13B8****</RequestId>
<NodeIds>r-8vb0i6z4npbxrf****-db-4</NodeIds>
<NodeIds>r-8vb0i6z4npbxrf****-db-5</NodeIds>
<OrderId>207794311111111</OrderId>
</AddShardingNodeResponse>
JSON
format
{
"RequestId": "B79C1A90-495B-4E99-A2AA-A4DB13B8****",
"NodeIds": [
"r-8vb0i6z4npbxrf****-db-4",
"r-8vb0i6z4npbxrf****-db-5"
],
"OrderId": 207794311111111
}
Error codes
For a list of error codes, visit the API Error Center.