All Products
Search
Document Center

Enterprise Distributed Application Service:ListEcsNotInCluster

Last Updated:Mar 01, 2024

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

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 syntax

GET /pop/v5/resource/ecs_not_in_cluster

Request parameters

ParameterTypeRequiredDescriptionExample
NetworkModeintegerYes

The network type. Valid values:

  • 1: classic network
  • 2: virtual private cloud (VPC)
2
VpcIdstringNo

The ID of the VPC. This parameter is required if the NetworkMode parameter is set to 2.

vpc-2zef6ob8****v8x3q46kp

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message that is returned.

success
RequestIdstring

The ID of the request.

b197-40ab-9155-****
EcsEntityListobject []

The information about ECS instances.

VpcIdstring

The ID of the VPC.

vpc-2zef6ob8mrlzv8x3q****
Statusstring

The status of the ECS instance. Valid values:

  • Pending: The ECS instance is being created.
  • Running: The ECS instance is running.
  • Starting: The ECS instance is being started.
  • Stopping: The ECS instance is being stopped.
  • Stopped: The ECS instance is stopped.
Running
PrivateIpstring

The private IP address of the ECS instance.

192.168.*.**
Expiredboolean

Indicates whether the ECS instance has expired. Valid values:

  • true: The ECS instance has expired.
  • false: The ECS instance has not expired.
false
InstanceIdstring

The ID of the ECS instance.

i-2ze7s2v0b***********
Meminteger

The size of memory. Unit: bytes.

4096
RegionIdstring

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

cn-beijing
VpcNamestring

The name of the VPC.

test
Cpuinteger

The number of CPU cores.

2
InnerIpstring

The private IP address of the ECS instance.

192.168.20.113
Eipstring

The elastic IP address (EIP) associated with the ECS instance.

139.30.xxx.xx
InstanceNamestring

The name of the ECS instance.

worker-k8s-for-cs-c9dfa009a5e7c4faab2010b87cae4****
PublicIpstring

The public IP address of the ECS instance.

131.30.xxx.xx

Examples

Sample success responses

JSONformat

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

Error codes

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

Change history

Change timeSummary of changesOperation
No change history