创建集群。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ClusterName |
string |
是 |
集群名称。 |
qianxi-test-0812 |
| VpcId |
string |
否 |
VPC ID。 |
vpc-aa1a18236n90rqhuhhnhh |
| VSwitches |
array<object> |
否 |
交换机信息。 |
|
|
object |
否 |
|||
| ZoneId |
string |
否 |
交换机所属的可用区 ID。 |
cn-hangzhou-j |
| VSwitchId |
string |
否 |
交换机 ID。 |
vsw-2ze745n3r2sfqtahhubpl |
| ClusterSpec |
string |
否 |
集群规格,可选规格如下:
|
scx.dev.x1 |
| EngineType |
string |
否 |
引擎类型,可选类型:xxljob。 |
xxljob |
| Tag |
array<object> |
否 |
标签列表,最多包含 20 个子项 |
|
|
object |
否 |
|||
| Value |
string |
否 |
标签值 |
|
| Key |
string |
否 |
标签键 |
|
| ChargeType |
string |
否 |
计费类型 |
POSTPAY |
| PricingCycle |
string |
否 |
定价周期 |
Year |
| Duration |
integer |
否 |
持续时间 |
3 |
| ClusterType |
integer |
否 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
JSONResult |
||
| Data |
object |
||
| OrderId |
integer |
订单 ID。 |
229317760970086 |
| ClusterId |
string |
集群 ID。 |
xxljob-b21969c2309 |
| Code |
integer |
响应码。 |
200 |
| ErrorCode |
string |
错误码。 |
INVALID_PARAMETER |
| Success |
boolean |
请求返回状态。
|
true |
| Message |
string |
错误消息。 |
Parameter error: content is null. |
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的 |
B8733786-C045-59F1-8D79-99A52863F62D |
示例
正常返回示例
JSON格式
{
"Data": {
"OrderId": 229317760970086,
"ClusterId": "xxljob-b21969c2309"
},
"Code": 200,
"ErrorCode": "INVALID_PARAMETER",
"Success": true,
"Message": "Parameter error: content is null.\n",
"RequestId": "B8733786-C045-59F1-8D79-99A52863F62D"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | Parameter error: %s. | 参数错误: %s |
| 401 | IllegalRequest | IllegalRequest: %s. | 非法请求:%s |
| 500 | InternalError | InternalError: %s. | 系统内部错误:%s |
| 403 | NoPermission | No permission to perform this operation: %s. | 没有权限去执行该操作:%s |
| 404 | NotFound | Not found: %s. | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。