CreateOrder
Queries the pricing information of Simple Application Server.
Operation description
Alibaba Cloud SSH key pairs provide a secure and convenient logon authentication method for identity verification and encrypted communication over the SSH protocol. An SSH key pair consists of a public key and a private key. SSH key pairs are supported only on Linux instances and meet your business requirements for higher security and convenience.
Only Simple Application Server instances that run Linux support SSH key pair logon.
You can create up to 10 SSH key pairs in a region within an Alibaba Cloud account.
The console supports only the creation of RSA 2048-bit key pairs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:CreateOrder |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call the ListRegions operation to query available regions. |
cn-shenzhen |
| OrderType |
string |
No |
The order type. Valid values:
|
Buy |
| Commodity |
object |
Yes |
The order configuration information. |
|
| Period |
integer |
No |
The subscription period. Valid values: 1 to 20. Default value: 1. |
1 |
| PeriodUnit |
string |
No |
The unit of the subscription period. Valid values:
|
Month |
| PayType |
string |
No |
The billing method. Valid values:
|
Prepaid |
| CommodityType |
string |
No |
The resource name. |
Server |
| PlanId |
string |
No |
The plan ID. You can call the ListPlans operation to query all plans in a specified region. |
swas.s.c2m1s30b1.linux |
| ImageId |
string |
No |
The image ID. You can call the ListImages operation to query available image IDs in a specified region. |
3e8eea0c00a04ff0b34a3ad8f1df455a |
| Amount |
integer |
No |
The number of Simple Application Server instances to create. Valid values: 1 to 20. Default value: 1. |
1 |
| DataDiskSize |
integer |
No |
The size of the mounted data cloud disk. Unit: GB. Valid values: 0 to 16380. The value must be a multiple of 20. Default value: 0. |
0 |
| AutoPay |
boolean |
No |
Specifies whether automatic payment is enabled for the order. Valid values:
|
false |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal upon expiration. Valid values:
|
false |
| AutoRenewPeriod |
integer |
No |
The auto-renewal period. Valid values:
|
1 |
| InstanceIds |
array |
No |
The IDs of the Simple Application Server instances. |
|
|
string |
No |
The ID of the Simple Application Server instance. |
2ad1ae67295445f598017499dc**** |
|
| BusinessInfo |
object |
No |
The additional parameter for business information. |
|
| UseCoupon |
boolean |
No |
Specifies whether to use a voucher. Valid values:
|
false |
| OrderSource |
string |
No |
The order source. |
- |
| PromotionOptions |
object |
No |
The promotion option information. |
|
| PromotionOptionNo |
string |
No |
The coupon ID. |
802681580959 |
| PromotionOptionCode |
string |
No |
The promotion option code. |
youhui_quan |
| PromotionFilter |
object |
No |
The promotion filter. |
|
| UseCoupon |
boolean |
No |
Specifies whether to use a voucher. Valid values:
|
False |
| ActivityId |
string |
No |
The activity ID. |
|
| AliyunLang |
string |
No |
The language environment. Default value: Chinese. |
zh |
| lx_channel_cookie_value |
string |
No |
The channel cookie value. |
IaEvKFpwjO1lMRzGWyJdT9KWob7ruIK%2F2zTcdPRkQ%2BIDp5GIJSQT%2FL3qUUcjJ3KQfud3NrMUlEqLaJWWIVwJgw%3D%3D |
| WeChatProType |
string |
No |
The WeChat product type. |
|
| FromApp |
string |
No |
The request source. Valid values:
|
Buy |
| CouponNo |
string |
No |
The coupon code. Default value: |
772339720881 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
4D10F506-E583-517D-A937-4378BF0C665B |
| OrderId |
string |
The order ID. |
276025619780639 |
Examples
Success response
JSON format
{
"RequestId": "4D10F506-E583-517D-A937-4378BF0C665B",
"OrderId": "276025619780639"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CSS_SYSTEM_ERROR | The sales system encountered an error. | There was an error in the selling system. |
| 400 | SWAS_NOT_ENOUGH_ACTIVITY_STOCK | The configuration you selected is sold out in the current region. Please try to select another configuration or region. | The configuration you selected is sold out in the current region. Please try to select another configuration or region. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.