Reply
Accepted Solution

How to find nested containers?

Authority
Posts: 31
844     0

I need to search on two EAs to find a container, and it seems I can't do that. 

 

I can find a container based on an EA called Type that will be Public, Private or Multicast in the future, but for testing it's my name and fake IPs. 

 

This gives me the 'top-level' container of 2.2.0.0/16:

https://hostname/wapi/v2.3.1/networkcontainer?*Type=Blair

 

However, when I add another EA to the search which is on a container within that /16, it doesn't find anything even though it exists as 2.2.16.0/20:

https://hostname/wapi/v2.3.1/networkcontainer?*Type=Blair?*Group=HPBX

 

But if I do the other half of the query, I get all of the results, including 2.2.16.0/20, plus others that aren't a type 'Blair', which includes a bunch of stuff I don't want:

https://hostname/wapi/v2.3.1/networkcontainer?*Group=HPBX

The end goal is to add /24s (or any other size) to that 2.2.16.0/20 with next_available_network as they are needed, but it's nested in another container and apparently isn't 'findable'.

 

Thanks!

Blair

Re: How to find nested containers?

Adviser
Posts: 213
844     0

Your query is incorrect.  You have two question marks and no ampersand.

 

https://hostname/wapi/v2.3.1/networkcontainer?*Type=Blair&*Group=HPBX

Try that and you should fine that it works. 

Highlighted

Re: How to find nested containers?

Authority
Posts: 31
844     0

I think I had the ampersand in there at some point, but it got lost in many attempts!

 

I'm set now.  Thanks!

Showing results for 
Search instead for 
Do you mean 

Recommended for You