调用 CreateDBNodes 接口为实例增加节点。
异步请求。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
InstanceId | String | 是 | mysql-db6d920e**** | 实例 ID。 |
NodeInfo | Object[] | 是 | 请参见请求示例。 | 新增节点的规格信息。 |
SwitchType | String | 否 | MaintainTime | 执行时间,取值:
说明 取值为 |
RequestSource | String | 否 | EventType_Web | 请求来源。取值:
|
EstimateOnly | Boolean | 否 | true | 是否发起变配评估。取值:
说明 如果发起,则按照其他字段确定的规格配置进行变配评估,实际不会执行变配动作。发起变配评估后,会返回 EstimationResult 参数,说明此次变配的影响。 |
SpecifiedSwitchStartTime | String | 否 | 2024-12-25T14:00:00Z | 指定时间段执行时时间段的起始时间。时间格式为 说明 SwitchType 取值为 |
SpecifiedSwitchEndTime | String | 否 | 2024-12-25T15:59:00Z | 指定时间段执行时时间段的结束时间。时间格式为 说明
|
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
InstanceId | String | mysql-db6d920e**** | 实例 ID。 |
OrderId | String | Order71220115095297**** | 订单 ID。 说明 当 EstimateOnly 取值为 |
EstimationResult | Object | 请参见返回示例。 | 按照当前配置变更后,预估会对实例产生的影响。 说明 当 EstimateOnly 取值为 |
变配评估
POST /?Action=CreateDBNodes&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-c9b0dce8****", "NodeInfo": [ { "ZoneId": "cn-beijing-a", "NodeType": "ReadOnly", "NodeSpec": "rds.mysql.d1.n.1c1g", "NodeOperateType": "Create" } ], "SwitchType": "MaintainTime", "EstimateOnly": true }
{ "ResponseMetadata": { "RequestId": "20241120201405E398C2CBD2AFD6D9A8EA-dab6a7", "Action": "CreateDBNodes", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": { "EstimationResult": { "Effects": [ "ReadWriteConnectionTransientError", "ReadOnlyConnectionTransientError" ], "Plans": [ "RebuildPrimary", "RebuildSecondary", "RebuildReadOnly", "AddNode" ] }, "InstanceId": "mysql-c9b0dce8****", "OrderId": "" } }
实际变配
POST /?Action=CreateDBNodes&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-c9b0dce8****", "NodeInfo": [ { "ZoneId": "cn-beijing-a", "NodeType": "ReadOnly", "NodeSpec": "rds.mysql.d1.n.1c1g", "NodeOperateType": "Create" } ], "SwitchType": "MaintainTime" }
{ "ResponseMetadata": { "RequestId": "20241120201600BCFB7275D58F58DD33AB-54e3f1", "Action": "CreateDBNodes", "Version": "2022-01-01", "Service": "rds_mysql", "Region": "cn-beijing" }, "Result": { "InstanceId": "mysql-c9b0dce8****", "OrderId": "Order2180000011027128674" } }
更多详情,请参见错误码。