List all versions of an Extension 2.0 in Dynatrace with the Extensions 2.0 API, using the extension name and pagination controls.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/extensions/{extension-name} |
You provide the extension-name path parameter to choose the Extension 2.0 and can use page-size and page-key to page through versions. The operation returns a success response with the version 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 |
| extension-name | string | The name of the requested Extension 2.0. | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | Extension | Success. |
| 4XX | Error | Client error. |
| 5XX | Error | Server error. |
ExtensionList objectA list of extensions.
| Element | Type | Description |
|---|---|---|
| items | Minimal | A list of extensions. |
| 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. |
MinimalExtension objectA list of extensions.
| Element | Type | Description |
|---|---|---|
| extensionName | string | Extension name |
| version | string | Extension 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": [{"extensionName": "string","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"}}