• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Nested properties in constraints example

Settings API - Nested properties in constraints example schema table

Nested properties in constraints example (builtin:example.nested-properties-in-constraints)

Showcase of a usage of referencing nested properties in some built-in constraints: uniqueness schema constraint, uniqueness collection property constraint and container constraints

Schema IDSchema groupsScope
builtin:example.nested-properties-in-constraints
  • group:example
environment
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:example.nested-properties-in-constraints
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:example.nested-properties-in-constraints
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:example.nested-properties-in-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
schemaUniqueNameSchema unique nametext

Name, unique on the schema level in a combination with Nested name defined in the inner type

required
schemaUniqueNameComplexNested unique nameType1-required
integerValueInteger valueinteger

Integer value used in a container constraint

required
complexIntegerNested integer valueType2

Nested integer value used in a container constraint

required
collectionWithConstraintList with constraintlist

List with unique properties

required

Request body objects

The Type1 object
PropertyLabelTypeDescriptionRequired
innerUniqueNameNested nametext

Another name, unique on the schema level in a combination with Schema unique name

required
The Type2 object
PropertyLabelTypeDescriptionRequired
innerIntegerValueNested integer valueinteger

Nested integer value used in a container constraint

required
The Type3 object
PropertyLabelTypeDescriptionRequired
innerTextValueInner text valuetext-required
The Type4 object
PropertyLabelTypeDescriptionRequired
textValueText valuetext-required
complexValueComplex valueType3-required