Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
34 KiB
Querying the Supported Node Types
Function
This API is used to query the node types supported by GaussDB(DWS).
URI
GET /v2/{project_id}/node-types
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
|---|---|---|
node_types |
Array of NodeTypes objects |
List of node type objects |
count |
Integer |
Total number of node types. |
Parameter |
Type |
Description |
|---|---|---|
spec_name |
String |
Name of a node type |
detail |
Array of Detail objects |
Node type details |
id |
String |
Node type ID |
datastore_type |
String |
Product type |
available_zones |
Array of NodeTypeAvailableZones objects |
Supported AZs and their statuses |
ram |
Integer |
Memory size |
vcpus |
Integer |
Number of CPUs |
datastores |
Array of NodeTypeDatastores objects |
Kernel version information |
volume |
VolumeResp object |
For a fixed storage flavor, the value is the storage of its typical configuration. For an elastic storage flavor, the value null. |
elastic_volume_specs |
Array of NodeTypeElasticVolumeSpecs objects |
If the specification is elastic, this attribute indicates the typical specification, including the storage type, minimum capacity, maximum capacity, and step. If the specification is fixed, this attribute is null. |
Parameter |
Type |
Description |
|---|---|---|
type |
String |
Attribute type |
value |
String |
Attribute value |
unit |
String |
Attribute unit |
Parameter |
Type |
Description |
|---|---|---|
code |
String |
AZ ID |
status |
String |
Availability status of a node type. |
Parameter |
Type |
Description |
|---|---|---|
version |
String |
OS kernel version |
attachments |
Attachments object |
Additional information about the kernel version |
Parameter |
Type |
Description |
|---|---|---|
min_cn |
String |
Minimum CNs allowed by the kernel version |
max_cn |
String |
Maximum CNs allowed by the kernel version |
Example Request
GET https://{Endpoint}/v2/89cd04f168b84af6be287f71730fdb4b/node-types
Response Example
{
"node_types" : [ {
"spec_name" : "dws.d2.xlarge",
"id" : "ebe532d6-665f-40e6-a4d4-3c51545b6a67",
"datastore_type" : "dws",
"available_zones" : [ {
"code" : "az1",
"status" : "normal"
} ],
"ram" : 32,
"vcpus" : 4,
"datastores" : [ {
"version" : "8.1.3.200",
"attachments" : {
"min_cn" : 2,
"max_cn" : 20
}
} ],
"volume" : {
"type" : "SSD",
"size" : 160
},
"elastic_volume_specs" : [ {
"type" : "SSD",
"step" : 100,
"min_size" : 100,
"max_size" : 32000
} ],
"detail" : [ {
"type" : "vCPU",
"value" : "4"
}, {
"value" : "1675",
"type" : "LOCAL_DISK",
"unit" : "GB"
}, {
"type" : "mem",
"value" : "32",
"unit" : "GB"
} ]
} ],
"count" : 1
}
Status Code
Status Code |
Description |
|---|---|
200 |
The node type is queried successfully. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
You do not have required permissions. |
404 |
No resources found. |
500 |
Internal service error. |
503 |
Service unavailable. |