Migrate from Topology and Smartscape API to Monitored entities API

The Topology and Smartscape API has been deprecated with Dynatrace version 1.263. Its replacement is the Monitored entities API. We recommend that you migrate to the new API at your earliest convenience.

This migration affects endpoint URLs, query parameters, and response/request body parameters, as well as the scope of the token for request authentication.

New features

The Monitored entities API offers you the following new features:

  • Entity type agnostic endpoint—you can query every type of entity via the same URL
  • Powerful entity selector that helps you to filter entities you want to read
  • Unified timeframe selector
  • Customizable return value—you can control which entity properties are included in the response
  • Entity types endpoints
  • Custom tags endpoints

Base URL

new Monitored entities
old Topology and Smartscape
/api/v2/entities
/api/v1/entity/applications
/api/v1/entity/infrastrucutre/hosts
/api/v1/entity/infrastrucutre/processes
/api/v1/entity/infrastrucutre/process-groups
/api/v1/entity/services
/api/v2/entities/custom
/api/v1/entity/infrastructure/custom/{customDeviceId}
/api/v2/tags
/api/v1/entity/applications/{meIdentifier}
/api/v1/entity/infrastrucutre/hosts/{meIdentifier}
/api/v1/entity/infrastrucutre/process-groups/{meIdentifier}
/api/v1/entity/services/{meIdentifier}

Authentication token scope

new Monitored entities
old Topology and Smartscape
Read entities (entities.read)
Write entities (entities.write)
Access problem and event feed, metrics, and topology (DataExport)

Parameters

To learn about new query/body parameters, see the documentation of individual requests in Monitored entities API.

Changes in workflow

With the upgrade to the Monitored entities API, some workflows require sending additional requests or calling additional endpoints. Be sure to adapt your automation accordingly.

Pagination

When you query entities in a bulk, pagination is used to reduce the payload size.

  1. Specify the number of entities per page in the pageSize query parameter.
  2. Use the cursor from the nextPageKey field of the previous response in the nextPageKey query parameter to obtain subsequent pages.

Create custom devices

In the Monitored entities API, you can't assign tags to the custom device upon creation. If you need to assign tags to your custom device, use a separate request to the POST custom tags endpoint.

Report data to custom devices

In the Monitored entities API, you can't report data to custom devices. Use the POST ingest data points call instead.

Examples

Here are some examples of differences in API usage.

List entities

In this example, we're querying the list of hosts that were active within the last 2 hours. Also, we don't need the full information about the host: we only need monitoring mode and the list of tags, assigned to the host. The result is truncated to two entries.

Compare the following tabs to see how we do this using the new Monitored entities API and the deprecated Topology and Smartscape API:

Assign entity tags

In this example, we assign additional tags (Datacenter:Linz and Rack:014) to hosts from the list entities example.

Compare the following tabs to see how we do this using the new Monitored entities API and the deprecated Topology and Smartscape API:

Create custom devices

In this example, we create a custom device with the ID of restExample and the following parameters:

  • type: F5-Firewall
  • IP address 172.16.115.211
  • listen port 9999

Compare the following tabs to see how we do this using the new Monitored entities API and the deprecated Topology and Smartscape API: