描述网卡信息

最近更新时间:2018-01-30 16:11:58

DescribeNetworkInterfaces(描述网卡信息)

Request Parameters(请求参数)

NetworkInterfaceId.N

  • 网卡的信息,一个或多个
  • 类型:String
  • 是否可缺省: 是
  • 缺省值: 查询region下的所有网卡信息

Filter.N

  • vpc-id,VPC的ID
  • subnet-id,子网的ID
  • securitygroup-id,安全组ID
  • instance-type,主机的类型,物理机或者云主机
  • instance-id,云服务器的ID
  • private-ip-address,网卡的内网IP
  • 类型: Filter list
  • 是否可缺省: 是

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String

NetworkInterfaceSet

Examples(举例)

Sample Request(请求)
http://vpc.region.api.ksyun.com/?Action=DescribeNetworkInterfaces
&Version=2016-03-04
&NetworkInterfaceId.2=712f8ff0-bcb2-403e-8bf1-95ff8fd37796
Sample Response(返回)
<DescribeNetworkInterfacesResponse xmlns="http://vpc.api.ksyun.com/doc/2016-03-04/">
    <RequestId>b17410ee-24e0-4588-a95b-705413ae8d9e</RequestId>
    <NetworkInterfaceSet>
        <item>
            <DNS1>5.5.5.5</DNS1>
            <DNS2>8.8.8.8</DNS2>
            <VpcId>4e8d1f11-264a-468b-ae37-09b465477415</VpcId>
            <VpcName>DefaultVPC</VpcName>
            <PrivateIpAddress>172.31.48.44</PrivateIpAddress>
            <NetworkInterfaceId>712f8ff0-bcb2-403e-8bf1-95ff8fd37796</NetworkInterfaceId>
            <InstanceId>13b1339d-ead8-41ac-b088-9cbd12b525f8</InstanceId>
            <CidrBlock>172.31.48.0/20</CidrBlock>
            <SubnetId>c6839580-6ce4-453a-8533-b4fd659eff36</SubnetId>
            <SubnetName>test_nbame</SubnetName>
            <SecurityGroupSet>
                <item>
                    <SecurityGroupId>9fa539c7-2e58-47f1-a8d3-d3eaaf843774</SecurityGroupId>
                    <SecurityGroupName>test_name</SecurityGroupName>
                </item>
                <item>
                    <SecurityGroupId>43g539c7-2e58-4341-28d3-d3eaaf844354</SecurityGroupId>
                    <SecurityGroupName>test_name</SecurityGroupName>
                </item>
        </item>
    </NetworkInterfaceSet>
</DescribeNetworkInterfacesResponse>

金山云,开启您的云计算之旅

注册有礼