Reply

How to Retrieve all extattrs of a networkcontainer from an IP Address Contained Within It

New Member
Posts: 1
1415     0

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

New Member
Posts: 4
1416     0

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.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You