All Products
Search
Document Center

ENS:CreateARMServerInstances

Last Updated:Mar 12, 2024

Creates an ARM server.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PayTypestringYes

The billing method. Set the value to PrePaid. PrePaid specifies the subscription billing method.

Note Only PrePaid is supported.
PrePaid
EnsRegionIdstringYes

The ID of the Edge Node Service (ENS) node.

cn-guiyang-12
ServerTypestringYes

The specification of the ARM server. Valid values:

  • cas.cf53r
  • cas.cf52r
  • cas.cf52m1r
  • cas.tg52g2
  • ens.afq-c2m3i.medium
cas.cf53r
InstanceTypestringYes

The specification of the Android in Container (AIC) instance. Valid values:

  • aic.cf53r.c1.np
  • aic.cf53r.c2.np
  • aic.cf53r.c3.np
  • aic.cf53r.c4.np
  • aic.cf53r.c5.np
  • aic.cf53r.c6.np
  • aic.cf53r.c7.np
  • aic.cf53r.c8.np
  • ens.a6c2
  • aic.cf52m1r.c1.np
  • aic.cf52m1r.c2.np
  • aic.cf52m1r.c3.np
  • aic.cf52m1r.c4.np
  • aic.cf52m1r.c5.np
  • aic.cf53r.c6
  • aic.cf52m1r.c6
  • aic.cf53r.c7
  • aic.cf52r.c1.np
  • aic.cf52r.c2.np
  • aic.cf52r.c3.np
  • aic.cf52r.c4.np
aic.cf53r.c6.np
ImageIdstringYes

The ID of the image.

yourImage ID
ResolutionstringYes

The resolution. Valid values:

  • 1920*1080
  • 1080*1920
  • 1280*720
  • 720*1280
  • 2400*1080
  • 1920*864
  • 1080*2400
  • 864*1920
  • 1920*1080
  • 1080*1920
  • 1280*720
  • 720*1280
  • 2400*1080
  • 1920*864
  • 1080*2400
  • 864*1920
Enumeration Value:
  • 1920*1080
  • 1080*1920
  • 1280*720
  • 720*1280
  • 2400*1080
  • 1920*864
  • 1080*2400
  • 864*1920
720*1280
FrequencyintegerNo

The refresh rate. Unit: Hz. Valid values: 30 and 60.

30
KeyPairNamestringNo

The name of the key pair.

TestKeyPairName
AmountintegerYes

The number of instances to create. Valid values: 1 to 100.

1
PeriodintegerYes

The subscription duration of the instance.

  • If you leave PeriodUnit empty, the instance is purchased on a monthly basis. Valid values: Day and Month.
  • If you set PeriodUnit to Day, you can set Period only to 3.
  • If you set PeriodUnit to Month, you can set Period to a value within the range of [1,9], or set the value to 12.
1
PeriodUnitstringYes

The unit of the subscription duration.

  • If you leave PeriodUnit empty, the instance is purchased on a monthly basis. Valid values: Day and Month.
  • If you set PeriodUnit to Day, you can set Period only to 3.
  • If you set PeriodUnit to Month, you can set Period to a value within the range of [1,9], or set the value to 12.
Month
AutoRenewbooleanNo

Specifies whether to enable auto-renewal for the subscription. Valid values:

  • true
  • false (default)
false
NameSpacestringNo

The name of the namespace.

pre
ServerNamestringNo

The name of the service.

AIC-Server
AutoUseCouponbooleanNo

Specifies whether to use coupons. Valid values: true and false Default value: true.

true

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The ID of the request.

CEF72CEB-54B6-4AE8-B225-F876FF7BA984
OrderIdstring

The ID of the order.

212630314490***
InstanceIdsarray

The IDs of instances.

string

The ID of the instance.

cas-instance****

Examples

Sample success responses

JSONformat

{
  "RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
  "OrderId": "212630314490***",
  "InstanceIds": [
    "cas-instance****"
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400CallInterfaceCall Interface Happen Error.An error occurred when you call the operation.
400ens.interface.errorFailed to call API.-
400NoPermissionPermission denied.-
400InvalidParameter.%sThe specified field %s invalid. Please check it again.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-14The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: AutoUseCoupon
2023-10-11The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-08-21The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-08-17The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-06-26The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
2023-06-08The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: ServerName
2023-03-28The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: NameSpace