Menu
AWS Systems Manager
API Reference (API Version 2014-11-06)

GetAutomationExecution

Get detailed information about a particular Automation execution.

Request Syntax

{
   "AutomationExecutionId": "string"
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

AutomationExecutionId

The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation document is initiated.

Type: String

Length Constraints: Fixed length of 36.

Required: Yes

Response Syntax

{
   "AutomationExecution": { 
      "AutomationExecutionId": "string",
      "AutomationExecutionStatus": "string",
      "CurrentAction": "string",
      "CurrentStepName": "string",
      "DocumentName": "string",
      "DocumentVersion": "string",
      "ExecutedBy": "string",
      "ExecutionEndTime": number,
      "ExecutionStartTime": number,
      "FailureMessage": "string",
      "MaxConcurrency": "string",
      "MaxErrors": "string",
      "Mode": "string",
      "Outputs": { 
         "string" : [ "string" ]
      },
      "Parameters": { 
         "string" : [ "string" ]
      },
      "ParentAutomationExecutionId": "string",
      "ResolvedTargets": { 
         "ParameterValues": [ "string" ],
         "Truncated": boolean
      },
      "StepExecutions": [ 
         { 
            "Action": "string",
            "ExecutionEndTime": number,
            "ExecutionStartTime": number,
            "FailureDetails": { 
               "Details": { 
                  "string" : [ "string" ]
               },
               "FailureStage": "string",
               "FailureType": "string"
            },
            "FailureMessage": "string",
            "Inputs": { 
               "string" : "string" 
            },
            "MaxAttempts": number,
            "OnFailure": "string",
            "Outputs": { 
               "string" : [ "string" ]
            },
            "OverriddenParameters": { 
               "string" : [ "string" ]
            },
            "Response": "string",
            "ResponseCode": "string",
            "StepExecutionId": "string",
            "StepName": "string",
            "StepStatus": "string",
            "TimeoutSeconds": number
         }
      ],
      "StepExecutionsTruncated": boolean,
      "Target": "string",
      "TargetParameterName": "string",
      "Targets": [ 
         { 
            "Key": "string",
            "Values": [ "string" ]
         }
      ]
   }
}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

AutomationExecution

Detailed information about the current state of an automation execution.

Type: AutomationExecution object

Errors

For information about the errors that are common to all actions, see Common Errors.

AutomationExecutionNotFoundException

There is no automation execution information for the requested automation execution ID.

HTTP Status Code: 400

InternalServerError

An error occurred on the server side.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: