Queries all Elastic Compute Service (ECS) instances that have not been imported to clusters.


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 headers

This operation uses only the common request header. For more information, see Common request parameters.

Request syntax

GET /pop/v5/resource/ecs_not_in_cluster HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
NetworkMode Integer Query Yes 2

The network type. Valid values:

  • 1: classic network
  • 2: virtual private cloud (VPC)
VpcId String Query No vpc-2zef6ob8****v8x3q46kp


Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

EcsEntityList Array of EcsEntity

The list of ECS instances.

Cpu Integer 2

The number of CPU cores.

Eip String 139.30.xxx.xx

The elastic IP address (EIP) of the ECS instance.

Expired Boolean false

Indicates whether the ECS instance has expired. Valid values: true: The ECS instance has expired. false: The ECS instance has not expired.

InnerIp String

The internal IP address of the ECS instance.

InstanceId String i-2ze7s2v0b***********

The ID of the ECS instance

InstanceName String worker-k8s-for-cs-c9dfa009a5e7c4faab2010b87cae4****

The name of the ECS instance.

Mem Integer 4096

The size of memory. Unit: bytes.

PrivateIp String 192.168.*.**

The private IP address of the ECS instance.

PublicIp String 131.30.xxx.xx

The public IP address of the ECS instance.

RegionId String cn-beijing

The ID of the region where the ECS instance is located.

Status String Running

The status of the ECS instance. Valid values:

  • Pending
  • Running
  • Starting
  • Stopping
  • Stopped
VpcId String vpc-2zef6ob8mrlzv8x3q****


VpcName String test

The name of the VPC.

Message String success

The returned message.

RequestId String b197-40ab-9155-****

The ID of the request.


Sample requests

GET /pop/v5/resource/ecs_not_in_cluster HTTP/1.1
Common request header
"NetworkMode": "2"

Sample success responses

XML format

        <Status> Running</Status>

JSON format

    "RequestId": "b197-40ab-9155-****",
    "Message": "success",
    "Code": 200,
    "EcsEntityList": {
        "EcsEntity": {
            "Status": "Running",
            "InstanceName": "worker-k8s-for-cs-c9dfa009a5e7c4faab2010b87cae4****",
            "InnerIp": "",
            "Mem": 4096,
            "VpcId": "vpc-2zef6ob8mrlzv8x3q****",
            "PrivateIp": "192.168.*.**",
            "PublicIp": "131.30.xxx.xx",
            "InstanceId": "i-2ze7s2v0b***********",
            "Cpu": 2,
            "Expired": false,
            "VpcName": "test",
            "RegionId": "cn-beijing",
            "Eip": "139.30.xxx.xx"

Error codes

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