Create master-slave redis - CreateURedisGroup
Overview
Create master-slave redis
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is CreateURedisGroup . | 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 |
Name | string | Request to create a group name (range [6-63], can only contain English, numbers, and the symbols - and _) | Yes |
HighAvailability | string | Enable high availability, enable or disable | Yes |
Size | int | The memory size of each node, in GB, defaults to 1GB, currently only supports six types: 1/2/4/8/16/32. | No |
AutoBackup | string | Whether to automatically backup, enable or disable, default is disable | No |
BackupTime | int | Automatic backup start time, range [0-23], default is 3 o’clock | No |
ConfigId | string | Configuration 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 backup | No |
Version | string | Redis version information (see DescribeURedisVersion for return results), default version 4.0 | No |
ChargeType | string | Billing Mode, Year, Month, Dynamic Default: Month | No |
Quantity | int | Purchase duration, default is 1 | No |
Tag | string | Business Group Name | No |
Password | string | Initialize password, requires base64 encoding | No |
BackupId | string | Having this item means creating from a backup, not having it means normal creation. | No |
SlaveZone | string | Cross-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 |
MasterGroupId | string | The ID of the Master Redis Group, must be filled in when creating a read-only Slave. | No |
EnableIpV6 | boolean | Whether to create resources using ipv6, the default is false, or not filled in, creating ipv6 is true | No |
SubnetId | string | Subnet ID | No |
VPCId | string | ID of VPC | No |
HighPerformance | boolean | Whether to create high-performance Redis, default is false, or not filled in, creating high-performance is true. | No |
Port | int | Port | No |
RollbackGroupId | string | If you are creating an instance through rollback, you need to pass the GroupId of the rollback instance. | No |
AOFID | string | The rollback AOF file ID | No |
RollbackTime | int | Rollback Time Point | No |
CouponId | string | Coupon ID | 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 |
GroupId | string | Created Group ID | No |
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
}