Querying Available Resources
Function
This API is used to query available resources.
Debugging
You can debug this API in API Explorer.
Authorization Information
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permission listed below is required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependencies
bms:serverAvailableResource:get
read
-
-
-
-
URI
GET /v1/{project_id}/baremetalservers/available_resource
| Parameter | Mandatory | Description |
|---|---|---|
| project_id | Yes | Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
| availability_zone | Yes | Specifies the AZ. |
Request
None
Response
Table 2 describes the response parameters.
| Parameter | Type | Description |
|---|---|---|
| available_resource | Array of objects | Specifies available resources. For details, see Table 3. |
| Parameter | Type | Description |
|---|---|---|
| availability_zone | String | Specifies the AZ. |
| flavors | Array of objects | Specifies the flavors. For details, see Table 4. |
| Parameter | Type | Description |
|---|---|---|
| flavor_id | String | Specifies the flavor ID. |
| count | Integer | Specifies the quantity. |
| status | String | Specifies the status. |
Example Request
GET https://{endpoint}/v1/{project_id}/baremetalservers/available_resource Example Response
{
"available_resource": [{
"availability_zone": "cn-southwest-242a",
"flavors": [{
"flavor_id": "s3.small.1",
"count": 1,
"status": ""
}]
}]
} Returned Values
See Status Codes.
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