getSituationFlags
A Graze API GET request that returns the flags for one or an array of Situations.
See Situation Flags for more information on Moogsoft Enterprise Situation flags.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint getSituationFlags
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Array of Numbers | Yes | A list of Situation IDs. |
Response
Endpoint getSituationFlags
returns the following response:
Successful requests return a JSON object containing the following:
Name | Description |
---|---|
| List of the states those Situations |
Examples
The following examples demonstrate typical use of endpoint getSituationFlags
:
Request example
Example cURL request to list an array of all flags associated with Situation 1.
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getSituationFlags" --data-urlencode 'sitn_ids=[1,2,3,4]'
Response example
Example response returning the flags associated with Situation 1:
{ "1": [ "NOTIFIED", "TICKETED" ] }