Execute data source actions for a monitoring configuration of Extension 2.0 in Dynatrace with the Extensions API using the extension name and configuration ID.
| PUT | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/extensions/{extension-name}/monitoring-configurations/{configuration-id}/actions |
You provide the extension name and configuration ID in the path and send actions in the request body. Dynatrace returns 202 Accepted after it schedules the actions on ActiveGate or Host.
To execute this request, you need a platform token or OAuth access token with extensions:configuration.actions:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| extension-name | string | The name of the requested Extension 2.0. | path | Required |
| configuration-id | string | The ID of the requested monitoring configuration. | path | Required |
| body | Execute | JSON body of the request, containing monitoring configuration actions parameters. | body | Required |
ExecuteActions object| Element | Type | Description | Required |
|---|---|---|---|
| actions | object | Data Source defined action objects | Optional |
JsonNode objectThe monitoring configuration
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"actions": {}}
| Code | Type | Description |
|---|---|---|
| 202 | Execute | Accepted. |
| 4XX | Error | Client error. |
| 5XX | Error | Server error. |
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"}}