Querying Capacity Statistics
Function
Querying Capacity Statistics
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
GET /v3/{project_id}/storage_usage
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
limit |
No |
Integer |
Number of records to be queried |
offset |
No |
Integer |
Offset value |
resource_id |
No |
String |
Support for filtering by backup object resource ID |
resource_type |
No |
String |
Filtering based on the backup object type is supported. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
resource_count |
Integer |
Number of resources that meet the filter criteria |
storage_usage |
Array of StorageUsage objects |
Capacity statistics |
Parameter |
Type |
Description |
---|---|---|
backup_count |
Integer |
Number of backups |
backup_size |
Integer |
Backup capacity |
resource_id |
String |
Resource ID, in UUID format. You can query the resource status based on the type of the resource to be backed up. |
resource_name |
String |
Name of the resource to be backed up. The value can contain a maximum of 255 characters. |
resource_type |
String |
Type of the resource to be backed up: OS::Nova::Server: ECS; OS::Cinder::Volume: EVS disks; OS::Ironic::BareMetalServer: Bare Metal Servers; OS::Sfs::Turbo: SFS Turbo file systems; OS::Workspace::DesktopV2: Workspaces |
backup_size_multiaz |
Integer |
Multi-AZ backup size |
Example Requests
None
Example Responses
Status code: 200
OK
{ "storage_usage" : [ { "resource_name" : "ECS_name", "resource_id" : "89d466e5-b7f9-4e45-807a-d5f17f44fc84", "backup_size" : 0, "backup_count" : 1, "resource_type" : "OS::Nova::Server", "backup_size_multiaz" : 0 } ], "resource_count" : 1 }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
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