Querying Backup Sharings
Function
This API is used to query backup sharings.
URI
- URI format
- Parameter description
Parameter
Mandatory
Description
project_id
Yes
Project ID
For details about how to obtain the project ID, see Obtaining a Project ID.
- Request filter parameter description
Parameter
Mandatory
Type
Description
share_to_me
No
boolean
If this parameter is set to true, this API will list the backups shared with the current project. Or, this API will list the backups shared by the current project.
volume_id
No
string
Disk ID
name
No
string
Backup name. Fuzzy match is supported.
status
No
string
Backup status
backup_id
No
string
Backup ID
from_project_id
No
string
ID of the project that shares the backup
to_project_id
No
string
ID of the project to which the backup is shared
avalilability_zone
No
string
AZ name
sort_dir
No
string
Sorting direction
sort_key
No
string
Sorts by attribute. Possible values are name, status, container_format, disk_format, size, id, created_at, and updated_at. The default value is created_at.
limit
No
int
Number of sharings to be queried
offset
No
int
Offset of the query
Request
None
Response
- Parameter description
Parameter
Type
Description
shared
list<dict>
Backup sharing list
backup_id
string
Backup ID
created_at
string
Creation time of the backup sharing
from_project_id
string
ID of the project that shares the backup
id
string
Backup sharing ID
to_project_id
string
ID of the project to which the backup is shared
updated_at
string
Update time of the backup sharing
backup
dict
Details about the source backup
availability_zone
string
AZ where the backup resides
container
string
Container of the backup
created_at
string
Backup creation time
data_timestamp
string
Current time
description
string
Backup description
fail_reason
string
Cause of the backup failure
has_dependent_backup
boolean
Whether a dependent backup exists. VBS generates a full backup for the initial backup operation and incremental backups for subsequent backup operations. Therefore, this parameter will be skipped.
id
string
Backup ID
is_incremental
boolean
Whether the backup is an incremental backup. VBS generates a full backup for the initial backup operation and incremental backups for subsequent backup operations. Therefore, this parameter will be skipped.
name
string
Backup name
object_count
int
Number of objects on OBS for the disk data
size
int
Backup size
snapshot_id
string
ID of the snapshot associated with the backup
status
string
Backup status
updated_at
string
Update time of the backup
volume_id
string
Source disk ID of the backup
service_metadata
string
Backup metadata
- Example response
{ "shared": [ { "backup": { "availability_zone": "AZ1", "container": null, "created_at": "2017-08-08T04:03:27.456859", "data_timestamp": "2017-08-08T04:03:27.456859", "description": null, "fail_reason": "Invalid InitiatorConnector protocol specified DSWARE", "has_dependent_backups": null, "id": "066b1e37-9305-4057-97e5-2e99b21fc71d", "is_incremental": null, "name": "lbf", "object_count": null, "size": 1, "snapshot_id": null, "status": "available", "updated_at": "2017-08-08T04:03:35.109308", "volume_id": "a7d7783f-02b7-4645-b0e3-61df63f0ba10", "service_metadata": null }, "backup_id": "066b1e37-9305-4057-97e5-2e99b21fc71d", "created_at": "2017-08-10T12:25:40.480424", "from_project_id": "c13f5220dc1949b0b741ea81a7cd5554", "id": "e842bf23-1e05-4c2c-b0f9-25222f4686da", "to_project_id": "722513ed0a324dadaabe5b2d0fe848b9", "updated_at": "2017-08-14T06:41:49.381069" }, { "backup": { "availability_zone": "AZ1", "container": null, "created_at": "2017-08-08T04:03:27.456859", "data_timestamp": "2017-08-08T04:03:27.456859", "description": null, "fail_reason": "Invalid InitiatorConnector protocol specified DSWARE", "has_dependent_backups": null, "id": "066b1e37-9305-4057-97e5-2e99b21fc71d", "is_incremental": null, "name": "lbf", "object_count": null, "size": 1, "snapshot_id": null, "status": "available", "updated_at": "2017-08-08T04:03:35.109308", "volume_id": "a7d7783f-02b7-4645-b0e3-61df63f0ba10", "service_metadata": null }, "backup_id": "066b1e37-9305-4057-97e5-2e99b21fc71d", "created_at": "2017-08-10T12:19:37.318031", "from_project_id": "c13f5220dc1949b0b741ea81a7cd5554", "id": "f842bf23-1e05-4c2c-b0f9-25222f4686da", "to_project_id": "722513ed0a324dadaabe5b2d0fe848a9", "updated_at": null } ] }
Status Codes
- Normal
- Abnormal
Status Code
Description
400 Bad Request
The server failed to process the request.
401 Unauthorized
You must enter the username and password to access the requested page.
403 Forbidden
You are forbidden to access the requested page.
404 Not Found
The server could not find the requested page.
405 Method Not Allowed
You are not allowed to use the method specified in the request.
406 Not Acceptable
The response generated by the server could not be accepted by the client.
407 Proxy Authentication Required
You must use the proxy server for authentication so that the request can be processed.
408 Request Timeout
The request timed out.
409 Conflict
The request could not be processed due to a conflict.
500 Internal Server Error
Failed to complete the request because of an internal service error.
501 Not Implemented
Failed to complete the request because the server does not support the requested function.
502 Bad Gateway
Failed to complete the request because the request is invalid.
503 Service Unavailable
Failed to complete the request because the service is unavailable.
504 Gateway Timeout
A gateway timeout error occurred.
Error Codes
For details, see 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