Home  >  Article  >  Operation and Maintenance  >  Query one or more classic network type instances connected to a VPC

Query one or more classic network type instances connected to a VPC

坏嘻嘻
坏嘻嘻Original
2018-09-26 11:44:231750browse

This article introduces the query of one or more classic network type instances that are connected to a private network VPC, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something from it.

DescribeClassicLinkInstances

Description

When calling this interface, you need to pay attention:

This interface only Supports classic network type instances.

Only a maximum of 100 classic network type instances can be queried at a time.

The parameters VpcId and InstanceId cannot be empty at the same time.

Request parameters

Query one or more classic network type instances connected to a VPC

##Return parameters

Query one or more classic network type instances connected to a VPC

Example

Request Example

https://ecs.aliyuncs.com/?Action=DescribeClassicLinkInstances
&RegionId=cn-hangzhou
&VpcId=vpc-test
&InstanceId=i-test, i-test1
&<公共请求参数>

Return example

XML format

<DescribeClassicLinkInstancesResponse>
    <RequestId>B154D309-F3E1-4AB7-BA94-FEFCA8B89001</RequestId>
    <TotalCount>2</TotalCount>
    <PageNumber>1</PageNumber>
    <PageSize>10</PageSize>
    <Links>
        <Link>
            <InstanceId>i-test</InstanceId>
            <VpcId>vpc-test</VpcId>
        </Link>
        <Link>
            <InstanceId>i-test1</InstanceId>
            <VpcId>vpc-test</VpcId>
        </Link>
    </Links>
</DescribeClassicLinkInstancesResponse>

JSON format

{
    "PageNumber":1,
    "Links":{
        "Link":[{
            "InstanceId":"i-test",
            "VpcId":"vpc-test"
            },
           {
           "InstanceId": "i-test1",
           "VpcId": "vpc-test"
           }]
    },
    "TotalCount":2,
    "PageSize":10,
    "RequestId":"B154D309-F3E1-4AB7-BA94-FEFCA8B89001"
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

Query one or more classic network type instances connected to a VPC

The above is the detailed content of Query one or more classic network type instances connected to a VPC. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn