All Products
Search
Document Center

ENS:CreateARMServerInstances

Last Updated:Nov 27, 2024

Creates an ARM server.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.

InstanceIdsstring

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.
400OrderFailedOrder failed, please try again.Order failed, please try again
400SystemUseCouponFailedFailed to use coupon.Failed to use coupon
400SystemUseStoredCardFailedFailed to use stored value card.Failed to use stored value card
400System.SystemErrorsystem error.system error.
400SystemCanRefundCheckFailedThe business rule check of the cloud product fails, and this order cannot be refunded.The business rule check of the cloud product fails, and this order cannot be refunded.
400SystemOtsSystemots storage error.ots storage error.
400SystemQueryImmortalErrorFailed to call Juxiange.Failed to call Juxiange.
400SystemQueryInstanceInfoFailedFailed to find instance information.Failed to find instance information
400SystemResellerPayCalRefundUnitErrorEcological payment channel calculation unsubscribe information error.Ecological payment channel calculation unsubscribe information error.
400SystemSaleValidateFailedSales Expression Validation System Error.Sales Expression Validation System Error
400SystemTransferDeleteOldResourceFailedFailed to delete the transferred instance in the transfer order.Failed to delete the transferred instance in the transfer order.
400SystemUnSupportOperationTypeUnsupported operation type.Unsupported operation type.
400RiskRiskControlRejectionRisk Control Rejection.Risk Control Rejection.
400AuthRamAuthFailedram sub-account authentication failed.RAM sub-account authentication failed.
400CommodityInvalidComponentThe module you purchased is illegal, please re-select.The module you purchased is illegal, please re-select.
400CommodityInvalidItemCodeSpecification code illegal.Specification code illegal.
400PriceHsfTimeoutErrorTime out when calling the request for quotation interface.Time out when calling the request for quotation interface.
400PricePatingConfigErrorInquiry related goods configuration error.Inquiry related goods configuration error.
400PricePricingPlanResultNotFoundPricing plan price result not found.Pricing plan price result not found.
400PriceRatingGetRatingpricingPlanObtain a valid pricing plan exception.Obtain a valid pricing plan exception.
400OrderAbnormalResourceStatusForRenewInvalid resource status for renewal.Invalid resource status for renewal.
400OrderAccountStatusIllegalIllegal account status.Illegal account status.
400OrderArrearageUser Arrears.User Arrears.
400OrderBidUserOrderForbiddenBid users cannot buy on the official website.Bid users cannot buy on the official website.
400OrderCaptureFailedThe paid order of the instance has not been deducted successfully.The paid order of the instance has not been deducted successfully.
400OrderExistsReleasedInstancesThere are already released instances.There are already released instances.
400OrderGroupOrderSizeOverflowThe quantity of bound combined payment order exceeds the limit.The quantity of bound combined payment order exceeds the limit.
400OrderHomeCurrencyCanNotDowngradeUsers in current currency cannot downgrade.Users in current currency cannot downgrade.
400OrderHomeCurrencyCanNotUpgradeByValueTransferUsers of current currency cannot upgrade through residual value transfer.Users of current currency cannot upgrade through residual value transfer.
400OrderInstanceHasInactiveChangeInstances exist temporary upgrade.Instances exist temporary upgrade.
400OrderInstHasUnpaidOrderThe instance has an unpaid order.The instance has an unpaid order.
400OrderInstHasUnsettledBillsThe instance has an unsettled bill.The instance has an unsettled bill.
400OrderLatestOrderIsHandlingRecent order is being processed, please try again later.Recent order is being processed, please try again later.
400OrderMainOrderSizeOverflowThe quantity of the main order exceeds the limit.The quantity of the main order exceeds the limit.
400OrderMissingModuleInfoErrorModule parameter not specified.Module parameter not specified.
400OrderNoRealNameAuthenticationNo real-name authentication.No real-name authentication.
400OrderNotFoundThe specified order information is not found.The specified order information is not found.
400OrderOpendYou have activated this product.You have activated this product.
400OrderPeriodInvalidIllegal order cycle.Illegal order cycle.
400OrderQuantityInvalidIllegal quantity ordered.Illegal quantity ordered.
400OrderQueryInstanceErrorQuery instance error.Query instance error.
400OrderQueryInstanceNotExistsInstance data does not exist.Instance data does not exist.
400OrderQueryOrderExchangeRateFailFailed to query order exchange rate information.Failed to query order exchange rate information.
400OrderQueryUserSettleInfoFailFailed to query user settlement information.Failed to query user settlement information.
400OrderQuotaExceededQuantity exceeds limit.Quantity exceeds limit.
400OrderSysConstraintInvalidSystem constraint check failed.System constraint check failed.
400OrderSysConstraintInvalidThe pre-verification of the order failed, please re-match or contact the product.The pre-verification of the order failed, please re-match or contact the product.
400OrderTradeCompleteSettleInfoFailFailed to complete the order settlement currency amount information.Failed to complete the order settlement currency amount information.
400TradeTradeOrderAfterPayCheckErrorYou have already paid for the subsequent orders of this instance. The current order has been automatically voided and you cannot pay any more.You have already paid for the subsequent orders of this instance. The current order has been automatically voided and you cannot pay any more.
400PurchaseExistRenewchangeProdThere is a renewal change subscription that has not yet taken effect.There is a renewal change subscription that has not yet taken effect.
400PurchaseExistToBeValidProdRuleErrorCurrently, there are temporary orders that are not in effect, and the upgrade operation cannot be performed.Currently, there are temporary orders that are not in effect, and the upgrade operation cannot be performed.
400PurchaseExistToBeValidRenewChangeProdRuleErrorCurrently, there is an uneffective renewal change subscription, and temporary upgrade operation cannot be performed.Currently, there is an uneffective renewal change subscription, and temporary upgrade operation cannot be performed.
400PurchaseExistValidProdRuleErrorCurrently, there is a temporary order in effect, and operations such as upgrade/downgrade/expansion/pre-transfer cannot be performed.Currently, there is a temporary order in effect, and operations such as upgrade/downgrade/expansion/pre-transfer cannot be performed.
400ProductInstanceReleasedInstance released.Instance released.
400ProductInstanceTypeNotSupportedThe instance type is not supported.The instance type is not supported.
400PatRiskRejectForTradeDataPayment order problem leads to risk control rejection.Payment order problem leads to risk control rejection.
400PayAccountBookNotExistThere is no insufficient account balance in the account book, please retry after recharging.There is no insufficient account balance in the account book, please retry after recharging.
400PayAmountLimitExceededPayment limit exceeded, please resubmit.Payment limit exceeded, please resubmit.
400PayBeforePayRiskRuleValidateFailedThe payment was blocked by risk control, and the payment failed.The payment was blocked by risk control, and the payment failed.
400PayCounponNotExistCounpon does not exist.Counpon does not exist.
400PayCouponAmountNotEnoughInsufficient voucher balance or expired.Insufficient voucher balance or expired.
400PayCouponNotMeetConsumptionRuleThe coupon does not meet the conditions for use.The coupon does not meet the conditions for use.
400PayCurrencyInconsistencyCurrency mismatch.Currency mismatch.
400PayCurrencyNotSupportedCurrency not supported.Currency not supported.
400PayForbiddenNoReasonFefundBanned five days no reason refund.Banned five days no reason refund.
400PayHsfTimeoutErrorCall payment system timeout.Call payment system timeout.
400PayInsufficientBalanceAccount balance is insufficient, please recharge and try again.Account balance is insufficient, please recharge and try again.
400PayInvalidCreditCardInvalid credit card.Invalid credit card.
400PayInvalidPayMethodIllegal payment method.Illegal payment method.
400PayMegrePayOrderHasThanOneChagreChannelPayment failed, please retry or submit work order feedback.Payment failed, please retry or submit work order feedback.
400PayNoCreditCardNo valid payment method, please check the payment method and try again.No valid payment method, please check the payment method and try again.
400PayOrderPayTimeInvalidOrder effective time is invalid.Order effective time is invalid.
400PayPartRefundNotSupportNot Capture, no partial refund.Not Capture, no partial refund.
400PayPayChannelPayOrderInvalidStatusIllegal status of payment order in payment channel.Illegal status of payment order in payment channel.
400PayPayChannelPayOrderNotExistPayment channel payment order does not exist.Payment channel payment order does not exist.
400PayPayerAccountIllegalIllegal payment account.Illegal payment account.
400PayPayFailedParentRelationchangedIf the financial custody relationship changes, please void the order and place a new order for payment.If the financial custody relationship changes, please void the order and place a new order for payment.
400PayPayForbidUserCouponCoupon prohibited for orders.Coupon prohibited for orders.
400PayQueryAvailableAmountFailedFailed to query user availability, please try again later.Failed to query user availability, please try again later.
400PayQueryAvailableEnduserAmountFailedFailed to query the availability of quota direct customer main user, please try again later.Failed to query the availability of quota direct customer main user, please try again later.
400PayQueryParentRelationshipFailedFailed to query current user hosting relationship, please try again later.Failed to query current user hosting relationship, please try again later.
400PayQueryPayChangeChannelNotEqualMulti-order payment channels are inconsistent, please check whether the original order data payment channel is correct.Multi-order payment channels are inconsistent, please check whether the original order data payment channel is correct.
400PayRefundFailedAccumulated refund amount exceeds payment order amount.Accumulated refund amount exceeds payment order amount.
400PayResellerPayGetUrlErrorOrder payment failed, please try again later.Order payment failed, please try again later.
400PayRiskRejectForPayerAccountPayment account problem leads to risk control rejection.Payment account problem leads to risk control rejection.
400PayStoredCardNotExistStored value card does not exist.Stored value card does not exist.
400PaySystemErrorError calling payment system.Error calling payment system
400PayTaxCalcFailedFailed to get user tax address.Failed to get user tax address.
400PayWithholdingAgreementIllegalWithholding Agreement Status Illegal.Withholding Agreement Status Illegal.
400AccountAliyunAccountFrozenAlibaba Cloud account is frozen.Alibaba Cloud account is frozen.
400AccountAliyunAccountNotExistAlibaba Cloud account does not exist.Alibaba Cloud account does not exist.
400RefundRefundInstanceNotFoundUnable to find instance information.Unable to find instance information.
400RefundRefundNoValidProdRefund is not available to unsubscribe.Refund is not available to unsubscribe.
400RefundRefundParamInvalidAbnormal refund parameter.Abnormal refund parameter.
400RefundRefundQueryOrderFailFailed to query order for refund field.Failed to query order for refund field.
400SystemConcurrentOperateConcurrent operation causes failure.Concurrent operation causes failure.
400PricePricingPlanNotFoundPricing plan tree not found.Pricing plan tree not found.
400OrderInstanceHasTempUpgradeInstances exist temporary upgrade.Instances exist temporary upgrade.
400PayQueryParentRelationchangedFailedThe financial custody relationship may change, please refresh and pay again.The financial custody relationship may change, please refresh and pay again.
400PayforCreditPayInsufficientBalanceInsufficient quota, please contact your channel partner to increase the quota.Insufficient quota, please contact your channel partner to increase the quota.
400PayforAccountMoneyValidateErrorThe available amount of your channel partner's account is insufficient, please contact your channel partner to recharge in time.The available amount of your channel partner's account is insufficient, please contact your channel partner to recharge in time.
400BasicInfoUncompletedYou have not completed your basic personal information. Please complete the information and re-operate it.You have not completed your basic personal information. Please complete the information and re-operate it.
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-11-05The Error code has changed. The request parameters of the API has changedView Change Details
2024-08-19The Error code has changedView Change Details
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