本篇文章給大家帶來的內容是關于通過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