CreateAgentResource - 创建Agent计算组

更新时间:
复制为 MD 格式

创建Agent计算组

调试

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

调试

授权信息

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

请求语法

POST /webapi/lifecycle/createAgentNodeGroup HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

PayType

string

付费类型:

  1. 包年包月(prePaid)。

  2. 按量付费(postPaid)。

prePay

Duration

integer

购买时长。仅在 payType 为 PrePaid 时有意义。

2

PricingCycle

string

购买时长单位:

  • 月(Month)

  • 年(Year)

仅在 payType 为 PrePaid 时有意义。

Month

AutoRenew

boolean

是否开启自动续费,仅在 payType 为 PrePaid 时有意义。默认不开启。

True

SpecType

string

计算组规格类型。

standard

Cu

integer

CU 数量。CU (Compute Unit) 是服务的基本计量单元,1 CU=1 核 CPU+4GiB 内存,仅在 SpecType 为内存增强型时 1 CU=1 核 CPU+8GiB 内存。

2

InstanceId

string

实例 ID。

c-b25e21e24388****

PromotionOptionNo

string

优惠券 ID。

2345

返回参数

名称

类型

描述

示例值

object

HttpStatusCode

integer

HTTP 请求状态码。

200

RequestId

string

请求 ID。

B67D142D-D54E-184F-A306-22BDC01B2XXX

Success

boolean

请求是否成功。

True

ErrCode

string

错误码。

InvalidParams

ErrMessage

string

错误信息。

Invalid params: [instance not exists].

Data

object

返回数据。

OrderId

integer

订单 ID。

241526000650XXX

NodeGroupId

string

计算组 ID。

ng-5e2ba600fee3****

示例

正常返回示例

JSON格式

{
  "HttpStatusCode": 200,
  "RequestId": "B67D142D-D54E-184F-A306-22BDC01B2XXX",
  "Success": true,
  "ErrCode": "InvalidParams",
  "ErrMessage": "Invalid params: [instance not exists].",
  "Data": {
    "OrderId": 0,
    "NodeGroupId": "ng-5e2ba600fee3****"
  }
}

错误码

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

变更历史

更多信息,参考变更详情