Obtaining Links for Downloading Error Logs
Description
This API is used to obtain links for downloading error logs.
Restrictions
The link for downloading error logs is valid within 15 minutes after being updated.
|
Name |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
project_id |
string |
path |
Yes |
Project ID of a tenant in a region. 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. |
Request Parameters
|
Parameter |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
X-Auth-Token |
string |
header |
Yes |
User token |
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
file_name_list |
Array of strings |
No |
The list of the names of the files to be downloaded. |
|
node_id_list |
Array of strings |
No |
The node ID list. If this parameter is left blank, all nodes in the instance can be queried. For details, see id in Table 9. Nodes that can be queried:
|
- Response to the request body
{ "file_name_list": [ "0541c9f81e80d2201fccc00b92ad6ec0_052f8a12dfed43fbb27c2020e3c3c507no02_errorlog_20201117104809" ], "node_id_list": [ "052f8a12dfed43fbb27c2020e3c3c507no02" ] }
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
list |
List |
The list of error log download links. For details, see Table 5. |
|
status |
String |
The status of the error log download link.
|
|
count |
Integer |
The number of error log links. |
|
Parameter |
Type |
Description |
|---|---|---|
|
node_name |
String |
The node name. |
|
file_name |
String |
The name of the generated file for downloading error logs. |
|
status |
String |
The status of the current link.
|
|
file_size |
String |
The file size in KB. |
|
file_link |
String |
The download link.
NOTE:
The download link is valid within 15 minutes after being updated. After the update time expires, the download link will be obtained again. |
|
update_at |
Long |
The update time. |
- Example response
{ "list": [ { "node_name": "node_1", "file_name": "054bc9c1f680d55c1f36c006e5a9f67b_errorlog_download_20200515080614589", "status": "SUCCESS", "file_size": "0", "file_link": "https://rdsbucket.opxxx.svc.rds.xxxxx.southeast.ur.obs.{Endpoint}:443/054bc9c1f680d55c1f36c006e5a9f67b_errorlog_download_20200515080614589?AWSAccessKeyId=1BQ38TBCQHAVQXBUMUTC&Expires=1589530200&response-cache-control=no-cache%2Cno-store&Signature=Fgi4%2BLOJ9frAXyOkz5hRoW5O%2BUM%3D", "update_at": 1589529991385 } ], "status": "FINISH", "count": 1 }
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