- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Getting a list of containers based on their extattrs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-31-2018 02:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-31-2018 02:26 AM
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
Re: Getting a list of containers based on their extattrs
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
01-31-2018 02:36 AM - edited 01-31-2018 02:36 AM
Thanks, it even works on v2.2.2
/kenneth