• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Custom container-validator

Settings API - Custom Container-Validator schema table

Custom Container-Validator (builtin:example.custom-validation.container-validator)

Showcase of a Custom Container-Validator executed in the cluster.

It will check that the Start is before the End value.

For the Java implementation check out ExampleContainerValidatorSchema.java

It is closely linked to the json schema, you have to use the constraint on the type in the json file, and the containerTypeIdentifier in the Java class has to correspond with that type name. see ExampleContainerValidator.schema.json

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

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
rangeRangeNumberRange

A number range with a custom container validation attached to it.

required

Request body objects

The NumberRange object
PropertyLabelTypeDescriptionRequired
startStartinteger

Start of the range.

required
endEndinteger

End of the range. Must be after Start.

required