modify_db_instance_spec
Modify RDS instance specifications such as class, storage, and pay type to scale resources or change configuration.
Instructions
Modify RDS instance specifications.
Args:
region_id: The region ID of the RDS instance.
dbinstance_id: The ID of the RDS instance.
dbinstance_class: Target instance specification.
dbinstance_storage: Target storage space in GB.
pay_type: Instance payment type. Values: Postpaid, Prepaid, Serverless.
effective_time: When the new configuration takes effect. Values: Immediate, MaintainTime, ScheduleTime.
switch_time: Scheduled switch time in format: yyyy-MM-ddTHH:mm:ssZ (UTC time).
switch_time_mode: Switch time mode. Values: Immediate, MaintainTime, ScheduleTime.
source_biz: Source business type.
dedicated_host_group_id: Dedicated host group ID.
zone_id: Zone ID.
vswitch_id: VSwitch ID.
category: Instance category.
instance_network_type: Instance network type.
direction: Specification change direction. Values: UP, DOWN.
auto_pause: Whether to enable auto pause for Serverless instances.
max_capacity: Maximum capacity for Serverless instances.
min_capacity: Minimum capacity for Serverless instances.
switch_force: Whether to force switch for Serverless instances.
client_token: Client token for idempotency, max 64 ASCII characters.
Returns:
Dict[str, Any]: The response containing the request ID.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region_id | Yes | ||
| dbinstance_id | Yes | ||
| dbinstance_class | No | ||
| dbinstance_storage | No | ||
| pay_type | No | ||
| effective_time | No | ||
| switch_time | No | ||
| switch_time_mode | No | ||
| source_biz | No | ||
| dedicated_host_group_id | No | ||
| zone_id | No | ||
| vswitch_id | No | ||
| category | No | ||
| instance_network_type | No | ||
| direction | No | ||
| auto_pause | No | ||
| max_capacity | No | ||
| min_capacity | No | ||
| switch_force | No | ||
| client_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |