Querying Specifications that a DB Instance Can Be Changed To
Function
This API is used to query specifications that a DB instance can be changed to. Before calling this API:
- Learn how to authenticate this API.
- Obtain the required region and endpoint.
URI
Name |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition Project ID of a tenant in a region. To obtain the value, see Obtaining a Project ID. Constraints N/A Range The value can contain 32 characters. Only letters and digits are allowed. Default Value N/A |
instance_id |
Yes |
String |
Definition DB instance ID. Constraints N/A Range N/A Default Value N/A |
limit |
No |
Integer |
Definition Number of records returned by a query. For example, if this parameter is set to 10, a maximum of 10 records can be displayed. Constraints The value cannot be a negative number. Range [1, 100] Default Value 100 |
offset |
No |
Integer |
Definition Index offset. For example, if this parameter is set to 1 and limit is set to 10, only the 2nd to 11th records are displayed. Constraints The value must be a non-negative integer. Range N/A Default Value 0: The query starts from the first data record. |
Request Parameters
None
Response Parameters
Name |
Type |
Description |
---|---|---|
flavors |
Array of objects |
Definition Specification details. For details, see Table 3. |
total_count |
integer |
Definition Total number of records. Range N/A |
Name |
Type |
Description |
---|---|---|
vcpus |
string |
Definition Number of vCPUs. Range N/A |
ram |
string |
Definition Memory size in GB. Range N/A |
spec_code |
string |
Definition Resource specification code, for example, gaussdb.opengauss.ee.dn.m6.4xlarge.8.in Range N/A |
az_status |
Map<String,String> |
Definition key indicates the AZ ID, and value indicates the specification status in the AZ. Its value can be any of the following:
|
Example Request
GET https://gaussdb-opengauss.ap-southeast-1.myhuaweicloud.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in14/available-flavors
Example Response
{ "flavors" : [ { "spec_code" : "gaussdb.opengauss.ee.m6.2xlarge.x868.ha", "vcpus" : "8", "ram" : "64", "az_status" : [ { "az2xahz" : "normal" } ] } ], "total_count" : 1 }
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
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