Queries one or multiple classic network-connected instances that have established ClassicLink with VPCs.


When you call this operation, note that:

  • This API only supports classic network-connected instances.
  • You can query a maximum of 100 classic network-connected instances each time.
  • Either the VpcId parameter or the InstanceId parameter must be specified.


You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Name Type Required Example Description
RegionId String Yes cn-hangzhou

The ID of the region where the instance resides. You can call DescribeRegions to view the latest regions of Alibaba Cloud.

Action String No DescribeClassicLinkInstances

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

InstanceId String No i-test

The ID of the instance. You can specify a maximum of 100 instance IDs, which must be separated by commas (,).

PageNumber String No 1

The current page number. Starting value: 1.

Default value: 1.

PageSize String No 10

The number of entries per page. Valid values: 1 to 100.

Default value: 10.

VpcId String No vpc-test

The ID of the VPC. The ClassicLink service must be enabled for the specified VPC.

Response parameters

Name Type Example Description

The links between classic network-connected instances and VPCs.

 └InstanceId String i-test

The ID of an instance.

 └VpcId String vpc-test

The ID of a VPC.

PageNumber Integer 1

The page number you query in the link list.

PageSize Integer 10

The number of entries per page.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the API request.

TotalCount Integer 2

The total number of links.


Sample requests

&InstanceId=i-test, i-test1
&<Common request parameters>

Successful response examples

XML format


JSON format


Error codes

HTTP status code Error code Error message Description
403 InvalidInstanceId.NotBelong The specified instance does not belong to you. The error message returned when the specified instance does not exist under your account.

View error codes