Retrieve a schema file for an Extension 2.0 schema version in Dynatrace with the Extensions API by schema version and file name.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/schemas/{schema-version}/{file-name} |
You provide the schema version and file name in the path. Dynatrace returns the requested schema file for that Extension 2.0 schema version.
To execute this request, you need a platform token or OAuth access token with extensions:definitions:read scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| schema-version | string | The version of the schema. | path | Required |
| file-name | string | The name of the schema file. | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | Json | Success. |
| 4XX | Error | Client error. |
| 5XX | Error | Server error. |
JsonNode objectThe monitoring configuration
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code. |
| details | Error | The error details. |
| message | string | The error message. |
ErrorDetails objectThe error details.
| Element | Type | Description |
|---|---|---|
| constraintViolations | Constraint | A list of constraint violations. |
ConstraintViolation objectA list of constraint violations.
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"error": {"code": 1,"details": {"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}]},"message": "string"}}