v1

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

Lists the commands requested by users of the Amazon Web Services account.

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

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'AmazonSSM.ListCommands' required

Request body

CommandIdstring

(Optional) If provided, lists only the specified command.

InstanceIdstring
<p>(Optional) Lists commands issued against this managed node ID.</p> <note> <p>You can't specify a managed node ID in the same command that you specify <code>Status</code> = <code>Pending</code>. This is because the command hasn't reached the managed node yet.</p> </note>
MaxResultsinteger

(Optional) The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

NextTokenstring

(Optional) The token for the next set of items to return. (You received this token from a previous call.)

Response

Success

NextTokenstring

(Optional) The token for the next set of items to return. (You received this token from a previous call.)