• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Data source example

Settings API - Datasource Example schema table

Datasource Example (builtin:example.custom-validation.datasource)

Showcase of datasource properties.

For the Java implementation check out ExampleDatasourceSchema.java

Schema IDSchema groupsScope
builtin:example.custom-validation.datasource-
environment
environment-default
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:example.custom-validation.datasource
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:example.custom-validation.datasource
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:example.custom-validation.datasource

Authentication

To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

PropertyLabelTypeDescriptionRequired
typeTypeenum

Controls the type of values the datasouces will deliver

optional
limitLimitinteger

Controls the max number (inclusive) returned by the advanced datasource

required
simpleSimple Datasourcetext

Will return possible values based on type, but also allows custom defined values (no validation). Uses api to filter values. Some of the values are visible only with devops access.

required
advancedAdvanced Datasourcetext

Will return possible values based on type and limit, only allows datasource values (with validation). Does not use api to filter values. Some of the values are visible only with devops access.

required
complexComplex property with datasourceinnerType

Inner datasource works with the full setting payload on validation

required

Request body objects

The innerType object
PropertyLabelTypeDescriptionRequired
fullContextDatasourceFull context datasourcetext

Data source that expects full setting payload on validation

Will return possible values based on type, only allows datasource values (with validation). Does not use api to filter values. Some of the values are visible only with devops access.

required