Topology & Smartscape API - Services

The Topology & Smartscape—Services API enables you to get details of currently monitored services and to assign tags to them.

You can:

GET list of services

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

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

The request produces an 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 a specified service.

The request produces an 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 need to provide only a tag value. The CONTEXTLESS context will be assigned automatically. The request consumes an 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}