Query Backup Download URL

Last updated: 2019-11-29 16:37:43

1. API Description

This API (GetBackupDownloadUrl) is used to query the download URL of CRS instance backup.
Domain name for API request: redis.api.qcloud.com

  1. Private network and local download URLs are valid for 12 hours, and need to be re-obtained upon expiration;
  2. Quotation marks must be used around URL when wget is used for downloading;

2. Input Parameters

The following request parameter list only provides API request parameters. Common request parameters are also needed when the API is called. The Action field for this API is GetBackupDownloadUrl.

Parameter Name Required Type Description
redisId Yes String ID of instance to work with. This can be obtained from redisId in the returned values of API DescribeRedis.
backupId Yes String Backup ID, which can be obtained from backupId in the returned values of API GetRedisBackupList.

3. Output Parameters

Parameter Name Type Description
code Int Common error code; 0: Succeeded; other values: Failed
message String Error message description. A null value indicates a success
codeDesc String Description of error code at business side. For a successful operation, "Success" will be returned. In case of an error, a message describing the reason for the error will be returned.
data Object Download URL of backup

Parameter data represents the download URL of backup, and is composed as follows:

Parameter Name Type Description
data.intranet URL in private network The download URL in private network, which can only be obtained on CVM. It is valid for 12 hours, and needs to be re-obtained upon expiration
data.extranet URL in public network The download URL in public network, which is valid for 12 hours and needs to be re-obtained upon expiration

4. Error Codes

The following error codes include the business logic error codes for this API.

Error Code Error Message Error Description
11201 InvalidParameter Incorrect business parameter
10701 InstanceNotExists No instance can be found for the serialId
10711 BackupStatusAbnormal The operation is impossible due to an abnormal backup status
11213 BackupNotExists No instance backup can be found for the backupId

5. Example


The returned results are as below:

    "code": 0,
    "message": "",
    "codeDesc": "Success",
    "data": {
        "intranet": "",
        "extranet": ""