All Products
Search
Document Center

Simple Application Server:ListPlans

Last Updated:Apr 28, 2025

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>

The queried instance plans.

Planobject

The queried instance 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
PlanIdstring

The ID of the plan.

swas.s2.c2m1s40b3t04
DiskTypestring

The category of the disk. Valid values:

  • SSD: standard SSDs
  • ESSD: enhanced SSDs
ESSD
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"]
PlanTypestring

The type of the instance plan. Valid values:

  • NORMAL: a general-purpose plan.
  • CAPACITY: a larger-storage plan.
  • PREVIOUS: a previous generation plan.
  • MULTI_IP: a multiple-IP plan.
  • INTERNATIONAL: an international plan.
Note For more information, see Overview of instance families.
NORMAL
PublicIpNumstring

The number of public IP addresses.

1
IspTypestring

ISP. Default value: BGP.

  • BGP: BGP
  • BGP_NCO: BGP (Non-China Optimized)
BGP
Memoryinteger

The memory size contained in the plan. Unit: GB.

1
OriginPricenumber

The monthly price of the plan.

60
RequestIdstring

The request ID.

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

Examples

Sample success responses

JSONformat

{
  "Plans": [
    {
      "Core": 2,
      "Bandwidth": 3,
      "DiskSize": 40,
      "Flow": 400,
      "PlanId": "swas.s2.c2m1s40b3t04",
      "DiskType": "ESSD",
      "Currency": "CNY",
      "SupportPlatform": [
        "Linux",
        "Windows"
      ],
      "PlanType": "NORMAL",
      "PublicIpNum": 1,
      "IspType": "BGP",
      "Memory": 1,
      "OriginPrice": 60
    }
  ],
  "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