Listing Backups of a Graph (1.0.0)
Function
This API is used to list backups of a graph.
URI
GET /v2/{project_id}/graphs/{graph_id}/backups
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition Project ID. For details about how to obtain a project ID, see Obtaining a Project ID. Constraints N/A Range The value can contain up to 64 characters. Only letters and digits are allowed. Default Value N/A |
|
graph_id |
Yes |
String |
Definition Graph ID. Constraints N/A Range N/A Default Value N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
Integer |
Definition Maximum number of resources per page. Constraints N/A Range N/A Default Value 10 |
|
offset |
No |
Integer |
Definition Starting position of the request. Constraints N/A Range N/A Default Value 0 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token. It is used to obtain the permission to call APIs. For how to obtain the token, see Authentication. (The token is the value of X-Subject-Token in the response header.) Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
backup_count |
Integer |
Definition Total number of backups. This parameter is left blank when the request fails. Range N/A |
|
backup_list |
Array of backup_list objects |
Definition Backup list of a graph under the current project ID. This parameter is left blank when the request fails. Range N/A |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Definition Backup ID. Range N/A |
|
name |
String |
Definition Backup name. Range N/A |
|
backup_method |
String |
Definition Backup method. Range
|
|
graph_id |
String |
Definition ID of the graph associated with the backup. Range N/A |
|
graph_name |
String |
Definition Name of the graph associated with the backup. Range N/A |
|
graph_status |
String |
Definition Status of the graph associated with the backup. Range N/A |
|
graph_size_type_index |
String |
Definition Size of the graph associated with the backup. Range N/A |
|
data_store_version |
String |
Definition Version of the graph associated with the backup. Range N/A |
|
arch |
String |
Definition CPU architecture of the graph associated with the backup. Range N/A |
|
status |
String |
Definition Backup status. Range
|
|
start_timestamp |
Long |
Definition Start timestamp of a backup job. Range N/A |
|
start_time |
String |
Definition Start time of a backup job. Range N/A |
|
product_type |
String |
Definition Graph product type. Range
|
|
end_timestamp |
Long |
Definition End timestamp of a backup job. Range N/A |
|
end_time |
String |
Definition End time of a backup job. Range N/A |
|
size |
Long |
Definition Backup file size, in MB. Range N/A |
|
duration |
Long |
Definition Backup duration, in seconds. Range N/A |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Definition System prompt.
Range N/A |
|
error_msg |
String |
Definition System prompt.
Range N/A |
Example Request
Query the backup list of a graph.
GET https://{Endpoint}/v2/{project_id}/graphs/{graph_id}/backups?offset=0&limit=2
Example Response
Status code: 200
Example response for a successful request
{
"backup_count" : 2,
"backup_list" : [ {
"id" : "ada3e720-ab87-48cb-bff7-3ec5ae1a9652",
"name" : "ges060803_nodelete-20210608135513",
"backup_method" : "manual",
"graph_id" : "4c5f882d-a813-4d78-a8e3-6d3212ddd121",
"graph_name" : "ges060803_nodelete",
"graph_status" : "200",
"graph_size_type_index" : "1",
"data_store_version" : "2.2.21",
"arch" : "x86_64",
"status" : "success",
"start_timestamp" : 1623160513000,
"start_time" : "2021-06-08T13:55:13",
"end_timestamp" : 1623160568000,
"end_time" : "2021-06-08T13:56:08",
"size" : 1,
"duration" : 54
}, {
"id" : "7ed3f51d-816d-4651-9129-fe21b64b5c91",
"name" : "ges060803_nodelete_20210609203323_auto",
"backup_method" : "auto",
"graph_id" : "4c5f882d-a813-4d78-a8e3-6d3212ddd121",
"graph_name" : "ges060803_nodelete",
"graph_status" : "200",
"graph_size_type_index" : "1",
"data_store_version" : "2.2.21",
"arch" : "x86_64",
"status" : "success",
"start_timestamp" : 1623242004000,
"start_time" : "2021-06-09T12:33:24",
"end_timestamp" : 1623242004000,
"end_time" : "2021-06-09T12:33:24",
"size" : 1,
"duration" : 0
} ]
}
Status code: 404
Example response for a failed request
{
"error_msg": "Cluster does not exist or has been deleted.",
"error_code": "GES.0047"
}
Status Codes
|
Return Value |
Description |
|---|---|
|
400 Bad Request |
Request error. |
|
401 Unauthorized |
Authorization failed. |
|
403 Forbidden |
No operation permissions. |
|
404 Not Found |
No resources found. |
|
500 Internal Server Error |
Internal server error. |
|
503 Service Unavailable |
Service unavailable. |
Error Codes
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