Custom services API

The Custom services API enables you to manage the custom service detection rules. You can:

GET all custom service rules

Lists all custom service rules available in your Dynatrace environment.

The request produces an application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}

POST a new custom service rule

Creates a new custom service rule.

The request consumes and produces an application/json payload.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}

POST validate a new rule

Validates the payload for the POST a new rule request.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/validator
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/validator

PUT reorder rules

Custom service rules are evaluated from top to bottom, the first matching rule applies.

This request reorders the custom service rules according to the order of the IDs in the body of the request. Rules that are omitted in the body of the request will retain their relative order but will be placed after all those present in the request.

The request consumes an application/json payload.

PUT
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/order
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/order

GET a custom service rule

Gets parameters of the specified custom service rule.

The request produces an application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/{id}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/{id}

PUT a custom service rule

Updates the specified custom service rule.

The request consumes and produces an application/json payload.

PUT
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/{id}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/{id}

POST validate an update

Validates the payload for the PUT an custom service request.

The request consumes an application/json payload.

POST
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/{id}/validator
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/{id}/validator

DELETE a custom service rule

Deletes the specified custom service rule.

DELETE
  • Managed https://{your-domain}/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/{id}
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/{id}