The /topologies/{topologyName}
endpoint allows you to retrieve and delete a single topology.
To create, retrieve and update multiple topologies see /topologies.
Back to Topologies API Endpoint Reference.
Retrieves details of a specified topology.
The GET request takes the following path parameter:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | Name of the topology. You can obtain all topology names by executing a GET request to |
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. |
| String | Description of the topology. |
| Boolean | Whether the topology is active ( |
The following example demonstrates making a GET request to the /topologies/{topologyName}
endpoint.
Example cURL request for details of the topology with name "host":
curl -X GET \
https://example.com/api/v1/topologies/host \
-u phil:password123 \
Example response returning the topology's details:
{
"name": "host",
"description": "Host-based topology",
"active": true
}
Deletes a specified topology. Note the following:
You cannot delete a topology if it's being used to filter a Recipe.
Deleting a topology will impact your ability to restore associated Recipes in future. In order to restore a Recipe that filters on a named topology, the topology must still exist in Moogsoft Enterprise.
The DELETE request takes no arguments. It deletes the specified topology and any associated nodes and links.
The DELETE request returns the following response:
The following example demonstrates making a DELETE request to the /topologies/{topologyName}
endpoint.
Example cURL request to delete a topology with name "host":
curl -X DELETE \ https://example.com/api/v1/topologies/host \ -u phil:password123