Querying Instance Disk Information
API Description
This API is used to query instance disk information.
URI
- URI format
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/disk-usage
Table 1 Path parameters Name
Mandatory
Type
Description
project_id
Yes
String
Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.
instance_id
Yes
String
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token |
Response Parameters
|
Name |
Type |
Description |
|---|---|---|
|
volumes |
Array of Table 3 objects |
Disk information list. |
|
Name |
Type |
Description |
|---|---|---|
|
entity_id |
String |
Instance ID, group ID, or node ID. |
|
entity_name |
String |
Instance name, group name, or node name. |
|
group_type |
String |
Group type. The value can be:
|
|
used |
String |
Used capacity. The value contains two decimal places. The unit is GB. |
|
size |
String |
Total size, in GB. |
- Example response
{ "volumes" : [ { "entity_id" : "f04553d9ad2942e7a44facc518dc5699gr02", "entity_name" : "replicaTest", "group_type" : "replica", "used" : "3.18", "size" : "60" } ] }
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
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