All Products
Search
Document Center

Simple Application Server:ListInstancePlansModification

Last Updated:Nov 04, 2024

Queries the plans to which you can upgrade your simple application server.

Operation description

If the plan of your simple application server does not meet your business requirements, you can call the ListInstancePlansModification operation to obtain a list of plans that can be upgraded for your simple application server. Then, you can call the UpgradeInstance operation to upgrade the plan.

Note We recommend that you create snapshots for the disks of your simple application server to back up data before you upgrade the plan. For more information, see CreateSnapshot .

For the precautions about plan upgrade, see Upgrade a simple application server.

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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
swas-open:ListInstancePlansModificationget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-hangzhou
InstanceIdstringYes

The ID of the simple application server.

ace0706b2ac4454d984295a94213****

Response parameters

ParameterTypeDescriptionExample
object
Plansarray<object>

The operating system types supported by the plan.

Planobject
Coreinteger

The number of vCPUs.

2
Bandwidthinteger

The peak bandwidth. Unit: Mbit/s.

3
DiskSizeinteger

The disk size of the simple application server. 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 SSD
  • ESSD: enhanced SSD
ESSD
OriginPricedouble

The price of the plan.

60
Currencystring

The unit of the plan price. Valid values:

  • CNY
  • USD
CNY
SupportPlatformstring

The operating system types supported by the plan.

["Linux","Windows"]
RequestIdstring

The request ID.

20758A-585D-4A41-A9B2-28DA8F4F****

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-28DA8F4F****"
}

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