Adjust Capacity - ResizeURedisGroup
Overview
By calling the CheckURedisAllowance interface, you can check the resource status and adjust the capacity of the primary and secondary Redis based on different situations. This mainly includes situations where the available zone resources are insufficient for expansion, the resources of the host where the primary and secondary are located are insufficient and need to be migrated for expansion (this requires master-slave switching, which will cause flash cuts and increased load), and direct expansion (business imperceptible).
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is ResizeURedisGroup . | Yes |
PublicKey | string | The user’s public key can be obtained from Console | 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 List of Regions and Availability Zones | Yes |
Zone | string | Availability Zone. See Availability Zone List | Yes |
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | No |
GroupId | string | Group ID | Yes |
Size | int | Memory size, unit: GB (needs to be larger than the original size, and less than or equal to 32) Currently only supports six capacity specifications of 1/2/4/8/16/32 G. | Yes |
ChargeType | string | Billing Type | No |
Type | string | Space Type: single (no hot backup), double (hot backup) (default: double) | No |
StartTime | int | Task execution timestamp, defaults to 0 or when not passed, it is executed immediately. The entered time needs to be within the range of the next day. | No |
HighPerformance | boolean | High-performance Redis, defaults to false, or not filled, high performance is true | No |
CouponId | int | Coupon ID, please refer to the DescribeCoupon interface | 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.dezai.com/?Action=ResizeURedisGroup
&Region=cn-bj2
&GroupId=uredis-grXXXXXz
&Size=4
&Zone=InTEynQN
&ChargeType=bUEUNBFI
&Type=zbbRIPIP
&OnRewriteTime=true
&HighPerformance=false
Response Example
{
"Action": "ResizeURedisGroupResponse",
"RetCode": 0
}