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
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
|
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. |
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot