Reply

Getting a list of containers based on their extattrs

kennethdue
Techie
Posts: 5
1076     0

Hi All

 

I am trying to automate creating new nets

i have a need to list all containers with a specific set of extattrs, and try one by one, to create a new net in that container. ( that is what the customer wants :-/ )

 

there are no method to ....

wapi/v2.2.2/networkcontainer?extattrs=xxxx&_return_fields=etc,etc,etc,etc,etc.....

 

i can list all networks with a specific set of extattrs, and that way find their containers, that is certainly doable in a pythonic way. But a newly created container without any nets, will not be found this way.

 

what to do .... ?

 

Regards

Kenneth Due

Re: Getting a list of containers based on their extattrs

Adviser
Posts: 96
1076     0

Try the following

 

curl -k -u admin:infoblox -X GET https://192.168.0.12/wapi/v2.5/networkcontainer?_return_fields=extattrs\&*Building:='222'

Stefan

Highlighted

Re: Getting a list of containers based on their extattrs

[ Edited ]
kennethdue
Techie
Posts: 5
1076     0

 

Thanks, it even works on v2.2.2 Smiley Very Happy

 

/kenneth

Showing results for 
Search instead for 
Do you mean 

Recommended for You