Creates an ARM server.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ens:CreateARMServerInstances | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PayType | string | Yes | The billing method. Set the value to PrePaid. PrePaid specifies the subscription billing method. Note
Only PrePaid is supported.
| PrePaid |
EnsRegionId | string | Yes | The ID of the Edge Node Service (ENS) node. | cn-guiyang-12 |
ServerType | string | Yes | The specification of the ARM server. Examples:
| cas.cf53r |
InstanceType | string | Yes | The specification of the Android in Container (AIC) instance. Examples:
| aic.cf53r.c6.np |
ImageId | string | Yes | The ID of the image. | yourImage ID |
Resolution | string | Yes | The resolution. Examples:
Enumeration Value:
| 720*1280 |
Frequency | integer | No | The refresh rate. Unit: Hz. Valid values: 30 and 60. | 30 |
KeyPairName | string | No | The name of the key pair. | TestKeyPairName |
Amount | integer | Yes | The number of instances to create. Valid values: 1 to 100. | 1 |
Period | integer | Yes | The subscription duration of the instance.
| 1 |
PeriodUnit | string | Yes | The unit of the subscription duration.
| Month |
AutoRenew | boolean | No | Specifies whether to enable auto-renewal for the subscription. Valid values:
| false |
NameSpace | string | No | The namespace. | pre |
ServerName | string | No | The name of the service. | AIC-Server |
AutoUseCoupon | boolean | No | Specifies whether to use coupons. Valid values:
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"OrderId": "212630314490***",
"InstanceIds": [
"cas-instance****"
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | CallInterface | Call Interface Happen Error. | An error occurred when you call the operation. |
400 | ens.interface.error | Failed to call API. | - |
400 | EnsNodeStockIsNotEnough | Insufficient inventory of purchased resources. | Insufficient inventory of purchased resources |
400 | InvalidParameterEnsRegionId | The entered node information is invalid. Please enter the correct node information. | The entered node information is invalid. Please enter the correct node information. |
400 | InvalidImageIdNotFound | The image information entered is invalid. Please re-enter valid image information. | The image information entered is invalid. Please re-enter valid image information. |
400 | NoPermission | Permission denied. | - |
400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-06-13 | The Error code has changed | View Change Details |
2024-05-22 | The Error code has changed | View Change Details |
2023-11-14 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-10-11 | The Error code has changed | View Change Details |
2023-08-21 | The Error code has changed | View Change Details |
2023-08-17 | The Error code has changed | View Change Details |
2023-06-26 | The Error code has changed | View Change Details |
2023-06-08 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-03-28 | The Error code has changed. The request parameters of the API has changed | View Change Details |