All Products
Search
Document Center

Simple Application Server:ListInstances

Last Updated:Jul 15, 2024

Queries the information about simple application servers in a region.

Operation description

You can call this operation to query the details of simple application servers in a specified region, including the names, public IP addresses, internal IP addresses, creation time, and expiration time of the servers.

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 simple application servers.

cn-hangzhou
InstanceIdsstringNo

The IDs of the simple application servers. The value can be a JSON array that consists of up to 100 simple application server IDs. Separate multiple server IDs with commas (,).

Note If you specify both InstanceIds and PublicIpAddresses, make sure that the specified IDs and the specified public IP addresses belong to the same simple application servers. Otherwise, an empty result is returned.
["2ad1ae67295445f598017499dc****", "2ad1ae67295445f598017123dc****"]
ChargeTypestringNo

The billing method of the simple application servers. Set the value to PrePaid, which indicates the subscription billing method.

Default value: PrePaid.

PrePaid
PublicIpAddressesstringNo

The public IP addresses of the simple application servers. The value can be a JSON array that consists of up to 100 IP addresses. Separate multiple IP addresses with commas (,).

Note If you specify both InstanceIds and PublicIpAddresses, make sure that the specified IDs and the specified public IP addresses belong to the same simple application servers. Otherwise, an empty result is returned.
["42.1.**.**", "42.2.**.**"]
PageNumberintegerNo

The page number.

Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Maximum value: 100.

Default value: 10.

10
StatusstringNo

The status of the simple application servers. Valid values:

  • Pending
  • Starting
  • Running
  • Stopping
  • Stopped
  • Resetting
  • Upgrading
  • Disabled
Running
Tagarray<object>No

The tags that are added to the simple application servers.

objectNo

The tag to add to the resource.

KeystringNo

The tag key of the simple application servers. A tag key can be 1 to 64 characters in length. Valid values of N: 1 to 20.

test
ValuestringNo

The tag value of the simple application servers. A tag value can be 1 to 64 characters in length. Valid values of N: 1 to 20.

01
ResourceGroupIdstringNo

The ID of the resource group to which the simple application servers belong.

rg-aek2bti7cf7****
InstanceNamestringNo

The name of the simple application servers, which supports fuzzy search using wildcard *.

test

Response parameters

ParameterTypeDescriptionExample
object

Schema of response.

Instancesarray<object>

Details about the simple application servers.

object

The instance list.

Statusstring

The status of the simple application server. Valid values:

  • Pending: The server is being prepared.
  • Starting: The server is being started.
  • Running: The server is running.
  • Stopping: The server is being stopped.
  • Stopped: The server is stopped.
  • Resetting: The server is being reset.
  • Upgrading: The server is being upgraded.
  • Disabled: The server is not available.
Running
CreationTimestring

The time when the simple application server was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2021-03-08T05:31:06Z
InnerIpAddressstring

The private IP address of the simple application server.

172.26.XX.XX
ChargeTypestring

The billing method of the simple application server.

PrePaid
InstanceIdstring

The ID of the simple application server.

2ad1ae67295445f598017499dc****
PlanIdstring

The ID of the instance plan.

swas.s2.c2m2s50b4t08
PublicIpAddressstring

The public IP address.

42.1.XX.XX
RegionIdstring

The region ID.

cn-hangzhou
ExpiredTimestring

The time when the simple application server expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2021-05-08T16:00:00Z
InstanceNamestring

The name of the simple application server.

test-InstanceName
BusinessStatusstring

The status of the server. Valid values:

  • Normal: The server is normal.
  • Expired: The server expires.
  • Overdue: The payment of the server is overdue.
Normal
DdosStatusstring

The DDoS protection status of the server. Valid values:

  • Normal: The DDoS protection status of the server is normal.
  • BlackHole: The server is in blackhole filtering.
  • Defense: The server is being scrubbed.
Normal
ImageIdstring

The ID of the image.

fe9c66133a9d4688872869726b52****
DisableReasonstring

The reason why the server is disabled. Valid values:

  • FINANCIAL: The server is locked due to overdue payments.
  • SECURITY: The server is locked for security reasons.
  • EXPIRED: The server is expired.
EXPIRED
Combinationboolean

Indicates whether the simple application server uses a bundle plan.

false
CombinationInstanceIdstring

The ID of the simple application server that uses a bundle plan.

com-f6c9a22****45b5b8de68ad608af1ba
Uuidstring

The universally unique identifier (UUID) of the simple application server.

41f30524-5df7-49c9-9c6e-32****489001
ResourceSpecobject

The specifications of the resource.

DiskCategorystring

The category of the disk. Valid values:

  • ESSD: enhanced SSD (ESSD) of PL0
  • SSD: standard SSD
  • CLOUD_EFFICIENCY: ultra disk
cloud_efficiency
Cpuinteger

The number of vCPUs of the simple application server.

2
Bandwidthinteger

The bandwidth of the server.

5
DiskSizeinteger

The disk size.

60
Memorydouble

The memory size of the server.

2
Flowdouble

The amount of the traffic.

  • A value of 0 indicates the traffic amount of a bandwidth-based simple application server.
  • A non-zero value indicates the traffic amount of a data transfer plan-based simple application server.
818
Imageobject

The description of the image.

OsTypestring

The OS.

windows
ImageNamestring

The name of the image.

test-custom-1686536882356
ImageVersionstring

The image tag.

V3.5
ImageTypestring

The type of the image. Valid values:

  • system
  • app
  • custom
system
ImageIconUrlstring

The URL of the image icon.

https://img.alicdn.com/imgextra/i3/O****1vdh9651ReKqWNMI2I_!!6000000002136****-24-24.svg
ImageContactstring

The image provider.

https://selfs****e.console.aliyun.com/ticket/createIndex
Tagsarray<object>

The tags that are added to the simple application server.

object

The tags.

Keystring

The tag key of the simple application server.

TestKey
Valuestring

The tag value of the simple application server.

TestValue
Disksarray<object>

The disks that are attached to the simple application server.

object

The information about the disks.

CreationTimestring

The time when the simple application server was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2023-02-24T02:20:10Z
Statusstring

The status of the disk. Valid values:

  • ReIniting: The disk is being initialized.
  • Creating: The disk is being created.
  • In_use: The disk is in use.
  • Available: The disk can be attached.
  • Attaching: The disk is being attached.
  • Detaching: The disk is being detached.
In_use
Devicestring

The device name of the disk after the disk is attached to the simple application server.

/dev/xvda
Sizeinteger

The disk size. Unit: GB.

50
DiskNamestring

The disk name.

SystemDisk
DiskChargeTypestring

The billing method of the disk.

PrePaid
DiskTypestring

The disk type. Valid values:

  • system: system disk
  • data: data disk
System
Categorystring

The category of the disk. Valid values:

  • ESSD: ESSD of PL0
  • SSD: standard SSD
  • CLOUD_EFFICIENCY: an ultra disk.
ESSD
DiskIdstring

The disk ID.

d-bp14wq0149cpp2x****
RegionIdstring

The region ID.

cn-hangzhou
Remarkstring

The remarks of the disk.

remark
DiskTagsarray<object>

The tags that are added to the disk.

object

The tags of the disk.

Keystring

The tag key.

TestKey
Valuestring

The tag value.

TestValue
ResourceGroupIdstring

The ID of the resource group to which the disk belongs.

rg-aek2bti7cf7****
ResourceGroupIdstring

The ID of the resource group to which the server belongs.

rg-aekz7jmhg5s****
TotalCountinteger

The total number of entries returned.

1
RequestIdstring

The request ID.

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

The number of entries per page.

10
PageNumberinteger

The page number.

1

Examples

Sample success responses

JSONformat

{
  "Instances": [
    {
      "Status": "Running",
      "CreationTime": "2021-03-08T05:31:06Z",
      "InnerIpAddress": "172.26.XX.XX",
      "ChargeType": "PrePaid",
      "InstanceId": "2ad1ae67295445f598017499dc****",
      "PlanId": "swas.s2.c2m2s50b4t08",
      "PublicIpAddress": "42.1.XX.XX",
      "RegionId": "cn-hangzhou",
      "ExpiredTime": "2021-05-08T16:00:00Z",
      "InstanceName": "test-InstanceName",
      "BusinessStatus": "Normal",
      "DdosStatus": "Normal",
      "ImageId": "fe9c66133a9d4688872869726b52****",
      "DisableReason": "EXPIRED",
      "Combination": false,
      "CombinationInstanceId": "com-f6c9a22****45b5b8de68ad608af1ba",
      "Uuid": "41f30524-5df7-49c9-9c6e-32****489001",
      "ResourceSpec": {
        "DiskCategory": "cloud_efficiency",
        "Cpu": 2,
        "Bandwidth": 5,
        "DiskSize": 60,
        "Memory": 2,
        "Flow": 818
      },
      "Image": {
        "OsType": "windows",
        "ImageName": "test-custom-1686536882356",
        "ImageVersion": "V3.5",
        "ImageType": "system",
        "ImageIconUrl": "https://img.alicdn.com/imgextra/i3/O****1vdh9651ReKqWNMI2I_!!6000000002136****-24-24.svg",
        "ImageContact": "https://selfs****e.console.aliyun.com/ticket/createIndex"
      },
      "Tags": [
        {
          "Key": "TestKey",
          "Value": "TestValue"
        }
      ],
      "Disks": [
        {
          "CreationTime": "2023-02-24T02:20:10Z",
          "Status": "In_use",
          "Device": "/dev/xvda",
          "Size": 50,
          "DiskName": "SystemDisk",
          "DiskChargeType": "PrePaid",
          "DiskType": "System",
          "Category": "ESSD",
          "DiskId": "d-bp14wq0149cpp2x****",
          "RegionId": "cn-hangzhou",
          "Remark": "remark",
          "DiskTags": [
            {
              "Key": "TestKey",
              "Value": "TestValue"
            }
          ],
          "ResourceGroupId": "rg-aek2bti7cf7****\n"
        }
      ],
      "ResourceGroupId": "rg-aekz7jmhg5s****"
    }
  ],
  "TotalCount": 1,
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F****",
  "PageSize": 10,
  "PageNumber": 1
}

Error codes

HTTP status codeError codeError message
400InvalidChargeType.ValueNotSupportedThe specified parameter ChargeType is invalid.
400InvalidPublicIpAddresses.ValueNotSupportedThe specified parameter PublicIpAddresses is invalid.
404InvalidInstanceId.NotFoundThe specified InstanceId does not exist.
500InternalErrorAn error occurred while processing your request.

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

Change history

Change timeSummary of changesOperation
2024-06-17The Error code has changed. The request parameters of the API has changedView Change Details
2024-05-29The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedView Change Details
2024-02-20The Error code has changed. The response structure of the API has changedView Change Details
2024-01-17The Error code has changed. The request parameters of the API has changedView Change Details
2023-09-18API Description Update. The Error code has changedView Change Details
2023-07-19The Error code has changed. The request parameters of the API has changedView Change Details
2023-05-25The Error code has changed. The response structure of the API has changedView Change Details