Docs
api
Cloud Memory(UMem)
CreateURedisGroup

Create master-slave redis - CreateURedisGroup

Overview

Create master-slave redis

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is CreateURedisGroup.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
NamestringRequest to create a group name (range [6-63], can only contain English, numbers, and the symbols - and _)Yes
HighAvailabilitystringEnable high availability, enable or disableYes
SizeintThe memory size of each node, in GB, defaults to 1GB, currently only supports six types: 1/2/4/8/16/32.No
AutoBackupstringWhether to automatically backup, enable or disable, default is disableNo
BackupTimeintAutomatic backup start time, range [0-23], default is 3 o’clockNo
ConfigIdstringConfiguration ID, currently supports 4.0 version Configuration ID: “6c9298a3-9d7f-428c-b1d0-e87ab3b8a1ea”, 5.0 version Configuration ID: “3cdeeb90-dcbf-46e8-95cd-a05d8860a22c”, 6.0 version Configuration ID: “1d990520-aac8-4e0f-9384-f58611e8eb28”, 7.0 version Configuration ID: “48dcf534-db41-11ec-a1a6-52670028d520”, the default version is 4.0, it is mandatory to create from backupNo
VersionstringRedis version information (see DescribeURedisVersion for return results), default version 4.0No
ChargeTypestringBilling Mode, Year, Month, Dynamic Default: MonthNo
QuantityintPurchase duration, default is 1No
TagstringBusiness Group NameNo
PasswordstringInitialize password, requires base64 encodingNo
BackupIdstringHaving this item means creating from a backup, not having it means normal creation.No
SlaveZonestringCross-IDC URedis, the availability zone where the slave is located (must be in the same Region as the Zone, and cannot be the same)No
MasterGroupIdstringThe ID of the Master Redis Group, must be filled in when creating a read-only Slave.No
EnableIpV6booleanWhether to create resources using ipv6, the default is false, or not filled in, creating ipv6 is trueNo
SubnetIdstringSubnet IDNo
VPCIdstringID of VPCNo
HighPerformancebooleanWhether to create high-performance Redis, default is false, or not filled in, creating high-performance is true.No
PortintPortNo
RollbackGroupIdstringIf you are creating an instance through rollback, you need to pass the GroupId of the rollback instance.No
AOFIDstringThe rollback AOF file IDNo
RollbackTimeintRollback Time PointNo
CouponIdstringCoupon IDNo

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
GroupIdstringCreated Group IDNo

Example

Request Example

https://api.dezai.com/?Action=CreateURedisGroup
&Region=cn-bj2
&Zone=cn-bj2-04
&Name=zb_redisXXXX
&Protocol=GSlQEcQU
&EnableIpV6=true
&IPv6Address=drIbwOFr
&SubnetId=BvhMJWKe
&VPCId=OECssiom
&HighPerformance=true
&RollbackGroupId=zDbLFMSd
&AOFID=fEWypwnR
&RollbackTime=2
&Port=8

Response Example

{
  "Action": "CreateURedisGroupResponse",
  "GroupId": "uredis-00XXX",
  "RetCode": 0
}