本篇文章给大家带来的内容是关于通过describenetworkinterfaces查看弹性网卡(eni)列表,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
DescribeNetworkInterfaces
描述
查询时,我们通过您指定属性值过滤结果。
不指定属性值就不过滤该属性,返回所有类目结果。
一次最多查看100个弹性网卡。
请求参数
返回参数
示例
请求示例
https://ecs.aliyuncs.com/?Action=DescribeNetworkInterfaces &RegionId=cn-hangzhou &
返回示例
xml格式
<describenetworkinterfacesresponse> <networkinterfacesets> <networkinterfaceset> <associatedpublicip></associatedpublicip> <creationtime>2017-11-24T06:14:22Z</creationtime> <instanceid>AY121018033933eaxxxxx</instanceid> <macaddress>00:16:3e:0f:XX:XX</macaddress> <networkinterfaceid>eni-bp17pdijfczaxZZZZxxxxx</networkinterfaceid> <privateipaddress>XXX.XXX.XX.XX</privateipaddress> <privateipsets> <privateipset> <associatedpublicip></associatedpublicip> <primary>true</primary> <privateipaddress>XXX.XXX.XX.XX</privateipaddress> </privateipset> </privateipsets> <securitygroupids> <securitygroupid>sg-bp144yr32sx6ndwxxxxx</securitygroupid> </securitygroupids> <status>Available</status> <type>Secondary</type> <vpcid>vpc-bp1j7w3gc1cexjqdxxxxx</vpcid> <vswitchid>vsw-bp16usj2p27htro3xxxxx</vswitchid> <zoneid>cn-hangzhou-e</zoneid> </networkinterfaceset> </networkinterfacesets> <pagenumber>1</pagenumber> <pagesize>100</pagesize> <requestid>CEE5C347-0B64-4535-A061-95BE95Axxxxx</requestid> <totalcount>1</totalcount></describenetworkinterfacesresponse>
json格式
{ "NetworkInterfaceSets": { "NetworkInterfaceSet": [ { "AssociatedPublicIp": { }, "CreationTime": "2017-11-24T06:14:22Z", "InstanceId": "AY121018033933eaxxxxx", "MacAddress": "00:16:3e:0f:XX:XX", "NetworkInterfaceId": "eni-bp17pdijfczaxZZZZxxxxx", "PrivateIpAddress": "XXX.XXX.XX.XX", "PrivateIpSets": { "PrivateIpSet": [ { "AssociatedPublicIp": { }, "Primary": true, "PrivateIpAddress": "XXX.XXX.XX.XX" } ] }, "SecurityGroupIds": { "SecurityGroupId": [ "sg-bp144yr32sx6ndwxxxxx" ] }, "Status": "Available", "Type": "Secondary", "VpcId": "vpc-bp1j7w3gc1cexjqdxxxxx", "VSwitchId": "vsw-bp16usj2p27htro3xxxxx", "ZoneId": "cn-hangzhou-e" } ] }, "PageNumber": 1, "PageSize": 100, "RequestId": "CEE5C347-0B64-4535-A061-95BE95Axxxxx", "TotalCount": 1 }
错误码
以下为本接口特有的错误码。更多错误码,请访问 API错误中心。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END