调用 RestartDBInstance 接口重启实例。
异步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | mysql-e26822cf**** | 实例 ID。 |
ApplyScope | String | 否 | AllNode | 重启场景,取值:
|
CustomNodeIds | String[] | 否 | ["mysql-e26822cf****-r90ab","mysql-e26822cf****-r84eb"] | 需要重启的节点 ID,多个节点 ID 之间使用英文逗号(,)隔开。 说明
|
SwitchType | String | 否 | Immediate | 变配类型,取值:
|
null
重启整个实例
POST /?Action=RestartDBInstance&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId":"mysql-759174bd****", "ApplyScope":"AllNode" }
{ "ResponseMetadata": { "RequestId": "2023120413593055A48DA4D95A611CCBDF", "Action": "RestartDBInstance", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": null }
重启指定只读节点
POST /?Action=RestartDBInstance&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId":"mysql-759174bd****", "ApplyScope":"CustomNode", "CustomNodeIds":[ "mysql-e26822cf****-r90ab", "mysql-e26822cf****-r84eb" ] }
{ "ResponseMetadata" : { "RequestId": "2023120413593055A48DA4D95A611CCBDF", "Action": "RestartDBInstance", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": null }
在可维护时间段内重启整个实例
POST /?Action=RestartDBInstance&Version=2022-01-01 HTTP/1.1 Content-Type: application/json Host: rds.volcengineapi.com X-Date: 20211202T101010Z Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/rds_mysql/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458**** { "InstanceId":"mysql-759174bd****", "ApplyScope":"AllNode", "SwitchType":"MaintainTime" }
{ "ResponseMetadata" : { "RequestId": "2023120413593055A48DA4D95A611CCBDF", "Action": "RestartDBInstance", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": null }
更多详情,请参见错误码。