Call the SwitchDBPrecheckBlueGreen interface to initiate a pre-check for blue-green deployment switching.
Synchronous request.
Name | Type | Required | Example | Description |
|---|---|---|---|---|
InstanceId | String | Yes | mysql-f83edc2e**** | The ID of the blue instance in blue-green deployment. |
Recheck | Boolean | No | false | Whether to initiate the pre-check again. Value:
tip This parameter has no default value. |
Endpoints | Object[] | No | Please refer to the request example. | Connection information of the instance. |
OriginEndpointId | String | Yes | mysql-f83edc2e****-cluster | The connection terminal ID of the blue instance. |
TargetEndpointId | String | Yes | mysql-06c7db72****-cluster | The connection terminal ID of the green instance. |
Name | Type | Example | Description |
|---|---|---|---|
EventId | String | 20250724171204259F91326A6ACD0B****-5176f4 | Event ID. |
POST /?Action=SwitchDBPrecheckBlueGreen&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds-mysql.cn-beijing.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId": "mysql-f83edc2e****", "Recheck": false }
{ "ResponseMetadata": { "RequestId": "202507241749444958F4F8739B10011CCC-32eedc", "Action": "SwitchDBPrecheckBlueGreen", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-guangzhou" }, "Result": { "EventId": "20250724171204259F91326A6ACD0B****-5176f4" } }
For more details, refer to Error codes.