Querying the Disk Type of a DB Instance
Function
This API is used to query the disk type of a DB instance. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
URI
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID of a tenant in a region. For details about how to obtain the project ID, 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. enterprise: distributed deployment centralization_standard (case-insensitive): primary/standby deployment Value:
|
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
---|---|---|
storage_type |
Array of objects |
Storage type information. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
name |
String |
Storage type. Its value can be:
|
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:
|
support_compute_group_type |
List<String> |
Performance specifications. Its value can be any of the following:
|
Example Request
- Querying the disk type of a distributed instance
GET https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/storage-type?version=2.1&ha_mode=enterprise
- Querying the disk type of a primary/standby instance
https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/storage-type?version=2.1&ha_mode=centralization_standard
Example Response
Disk types of the instances queried.
{ "storage_type": [ { "name": "ULTRAHIGH", "az_status": { "aaa": "normal", "bbb": "normal", "ccc": "normal" }, "support_compute_group_type": [ "normal", "armFlavors", "armFlavors2Shared", "normal2" ] }, { "name": "ESSD", "az_status": { "az2xahz": "normal", "az1xahz": "normal", "az3xahz": "normal" }, "support_compute_group_type": [ "normal", "armFlavors", "armFlavors2Shared", "normal2" ] } ] }
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, 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