v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141381,185842.7 KB

Attempts to cancel the command specified by the Command ID. There is no guarantee that the command will be terminated and the underlying process stopped.

post/#X-Amz-Target=AmazonSSM.CancelCommand

Headers

X-Amz-Target'AmazonSSM.CancelCommand' required

Request body

CommandIdstring required

The ID of the command you want to cancel.

InstanceIdsInstanceId[]

(Optional) A list of managed node IDs on which you want to cancel the command. If not provided, the command is canceled on every node on which it was requested.

Response

Success

CancelCommandResult required

Whether or not the command was successfully canceled. There is no guarantee that a request can be canceled.