CreateAndroidInstanceGroup

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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-shenzhen :

    Shenzhen.

  • cn-beijing :

    Beijing.

  • cn-shanghai :

    Shanghai.

  • cn-hongkong :

    China (Hong Kong)

  • ap-southeast-1 :

    Singapore.

  • cn-hangzhou :

    Hangzhou.

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 http:// or https://. It can contain only Chinese characters, letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).

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 :

    Pay-as-you-go.

  • PrePaid :

    Subscription.

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 :

    Month.

  • Year :

    Year.

  • Hour :

    Hour. Valid only for the pay-as-you-go billing method.

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.perf.large :

    Performance (8 vCPUs, 16 GiB memory, 32 GiB storage)

  • acp.basic.small :

    Lightweight (2 vCPUs, 4 GiB memory, 32 GiB storage)

  • acp.std.large :

    Standard (4 vCPUs, 8 GiB memory, 32 GiB storage)

acp.basic.small

AutoPay

boolean

No

Specifies whether to enable automatic payment. Default value: false.

Valid values:

  • true :

    Automatic payment. Make sure that your account has sufficient balance.

  • false :

    Manual payment.

false

AutoRenew

boolean

No

Specifies whether to enable auto-renewal. Default value: false.

Valid values:

  • true :

    Enables auto-renewal after the upfront resource expires.

  • false :

    Manual renewal is required after the subscription resource expires.

false

OfficeSiteId

string

No

The network ID.

  • To create a shared network instance: The network ID is optional. Enter the network ID of the Shared Network type on the Cloud Phone Console > Network page. If no shared network is available in the console, you can leave this parameter empty, and automatic creation of a shared network is triggered when the instance group is created.

  • To create a VPC network instance: The network ID is required. Enter the network ID of the VPC Network type on the Cloud Phone Console > Network page. If no VPC network is available in the console, you must create a network first.

cn-hangzhou+dir-745976****

VSwitchId

string

No

The vSwitch ID. You can call the DescribeVSwitches operation to query the vSwitch list.

  • To create a shared network instance: Leave this parameter empty.

  • To create a VPC network instance: The vSwitch ID is required. This vSwitch is used to create the instance.

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:

  • true :

    Enabled.

  • false :

    Disabled [Default value]

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 (default): pay-by-bandwidth.

  • PayBy95: pay-by-traditional-95th-percentile. By default, IPv6 Internet bandwidth does not support the pay-by-traditional-95th-percentile billing method. To use this billing method, contact your account manager.

-

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.