All Products
Search
Document Center

ENS:CreateARMServerInstances

Last Updated:Jul 26, 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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ens:CreateARMServerInstancescreate
  • All Resources
    *
    none
none

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. Examples:

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

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

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

The ID of the image.

yourImage ID
ResolutionstringYes

The resolution. Examples:

  • 1920*864
  • 1080*1920
  • 1920*1080
  • 720*1280
  • 2400*1080
  • 1080*2400
  • 1280*720
  • 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 namespace.

pre
ServerNamestringNo

The name of the service.

AIC-Server
AutoUseCouponbooleanNo

Specifies whether to use coupons. Valid values:

  • true
  • false (default)
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.-
400EnsNodeStockIsNotEnoughInsufficient inventory of purchased resources.Insufficient inventory of purchased resources
400InvalidParameterEnsRegionIdThe entered node information is invalid. Please enter the correct node information.The entered node information is invalid. Please enter the correct node information.
400InvalidImageIdNotFoundThe image information entered is invalid. Please re-enter valid image information.The image information entered is invalid. Please re-enter valid image information.
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
2024-06-13The Error code has changedView Change Details
2024-05-22The Error code has changedView Change Details
2023-11-14The Error code has changed. The request parameters of the API has changedView Change Details
2023-10-11The Error code has changedView Change Details
2023-08-21The Error code has changedView Change Details
2023-08-17The Error code has changedView Change Details
2023-06-26The Error code has changedView Change Details
2023-06-08The Error code has changed. The request parameters of the API has changedView Change Details
2023-03-28The Error code has changed. The request parameters of the API has changedView Change Details