Domain name for API request: redis.tencentcloudapi.com.
This API is used to query the backup list of an instance.
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: DescribeInstanceBackups. |
Version | Yes | String | Common Params. The value used for this API: 2018-04-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
Limit | No | Integer | Number of backups returned per page. Default value: 20 . Maximum value: 100 . |
Offset | No | Integer | Pagination offset, which is an integral multiple of Limit . offset = limit * (page number - 1). |
InstanceId | No | String | ID of the instance to be operated on, which can be obtained through the InstanceId field in the return value of the DescribeInstance API. |
BeginTime | No | String | Start time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-02-08 16:46:34. This parameter is used to query the list of instance backups started during the [beginTime, endTime] range. |
EndTime | No | String | End time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-02-08 19:09:26. This parameter is used to query the list of instance backups started during the [beginTime, endTime] range. |
Status.N | No | Array of Integer | Backup task status:1 : The backup is in the process.2 : The backup is normal.3 : The backup is being converted to an RDB file.4 : Conversion to RDB has been completed.-1 : The backup expired.-2 : The backup has been deleted. |
InstanceName | No | String | Instance name, which can be fuzzily searched. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Total number of backups. |
BackupSet | Array of RedisBackupSet | Array of instance backups. |
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. |
This example shows you how to query the backup list of the instance crs-c7nuafdt
.
POST / HTTP/1.1
Host: redis.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeInstanceBackups
<Common request parameters>
{
"Status": [
"2"
],
"InstanceId": "crs-c7nuafdt",
"Limit": "10",
"Offset": "0"
}
{
"Response": {
"BackupSet": [
{
"BackupId": "154572601-1165734322-153731238",
"BackupSize": 191,
"BackupType": "0",
"EndTime": "2022-12-23 16:25:18",
"ExpireTime": "2022-12-30 16:24:41",
"FileType": "RDB-Redis 4.0",
"FullBackup": 0,
"InstanceId": "crs-c7nuafdt",
"InstanceName": "Backup test",
"InstanceType": 6,
"Locked": 0,
"Region": "ap-guangzhou",
"Remark": "test001",
"StartTime": "2022-12-23 16:24:41",
"Status": 2
}
],
"RequestId": "2a95bfa4-ac8c-43cd-b7b1-5a93817d8de2",
"TotalCount": 1
}
}
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.SystemError | Internal system error, which is irrelevant to the business. |
InternalError.DbOperationFailed | Internal system error with the database operation, which may be update, insert, select, etc. |
InternalError.InternalError | Internal error. |
InvalidParameter.InvalidParameter | Invalid service parameter. |
InvalidParameter.PermissionDenied | The API has no CAM permissions. |
ResourceNotFound.InstanceNotExists | No Redis instance is found by the serialId. |
UnauthorizedOperation.NoCAMAuthed | No CAM permissions. |
UnsupportedOperation | The operation is not supported. |
この記事はお役に立ちましたか?