CreateCluster - Criar um cluster

更新时间:
复制 MD 格式

Cria um cluster.

调试

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

调试

授权信息

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

请求参数

名称

类型

必填

描述

示例值

ClusterName

string

O nome do cluster.

VpcId

string

O ID da VPC.

VSwitches

array<object>

As informações sobre os vSwitches.

object

ZoneId

string

O ID da zona do vSwitch.

VSwitchId

string

O ID do vSwitch.

ClusterSpec

string

A especificação do cluster. Valores válidos:

  • scx.dev.x1

  • scx.small.x1

  • scx.small.x2

  • scx.medium.x1

  • scx.medium.x2.

EngineType

string

O tipo de mecanismo. Valores válidos: xxljob.

Tag

array<object>

A lista de tags. Há suporte para no máximo 20 tags.

object

Value

string

O valor da tag.

Key

string

A chave da tag.

ChargeType

string

O tipo de cobrança.

POSTPAY

PricingCycle

string

O ciclo de preços.

Year

Duration

integer

A duração.

3

ClusterType

integer

O tipo de cluster.

1

Source

string

A origem.

schedulerx

返回参数

名称

类型

描述

示例值

object

JSONResult.

Data

object

OrderId

integer

O ID do pedido.

ClusterId

string

O ID do cluster.

Code

integer

O código da resposta.

ErrorCode

string

O código de erro.

Success

boolean

O status da solicitação. Valores válidos:

  • true: a solicitação foi bem-sucedida.

  • false: a solicitação falhou.

Message

string

A mensagem de erro.

RequestId

string

O ID da solicitação. O Alibaba Cloud gera um ID exclusivo para cada solicitação. Você pode usar este ID para solução de problemas.

示例

正常返回示例

JSON格式

{
  "Data": {
    "OrderId": 0,
    "ClusterId": ""
  },
  "Code": 0,
  "ErrorCode": "",
  "Success": true,
  "Message": "",
  "RequestId": ""
}

错误码

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

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

变更历史

更多信息,参考变更详情