Try it free

Get task execution log

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Retrieve task log output in Dynatrace with the Automation API by execution and task, returning the STDOUT produced by the action.

GETSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/automation/v1/executions/{executionId}/tasks/{id}/log

Overview

You provide executionId and the task id in the path, and you can include adminAccess to allow access to all workflows and executions. Dynatrace returns the log output of the specified task execution.

Authentication

To execute this request, you need a platform token or OAuth access token with automation:workflows:read scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
adminAccessboolean

Allow access to all workflows/executions - additionally requires automation:workflows:admin

queryOptional
executionIdstring-pathRequired
idstring

Task name

pathRequired

Response

Response codes

CodeTypeDescription
200string-
4XXErrorEnvelope-

Response body objects

The ResponseBody object

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
messagestring-
codeinteger-
detailsErrorDetails-

The ErrorDetails object

ElementTypeDescription
errorCodestring-
errorRefstring-

Response body JSON models

{
"error": {
"message": "string",
"code": 1,
"details": {
"errorCode": "string",
"errorRef": "string"
}
}
}
Related tags
Platform APIDynatrace Platform