Docs
api
Cloud Memory(UMem)
ResizeURedisGroup

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 NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is ResizeURedisGroup.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See List of Regions and Availability ZonesYes
ZonestringAvailability Zone. See Availability Zone ListYes
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
GroupIdstringGroup IDYes
SizeintMemory 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
ChargeTypestringBilling TypeNo
TypestringSpace Type: single (no hot backup), double (hot backup) (default: double)No
StartTimeintTask 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
HighPerformancebooleanHigh-performance Redis, defaults to false, or not filled, high performance is trueNo
CouponIdintCoupon ID, please refer to the DescribeCoupon interfaceNo

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns 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
}