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>
15 KiB
Querying Database Disk Type
Function
This API is used to query the disk type of a DB instance. Before calling this API:
- Learn how to authenticate this API.
- Understand the API in Using APIs.
- Obtain the required region and endpoint.
URI
- Example
- Querying the disk type of a distributed DB instance
https://gaussdb.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/storage-type?version=1.4&ha_mode=enterprise
- Querying the disk type of a distributed DB instance
- 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" ] } ] }
- Abnormal response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.