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 |
Filtering based on the backup object ID is supported. |
resource_type |
No |
String |
Filtering based on the backup object type is supported. Enumeration values:
|
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 |
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