Change UDRedis Shard Capacity - ResizeUDRedisBlockSize
Overview
Change UDRedis shard capacity
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is ResizeUDRedisBlockSize . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Region | string | Region. See Region and Availability Zone List | Yes |
Zone | string | Availability Zone. See Availability Zone List | Yes |
ProjectId | string | Project ID. Leave blank for the default project; sub-accounts must fill this in. Please refer to the GetProjectList API | No |
SpaceId | string | Instance ID | Yes |
BlockId | string | Shard ID | Yes |
BlockSize | int | Shard Capacity (Unit: GB) 4/8/12/16/20 | Yes |
StartTime | int | Task execution timestamp, the timestamp must be within the range of the next day. If not provided or the value is 0, it will be executed immediately. | No |
HighPerformance | boolean | Whether it is performance-enhanced. Defaults to false or not filled, true indicates performance-enhanced. | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
Example
Request Example
https://api.surfercloud.com/?Action=ResizeUDRedisBlockSize
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=gQWNotAR
&SpaceId=djlgyuzz
&BlockId=GYtfFOaF
&BlockSize=RxLWGOKx
&OnRewriteTime=false
&StartTime=9
&HighPerformance=true
Response Example
{
"Action": "ResizeUDRedisBlockSizeResponse",
"RetCode": 0
}