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.
Endpoint getSituationFlags
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| Array of Numbers | Yes | A list of Situation IDs. |
Endpoint getSituationFlags
returns the following response:
Successful requests return a JSON object containing the following:
Name | Description |
---|---|
| List of the states those Situations |
The following examples demonstrate typical use of endpoint getSituationFlags
:
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]'
Example response returning the flags associated with Situation 1:
{
"1":
[
"NOTIFIED",
"TICKETED"
]
}