1
Database / Re: API query.php syntax
« on: April 09, 2020, 08:18:31 pm »
Sorry to keep prodding at this, but I am able to do some workarounds with the API, but am getting stuck now with whitespaces:
https://1.1.1.1:8443/query.php?t=interfaces&q=ifdesc+=+Ethernet1/1 LAG:Po500
I am trying to tie a portchannel to actual physical interfaces by using the 'ifdesc' field, but having that white space between 'Ethernet1/1 LAG:Po500' isn't getting read correctly. I've tried %20 to replace the whitespace, also tried quotes, but it seems the query is only reading the string before the white space.
https://1.1.1.1:8443/query.php?t=interfaces&q=ifdesc+=+Ethernet1/1 LAG:Po500
I am trying to tie a portchannel to actual physical interfaces by using the 'ifdesc' field, but having that white space between 'Ethernet1/1 LAG:Po500' isn't getting read correctly. I've tried %20 to replace the whitespace, also tried quotes, but it seems the query is only reading the string before the white space.