Queries the Elastic Compute Service (ECS) instances that reside in the same virtual private cloud (VPC) as an Alibaba Cloud Service Mesh (ASM) instance.

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 parameters

Parameter Type Required Example Description
ServiceMeshId String Yes ccb37ff104caf419fbf48fb38e6f****

The ID of the ASM instance.

Action String Yes DescribeServiceMeshVMs

The operation that you want to perform. Set the value to DescribeServiceMeshVMs.

Response parameters

Parameter Type Example Description
RequestId String 4b2c0fe0-6705-4614-8521-6b9d289163c8

The ID of the request.

VMs Array of instances

The ECS instances that reside in the same VPC as the ASM instance.

Status String Running

The state of the ECS instance.

InstanceId String i-2ze0kub9scdguom****

The ID of the ECS instance.

HasTag Boolean false

Indicates whether the ECS instance has labels.

IpAddress String 192.168.2.241

The IP address of the ECS instance.

HostName String iZ2ze45cgxkx4q12eh****

The hostname of the ECS instance.

SecurityGroupIds String sg-2zeaqy08amco9osl****

The security group to which the ECS instance belongs.

ServiceMeshId String ccb37ff104caf419fbf48fb38e6f3****

The ID of the ASM instance.

Region String cn-beijing

The ID of the region.

Examples

Sample requests

http(s)://[Endpoint]/?ServiceMeshId=ccb37ff104caf419fbf48fb38e6f****
&Action=DescribeServiceMeshVMs
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeServiceMeshVMsResponse>
    <RequestId>4b2c0fe0-6705-4614-8521-6b9d289163c8</RequestId>
    <VMs>
        <Status>Running</Status>
        <InstanceId>i-2ze0kub9scdguom****</InstanceId>
        <HasTag>false</HasTag>
        <IpAddress>192.168.2.241</IpAddress>
        <HostName>iZ2ze45cgxkx4q12eh****</HostName>
        <SecurityGroupIds>sg-2zeaqy08amco9osl****</SecurityGroupIds>
        <ServiceMeshId>ccb37ff104caf419fbf48fb38e6f3****</ServiceMeshId>
        <Region>cn-beijing</Region>
    </VMs>
</DescribeServiceMeshVMsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "4b2c0fe0-6705-4614-8521-6b9d289163c8",
  "VMs" : {
    "Status" : "Running",
    "InstanceId" : "i-2ze0kub9scdguom****",
    "HasTag" : false,
    "IpAddress" : "192.168.2.241",
    "HostName" : "iZ2ze45cgxkx4q12eh****",
    "SecurityGroupIds" : "sg-2zeaqy08amco9osl****",
    "ServiceMeshId" : "ccb37ff104caf419fbf48fb38e6f3****",
    "Region" : "cn-beijing"
  }
}

Error codes

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