Get pricing for Simple Application Server.
Operation description
An Alibaba Cloud SSH key pair uses the SSH protocol to provide secure login authentication by verifying identity and encrypting communication. Each key pair consists of a public key and a private key and can be used only with Linux instances.
You can use key pairs to log in only to Simple Application Server instances that run Linux.
An Alibaba Cloud account can have a maximum of 10 key pairs in each region.
In the console, you can create only 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 ID of the region. Call the ListRegions operation to query available regions. |
cn-shenzhen |
| OrderType |
string |
No |
The type of the order.
Default value: Buy |
Buy |
| Commodity |
object |
Yes |
The commodity details. |
|
| Period |
integer |
Yes |
The subscription period of the Simple Application Server instance. Valid values: 1 to 20. Default value: 1. |
1 |
| PeriodUnit |
string |
Yes |
The unit of the subscription period. Valid values:
Default value: Month |
Month |
| PayType |
string |
No |
The payment type.
|
Prepaid |
| CommodityType |
string |
No |
The type of resource to purchase. |
Server |
| PlanId |
string |
Yes |
The plan ID. Call the ListPlans operation to query available plans in a region. |
swas.s.c2m1s30b1.linux |
| ImageId |
string |
Yes |
The image ID. Call the ListImages operation to query available images in a 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 data disk capacity in GB. The value must be an integer from 0 to 16,380 and a multiple of 20. Default value: 0 |
0 |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment for the order. Valid values:
|
false |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
Default value: false |
false |
| AutoRenewPeriod |
integer |
No |
The auto-renewal period. This parameter is required if you set AutoRenew to true. Valid values:
Default value: 1. |
1 |
| BusinessInfo |
object |
No |
Additional business information. |
|
| UseCoupon |
boolean |
No |
Specifies whether to use a coupon. Valid values:
Default value: false. |
false |
| OrderSource |
string |
No |
The source of the order. |
- |
| PromotionOptions |
object |
No |
The promotion options. |
|
| PromotionOptionNo |
string |
No |
The coupon ID. |
802681580959 |
| PromotionOptionCode |
string |
No |
The promotion option code. |
youhui_quan |
| PromotionFilter |
object |
No |
The promotion conditions. |
|
| UseCoupon |
boolean |
No |
Specifies whether to use a coupon. Valid values:
Default value: false. |
False |
| ActivityId |
string |
No |
||
| AliyunLang |
string |
No |
The language of the response. Default value: zh. |
zh |
| lx_channel_cookie_value |
string |
No |
|
IaEvKFpwjO1lMRzGWyJdT9KWob7ruIK%2F2zTcdPRkQ%2BIDp5GIJSQT%2FL3qUUcjJ3KQfud3NrMUlEqLaJWWIVwJgw%3D%3D |
| FromApp |
string |
No |
The source of the request. Valid values:
|
Buy |
| CouponNo |
string |
No |
The coupon code. The default value is |
772339720881 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
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.