doc-exports/docs/opengauss/api-ref/opengauss_newapi_0028.html
Ru, Li Yi d97aea4dd2 opengauss_api
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-09-06 09:04:21 +00:00

15 KiB

Querying Database Disk Type

Function

This API is used to query the disk type of a DB instance. Before calling this API:

URI

  • URI format

    GET https://{Endpoint}/v3/{project_id}/storage-type?version={version}&ha_mode={ha_mode}

  • Parameter description
    Table 1 Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID of a tenant in a region.

    To obtain this value, see Obtaining a Project ID.

    version

    Yes

    String

    DB version number. To obtain the DB version number, see Querying DB Engine Versions.

    ha_mode

    No

    String

    Instance type. The value can be enterprise (distributed). It is case-insensitive.

    Value:

    • enterprise

Request

None

Response

  • Normal response
    Table 2 Parameter description

    Parameter

    Type

    Description

    storage_type

    Array of objects

    Storage type information.

    For details, see Table 3.

    Table 3 storage_type field data structure description

    Parameter

    Type

    Description

    name

    String

    Storage type. Its value can be:

    ULTRAHIGH: indicates the SSD.

    az_status

    map<String, String>

    key indicates the AZ ID, and value indicates the specification status in the AZ. Its value can be any of the following:

    • normal: on sale.
    • unsupported: not supported.
    • sellout: sold out.

    support_compute_group_type

    List<String>

    Performance specifications. Its value can be any of the following:

    • normal: general-enhanced
    • normal2: general-enhanced II
    • armFlavors: Kunpeng general computing-plus
  • Example normal response

Database disk types:

	
{
    "storage_type": [
        {
            "name": "ULTRAHIGH",
            "az_status": {
                "eu-de-01": "normal",
                "eu-de-02": "normal",
                "eu-de-03": "normal"
            },
            "support_compute_group_type": [
                "normal",
                "armFlavors",
                "normal2"
            ]
        }
    ]
}

Status Code

Error Code

For details, see Error Codes.