Querying the Capacity of a Flavor
Function
This API is used to query the capacity of a flavor.
URI
GET /v1/{project_id}/cloudservers/flavors/{flavor_id}/resources
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
flavor_id |
Yes |
Specifies the flavor ID. |
Request
None.
Response
Table 2 describes the response parameter.
Parameter |
Type |
Description |
---|---|---|
resources |
Array of objects |
Definition Specifies the capacity list of the flavor. For details, see Table 3. Range N/A |
Parameter |
Type |
Description |
---|---|---|
region_id |
String |
Definition Specifies the ID of the region that the flavor belongs to. Range N/A |
availability_zone |
String |
Definition Specifies the AZ that the flavor belongs to. Range N/A |
prefer |
Boolean |
Definition Specifies whether the resources of the flavor in the current AZ are sufficient. Range
|
Example Request
Query the capacity of a flavor.
GET https://{endpoint}/v1/{project_id}/cloudservers/flavors/{flavor_id}/resources
Example Response
{ "resources": [{ "region_id": "region_01", "availability_zone": "az1", "prefer": false }] }
Returned Values
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