doc-exports/docs/deh/api-ref/deh_02_0025.html
Hasko, Vladimir ba34ad4eaa initial import of DEH API
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2022-09-07 10:09:05 +00:00

8.0 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.

Table 1 Parameters description

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

  • Request parameters

    None

  • Example request
    GET https://{Endpoint}/v1.0/9c53a566cb3443ab910cf0daebca90c4/availability-zone/az1/dedicated-host-types

Response

  • Response parameters
    Table 2 Response parameters

    Parameter

    In

    Type

    Description

    dedicated_host_types

    body

    Array of objects

    Specifies the available DeH types.

    host_type

    body

    String

    Specifies the DeH type.

    host_type_name

    body

    String

    Specifies the name of the DeH type.

  • Example response
    {
        "dedicated_host_types": [
            {
                "host_type": "General",
                "host_type_name": "General Computing"
            },
            {
                "host_type": "m1",
                "host_type_name": "Memory-optimized"
            },
            {
                "host_type": "h2",
                "host_type_name": "High performance"
            },
            {
                "host_type": "d1",
                "host_type_name": "Disk intensive"
            }
        ]
    }

Status Code

See Status Codes.