Try it free

Get a settings schema

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Get the definition of a Dynatrace settings schema with the Settings API by its ID, in the most recent version or a specific version you request.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/settings/v1/schemas/{schema-id}

Overview

You use the schema-id path parameter to read the definition of one settings schema, including its structure, constraints, and properties. The optional schema-version query parameter selects a specific version; without it, the most recent version is returned. A 200 response returns the schema definition.

Authentication

To execute this request, you need a platform token or OAuth access token with settings:schemas:read scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
schema-idstring

The ID of the required schema.

pathRequired
schema-versionstring

The version of the required schema.

If not set, the most recent version is returned.

queryOptional

Response

Response codes

CodeTypeDescription
200SettingsSchemaDefinition

Success.

404--
429--
503--
4XX--
5XX--

Response body objects

The SettingsSchemaDefinition object

ElementTypeDescription
allowedScopesstring[]

A list of scopes where the schema can be used.

constraints(ContainerConstraint | SecretResubmissionContainerConstraint)[]

A list of constrains limiting the values to be accepted by the schema.

deletionConstraints(CustomDeletionValidatorReferenceConstraint | ReferentialIntegrityDeletionConstraint)[]

Constraints limiting the values to be deleted.

descriptionstring

A short description of the schema.

displayNamestring

The display name of the schema.

documentationstring

An extended description of the schema and/or links to documentation.

dynatracestring

The version of the data format.

enumsobject

A list of definitions of enum properties.

keyPropertystring

Name of the key property in this schema.

maturitystring

The maturity of the schema. Possible values:

  • PREVIEW: Preview features aren't generally available, but might be available in specific environments as part of early-access programs. These are the most likely to change in incompatible ways.
  • EARLY_ADOPTER: Features marked "early adopter" are available in all environments, but aren't mature enough to warrant the "general availability" designation. We don't expect incompatible changes for these, but be aware, that these aren't fully stable yet and incompatible changes may be necessary in rare cases.
  • GENERAL_AVAILABILITY: Features marked "general availability" are the most stable. While the schemas will still evolve over time, care will be taken to only do so in a backward-compatible manner.

In any case, automations should make use of the schemaVersion field when writing settings objects.

The element can hold these values
  • EARLY_ADOPTER
  • GENERAL_AVAILABILITY
  • PREVIEW
maxObjectsinteger

The maximum amount of objects per scope.

Only applicable when multiObject is set to true.

metadataobject

Metadata of the setting.

multiObjectboolean

Multiple (true) objects per scope are permitted or a single (false) object per scope is permitted.

orderedboolean

If true the order of objects has semantic significance.

Only applicable when multiObject is set to true.

propertiesobject

A list of schema's properties.

schemaConstraintsSchemaConstraint[]

Constraints limiting the values as a whole to be accepted in this configuration element.

schemaGroupsstring[]

Names of the groups, which the schema belongs to.

schemaIdstring

The ID of the schema.

typesobject

A list of definitions of types.

A type is a complex property that contains its own set of subproperties.

versionstring

The version of the schema.

The ContainerConstraint object

The BiComparableContainerConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • GREATER_THAN
  • GREATER_THAN_OR_EQUAL
  • LESS_THAN
  • LESS_THAN_OR_EQUAL
propertiesstring[]

For type in [GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL] exactly two properties are required.

The CustomValidatorReferenceContainerConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • CUSTOM_VALIDATOR_REF
customValidatorIdstring

For type = CUSTOM_VALIDATOR_REF.

skipAsyncValidationboolean

false - validate on every change in the UI, true - validate only on save

timeoutinteger

For type = CUSTOM_VALIDATOR_REF. Default is 5 s.

The PropertyCountRangeContainerConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • PROPERTY_COUNT_RANGE
propertiesstring[]

For type in [for type = PROPERTY_COUNT_RANGE an arbitrary number of properties can be given.

minimumPropertyCountinteger

For type = PROPERTY_COUNT_RANGE.

maximumPropertyCountinteger

For type = PROPERTY_COUNT_RANGE.

The SecretResubmissionContainerConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • SECRET_RESUBMISSION
checkAllPropertiesboolean

Either all properties or only those marked with forceSecretResubmission are considered.

The CustomDeletionValidatorReferenceConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

customValidatorIdstring

For type = CUSTOM_VALIDATOR_REF

typestring

Type also defines which properties are available.

The element can hold these values
  • CUSTOM_VALIDATOR_REF

The ReferentialIntegrityDeletionConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

schemaIdsstring[]

For type = REFERENTIAL_INTEGRITY

typestring

Type also defines which properties are available.

The element can hold these values
  • REFERENTIAL_INTEGRITY

The EnumType object

ElementTypeDescription
typestring

Always has to be enum for enum types.

The element can hold these values
  • enum
displayNamestring

Defaults to id in the code-api.

descriptionstring

Short description of what this type is used for.

documentationstring

Additional information about the type, explanation of semantics of its values.

enumClassstring

Fully-qualified name of the java enum class this enum should be mapped to.

checkForDuplicateDisplayNamesboolean

Should only be set for enums that are used in combination with a datasource (so that no duplicates are ever displayed).

itemsEnumValue[]

Mapping from enum values to displayName.

The EnumValue object

ElementTypeDescription
valuestring

Persisted value for the enum item

displayNamestring

The human-friendly name of the value.

descriptionstring

The human-friendly optional description of the value.

iconstring

An optional barista icon that's displayed next to the value.

enumInstancestring

Reference to an instance of #EnumType/enumClass using Enum::name

The Property object

ElementTypeDescription
displayNamestring

Defaults to id in the code-api.

descriptionstring

Short description of what this property is used for.

documentationstring

Additional information about the property, explanation of semantics of its values.

metadataMetaData-
typeRefPointer

Ref-pointer to ComplexType/EnumType id or enum list,set,boolean,integer,float,local_date,local_time,local_date_time,zoned_date_time,time_zone,text,secret,setting.

subTypestring

Only in combination with built-in types.

datasourceDatasource-
referencedTypestring

Mandatory for setting type, otherwise only optionally used in conjunction with subType.

itemsItem-
nullableboolean

Defaults to false. Can't be true for properties with type list and set.

default-

Mandatory if nullable = false, can't be set if nullable = true. Can't be empty for enum properties.

minObjectsinteger

Optional.

maxObjectsinteger

Defaults to 100 for collections and 1 for non-collections.

constraints(Constraint | CollectionConstraint)[]

Validation constraints the property value must fulfill to be persistable.

preconditionRecursivePrecondition | NotPrecondition | EqualsPrecondition | InPrecondition | NullPrecondition | RegexMatchPrecondition-
modificationPolicystring

DEFAULT - modifiability of the value is defined by ModificationFlags.isModifiable, ALWAYS/NEVER - the value can be always/never modified. Defaults to DEFAULT. Can't be used on properties inside a collection property.

The element can hold these values
  • DEFAULT
  • ALWAYS
  • NEVER
forceSecretResubmissionboolean

If true any change to the property value also requires all properties of type secret to be provided

migrationPatternstring-

The MetaData object

The RefPointer object

ElementTypeDescription
$refstring-

The Datasource object

ElementTypeDescription
identifierstring-
filterPropertiesstring[]-
resetValuestring

Hint to the UI to reset value when one of the filter properties changed

The element can hold these values
  • ALWAYS
  • NEVER
  • INVALID_ONLY
validateboolean-
fullContextboolean-
useApiSearchboolean

This should be used for datasources that have scaling amounts of options, or exceptionally many.

The Item object

ElementTypeDescription
displayNamestring

The human-friendly name of the list/set item.

descriptionstring

Short description of what this list/set item is used for.

documentationstring

Additional information about the list/set item, explanation of semantics of its values.

typeRefPointer

Ref-pointer to ComplexType/EnumType id or enum boolean,integer,float,local_date,local_time,local_date_time,zoned_date_time,time_zone,text,secret,setting

subTypestring

Only in combination with built-in and enum types.

datasourceDatasource-
referencedTypestring

Mandatory for setting type, otherwise only optionally used in conjunction with subType.

constraintsConstraint[]

Validation constraints the list/set item value must fulfill to be persistable.

metadataMetaData-

The Constraint object

The LengthConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • LENGTH
maxLengthinteger

For type = LENGTH and string values.

minLengthinteger

For type = LENGTH and string values.

The RangeConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • RANGE
maximum-

For type = RANGE and integer and floating-point numeric values.

minimum-

For type = RANGE and integer and floating-point numeric values.

The NotBlankConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • NOT_BLANK

The NotEmptyConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • NOT_EMPTY

The TrimmedConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • TRIMMED

The NoWhitespaceConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • NO_WHITESPACE

The RegexConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • REGEX
disallowDangerousRegexboolean

true - regex must be safe, false - unsafe regexes are allowed

The PatternConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • PATTERN
patternstring

For type = PATTERN and string values.

The CustomValidatorReferenceConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • CUSTOM_VALIDATOR_REF
customValidatorIdstring

For type = CUSTOM_VALIDATOR_REF.

skipAsyncValidationboolean

false - validate on every change in the UI, true - validate only on save

timeoutinteger

For type = CUSTOM_VALIDATOR_REF. Default is 5 s.

The CollectionConstraint object

The UniquePropertiesConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • UNIQUE
uniquePropertiesstring[]

For type = UNIQUE.

The Precondition object

The RecursivePrecondition object

ElementTypeDescription
typestring

Type also defines which properties are required.

The element can hold these values
  • AND
  • OR
preconditionsPrecondition[]

For type in [AND, OR].

The NotPrecondition object

ElementTypeDescription
typestring

Type also defines which properties are required.

The element can hold these values
  • NOT
preconditionRecursivePrecondition | NotPrecondition | EqualsPrecondition | InPrecondition | NullPrecondition | RegexMatchPrecondition-

The EqualsPrecondition object

ElementTypeDescription
typestring

Type also defines which properties are required.

The element can hold these values
  • EQUALS
propertystring

For type in [NULL, EQUALS, IN, REGEX_MATCH].

expectedValue-

For type = EQUALS, type of value should match type of referenced property.

The InPrecondition object

ElementTypeDescription
typestring

Type also defines which properties are required.

The element can hold these values
  • IN
propertystring

For type in [NULL, EQUALS, IN, REGEX_MATCH].

expectedValues-

For type = IN, type of values should match type of referenced property.

The NullPrecondition object

ElementTypeDescription
typestring

Type also defines which properties are required.

The element can hold these values
  • NULL
propertystring

For type in [NULL, EQUALS, IN, REGEX_MATCH].

The RegexMatchPrecondition object

ElementTypeDescription
typestring

Type also defines which properties are required.

The element can hold these values
  • REGEX_MATCH
propertystring

For type in [NULL, EQUALS, IN, REGEX_MATCH].

patternstring

For type = REGEX_MATCH, type of value should be string.

The SchemaConstraint object

The UniqueSchemaPropertiesConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • UNIQUE
uniquePropertiesstring[]

For type = UNIQUE

flattenCollectionsboolean

For type = UNIQUE

The UniqueMultiScopeSchemaPropertiesConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • MULTI_SCOPE_UNIQUE
uniquePropertiesstring[]

For type = MULTI_SCOPE_UNIQUE

The CustomSchemaValidatorReferenceConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • CUSTOM_VALIDATOR_REF
  • MULTI_SCOPE_CUSTOM_VALIDATOR_REF
customValidatorIdstring

For type = CUSTOM_VALIDATOR_REF or MULTI_SCOPE_CUSTOM_VALIDATOR_REF.

skipAsyncValidationboolean

false - validate on every change in the UI, true - validate only on save

The ByteSizeLimitConstraint object

ElementTypeDescription
customMessagestring

Message to be displayed if constraint is violated.

typestring

Type also defines which properties are available.

The element can hold these values
  • BYTE_SIZE_LIMIT
byteLimitinteger

For type = BYTE_SIZE_LIMIT

The ComplexType object

ElementTypeDescription
typestring

Always has to be object for complex types.

The element can hold these values
  • object
versionstring

Semantic version x.y.z, defaults to 0, has to be increased when properties are added/removed or structurally modified (type, nullable).

versionInfostring

Defaults to empty string.

displayNamestring

Defaults to id in the code-api.

descriptionstring

Short description of what this type is used for.

documentationstring

Additional information about the type, explanation of semantics of its values.

summaryPatternstring

Defaults to empty string. Markdown symbols need to be escaped if they're to be displayed normally.

searchPatternstring

If not specified the summaryPattern is used for search.

propertiesobject

Order is relevant for UI, not for serialization.

constraintsContainerConstraint[]

Container validation constraints the type values must fulfill to be persistable.

Response body JSON models

{
"allowedScopes": [
"host",
"application"
],
"constraints": [
{
"customMessage": "string",
"type": "GREATER_THAN",
"properties": [
"string"
]
}
],
"deletionConstraints": [
{
"customMessage": "string",
"customValidatorId": "string",
"type": "CUSTOM_VALIDATOR_REF"
}
],
"description": "Dynatrace disables monitoring of containers that do not run any applications",
"displayName": "Built-in container monitoring rules",
"documentation": "string",
"dynatrace": "1",
"enums": {},
"keyProperty": "keyProperty",
"maturity": "GENERAL_AVAILABILITY",
"maxObjects": 10,
"metadata": {},
"multiObject": true,
"ordered": true,
"properties": {},
"schemaConstraints": [
{
"customMessage": "string",
"type": "UNIQUE",
"uniqueProperties": [
"string"
],
"flattenCollections": false
}
],
"schemaGroups": [
"group:some.1",
"group:some.2"
],
"schemaId": "builtin:container.built-in-monitoring-rule",
"types": {},
"version": "1.4.2"
}
Related tags
Platform APIDynatrace Platform