• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Unique properties constraints example

Settings 2.0 - Unique properties constraints example schema

Unique Properties Constraints Example (builtin:example.unique-properties-constraints)

Showcase of constraints checking for the uniqueness of properties. The constraint can be either set on the top level for multi value schemas or for items in a collection property.

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

The combination of Field A and B has to be unique within the settings

required
fieldBField Btext

The combination of Field A and B has to be unique within the settings

optional
fieldCField Ctext

Can be any value

optional
listOfUniqueItemsA list of unique itemslist-required

Request body objects

The UniqueLstItem object
PropertyLabelTypeDescriptionRequired
fieldXField Xtext

The combination of Field X and Y has to be unique within the list

required
fieldYField Ytext

The combination of Field X and Y has to be unique within the list

optional
fieldZField Ztext

Can be any value

optional