Domain name for API request: redis.intl.tencentcloudapi.com.
This API is used to clone a complete new instance based on the current instance backup file.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: CloneInstances. |
| Version | Yes | String | Common Params. The value used for this API: 2018-04-12. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Specify the source instance ID to be cloned. Example: crs-xjhsdj****. Log in to the Redis console and copy the instance ID from the instance list. |
| GoodsNum | Yes | Integer | The number of clone instances per operation.
|
| ZoneId | Yes | Integer | Availability zone ID of the cloned instance. For supported AZ IDs, see Regions and Availability Zones. |
| BillingMode | Yes | Integer | Payment method.
|
| Period | Yes | Integer | Instance Purchase Duration.
|
| SecurityGroupIdList.N | Yes | Array of String | Security group ID. Call the DescribeInstanceSecurityGroup API to obtain the security group ID for the instance. |
| BackupId | Yes | String | Backup ID used to clone an instance. Use the interface DescribeInstanceBackups to obtain the backup ID. |
| NoAuth | No | Boolean | Configure whether the cloned instance supports password-free access. Enabling SSL or public network does not support password-free access.
|
| VpcId | No | String | Configure the VPC ID for the clone instance. If not configured, the basic network is selected by default. |
| SubnetId | No | String | Configure the subnet of the private network for the cloned instance. This parameter requires no configuration for the basic network. |
| InstanceName | No | String | Name of the cloned instance. |
| Password | No | String | The access password of the clone instance.
|
| AutoRenew | No | Integer | Automatic renewal flag.
|
| VPort | No | Integer | User-defined port, defaults to 6379, in the range of [1024,65535]. |
| NodeSet.N | No | Array of RedisNodeInfo | Node information of instance.
|
| ProjectId | No | Integer | Project ID. Log in to the Redis console. You can find the project ID in the Account Center > Project Management at the top-right corner. |
| ResourceTags.N | No | Array of ResourceTag | Tag bound to the clone instance. |
| TemplateId | No | String | Specify the parameter template ID related to the cloned instance.
|
| AlarmPolicyList.N | No | Array of String | Specify the alarm policy ID of the clone instance. Log in to the Tencent Cloud observability platform console, and get policy ID information on the alarm management > policy management page. |
| CloneTime | No | String | Clone the time when data is recovered. |
| EncryptPassword | No | Boolean | Whether to encrypt the password |
| PasswordPolicy | No | PasswordPolicy | Instance password complexity policy Input parameter limit: If not passed or Enabled=false, deem as not enabled and verify by default rule. |
| EnableSSL | No | Boolean | Whether to enable SSL encryption. Enumeration value:
Default value: false |
| SSLBindPrivateIPv4 | No | Boolean | Whether to write the private IPv4 address of the instance to the domain alias (SAN) of the certificate when SSL is enabled. This parameter is valid only when EnableSSL is true. Enumeration value:
Default value: false |
| ProductVersion | No | String | Indicates the instance type. Enumeration value:
If not passed, it remains the same as the original instance type by default. |
| Parameter Name | Type | Description |
|---|---|---|
| InstanceIds | Array of String | ID of the clone instance. |
| DealName | String | Order ID. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: redis.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CloneInstances
<Common request parameters>
{
"InstanceId": "crs-qbhudciv",
"GoodsNum": 1,
"ZoneId": 10002,
"BillingMode": 0,
"Period": 1,
"SecurityGroupIdList": [
"sg-bmadczm1"
],
"BackupId": "154572601-1165734322-153705740",
"VpcId": "vpc-bmadczcc",
"SubnetId": "subnet-bmadczcc"
}
{
"Response": {
"DealId": "20250825297021530591847",
"DealName": "20260407296022526727811",
"InstanceIds": [
"crs-lqz7y86j"
],
"RequestId": "b841398d-94ea-42a1-ac2c-663853bcf5f9"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| FailedOperation.PayFailed | Payment failed. |
| FailedOperation.SystemError | Internal system error, which is irrelevant to the business. |
| FailedOperation.Unknown | Invalid data is entered for weekday. |
| InternalError.InternalError | Internal error. |
| InvalidParameter.EmptyParam | The parameter is empty. |
| InvalidParameter.OnlyVPCOnSpecZoneId | Only VPCs are provided in the Shanghai Finance AZ. |
| InvalidParameter.PermissionDenied | The API has no CAM permissions. |
| InvalidParameterValue.BaseNetWorkAccessDeny | The instance is not in a VPC. |
| InvalidParameterValue.CheckNotPass | Business verification failed |
| InvalidParameterValue.InvalidInstanceTypeId | The type of instances requested for purchase is incorrect (TypeId - 1: Cluster Edition; 2: Master-Replica Edition, i.e., the legacy Master-Replica Edition). |
| InvalidParameterValue.InvalidSubnetId | The vpcid or subnet ID in the VPC is invalid. |
| InvalidParameterValue.PasswordEmpty | The password is empty. |
| InvalidParameterValue.PasswordFreeDenied | Tencent internal accounts are not allowed to use password-free instances. |
| InvalidParameterValue.PasswordRuleError | When the password is set, the old password passed in by MC does not match the previously set password. |
| InvalidParameterValue.SecurityGroupIdsNotExists | The request parameter or security group ID is incorrect. |
| InvalidParameterValue.UnVpcIdNotExists | The uniqVpcId or subnet ID in the VPC is invalid. |
| LimitExceeded | The quota limit has been reached. |
| LimitExceeded.InvalidMemSize | The requested capacity is out of the purchasable specification range (memSize should be an integer multiple of 1,024 in MB). |
| LimitExceeded.InvalidParameterGoodsNumNotInRange | The number of instances requested for purchase at a time is out of the purchasable quantity range. |
| LimitExceeded.PeriodLessThanMinLimit | The length of purchase is invalid. It must be at least one month. |
| LimitExceeded.ReachTheAmountLimit | The quantity of requested TencentDB for Redis instances falls out of the limit range. |
| ResourceInsufficient | The resource is insufficient. |
| ResourceNotFound.AccountDoesNotExists | The UIN value is empty. |
| ResourceNotFound.InstanceNotExists | No Redis instance is found by the serialId. |
| ResourceUnavailable.InstanceDeleted | The instance has already been repossessed. |
| ResourceUnavailable.NoEnoughVipInVPC | The IP resources in the VPC are insufficient. |
| ResourceUnavailable.NoRedisService | The requested region currently does not provide the Redis service. |
| ResourceUnavailable.NoServiceAvailableForThisZoneId | The requested zoneId doesn’t provide Redis service. |
| ResourceUnavailable.SaleOut | Resources of the specified type in the region are sold out. |
| UnauthorizedOperation.NoCAMAuthed | No CAM permissions. |
| UnauthorizedOperation.UserNotInWhiteList | The user is not in the allowlist. |
| UnsupportedOperation | The operation is not supported. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários