CreateCluster - 创建集群

更新时间:
复制为 MD 格式

创建集群。

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

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。

  • scx.small.x1。

  • scx.small.x2。

  • scx.medium.x1。

  • scx.medium.x2。

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:成功。

  • false:失败。

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

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

变更历史

更多信息,参考变更详情