Viewing the Backup List of a Graph (1.0.0)
Function
This API is used to query the backup list of a graph.
URI
GET /v1.0/{project_id}/graphs/{graph_id}/backups
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
graph_id |
Yes |
String |
Graph ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Maximum number of resources displayed on a single page. The default value is 10. |
offset |
No |
Integer |
Start position of the request. The default value is 0. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It is used to obtain the permission to call APIs. For details about how to obtain the token, see Authentication. The value of X-Subject-Token in the response header is the token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
errorMessage |
String |
System prompt.
|
errorCode |
String |
System prompt code.
|
backupCount |
Integer |
Total number of backups. This parameter is left blank if the request fails. |
backupList |
Array of backup objects |
List of backups of a specified graph under the current project. This parameter is left blank if the request fails. |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Backup ID |
name |
String |
Backup name |
backupMethod |
String |
Backup method. The value can be auto or manual. |
graphId |
String |
ID of the graph associated with the backup |
graph_name |
String |
Name of the graph associated with the backup |
graphStatus |
String |
Status of the graph associated with the backup |
graphSizeTypeIndex |
String |
Size of the graph associated with the backup |
dataStoreVersion |
String |
Version of the graph associated with the backup |
arch |
String |
CPU architecture of the graph node associated with the backup |
status |
String |
Backup status:
|
startTimestamp |
Long |
Start timestamp of a backup job |
startTime |
String |
Backup start time |
endTimestamp |
Long |
End timestamp of a backup job |
endTime |
String |
Backup end time |
size |
Long |
Backup file size (MB) |
duration |
Long |
Backup duration (seconds) |
encrypted |
Boolean |
Whether to encrypt backup data. The value true indicates that the backup data is encrypted. The default value false indicates that the backup data is not encrypted. |
Example Request
GET https://Endpoint/v1.0/{project_id}/graphs/{graph_id}/backups?offset=0&limit=2
Example Response
Example response with status code 200:
OK
{ "backupCount": 2, "backupList": [ { "id": "ada3e720-ab87-48cb-bff7-3ec5ae1a9652", "name": "ges060803_nodelete-20210608135513", "backupMethod": "manual", "graphId": "4c5f882d-a813-4d78-a8e3-6d3212ddd121", "graph_name": "ges060803_nodelete", "graphStatus": "200", "graphSizeTypeIndex": "1", "dataStoreVersion": "2.2.22", "arch": "x86_64", "status": "success", "startTimestamp": 1623160513000, "startTime": "2021-06-08T13:55:13", "endTimestamp": 1623160568000, "endTime": "2021-06-08T13:56:08", "size": 1, "duration": 54, "encrypted": false }, { "id": "7ed3f51d-816d-4651-9129-fe21b64b5c91", "name": "ges060803_nodelete_20210609203323_auto", "backupMethod": "auto", "graphId": "4c5f882d-a813-4d78-a8e3-6d3212ddd121", "graph_name": "ges060803_nodelete", "graphStatus": "200", "graphSizeTypeIndex": "1", "dataStoreVersion": "2.2.21", "arch": "x86_64", "status": "success", "startTimestamp": 1623242004000, "startTime": "2021-06-09T12:33:24", "endTimestamp": 1623242004000, "endTime": "2021-06-09T12:33:24", "size": 1, "duration": 0, "encrypted": false } ] }
Status code: 400
Bad Request
{ "errorCode" : "GES.7000", "errorMessage" : "The graph does not exist or has been deleted." }
Status Code
Status Code |
Description |
---|---|
200 |
Request sent. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
No operation permission. |
404 |
No resources found. |
500 |
Internal service error. |
503 |
Service unavailable. |
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