/
The Amazon SSM multi-region endpoint
http://ssm.{region}.amazonaws.com
The Amazon SSM multi-region endpoint
http://ssm.{region}.amazonaws.com
POST
/
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.Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://ssm.{region}.amazonaws.com/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
"CommandId": "string",
"InstanceId": "string",
"PluginName": "string"
}'
Response Response Example
200 - Example 1
{
"CommandId": "string",
"InstanceId": "string",
"Comment": "string",
"DocumentName": "string",
"DocumentVersion": "string",
"PluginName": "string",
"ResponseCode": 0,
"ExecutionStartDateTime": "string",
"ExecutionElapsedTime": "string",
"ExecutionEndDateTime": "string",
"Status": "Pending",
"StatusDetails": "string",
"StandardOutputContent": "string",
"StandardOutputUrl": "string",
"StandardErrorContent": "string",
"StandardErrorUrl": "string",
"CloudWatchOutputConfig": {
"CloudWatchLogGroupName": "string",
"CloudWatchOutputEnabled": true
}
}
Request
Header Params
X-Amz-Target
stringÂ
required
Body Params application/json