Querying Available Instance Classes for a DB Instance

Function

This API is used to query available instance classes for a DB instance.

URI

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Specifies the user token.

The user token is a response to the API used to obtain a user token.

Example Request

Query available instance classes for a DB instance.

GET https://rds.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/d674b54d5e0241c49eeb50c82ef3efe0in03/flavors-resize

Response

Table 3 Response body parameters

Parameter

Type

Description

flavor_groups

Array of objects

List of available instance classes. For details, see Table 4.

Table 4 Data structure description of field flavor_groups

Parameter

Type

Description

group_type

String

Instance class. Its value can be any of the following:

  • general: general-purpose
  • dedicated: dedicated

compute_flavors

Array of objects

List of compute specifications. For details, see Table 5.

Table 5 Data structure description of field compute_flavors

Parameter

Type

Description

id

String

Specification ID, which is unique.

code

String

Resource specification code. Example: rds.mysql.n1.xlarge.4.rr

For more specifications, see Querying Database Specifications.

  • rds: indicates the RDS product.
  • mysql: indicates the DB engine.
  • n1.xlarge.4: indicates the high memory specifications.
  • rr: indicates read replicas (.ha indicates primary/standby DB instances).

vcpus

String

Number of vCPUs. For example, the value 1 indicates one vCPU.

ram

String

Memory size in GB.

az_status

Map<String,String>

AZ information. key indicates the AZ associated with the specification, and value indicates the specification status in the AZ. The value can be any of the following:

  • normal: The specification is normal.
  • abandon: The specification is abandoned.

Status Code

Error Code

For details, see Error Codes.