Returns detailed information about command execution for an invocation or plugin.
GetCommandInvocation only gives the execution status of a plugin in a document. To get the command execution status on a specific managed node, use ListCommandInvocations. To get the command execution status across managed nodes, use ListCommands.
Headers
Request body
(Required) The parent command ID of the invocation plugin.
(Required) The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.
Response
Success
The parent command ID of the invocation plugin.
The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.
The comment text for the command.
The name of the document that was run. For example, <code>AWS-RunShellScript</code>.
The Systems Manager document (SSM document) version used in the request.
The name of the plugin, or <i>step name</i>, for which details are reported. For example, <code>aws:RunShellScript</code> is a plugin.
The error level response code for the plugin script. If the response code is <code>-1</code>, then the command hasn't started running on the managed node, or it wasn't received by the node.
Duration since <code>ExecutionStartDateTime</code>.
The status of this invocation plugin. This status can be different than <code>StatusDetails</code>.
The first 24,000 characters written by the plugin to <code>stdout</code>. If the command hasn't finished running, if <code>ExecutionStatus</code> is neither Succeeded nor Failed, then this string is empty.
The URL for the complete text written by the plugin to <code>stdout</code> in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string is empty.
The first 8,000 characters written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.
The URL for the complete text written by the plugin to <code>stderr</code>. If the command hasn't finished running, then this string is empty.