cancel
Showing results for 
Search instead for 
Did you mean: 

SZ API query for specific attributes

andy_young
New Contributor

I am trying to get some information using the API. The URI is

/wsg/api/public/v9_1/query/ap

If I POST

{ "filters": [ { "type": "DOMAIN", "value": "blah" } ], "attributes": [ "*" ] }

then it returns all information, but if I do

{ "filters": [ { "type": "DOMAIN", "value": "blah" } ], "attributes": [ "ip" ] }

then it returns nothing ("ip" is one of the items returned with "*").

I can see how the API command becomes an SQL command, but I can't work out the column names I need to put in the "attributes" array.

Any advice gratefully received

2 REPLIES 2

andy_young
New Contributor

Alternatively, does anyone have examples of scripted use of the API, or links to any good resources? The only ones I can find mention the filters, and say that "attributes" is an array of strings, but I can't find any examples of working code

Thanks

@andy_young

Did you ever figure this out? I can't seem to work out the syntax for "attributes" either.  

*EDIT*

I've just heard from an engineer at Ruckus, who confirmed that 'attributes' was never fully implemented. It has since been dropped in API v10 and beyond.