Topology & Smartscape API - Services

The Topology & Smartscape—Services API enables you to get details of currently monitored services as well as assign tags to them. You can:

GET list of services

Fetches the list of all services in your Dynatrace environment, along with their parameters and relationships.

The full list can be lengthy, so you can narrow it down by specifying filter parameters, like tags. See the Parameters expandable section for more details.

The request produces application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/services
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/services

GET service parameters

Gets the parameters of the specified service.

The request produces application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/services/{meIdentifier}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/services/{meIdentifier}

POST tags to the service

Assigns custom tags to the specified service. You only need to provide tag value. The CONTEXTLESS context will be assigned automatically. The request consumes application/json payload.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/entity/services/{meIdentifier}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/entity/services/{meIdentifier}