CreateCluster - Criar um cluster
Cria um cluster.
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| 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:
|
|
| 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:
|
|
| 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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。