Home > Operation and Maintenance > Linux 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

坏嘻嘻
Release: 2018-09-26 11:44:23
Original
1753 people have browsed it

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
&<公共请求参数>
Copy after login

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>
Copy after login

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"
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template