CreateAndroidInstanceGroup
Creates a pay-as-you-go or subscription cloud phone instance group. An instance group can manage multiple instances. Instances with the same functional roles can be grouped into the same instance group for unified management.
Operation description
Before creating a cloud phone instance group, you must complete real-name verification. For more information, see Individual real-name verification.
When creating a cloud phone instance group, note that resource billing is involved. We recommend that you understand the Billable methods of cloud phone instance groups in advance.
-
If the billing method of the instance group is subscription (PrePaid), the default value of AutoPay (automatic payment) is false. After you invoke the API operation, you must go to Expenses and Costs to manually pay the order.
-
If you want to enable automatic payment, change the Settings of AutoPay to true.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BizRegionId |
string |
Yes |
The region ID. You can call the DescribeRegions operation to query the list of regions where cloud phones are available. Valid values:
|
cn-hangzhou |
| InstanceGroupName |
string |
No |
The name of the instance group. Note
The name can be up to 30 characters in length. It must start with a letter or a Chinese character, and cannot start with |
Cloud Phone A |
| NumberOfInstances |
integer |
No |
The number of instances in the instance group. Maximum value: 100. |
1 |
| ChargeType |
string |
No |
The billing method. Valid values:
|
PostPaid |
| Period |
integer |
No |
The subscription duration of the resource. The unit is specified by PeriodUnit. |
1 |
| PeriodUnit |
string |
No |
The unit of the subscription duration. Valid values:
|
Month |
| InstanceGroupSpec |
string |
Yes |
The specifications of the instance group. You can call the DescribeSpec operation to query the available specifications for cloud phones. Valid values:
|
acp.basic.small |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Default value: false. Valid values:
|
false |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Default value: false. Valid values:
|
false |
| OfficeSiteId |
string |
No |
The network ID.
|
cn-hangzhou+dir-745976**** |
| VSwitchId |
string |
No |
The vSwitch ID. You can call the DescribeVSwitches operation to query the vSwitch list.
|
vsw-uf61uvzhz8ejaw776**** |
| PolicyGroupId |
string |
No |
The policy ID. You can call the ListPolicyGroups operation to query the policy list. |
pg-b7bxrrwxkijjh**** |
| ImageId |
string |
Yes |
The image ID. You can call the DescribeImageList operation to query the image list for cloud phones. |
imgc-06zyt9m93zwax**** |
| Amount |
integer |
No |
The number of instance groups. Default value: 1. Maximum value: 100. |
8 |
| GpuAcceleration |
boolean |
No |
Specifies whether to enable GPU acceleration. Valid values:
|
false |
| KeyPairId |
string |
No |
The key pair ID. When creating an instance group, if you specify a valid key pair ID, the key pair is bound to all successfully created instances, and you do not need to call the binding API operation again. Note
Binding key pairs during scale-out is not supported. |
kp-7o9xywwfutc1l**** |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request and prevent duplicate requests. The token can be up to 100 characters in length. |
asadbuvwiabdbvchj**** |
| EnableIpv6 |
boolean |
No |
Note
This parameter is not available to the public. |
null |
| Ipv6Bandwidth |
integer |
No |
Note
This parameter is not available to the public. |
null |
| Tag |
array<object> |
No |
The tags of the resource. |
|
|
object |
No |
The tags of the resource. |
||
| Value |
string |
No |
The tag value. |
value |
| Key |
string |
No |
The tag key. |
key |
| NetworkInfo |
object |
No |
The network and bandwidth plan configurations of the instance group. |
|
| BandwidthPackageName |
string |
No |
The name of the bandwidth plan. |
inst-bandwidth-pkg-1 |
| CidrBlock |
string |
No |
The private CIDR block. |
10.10.13.0/24 |
| LimitedBandwidth |
integer |
No |
The peak bandwidth limit of the bandwidth plan, in Mbit/s. The total bandwidth of all instances using this bandwidth plan is subject to this limit. |
200 |
| InternetChargeType |
string |
No |
The Billable methods of the bandwidth plan. Valid values:
|
PayByBandwidth |
| IpRatio |
integer |
No |
The ratio of IP addresses to instances. |
128 |
| Isp |
string |
No |
The line type. |
ChinaTelecom |
| PayType |
string |
No |
The billing method. |
PostPaid |
| Period |
integer |
No |
The subscription duration of the resource. The unit is specified by PeriodUnit. |
1 |
| PeriodUnit |
string |
No |
The unit of the subscription duration. |
Month |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Default value: false. |
|
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Default value: false. |
|
| VisibleType |
string |
No |
The visibility scope. |
CPS |
| PromotionId |
string |
No |
The promotion activity ID. |
50003308011**** |
| PaidCallbackUrl |
string |
No |
The redirect URL for the payment success page. |
https://aim.wuying.aliyun.com/nodes |
| BandwidthPackageType |
string |
No |
The bandwidth type. |
cbwp_ecd |
| BandwidthPackageId |
string |
No |
The bandwidth plan ID. |
np-791ncq8qcuoop9hta |
| NetworkType |
string |
No |
The network type of the instance. |
network_pro_ecd |
| PromotionId |
string |
No |
The promotion activity ID. |
50003308011**** |
| StreamMode |
integer |
No |
The streaming mode of the instances in the instance group. If this parameter is not specified, the default mode is preemptive mode. |
1 |
| PaidCallBackUrl |
string |
No |
The redirect URL for the payment success page. |
wya.wuying.aliyun.com/instanceGroup |
| SaleMode |
string |
No |
The sales mode. |
Instance |
| InstanceVersion |
string |
No |
The instance version. A value of basic indicates a Wuying cloud phone instance, and a value of EnterpriseAi indicates a JVS Mobile instance. |
EnterpriseAi |
| ChannelCookie |
string |
No |
The channel cookie, which is passed through to the sales system when an order is placed. |
channel-cookie-ig |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response elements. |
||
| RequestId |
string |
The request ID. |
1A923337-44D9-5CAD-9A53-95084BD4**** |
| InstanceGroupInfos |
array<object> |
The instance group information. |
|
|
object |
|||
| InstanceGroupId |
string |
The instance group ID. |
ag-cuv4scs4obxch**** |
| InstanceIds |
array |
The list of instance IDs. |
|
|
string |
The instance ID. |
acp-g40b9at5nhjo9**** |
|
| OrderId |
string |
The order ID. |
22365781890**** |
| InstanceGroupIds |
array |
The list of instance group IDs. |
|
|
string |
The instance group ID. |
ag-cuv4scs4obxch**** |
|
| NetworkPackageOrderModel |
object |
The bandwidth plan order information. |
|
| BandwidthPackageOrderId |
string |
The bandwidth plan order ID. |
25954415983***** |
| BandwidthPackageId |
string |
The ID of the Internet Shared Bandwidth. |
cbwp-uf63gsv8j0ir53***** |
Examples
Success response
JSON format
{
"RequestId": "1A923337-44D9-5CAD-9A53-95084BD4****",
"InstanceGroupInfos": [
{
"InstanceGroupId": "ag-cuv4scs4obxch****",
"InstanceIds": [
"acp-g40b9at5nhjo9****"
]
}
],
"OrderId": "22365781890****",
"InstanceGroupIds": [
"ag-cuv4scs4obxch****"
],
"NetworkPackageOrderModel": {
"BandwidthPackageOrderId": "25954415983*****",
"BandwidthPackageId": "cbwp-uf63gsv8j0ir53*****"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.