forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: wanghuijuan738 <wanghuijuan738@huawei.com> Co-committed-by: wanghuijuan738 <wanghuijuan738@huawei.com>
8.6 KiB
8.6 KiB
Querying Available DeH Types
Function
This API is used to query available DeH types in an AZ.
URI
GET /v1.0/{project_id}/availability-zone/{availability_zone}/dedicated-host-types
Table 1 describes the parameters.
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
project_id |
String |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining Required Information. |
availability_zone |
String |
Yes |
Specifies the AZ. |
Request
None
Response
Parameter |
In |
Type |
Description |
|---|---|---|---|
dedicated_host_types |
body |
Array of objects |
Specifies the available DeH types. For details, see Table 3. |
Example Request
Query the DeH types available in az1.
GET https://{Endpoint}/v1.0/9c53a566cb3443ab910cf0daebca90c4/availability-zone/az1/dedicated-host-types
Example Response
{
"dedicated_host_types": [
{
"host_type": "c4",
"host_type_name": "dedicated_general_purpose"
},
{
"host_type": "m4",
"host_type_name": "memory_optimized"
}
]
}
Status Code
See Status Codes.
Parent topic: API