CreateDBNodes - 创建节点

新增集群版节点。

接口说明

背景信息

仅支持RDS MySQL集群版实例。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
ClientTokenstring

该参数用于保证请求的幂等性,防止重复提交请求。参数值由客户端生成,保证在不同请求间唯一。

该参数值由ASCII字符组成,最长不超过64个字符,不能包含非ASCII字符。

ETnLKlblzczshOTUbOCz****
DBInstanceIdstring

实例ID。可调用DescribeDBInstances查询。

rm-2ze450g4ctg6t****
DBNodearray

集群节点列表。

object

集群节点详情。

classCodestring

节点规格信息。

mysql.n2.medium.xc
zoneIdstring

节点所在的可用区ID。

cn-zhangjiakou-a

返回参数

名称类型描述示例值
object

返回信息。

RequestIdstring

请求ID。

7A41C147-C8D0-4DAE-A1A2-17EBCD60DFA1
DBInstanceIdstring

实例ID。

rm-2ze450g4ctg6t****
OrderIdlong

订单ID。

2133400000*****
NodeIdsstring

创建的节点ID。取值类型为String,多个节点以,分隔。

rn-abcd2*****

示例

正常返回示例

JSON格式

{
  "RequestId": "7A41C147-C8D0-4DAE-A1A2-17EBCD60DFA1",
  "DBInstanceId": "rm-2ze450g4ctg6t****",
  "OrderId": 0,
  "NodeIds": "rn-abcd2*****"
}

错误码

HTTP status code错误码错误信息描述
400DBNodeFormatFaultThe specified parameter DBNode is malformeddbNode格式不正确
400DBNodeParameterRequiredThe specified parameter DBNode is required.缺少dbNode参数
400DBNodeParameterTooManyItemsThe specified parameter DBNode has too many items.新增dbNode节点数过多
400DBNodeParameter.InvalidClassCodeThe ClassCode of the item of the specified parameter DBNode is inconsistent.参数DBNode中的ClassCode配置不一致。
403GroupReplicationNotSupport.InvalidEngineVersionGroup Replication requires the instance engine version to be 8.0.实例数据库版本不是MySQL 8.0,不支持组复制。
403GroupReplicationNotSupport.InvalidNodeClassCodeGroup Replication requires the ClassCode of each node to be consistent.实例各节点间规格不一致,不支持组复制。
403GroupReplicationNotSupport.InvalidNodeNumGroup Replication is not supported, the number of nodes must be an odd number greater than or equal to 3.实例节点个数不是大于等于3的单数,不支持组复制。
403GroupReplicationNotSupport.InvalidXengineGroup Replication is not supported because the instance has xengine tables.实例存在xengine引擎表,不支持组复制。
403GroupReplicationNotSupport.MemoryTooSmallGroup Replication is not supported because the memory is too small.实例规格内存太小,不支持组复制。

访问错误中心查看更多错误码。

阿里云首页 关系型数据库 相关技术圈