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.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/settings/v1/schemas/{schema-id} |
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.
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.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| schema-id | string | The ID of the required schema. | path | Required |
| schema-version | string | The version of the required schema. If not set, the most recent version is returned. | query | Optional |
| Code | Type | Description |
|---|---|---|
| 200 | Settings | Success. |
| 404 | - | - |
| 429 | - | - |
| 503 | - | - |
| 4XX | - | - |
| 5XX | - | - |
SettingsSchemaDefinition object| Element | Type | Description |
|---|---|---|
| allowedScopes | string[] | A list of scopes where the schema can be used. |
| constraints | (Container | A list of constrains limiting the values to be accepted by the schema. |
| deletionConstraints | (Custom | Constraints limiting the values to be deleted. |
| description | string | A short description of the schema. |
| displayName | string | The display name of the schema. |
| documentation | string | An extended description of the schema and/or links to documentation. |
| dynatrace | string | The version of the data format. |
| enums | object | A list of definitions of enum properties. |
| keyProperty | string | Name of the key property in this schema. |
| maturity | string | The maturity of the schema. Possible values:
In any case, automations should make use of the The element can hold these values
|
| maxObjects | integer | The maximum amount of objects per scope. Only applicable when multiObject is set to |
| metadata | object | Metadata of the setting. |
| multiObject | boolean | Multiple ( |
| ordered | boolean | If Only applicable when multiObject is set to |
| properties | object | A list of schema's properties. |
| schemaConstraints | Schema | Constraints limiting the values as a whole to be accepted in this configuration element. |
| schemaGroups | string[] | Names of the groups, which the schema belongs to. |
| schemaId | string | The ID of the schema. |
| types | object | A list of definitions of types. A type is a complex property that contains its own set of subproperties. |
| version | string | The version of the schema. |
ContainerConstraint objectBiComparableContainerConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| properties | string[] | For |
CustomValidatorReferenceContainerConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| customValidatorId | string | For |
| skipAsyncValidation | boolean |
|
| timeout | integer | For |
PropertyCountRangeContainerConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| properties | string[] | For |
| minimumPropertyCount | integer | For |
| maximumPropertyCount | integer | For |
SecretResubmissionContainerConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| checkAllProperties | boolean | Either all properties or only those marked with |
CustomDeletionValidatorReferenceConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| customValidatorId | string | For |
| type | string | Type also defines which properties are available. The element can hold these values
|
ReferentialIntegrityDeletionConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| schemaIds | string[] | For |
| type | string | Type also defines which properties are available. The element can hold these values
|
EnumType object| Element | Type | Description |
|---|---|---|
| type | string | Always has to be The element can hold these values
|
| displayName | string | Defaults to |
| description | string | Short description of what this type is used for. |
| documentation | string | Additional information about the type, explanation of semantics of its values. |
| enumClass | string | Fully-qualified name of the java enum class this enum should be mapped to. |
| checkForDuplicateDisplayNames | boolean | Should only be set for enums that are used in combination with a datasource (so that no duplicates are ever displayed). |
| items | Enum | Mapping from enum values to displayName. |
EnumValue object| Element | Type | Description |
|---|---|---|
| value | string | Persisted value for the enum item |
| displayName | string | The human-friendly name of the value. |
| description | string | The human-friendly optional description of the value. |
| icon | string | An optional barista icon that's displayed next to the value. |
| enumInstance | string | Reference to an instance of #EnumType/enumClass using Enum::name |
Property object| Element | Type | Description |
|---|---|---|
| displayName | string | Defaults to |
| description | string | Short description of what this property is used for. |
| documentation | string | Additional information about the property, explanation of semantics of its values. |
| metadata | Meta | - |
| type | Ref | 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. |
| subType | string | Only in combination with built-in types. |
| datasource | Datasource | - |
| referencedType | string | Mandatory for |
| items | Item | - |
| nullable | boolean | Defaults to |
| default | - | Mandatory if |
| minObjects | integer | Optional. |
| maxObjects | integer | Defaults to |
| constraints | (Constraint | Collection | Validation constraints the property value must fulfill to be persistable. |
| precondition | Recursive | - |
| modificationPolicy | string |
The element can hold these values
|
| forceSecretResubmission | boolean | If |
| migrationPattern | string | - |
MetaData objectRefPointer object| Element | Type | Description |
|---|---|---|
| $ref | string | - |
Datasource object| Element | Type | Description |
|---|---|---|
| identifier | string | - |
| filterProperties | string[] | - |
| resetValue | string | Hint to the UI to reset value when one of the filter properties changed The element can hold these values
|
| validate | boolean | - |
| fullContext | boolean | - |
| useApiSearch | boolean | This should be used for datasources that have scaling amounts of options, or exceptionally many. |
Item object| Element | Type | Description |
|---|---|---|
| displayName | string | The human-friendly name of the list/set item. |
| description | string | Short description of what this list/set item is used for. |
| documentation | string | Additional information about the list/set item, explanation of semantics of its values. |
| type | Ref | 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 |
| subType | string | Only in combination with built-in and enum types. |
| datasource | Datasource | - |
| referencedType | string | Mandatory for |
| constraints | Constraint[] | Validation constraints the list/set item value must fulfill to be persistable. |
| metadata | Meta | - |
Constraint objectLengthConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| maxLength | integer | For |
| minLength | integer | For |
RangeConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| maximum | - | For |
| minimum | - | For |
NotBlankConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
NotEmptyConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
TrimmedConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
NoWhitespaceConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
RegexConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| disallowDangerousRegex | boolean |
|
PatternConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| pattern | string | For |
CustomValidatorReferenceConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| customValidatorId | string | For |
| skipAsyncValidation | boolean |
|
| timeout | integer | For |
CollectionConstraint objectUniquePropertiesConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| uniqueProperties | string[] | For |
Precondition objectRecursivePrecondition object| Element | Type | Description |
|---|---|---|
| type | string | Type also defines which properties are required. The element can hold these values
|
| preconditions | Precondition[] | For |
NotPrecondition object| Element | Type | Description |
|---|---|---|
| type | string | Type also defines which properties are required. The element can hold these values
|
| precondition | Recursive | - |
EqualsPrecondition object| Element | Type | Description |
|---|---|---|
| type | string | Type also defines which properties are required. The element can hold these values
|
| property | string | For |
| expectedValue | - | For |
InPrecondition object| Element | Type | Description |
|---|---|---|
| type | string | Type also defines which properties are required. The element can hold these values
|
| property | string | For |
| expectedValues | - | For |
NullPrecondition object| Element | Type | Description |
|---|---|---|
| type | string | Type also defines which properties are required. The element can hold these values
|
| property | string | For |
RegexMatchPrecondition object| Element | Type | Description |
|---|---|---|
| type | string | Type also defines which properties are required. The element can hold these values
|
| property | string | For |
| pattern | string | For |
SchemaConstraint objectUniqueSchemaPropertiesConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| uniqueProperties | string[] | For |
| flattenCollections | boolean | For |
UniqueMultiScopeSchemaPropertiesConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| uniqueProperties | string[] | For |
CustomSchemaValidatorReferenceConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| customValidatorId | string | For |
| skipAsyncValidation | boolean |
|
ByteSizeLimitConstraint object| Element | Type | Description |
|---|---|---|
| customMessage | string | Message to be displayed if constraint is violated. |
| type | string | Type also defines which properties are available. The element can hold these values
|
| byteLimit | integer | For |
ComplexType object| Element | Type | Description |
|---|---|---|
| type | string | Always has to be The element can hold these values
|
| version | string | Semantic version |
| versionInfo | string | Defaults to empty string. |
| displayName | string | Defaults to |
| description | string | Short description of what this type is used for. |
| documentation | string | Additional information about the type, explanation of semantics of its values. |
| summaryPattern | string | Defaults to empty string. Markdown symbols need to be escaped if they're to be displayed normally. |
| searchPattern | string | If not specified the summaryPattern is used for search. |
| properties | object | Order is relevant for UI, not for serialization. |
| constraints | Container | Container validation constraints the type values must fulfill to be persistable. |
{"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"}