pvasco
Contributor
Contributor

Pulling all "no data receiving" EPOPS agents

Im looking to pull a json of all EPOPS agents with the "resourceStatus": "NO_DATA_RECEIVING" status

Im familar with pulling all agents  via https://vropserver/suite-api/api/adapterkinds/EP%20Ops%20Adapter/resourcekinds/EP%20Ops%20Agent/resources/

but how do i pull only the agents with "NO_DATA_RECEIVING" status

0 Kudos
1 Reply
UberGeek1
Contributor
Contributor

https://vropsserver/suite-api/api/resources?resourceKind=EP%20Ops%20Agent&adapterKind=EP%20Ops%20Ada...

This will pull all EP Ops adapters that are in the NO_DATA_RECEIVING state.  You can also do NONE as the resourceStatus.  Also, add on &resourceState=STARTED to only show things that have been started, otherwise you will get some returns of adapters that are stopped as well, which may be extra unneeded data.  The API docs are pretty good on this, https://vropsserver/suite-api/docs/rest/index.html, and look for getResources in the index on the left.

Sincerely, Jody L. Whitlock
0 Kudos