All Products
Search
Document Center

Simple Application Server:ListPlans

Last Updated:Apr 17, 2024

Queries all plans provided by Simple Application Server in a region.

Operation description

You can query the details of all plans provided by Simple Application Server in a region, including the IDs, prices, disk sizes, and disk categories of the plans.

QPS limit

You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the plans. You can call the ListRegions operation to query the most recent region list.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
Plansobject []

The operating system types supported by the plan.

Coreinteger

The number of vCPUs.

2
Bandwidthinteger

The peak bandwidth. Unit: Mbit/s.

3
DiskSizeinteger

The size of the disk. Unit: GB.

40
Flowinteger

The monthly data transfer quota. Unit: GB.

400
Memoryinteger

The memory size. Unit: GB.

1
PlanIdstring

The ID of the plan.

swas.s2.c2m1s40b3t04
DiskTypestring

The category of the disk. Valid values:

  • SSD: standard SSDs
  • ESSD: enhanced SSDs
ESSD
OriginPricedouble

The monthly price of the plan.

60
Currencystring

The unit of the plan price. Valid values:

  • CNY
  • USD
Note CNY is for the China site (aliyun.com). USD is for the international site (alibabacloud.com).
CNY
SupportPlatformstring

The operating system types supported by the plan.

["Linux","Windows"]
RequestIdstring

The request ID.

20758A-585D-4A41-A9B2-28DA8F4F534F

Examples

Sample success responses

JSONformat

{
  "Plans": [
    {
      "Core": 2,
      "Bandwidth": 3,
      "DiskSize": 40,
      "Flow": 400,
      "Memory": 1,
      "PlanId": "swas.s2.c2m1s40b3t04",
      "DiskType": "ESSD",
      "OriginPrice": 60,
      "Currency": "CNY",
      "SupportPlatform": "[\"Linux\",\"Windows\"]"
    }
  ],
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F"
}

Error codes

HTTP status codeError codeError message
400RegionIdNotMatchHostThe parameter regionId does not match the endpoint host.
500InternalErrorAn error occurred while processing your request.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history