Creates pay-as-you-go or subscription cloud phone instance groups. An instance group can manage multiple instances. You can add instances with similar features to the same group to simplify management.
Operation description
Note that creating an instance group incurs charges. Make sure that you understand the billing rules for cloud phone instance groups before you proceed.
If the billing method for the instance group is subscription (PrePaid), the AutoPay parameter is set to false by default. After you call the API, go to Alibaba Cloud Expenses and Costs to manually pay for the order.
To enable automatic payment, set AutoPay to true.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
BizRegionId | string | Yes | The region ID. Call DescribeRegions to query the list of regions where you can purchase cloud phones. Valid values:
| cn-hangzhou |
InstanceGroupName | string | No | The name of the instance group. Note The name must be no more than 30 characters long. It must start with a letter. It cannot start with | 云手机A |
NumberOfInstances | integer | No | The number of instances in the instance group. The maximum value is 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 the `PeriodUnit` parameter. | 1 |
PeriodUnit | string | No | The unit of the subscription duration. Valid values:
| Month |
InstanceGroupSpec | string | Yes | The instance group specification. Call DescribeSpec to query the specifications available for purchase. Valid values:
| acp.basic.small |
AutoPay | boolean | No | Specifies whether to enable automatic payment. The default value is false. Valid values:
| false |
AutoRenew | boolean | No | Specifies whether to enable auto-renewal. The default value is false. Valid values:
| false |
OfficeSiteId | string | No | The network ID.
| cn-hangzhou+dir-745976**** |
VSwitchId | string | No | The vSwitch ID. Call DescribeVSwitches to query the vSwitch list.
| vsw-uf61uvzhz8ejaw776**** |
PolicyGroupId | string | No | The policy ID. Call ListPolicyGroups to query the policy list. | pg-b7bxrrwxkijjh**** |
ImageId | string | Yes | The image ID. Call DescribeImageList to query the image list for cloud phones. | imgc-06zyt9m93zwax**** |
Amount | integer | No | The number of instance groups. The default value is 1, and the maximum value is 100. | 8 |
GpuAcceleration | boolean | No | Specifies whether to enable GPU acceleration. Valid values:
| false |
KeyPairId | string | No | The key pair ID. If you specify a valid key pair ID when creating the instance group, the key pair is attached to all successfully created instances. You do not need to call another API operation to attach the key pair. Note Attaching a key pair during a scale-out operation is not supported. | kp-7o9xywwfutc1l**** |
ClientToken | string | No | A client token to ensure the idempotence of the request. This prevents you from submitting duplicate requests. The token can be up to 100 characters long. | asadbuvwiabdbvchj**** |
EnableIpv6 | boolean | No | Note This parameter is not yet available for public use. | null |
Ipv6Bandwidth | integer | No | Note This parameter is not yet available for public use. | null |
| Tag | array<object> | No | The tags of the resource. | |
object | No | The tag of the resource. | ||
Value | string | No | The tag value. | value |
Key | string | No | The tag key. | key |
| NetworkInfo | object | No | ||
BandwidthPackageName | string | No | ||
CidrBlock | string | No | ||
LimitedBandwidth | integer | No | ||
InternetChargeType | string | No | ||
IpRatio | integer | No | ||
Isp | string | No | ||
PayType | string | No | ||
Period | integer | No | ||
PeriodUnit | string | No | ||
AutoPay | boolean | No | ||
AutoRenew | boolean | No | ||
VisibleType | string | No | ||
BandwidthPackageType | string | No | ||
BandwidthPackageId | string | No | ||
NetworkType | string | No | ||
PromotionId | string | No |
Response elements
Element | Type | Description | Example |
object | The response parameters. | ||
RequestId | string | The request ID. | 1A923337-44D9-5CAD-9A53-95084BD4**** |
| InstanceGroupInfos | array<object> | Information about the instance groups. | |
object | |||
InstanceGroupId | string | The instance group ID. | ag-cuv4scs4obxch**** |
| InstanceIds | array | A list of instance IDs. | |
string | The instance ID. | acp-g40b9at5nhjo9**** | |
OrderId | string | The order ID. | 22365781890**** |
| InstanceGroupIds | array | A list of instance group IDs. | |
string | The instance group ID. | ag-cuv4scs4obxch**** | |
| NetworkPackageOrderModel | object | ||
BandwidthPackageOrderId | string | ||
BandwidthPackageId | string |
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": "",
"BandwidthPackageId": ""
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.