- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to Retrieve all extattrs of a networkcontainer from an IP Address Contained Within It
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2024 09:06 AM
Hi everyone,
Using the GET 'https://....v2.9/networkcontainer?_return_fields%2B=extattrs' I retrieve all network_containers along with their extra attributes. How can I obtain the extra attributes of a single network_container? My input is an IP address, through which I can identify the network, and from the network, I can obtain the _ref of the network_container. However, I'm unable to retrieve the extra attributes of a single network_container. I'm using WAPI version 2.9
any help would be greatly appreciated
thanks
Filomena
Re: How to Retrieve all extattrs of a networkcontainer from an IP Address Contained Within It
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 10:24 AM
If you already have the _ref for the network container you should be able to use:
{{base_url}}/networkcontainer/<your_ref>?_return_field=extattrs,network,network_view
Since you are starting from an ipaddress, which returns network and network_view alternatively you can target the network container without the _ref using:
{{base_url}}/networkcontainer?network=10.0.0.0/8&network_view=default&_return_fields=extattrs,network,network_view
Which should return the specific network container with extensible attributes.
{{base_url}} = https://<GM>/wapi/v2.9
Hope this helps.