• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Constraints example

Settings API - Constraints Example schema table

Constraints Example (builtin:example.constraints)

Showcase of two property constraint validations

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

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
containerConstraintsLessThanContainer Constraints lessThanOrEqual & lessThanContainerConstraintsLessThan-required
containerConstraintsGreaterThanContainer Constraints greaterThanOrEqual & greaterThanContainerConstraintsGreaterThan-required
containerConstraintPropertyCountRangeContainer Constraint propertyCountRangeContainerConstraintPropertyCountRange-required

Request body objects

The ContainerConstraintsLessThan object
PropertyLabelTypeDescriptionRequired
dateADate Azoned_date_time

Should be lessThanOrEqual Date B

optional
dateBDate Bzoned_date_time

Should be lessThan Date C

optional
dateCDate Czoned_date_time

Should be lessThanOrEqual Date D

optional
dateDDate Dzoned_date_time-optional
The ContainerConstraintsGreaterThan object
PropertyLabelTypeDescriptionRequired
fieldAField Afloat

Should be greaterThanOrEqual Field B

optional
fieldBField Bfloat

Should be greaterThan Field C

optional
fieldCField Cfloat

Should be greaterThanOrEqual Field D

optional
fieldDField Dfloat-optional
The ContainerConstraintPropertyCountRange object
PropertyLabelTypeDescriptionRequired
fieldAField Afloat

At least one of this fields has to be set

optional
fieldBField Bfloat

At least one of this fields has to be set

optional