The /situations/{situationID}/topologies
endpoint allows you to retrieve the topologies related to the alerts in a specified Situation.
To retrieve the node and link details for a specified Situation and topology see getSituationTopology.
Back to Topologies API Endpoint Reference.
Retrieves the topologies related to a specified Situation.
The GET request takes the following path parameter:
Name | Type | Required | Description |
---|---|---|---|
| Number | Yes | ID of the Situation for which to retrieve topologies. |
The GET request returns the following response:
Successful requests return an array of JSON objects containing the following:
Name | Type | Description |
---|---|---|
| String | Name of the topology. |
| Boolean | Flag indicating whether this topology caused the Situation to be created. |
The following example demonstrates making a GET request to the situations/{situationID}/topologies
endpoint.
Example cURL request for topologies related to the alerts in Situation with ID 12:
curl \ https://example.com/api/v1/situations/12/topologies \ -u phil:password123 \
Example response returning the details of two topologies:
[
{
“name” : “host”,
“causal”: true
},
{
“name” : “location”,
“causal” : false
}
]