All Products
Search
Document Center

Simple Application Server:CreateOrder

Last Updated:Aug 13, 2026

Retrieves pricing information for simple application server products.

Operation description

An Alibaba Cloud SSH key pair is a secure and convenient logon authentication method used for identity verification and encrypted communication in the SSH protocol. It consists of a public key and a private key, and supports only Linux instances, meeting your business requirements for higher security and convenience.

  • Only Linux-based simple application servers support key pair-based logon.

  • You can create up to 10 key pairs per region for each Alibaba Cloud account.

  • The console supports only RSA 2048-bit key pairs.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 ListRegions to query available regions.

cn-shenzhen

OrderType

string

No

The order type. Valid values:

  • Buy

Default value: Buy.

Buy

Commodity

object

Yes

The order commodity information.

Period

integer

Yes

The subscription duration for querying the price of purchasing a plan in bulk. Valid values: 1 to 20. Default value: 1.

1

PeriodUnit

string

Yes

Valid values:

  • Month: the billing unit for monthly subscription.

  • Year: the billing unit for yearly subscription.

Default value: Month.

Month

PayType

string

No

The billing type. Valid values:

  • Prepaid: subscription

Prepaid

CommodityType

string

No

The resource name.

Server

PlanId

string

Yes

The plan ID. You can call ListPlans to query all plans in a specified region.

swas.s.c2m1s30b1.linux

ImageId

string

Yes

The image ID. You can call ListImages to query available image IDs in a specified region.

3e8eea0c00a04ff0b34a3ad8f1df455a

Amount

integer

No

The number of simple application servers to create. Valid values: 1 to 20.

Default value: 1

1

DataDiskSize

integer

No

The capacity of the attached 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 to enable automatic payment for the order. Valid values:

  • true: Automatic payment is enabled.

  • false: Automatic payment is not enabled.

false

AutoRenew

boolean

No

Specifies whether to enable auto-renewal upon expiration. Valid values:

  • true: Enable auto-renewal.

  • false: Disable auto-renewal.

Default value: false.

false

AutoRenewPeriod

integer

No

The auto-renewal period. Valid values:

  • When PeriodUnit is set to Year: 1, 2, or 3.

  • When PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, or 60.

Default value: 1.

1

InstanceIds

array

No

string

No

BusinessInfo

object

No

The additional business information.

UseCoupon

boolean

No

Specifies whether to use a coupon. Valid values:

  • true: Use a coupon.

  • false: Do not use a coupon.

Default value: false.

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 condition.

UseCoupon

boolean

No

Specifies whether to use a coupon. Valid values:

  • true: Use a coupon.

  • false: Do not use a coupon.

Default value: false.

False

ActivityId

string

No

AliyunLang

string

No

The language. Default value: Chinese.

zh

WeChatProType

string

No

FromApp

string

No

The request source. Valid values:

  • OpenApi: The request is from OpenAPI.

  • mongo_buy: The request is from the console.

Buy

CouponNo

string

No

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

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.