Changing the Storage Type of a DB Instance

Function

This API is used to change the storage type of a DB instance.

Constraints

URI

Request

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

The content type.

The default value is application/json.

X-Auth-Token

Yes

String

Specifies the user token.

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

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

change_volume

Yes

Object

Target storage type.

For details, see Table 4.

Table 4 change_volume field data structure description

Parameter

Mandatory

Type

Description

volume_code

Yes

Integer

Specification code of the target storage type.

  • Values for RDS for MySQL:
    • If the target storage type is ESSD:
      • rds.mysql.volume.essd.ha: ESSD specification code for primary/standby DB instances
      • rds.mysql.volume.essd.rr: ESSD specification code for read replicas
    • If the target storage type is cloud SSD:
      • rds.mysql.volume.cloudssd.ha: cloud SSD specification code for primary/standby DB instances
      • rds.mysql.volume.cloudssd.rr: cloud SSD specification code for read replicas
      • rds.mysql.volume.cloudssd: cloud SSD specification code for single-node DB instances
  • Values for RDS for PostgreSQL:
    • If the target storage type is ESSD:
      • rds.pg.volume.essd.ha: ESSD specification code for primary/standby DB instances
      • rds.pg.volume.essd.rr: ESSD specification code for read replicas
    • If the target storage type is cloud SSD:
      • rds.pg.volume.cloudssd.ha: cloud SSD specification code for primary/standby DB instances
      • rds.pg.volume.cloudssd.rr: cloud SSD specification code for read replicas
      • rds.pg.volume.cloudssd: cloud SSD specification code for single-node DB instances
  • Values for RDS for SQL Server:
    • If the target storage type is ESSD:
      • rds.mssql.volume.essd.ha: ESSD specification code for primary/standby DB instances
      • rds.mssql.volume.essd.rr: ESSD specification code for read replicas
      • rds.mssql.volume.essd: ESSD specification code for single-node DB instances
    • If the target storage type is cloud SSD:
      • rds.mssql.volume.cloudssd.ha: cloud SSD specification code for primary/standby DB instances
      • rds.mssql.volume.cloudssd.rr: cloud SSD specification code for read replicas
      • rds.mssql.volume.cloudssd: cloud SSD specification code for single-node DB instances

Example Request

Change the storage type of an RDS for MySQL primary/standby DB instance to ESSD.

POST https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/action

{
	"change_volume": {
		"volume_code": "rds.mysql.volume.essd.ha"
	}
}

Response

Status Code

Error Code

For details, see Error Codes.