You can call this operation to ListConvertableEcu ECS instances that can be imported to a specified cluster. This operation is applicable to ECS clusters.

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 header

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

Request syntax

GET /pop/v5/resource/convertable_ecu_list HTTPS|HTTP

Request parameters

Element Type Required Example Description
clusterId String No B3f77 b-462e-****-****-bec8727a****

The ID of the cluster that you want to query.

Response parameters

Element Type Sample response Description
Code Integer 200

code

InstanceList Array

You can import ECS instances to the cluster.

Instance
Cpu Integer 2

ECS instance CPU

EcuId String b197-40ab-9155-7ca7

ECU ID

Eip String ""

ECS Elastic IP Address, you can change the binding target.

Expired Boolean false

Indicates whether the returned SLB instance has expired.

InnerIp String ""

The internal IP address of the ECS instance. This parameter is only applicable when the ECS instance is of the VPC network type.

InstanceId String i-2ze7s2v0b****

ECS Instance ID

Instance name String worker-k8s

ECS instance name

Mem Integer 4096

ECS instance memory

PrivateIp String 192.XX.XX.123

The private IP address of the ECS instance. Valid values: VPC and classic network.

PublicIp String ""

The public IP address of the ECS instance. It is permanently allocated to the ECS instance.

RegionId Boolean cn-beijing

The ID of the region.

Status String Running

The status of the organization.

VpcId String vpc-2zef6ob8m************

VPC ID

VpcName String test

VPC network name

Message String Success

The returned message.

RequestId String b197-40ab-9155-7ca7

The ID of the request.

Examples

Sample requests

GET /pop/v5/resource/convertable_ecu_list HTTP/1.1
Common request header
{
  "clusterId": "b3e3f77b-462e-xxxx-bec8727a4dc8"
}

Sample success responses

XML format

<Message>success</Message>
<Code>200</Code>
<InstanceList>
    <Instance>
        <Status> Running</Status>
        <VpcName>test</VpcName>
        <Cpu>2</Cpu>
        <InnerIp/>
        <Mem>4096</Mem>
        <RegionId>cn-beijing</RegionId>
        <Expired>false</Expired>
        <InstanceId>i-2ze7s2v0b789k60p****</InstanceId>
        <PrivateIp>192.168.0.86</PrivateIp>
        <Eip/>
        <VpcId>vpc-2zef6ob8mrlzv8x3q****</VpcId>
        <InstanceName>worker-k8s</InstanceName>
    </Instance>
</InstanceList>

JSON format

{
    "Message": "success",
    "Code": 200,
    "InstanceList": {
        "Instance": [
            {
                "Status": "Running",
                "VpcName": "test",
                "Cpu": 2,
                "InnerIp": "",
                "Mem": 4096,
                "RegionId": "cn-beijing",
                "Expired": false,
                "InstanceId": "i-2ze7s2v0b789k60p****",
                "PrivateIp": "192.168.0.86",
                "Eip": "",
                "VpcId": "vpc-2zef6ob8mrlzv8x3q****",
                "InstanceName": "worker-k8s"
            }
        ]
    }
}

Error codes.

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