I'm making a fairly simple workflow in vRO that will simply take an input of the 'context' field, connect via the REST API, and query for all events that have that value in the context field, to output the logs associated with provisioning a system in vRA. The idea being I can either email the results on a failure, publish to a dashboard, whatever.
I'm using VLI 4.0.0 currently, and I'm referencing the documentation at Log Insight API documentation
I can easily do the GET query to get events and set the limit parameter to whatever I want, e.g :
GET /api/v1/events?limit=1000&timeout=15000
But, when I go add the constraints that I mentioned above, and attempt to add the limit argument, it's throwing errors.
https://[host]/api/v1/events/context/CONTAINS%20[context value]/product/vra/product/vro/timestamp/%3E0
This works, but only returns 100 entries, and I know there are more. If I try to do either of these whether URL encoded or not, it errors out:
https://[host]/api/v1/events/context/CONTAINS%20[context value]/product/vra/product/vro/timestamp/%3E0?limit=1000
{"errorMessage":"invalid_constraints: timestamp GT [0?limit=1000]"}
https://[host]/api/v1/events/context/CONTAINS%20[context value]/product/vra/product/vro/timestamp/%3E0/?limit=1000
{"errorMessage":"missing_argument: ?limit=1000"}
{"errorMessage":"Handler not found for request GET /api/v1/events%3Flimit%3D1000/context/CONTAINS%20SaU96w79/product/vra/product/vro/timestamp/%3E0"}
Is anyone aware of if it is possible to query with constraints and the limit argument in a single go?
I would hate to have to query a pile of stuff and then parse it by the context field afterward.