Extensions 2.0 API - GET all files

  • Reference
  • Published Jan 22, 2021

Lists all files in the specified version of the Extensions 2.0 extension schema.

The request produces an application/json payload.

GETManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/extensions/schemas/{schemaVersion}
Environment and Cluster ActiveGate (default port 9999)https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/extensions/schemas/{schemaVersion}

Authentication

To execute this request, you need an access token with extensions.read scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
schemaVersionstring

The version of the schema.

pathRequired
Acceptstring

Accept header. Specifies part of the extension 2.0 that will be returned:

  • application/json; charset=utf-8 - returns extension 2.0 metadata in JSON
  • application/octet-stream - returns extension 2.0 zip package stored on the server.
headerOptional

Response

Response codes

CodeTypeDescription
200SchemaFiles

Success

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The SchemaFiles object

ElementTypeDescription
filesstring[]

A list of schema files.

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"files": [
"string"
]
}
{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}