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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListPlans

The operation that you want to perform. Set the value to ListPlans.

RegionId String Yes cn-hangzhou

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

Response parameters

Parameter Type Example Description
Plans Array of Plan

Details about the plans.

Bandwidth Integer 3

The peak bandwidth. Unit: Mbit/s.

Core Integer 2

The number of CPU cores.

DiskSize Integer 40

The size of the enhanced SSD (ESSD). Unit: GB.

Flow Integer 400

The monthly data transfer quota. Unit: GB.

Memory Integer 1

The memory size. Unit: GB.

PlanId String swas.s2.c2m1s40b3t04

The ID of the plan.

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

The ID of the request.

Examples

Sample requests

https://swas.cn-hangzhou.aliyuncs.com/?Action=ListPlans
&<Common request parameters>

Sample success responses

XML format

<ListPlansResponse>
      <Plans>
            <Memory>1</Memory>
            <PlanId>swas.s2.c2m1s40b3t04</PlanId>
            <Bandwidth>3</Bandwidth>
            <DiskSize>40</DiskSize>
            <Core>2</Core>
            <Flow>400</Flow>
      </Plans>
      <Plans>
            <Memory>1</Memory>
            <PlanId>swas.s2.c2m1s50b4t06</PlanId>
            <Bandwidth>4</Bandwidth>
            <DiskSize>50</DiskSize>
            <Core>2</Core>
            <Flow>600</Flow>
      </Plans>
      <Plans>
            <Memory>2</Memory>
            <PlanId>swas.s2.c2m2s50b4t08</PlanId>
            <Bandwidth>4</Bandwidth>
            <DiskSize>50</DiskSize>
            <Core>2</Core>
            <Flow>800</Flow>
      </Plans>
      <RequestId>20758A-585D-4A41-A9B2-28DA8F4F534F</RequestId>
</ListPlansResponse>

JSON format

{
  "Plans": [
    {
      "Memory": 1,
      "PlanId": "swas.s2.c2m1s40b3t04",
      "Bandwidth": 3,
      "DiskSize": 40,
      "Core": 2,
      "Flow": 400
    },
    {
      "Memory": 1,
      "PlanId": "swas.s2.c2m1s50b4t06",
      "Bandwidth": 4,
      "DiskSize": 50,
      "Core": 2,
      "Flow": 600
    },
    {
      "Memory": 2,
      "PlanId": "swas.s2.c2m2s50b4t08",
      "Bandwidth": 4,
      "DiskSize": 50,
      "Core": 2,
      "Flow": 800
    }
  ],
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F"
}

Error codes

HTTP status code Error code Error message Description
500 InternalError An error occurred while processing your request. The error message returned because an internal error has occurred. Try again later. If the error persists, submit a ticket.

For a list of error codes, visit the API Error Center.