Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Search IP address with network but without network container
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2023 05:49 AM
864     0
Hello the community,
I would like to retrieve the network for an IP address, but without the network container.
For now I use
/wapi/v2.9.1/search?address=10.60.48.79&_return_type=xml&_return_fields%2b=network
The answer is:
<?xml version="1.0"?> <list> <value type="object"> <name>toto.mydomain.fr</name> <ipv4addrs> <list> <value type="object"> <configure_for_dhcp type="boolean">false</configure_for_dhcp> <host>toto.mydomain.fr</host> <ipv4addr>10.60.48.79</ipv4addr> <_ref>record:host_ipv4addr/jhkqjhekjhazf5454azef4af:10.60.48.79/toto.mydomain.fr/myview</_ref> </value> </list> </ipv4addrs> <_ref>record:host/jhkjzefezf224354efef:toto.mydomain.fr/myview</_ref> <view>myview</view> </value> <value type="object"> <comment>Main</comment> <network>10.0.0.0/8</network> <network_view>default</network_view> <_ref>networkcontainer/jhkljhkzefefezfzef:10.0.0.0/8/default</_ref> </value> <value type="object"> <comment>site</comment> <network>10.60.0.0/15</network> <network_view>default</network_view> <_ref>networkcontainer/gkhgkjhgjhgjhgjhg:10.60.0.0/15/default</_ref> </value> <value type="object"> <comment>My subnet</comment> <network>10.60.48.0/24</network> <network_view>default</network_view> <_ref>network/kjhkjh54654ergegezg:10.60.48.0/24/default</_ref> </value> </list>I would like to have the same answer but without the network container because it a little be complicated to scan all the network to find only the last one.
Thanks for helping,
Gilles