Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view the ENI list of elastic Nic through DescribeNetworkInterfaces

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you how to view the elastic network card (ENI) list through DescribeNetworkInterfaces, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Through DescribeNetworkInterfaces to view the elastic network card (ENI) list, there is a certain reference value, friends in need can refer to, hope to help you.

DescribeNetworkInterfaces

Description

When querying, we filter the results through the attribute values you specify.

If you do not specify a property value, the property is not filtered and all category results are returned.

View a maximum of 100 elastic NICs at a time.

Request parameter

Return parameters

Example

Request example

Https://ecs.aliyuncs.com/?Action=DescribeNetworkInterfaces&RegionId=cn-hangzhou&

Return the example

XML format

2017-11-24T06:14:22Z AY121018033933eaxxxxx 00:16:3e:0f:XX:XX eni-bp17pdijfczaxZZZZxxxxx XXX.XXX.XX.XX true XXX.XXX.XX.XX Sg-bp144yr32sx6ndwxxxxx Available Secondary vpc-bp1j7w3gc1cexjqdxxxxx vsw-bp16usj2p27htro3xxxxx cn-hangzhou-e 1 100 CEE5C347-0B64-4535-A061-95BE95Axxxxx 1

JSON format

{"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}

Error code

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

The above is how to view all the contents of the elastic network card (ENI) list through DescribeNetworkInterfaces. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report