All Products
Search
Document Center

Simple Application Server:ListPlans

Last Updated:Dec 12, 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.

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

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
Plansarray<object>

Details about the plans.

Planobject
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\"]",
      "PlanType": ""
    }
  ],
  "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