Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
18 KiB
Querying Changeable Specifications
Function
This API is used to query instance specifications that can be changed.
Constraints
This API can be used for GeminiDB Cassandra instances.
URI
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/available-flavors
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. |
instance_id |
Yes |
String |
Instance ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
offset |
No |
Integer |
Index offset.
|
limit |
No |
Integer |
Maximum records to be queried.
|
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
instance_id |
String |
Instance ID. |
instance_name |
String |
Instance name. |
current_flavor |
ComputeFlavor object |
Instance specifications. |
optional_flavors |
OptionalFlavorsInfo object |
Available specification options that the instance specifications can be changed to. |
Parameter |
Type |
Description |
|---|---|---|
vcpus |
String |
Number of vCPUs. |
ram |
String |
Memory size in GB. |
spec_code |
String |
Specification code. |
az_status |
Map<String,String> |
AZ status. |
region_status |
String |
Region status. |
Parameter |
Type |
Description |
|---|---|---|
list |
Array of ComputeFlavor object |
Available specification options that the instance specifications can be changed to. |
total_count |
Integer |
Total number of records. |
Example Request
Example Response
Status code: 200
{
"instance_id" : "094424666ef04f79a2dfbe9f5b8b31a5in06",
"instance_name" : "geminidb_instance_noreuse_0_ZKv2FSkxgoc3F8bGzsaxNg",
"current_flavor" : {
"vcpus" : "4",
"ram" : "16",
"spec_code" : "geminidb.cassandra.xlarge.4",
"az_status" : {
"az2***" : "unknown",
"az1***" : "normal",
"az3***" : "unknown"
},
"region_status" : null
},
"optional_flavors" : {
"list" : [ {
"vcpus" : "2",
"ram" : "8",
"spec_code" : "geminidb.cassandra.large.4",
"az_status" : {
"az2***" : "unknown",
"az1***" : "normal",
"az4***" : "normal",
"az3***" : "unknown"
},
"region_status" : "normal"
}, {
"vcpus" : "8",
"ram" : "32",
"spec_code" : "geminidb.cassandra.2xlarge.4",
"az_status" : {
"az2***" : "unknown",
"az1***" : "normal",
"az3***" : "unknown"
},
"region_status" : "normal"
}, {
"vcpus" : "16",
"ram" : "64",
"spec_code" : "geminidb.cassandra.4xlarge.4",
"az_status" : {
"az2***" : "unknown",
"az1***" : "normal",
"az3***" : "unknown"
},
"region_status" : "normal"
}, {
"vcpus" : "32",
"ram" : "128",
"spec_code" : "geminidb.cassandra.8xlarge.4",
"az_status" : {
"az2***" : "unknown",
"az1***" : "normal",
"az3***" : "unknown"
},
"region_status" : "normal"
} ],
"total_count": 4
}
}
Status Codes
See Status Codes.
Error Codes
See Error Codes.