A Graze API GET request that returns the total number of active Situations, and a list of their Situation IDs. Active Situations are those that are not Closed, Resolved or Dormant.
Back to Graze API EndPoint Reference.
Endpoint getActiveSituationIds
takes the following request argument:
Endpoint getActiveSituationIds
takes no other arguments because this endpoint returns data on all active Situations.
Endpoint getActiveSituationIds
returns the following response:
Successful requests return a JSON object containing the following:
Name | Type | Description |
---|---|---|
| Number | Total number of active Situations. |
| Array | A list of active Situation IDs. |
The following examples demonstrate typical use of endpoint getActiveSituationIds
:
Example cURL request to return all active Situations in Moogsoft Enterprise:
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getActiveSituationIds"
Example response returning the IDs of ten Situations:
{
"total_situations": 10,
"sitn_ids": [4, 5, 6, 12, 14, 15, 16, 17, 18, 19]
}