restart_db_instance
Restart an Alibaba Cloud RDS instance with options for immediate, scheduled, or maintenance window restarts. Specify region, instance ID, and timing parameters for precise control.
Instructions
Restart an RDS instance.
Args:
region_id (str): The region ID of the RDS instance.
dbinstance_id (str): The ID of the RDS instance.
effective_time (str, optional): When to restart the instance. Options:
- Immediate: Restart immediately
- MaintainTime: Restart during maintenance window
- ScheduleTime: Restart at specified time
Default: Immediate
switch_time (str, optional): The scheduled restart time in format: yyyy-MM-ddTHH:mm:ssZ (UTC time).
Required when effective_time is ScheduleTime.
client_token (str, optional): Idempotency token, max 64 ASCII characters.
Returns:
Dict[str, Any]: Response containing the request ID.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
client_token | No | ||
dbinstance_id | Yes | ||
effective_time | No | Immediate | |
region_id | Yes | ||
switch_time | No |
Input Schema (JSON Schema)
{
"properties": {
"client_token": {
"default": null,
"title": "Client Token",
"type": "string"
},
"dbinstance_id": {
"title": "Dbinstance Id",
"type": "string"
},
"effective_time": {
"default": "Immediate",
"title": "Effective Time",
"type": "string"
},
"region_id": {
"title": "Region Id",
"type": "string"
},
"switch_time": {
"default": null,
"title": "Switch Time",
"type": "string"
}
},
"required": [
"region_id",
"dbinstance_id"
],
"title": "restart_db_instanceArguments",
"type": "object"
}