Updated on 2026-01-08 GMT+08:00

Obtaining the Link for Downloading a Backup File

Description

This API is used to obtain the link for downloading a backup file.

Restrictions

The backup download link is valid within 15 minutes after being updated.

URI

  • URI format

    GET https://{Endpoint}/v3/{project_id}/backups/download-file?instance_id={instance_id}&backup_id={backup_id}

Request Parameters

Table 1 Request parameters

Parameter

Type

IN

Mandatory

Description

X-Auth-Token

String

header

Yes

User token

X-Language

String

header

No

Language

project_id

String

path

Yes

Project ID. To obtain the project ID, see Obtaining a Project ID.

instance_id

String

path

Yes

Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.

backup_id

String

query

Yes

Backup ID.

Response Parameters

Table 2 Parameter description

Parameter

Type

Mandatory

Description

files

Array of objects

Yes

The list of backup files.

For more information, see Table 3.

bucket

String

Yes

The name of the bucket where the file is located.

Table 3 Data structure description of the files field

Parameter

Type

Mandatory

Description

name

String

Yes

File name.

size

Long

Yes

Indicates the file size in KB.

download_link

String

Yes

The link for downloading the backup file.

link_expired_time

String

Yes

The link expiration time. The format is "yyyy-mm-ddThh:mm:ssZ". T is the separator between the calendar and the hourly notation of time. Z indicates the time zone offset. For example, the time zone offset of UTC is shown as +0000.

  • Example response
    {
       "files": [
        {
            "name": "43e4feaab48f11e89039fa163ebaa7e4br02.xxx",
            "size": 2803,
            "download_link":"https://obs.domainname.com/rdsbucket.username.1/xxxxxx",
            "link_expired_time":"2018-08-016T10:15:14+0000"
         }
         ],
        "bucket": "rdsbucket.bucketname"
    }

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.