Question/Issue with /api/networks and name= filter

I’m sure it’s a “me” thing, but I’m trying to hit the API to query for networks, but I’m looking to use the listed filter by name with wildcard option to cut down on what’s returned (as we have a boatload of networks)

I’m trying to do ‘/api/networks?name=%-A’ (or %-2 in my test environment) via Python3 Request, which a requests.url() is showing the % is encoded as %25 as expected (and as the demo code in the API reference at Get All Networks shows), but I keep getting no results returned.
This happens no matter the pattern I try to do with the % in there.
I even tried with my params= set to contain the field values for offset of 0, max of -1, and name of “3006-%-2” which should return one network but I’m receiving no results.

The encoded URL being sent is ‘/api/networks?offset=0&max=-1&name=3006-%25-2’

Can someone help me with what I’m doing wrong?

Thanks!

I’m seeing similar. I don’t know if a bug, but it at least is not working as the documentation suggests it should.

Are you able to raise a support case. That would be best. I’m happy to pick it up.

Ollie,

Submitted under Case 207635

Thanks!

– Ron

1 Like