List Extensions 2.0 available in Dynatrace with the Extensions 2.0 API, and page, filter, or add fields to the response.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/extensions |
You can use page-size, page-key, filter, and add-fields to control which Extensions 2.0 appear and how the results are returned. The operation returns a success response with the extensions list.
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 |
|---|---|---|---|---|
| page-size | integer | The amount of extensions in a single response payload. The maximal allowed page size is 100. If not set, 20 is used. | query | Optional |
| page-key | string | The cursor for the next page of results. You can find it in the next-page-key field of the previous response. The first page is always returned if you don't specify the page-key query parameter. When the page-key is set to obtain subsequent pages, you must omit all other query parameters. | query | Optional |
| filter | string | The filter parameter, as explained here. Filtering is supported on the following fields:
This filter supports all type operators as well as logical operators 'AND' and 'OR'. 'NOT' operator and parentheses aren't supported. | query | Optional |
| add-fields | string | Comma separated list of additional fields to include in the response. Available fields:
| query | Optional |
| Code | Type | Description |
|---|---|---|
| 200 | Extension | Success. |
| 4XX | Error | Client error. |
| 5XX | Error | Server error. |
ExtensionInfoList objectA list of extensions with additional metadata.
| Element | Type | Description |
|---|---|---|
| items | Extension | A list of extensions with additional metadata. |
| nextPageKey | string | The cursor for the next page of results. Has the value of Use it in the page-key query parameter to obtain subsequent pages of the result. |
| pageSize | integer | The number of entries per page. |
| totalCount | integer | The total number of entries in the result. |
ExtensionInfo objectA list of extensions with additional metadata.
| Element | Type | Description |
|---|---|---|
| activeVersion | string | Active version in the environment (null if none is active) |
| extensionName | string | Extension name |
| keywords | string[] | Extension keywords for the highest version |
| markedForDeletion | boolean | Indicates if the extension is marked for deletion |
| version | string | Highest installed version |
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 | - |
{"items": [{"activeVersion": "1.2.3","extensionName": "string","keywords": ["string"],"markedForDeletion": true,"version": "1.2.3"}],"nextPageKey": "string","pageSize": 1,"totalCount": 1}
{"error": {"code": 1,"details": {"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}]},"message": "string"}}