Querying Database Specifications
Function
This API is used to query all instance specifications under a specified condition.
URI
Request Parameters
|
Name |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
x-auth-token |
string |
header |
Yes |
User token obtained from IAM. For details, see Authentication. |
|
project_id |
string |
path |
Yes |
Project ID of a tenant in a region. To obtain the project ID, see Obtaining a Project ID. |
|
engine_name |
string |
query |
No |
Specifies the database type. The value is DDS-Community. To obtain this value, see Querying Database Version Information. |
|
engine_version |
string |
query |
No |
DB version number. |
|
offset |
Integer |
query |
No |
Index offset.
|
|
limit |
Integer |
query |
No |
Maximum pieces of specifications information that can be queried
|
Response Parameters
|
Name |
Type |
Mandatory |
Description |
|---|---|---|---|
|
flavors |
Array of objects |
Yes |
Indicates the DB instance specifications information list. For more information, see Table 3. |
|
total_count |
Integer |
Yes |
Total number of records |
|
Name |
Type |
Mandatory |
Description |
|---|---|---|---|
|
engine_name |
String |
Yes |
Indicates the engine name. |
|
type |
String |
Yes |
Indicates the node type. DDS contains the following types of nodes:
|
|
vcpus |
String |
Yes |
Indicates the number of vCPUs. |
|
ram |
String |
Yes |
Indicates the memory size in gigabyte (GB). |
|
spec_code |
String |
Yes |
Indicates the resource specification code. Example: dds.mongodb.c6.xlarge.2.shard
NOTE:
|
|
az_status |
Map<String,String> |
Yes |
key indicates the AZ ID, and value indicates the specification status in the AZ. Its value can be any of the following:
|
|
engine_versions |
Array of strings |
Yes |
Database versions For example, DDS mongos node, {"3.4", "4.0"} |
Example Requests
None
Example Responses
In the example response, az1, az2, and az3 in the az_status field are example values.
- Example Responses
{ "total_count":4, "flavors": [ { "engine_name": "DDS-Community", "type": "mongos", "vcpus": "1", "ram": "4", "spec_code": "dds.mongodb.c6.medium.4.mongos", "engine_versions":["3.4","4.0"], "az_status": { "az1": "normal", "az2": "normal", "az3": "normal" } }, { "engine_name": "DDS-Community", "type": "shard", "vcpus": "4", "ram": "8", "spec_code": "dds.mongodb.c6.xlarge.2.shard", "engine_versions":["3.4","4.0"], "az_status": { "az1": "normal", "az2": "normal", "az3": "normal" } }, { "engine_name": "DDS-Community", "type": "config", "vcpus": "2", "ram": "4", "spec_code": "dds.mongodb.c6.large.2.config", "engine_versions":["3.4","4.0"], "az_status": { "az1": "normal", "az2": "normal", "az3": "normal" } }, { "engine_name": "DDS-Community", "type": "replica", "vcpus": "1", "ram": "4", "spec_code": "dds.mongodb.c6.medium.4.repset", "engine_versions":["3.4","4.0"], "az_status": { "az1": "normal", "az2": "normal", "az3": "normal" } } ] }
SDK
Click Document Database Service DDS SDK to download the SDK or view the SDK document. To learn how to install and authenticate an SDK, read the Usage section.
Status Code
For more information, see Status Code.
Error Code
For more information, see Error Code.
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