Domain name for API request: mongodb.tencentcloudapi.com.
This API is used to query backup download task information.
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: DescribeBackupDownloadTask. |
Version | Yes | String | Common Params. The value used for this API: 2019-07-25. |
Region | No | String | Common Params. This parameter is not required for this API. |
InstanceId | Yes | String | Instance ID in the format of "cmgo-p8vnipr5", which is the same as the instance ID displayed in the TencentDB console |
BackupName | No | String | The name of a backup file with download tasks to be queried |
StartTime | No | String | The start time of the query period. Tasks whose start time and end time fall within the query period will be queried. If it is left empty, the start time can be any time earlier than the end time. |
EndTime | No | String | The end time of the query period. Tasks will be queried if their start and end times fall within the query period. If it is left empty, the end time can be any time later than the start time. |
Limit | No | Integer | The maximum number of results returned per page. Value range: 1-100. Default value: 20 . |
Offset | No | Integer | Offset for pagination. Default value: 0 . |
OrderBy | No | String | The field used to sort the results. Valid values: createTime (default), finishTime . |
OrderByType | No | String | Sort order. Valid values: asc , desc (default). |
Status.N | No | Array of Integer | The status of the tasks to be queried. Valid values: 0 (waiting for execution), 1 (downloading), 2 (downloaded), 3 (download failed), 4 (waiting for retry). If it is left empty, tasks in any status will be returned. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Total number of results |
Tasks | Array of BackupDownloadTask | The list of download tasks |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://mongodb.tencentcloudapi.com/?Action=DescribeBackupDownloadTask
&InstanceId=cmgo-dygv1rnp
&Status.0=2
&<Common request parameters>
{
"Response": {
"RequestId": "c41c0c46-7d5a-49b9-832a-557880c1e9ef",
"Tasks": [
{
"BackupName": "cmgo-dygv1rnp_2021-03-26 10:44",
"BackupSize": 844,
"CreateTime": "2021-03-26 10:47:37",
"Percent": 100,
"ReplicaSetId": "cmgo-dygv1rnp_0",
"Status": 2,
"TimeSpend": 0,
"Url": "https://mognodb-backup-test-tar-1251937656.cos.ap-guangzhou.myqcloud.com/cmgo-dygv1rnp_2021-03-26%2010%3A44%2Fcmgo-dygv1rnp_0.tar?q-sign-algorithm=sha1&q-ak=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&q-sign-time=1616726859%3B1616813259&q-key-time=1616726859%3B1616813259&q-header-list=host&q-url-param-list=&q-signature=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
],
"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 |
---|---|
AuthFailure | CAM signature/authentication error |
InternalError | Internal error |
InvalidParameter.PermissionDenied | The current subaccount has no permission to perform this operation. |
InvalidParameterValue.BackupFileNotFound | The backup file was not found. |
InvalidParameterValue.NotFoundInstance | The instance was not found. |
本页内容是否解决了您的问题?