Creates an Agent compute group.
Try it now
Test
RAM authorization
Request syntax
POST /webapi/lifecycle/createAgentNodeGroup HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PayType |
string |
Yes |
Payment type:
|
prePay |
| Duration |
integer |
No |
Duration. This parameter is valid only when payType is set to PrePaid. |
2 |
| PricingCycle |
string |
No |
Unit of subscription duration:
|
Month |
| AutoRenew |
boolean |
No |
Enable auto-renewal. This parameter is valid only when payType is set to PrePaid. Auto-renewal is disabled by default. |
True |
| SpecType |
string |
No |
Compute group specification type. |
standard |
| Cu |
integer |
Yes |
Number of CUs. A CU (Compute Unit) is the basic unit of service measurement. 1 CU = 1 CPU core + 4 GiB memory. For memory-enhanced instance family, 1 CU = 1 CPU core + 8 GiB memory. |
2 |
| InstanceId |
string |
Yes |
Instance ID. |
c-b25e21e24388**** |
| PromotionOptionNo |
string |
No |
Coupon ID. |
2345 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
HTTP request status code. |
200 |
| RequestId |
string |
Request ID. |
B67D142D-D54E-184F-A306-22BDC01B2XXX |
| Success |
boolean |
Indicates whether the request was successful. |
True |
| ErrCode |
string |
Error code. |
InvalidParams |
| ErrMessage |
string |
Error message. |
Invalid params: [instance not exists]. |
| Data |
object |
Returned data. |
|
| OrderId |
integer |
Order ID. |
241526000650XXX |
| NodeGroupId |
string |
Compute group ID. |
ng-5e2ba600fee3**** |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "B67D142D-D54E-184F-A306-22BDC01B2XXX",
"Success": true,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].",
"Data": {
"OrderId": 0,
"NodeGroupId": "ng-5e2ba600fee3****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.