Uploads a .zip extension file to your Dynatrace environment.
The request consumes a multipart/form-data payload and produces an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/extensions |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/extensions |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| file | .zip file | Extension .zip file to be uploaded. The file name must match the name field in the plugin.json file.For example, for the extension whose name is custom.remote.python.demo, the name of the extension file must be custom.remote.python.demo.zip. | body | required |
| overrideAlerts | Boolean | Use extension-defined thresholds for alerts (true) or user-defined thresholds (false).Extension-defined thresholds are stored in the plugin.json file.If not set, user-defined thresholds are used. | query | optional |
| Code | Type | Description |
|---|---|---|
| 201 | Entity | Success. Extension has been uploaded. Response contains the ID of the extension. |
| 400 | Error | Failed. The input is invalid |
EntityShortRepresentation objectThe short representation of a Dynatrace entity.
| Element | Type | Description |
|---|---|---|
| description | string | A short description of the Dynatrace entity. |
| id | string | The ID of the Dynatrace entity. |
| name | string | The name of the Dynatrace entity. |
{"description": "Dynatrace entity for the REST API example","id": "6a98d7bc-abb9-44f8-ae6a-73e68e71812a","name": "Dynatrace entity"}
We recommend that you validate the payload before submitting it with an actual request. A response code of 204 indicates a valid payload.
The request consumes an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/extensions/validator |
| Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/extensions/validator |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Code | Type | Description |
|---|---|---|
| 204 | - | Validated. The submitted extension is valid. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid |