Retrieving defined situations

This example shows how to request information about defined situations for event monitoring.

Use the GET /situations endpoint to request a list of defined situations or information for a single situation, as follows:
  • Use the following path to request all defined situations:
    https://host:port/api/v1/situations
  • Use the following path to request information for a specific situation, by including the name parameter set to the unique identifier given to the situation or policy:
    https://host:port/api/v1/situations?name=situation_name
  • Use the id parameter to return situations by affinity:
    https://host:port/api/v1/situations?id=affinity_id