Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-systems-manager:amazon-systems-manager-run-command-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: Amazon Simple Systems Manager (SSM) Run Command API
version: '2014-11-06'
description: Generated from AWS's published Smithy model for Amazon Simple Systems Manager (SSM). 2 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://ssm.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/#ListCommands:
post:
operationId: ListCommands
summary: List Commands
description: Lists the commands requested by users of the Amazon Web Services account.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListCommandsResult'
'500':
description: InternalServerError
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InternalServerError'
'400':
description: InvalidCommandId; InvalidFilterKey; InvalidInstanceId; InvalidNextToken
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InvalidCommandId'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonSSM.ListCommands
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/ListCommandsRequest'
tags:
- Run Command
/#SendCommand:
post:
operationId: SendCommand
summary: Send Command
description: Runs commands on one or more managed nodes.
responses:
'200':
description: Success
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/SendCommandResult'
'400':
description: DuplicateInstanceId; InvalidDocument; InvalidDocumentVersion; InvalidInstanceId; InvalidNotificationConfig;
InvalidOutputFolder; InvalidParameters; InvalidRole; MaxDocumentSizeExceeded; UnsupportedPlatformType
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/DuplicateInstanceId'
'500':
description: InternalServerError
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/InternalServerError'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- AmazonSSM.SendCommand
requestBody:
required: true
content:
application/x-amz-json-1.1:
schema:
$ref: '#/components/schemas/SendCommandRequest'
tags:
- Run Command
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: ssm
schemas:
Alarm:
type: object
properties:
Name:
type: string
description: The name of your CloudWatch alarm.
required:
- Name
AlarmConfiguration:
type: object
properties:
IgnorePollAlarmFailure:
type: boolean
description: When this value is true, your automation or command continues to run in cases where we can’t retrieve
alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA,
the automation or command continues to run, regardless of this value. Default is false.
Alarms:
type: array
items:
$ref: '#/components/schemas/Alarm'
description: The name of the CloudWatch alarm specified in the configuration.
required:
- Alarms
AlarmStateInformation:
type: object
properties:
Name:
type: string
description: The name of your CloudWatch alarm.
State:
type: string
enum:
- UNKNOWN
- ALARM
description: The state of your CloudWatch alarm.
required:
- Name
- State
CloudWatchOutputConfig:
type: object
properties:
CloudWatchLogGroupName:
type: string
description: 'The name of the CloudWatch Logs log group where you want to send command output. If you don''t specify
a group name, Amazon Web Services Systems Manager automatically creates a log group for you. The log group uses
the following naming format: aws/ssm/SystemsManagerDocumentName'
CloudWatchOutputEnabled:
type: boolean
description: Enables Systems Manager to send command output to CloudWatch Logs.
Command:
type: object
properties:
CommandId:
type: string
description: A unique identifier for this command.
DocumentName:
type: string
description: The name of the document requested for execution.
DocumentVersion:
type: string
description: The Systems Manager document (SSM document) version.
Comment:
type: string
description: User-specified information about the command, such as a brief description of what the command should
do.
ExpiresAfter:
type: string
format: date-time
description: If a command expires, it changes status to DeliveryTimedOut for all invocations that have the status
InProgress, Pending, or Delayed. ExpiresAfter is calculated based on the total timeout for the overall command.
For more information, see Understanding command timeout values in the Amazon Web Services Systems Manager User
Guide.
Parameters:
type: object
additionalProperties:
type: array
items:
type: string
description: The parameter values to be inserted in the document when running the command.
InstanceIds:
type: array
items:
type: string
description: The managed node IDs against which this command was requested.
Targets:
type: array
items:
$ref: '#/components/schemas/Target'
description: An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
Targets is required if you don't provide one or more managed node IDs in the call.
RequestedDateTime:
type: string
format: date-time
description: The date and time the command was requested.
Status:
type: string
enum:
- Pending
- InProgress
- Success
- Cancelled
- Failed
- TimedOut
- Cancelling
description: The status of the command.
StatusDetails:
type: string
description: 'A detailed status of the command execution. StatusDetails includes more information than Status because
it includes states resulting from error and concurrency control parameters. StatusDetails can show different results
than Status. For more information about these statuses, see Understanding command statuses in the Amazon Web Services
Systems Manager User Guide. StatusDetails can be one of the following values: Pending: The command hasn''t been
sent to any managed nodes. In Progress: The command has been sent to at least one managed node but hasn''t reached
a final state on all managed nodes. '
OutputS3Region:
type: string
description: (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager
automatically determines the Amazon Web Services Region of the S3 bucket.
OutputS3BucketName:
type: string
description: The S3 bucket where the responses to the command executions should be stored. This was requested when
issuing the command.
OutputS3KeyPrefix:
type: string
description: The S3 directory path inside the bucket where the responses to the command executions should be stored.
This was requested when issuing the command.
MaxConcurrency:
type: string
description: The maximum number of managed nodes that are allowed to run the command at the same time. You can specify
a number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The default value is 50. For more
information about how to use MaxConcurrency, see Amazon Web Services Systems Manager Run Command in the Amazon
Web Services Systems Manager User Guide.
MaxErrors:
type: string
description: The maximum number of errors allowed before the system stops sending the command to additional targets.
You can specify a number of errors, such as 10, or a percentage or errors, such as 10%. The default value is 0.
For more information about how to use MaxErrors, see Amazon Web Services Systems Manager Run Command in the Amazon
Web Services Systems Manager User Guide.
TargetCount:
type: integer
description: The number of targets for the command.
CompletedCount:
type: integer
description: 'The number of targets for which the command invocation reached a terminal state. Terminal states include
the following: Success, Failed, Execution Timed Out, Delivery Timed Out, Cancelled, Terminated, or Undeliverable.'
ErrorCount:
type: integer
description: The number of targets for which the status is Failed or Execution Timed Out.
DeliveryTimedOutCount:
type: integer
description: The number of targets for which the status is Delivery Timed Out.
ServiceRole:
type: string
description: The Identity and Access Management (IAM) service role that Run Command, a tool in Amazon Web Services
Systems Manager, uses to act on your behalf when sending notifications about command status changes.
NotificationConfig:
$ref: '#/components/schemas/NotificationConfig'
CloudWatchOutputConfig:
$ref: '#/components/schemas/CloudWatchOutputConfig'
TimeoutSeconds:
type: integer
description: The TimeoutSeconds value specified for a command.
AlarmConfiguration:
$ref: '#/components/schemas/AlarmConfiguration'
TriggeredAlarms:
type: array
items:
$ref: '#/components/schemas/AlarmStateInformation'
description: The CloudWatch alarm that was invoked by the command.
CommandFilter:
type: object
properties:
key:
type: string
enum:
- InvokedAfter
- InvokedBefore
- Status
- ExecutionStage
- DocumentName
description: The name of the filter. The ExecutionStage filter can't be used with the ListCommandInvocations operation,
only with ListCommands.
value:
type: string
description: 'The filter value. Valid values for each filter key are as follows: InvokedAfter: Specify a timestamp
to limit your results. For example, specify 2024-07-07T00:00:00Z to see a list of command executions occurring
July 7, 2021, and later. InvokedBefore: Specify a timestamp to limit your results. For example, specify 2024-07-07T00:00:00Z
to see a list of command executions from before July 7, 2021. Status: Specify a valid command status to see a
list of all command executions with that status. The status choices depend on the API you call. The status values
you can specify for ListCommands are: P'
required:
- key
- value
DuplicateInstanceId:
type: object
properties: {}
InternalServerError:
type: object
properties:
Message:
type: string
InvalidCommandId:
type: object
properties: {}
ListCommandsRequest:
type: object
properties:
CommandId:
type: string
description: (Optional) If provided, lists only the specified command.
InstanceId:
type: string
description: (Optional) Lists commands issued against this managed node ID. You can't specify a managed node ID
in the same command that you specify Status = Pending. This is because the command hasn't reached the managed
node yet.
MaxResults:
type: integer
description: (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.
NextToken:
type: string
description: (Optional) The token for the next set of items to return. (You received this token from a previous
call.)
Filters:
type: array
items:
$ref: '#/components/schemas/CommandFilter'
description: (Optional) One or more filters. Use a filter to return a more specific list of results.
ListCommandsResult:
type: object
properties:
Commands:
type: array
items:
$ref: '#/components/schemas/Command'
description: (Optional) The list of commands requested by the user.
NextToken:
type: string
description: (Optional) The token for the next set of items to return. (You received this token from a previous
call.)
NotificationConfig:
type: object
properties:
NotificationArn:
type: string
description: An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command
pushes notifications about command status changes to this topic.
NotificationEvents:
type: array
items:
type: string
enum:
- All
- InProgress
- Success
- TimedOut
- Cancelled
- Failed
description: The different events for which you can receive notifications. To learn more about these events, see
Monitoring Systems Manager status changes using Amazon SNS notifications in the Amazon Web Services Systems Manager
User Guide.
NotificationType:
type: string
enum:
- Command
- Invocation
description: 'The type of notification. Command: Receive notification when the status of a command changes. Invocation:
For commands sent to multiple managed nodes, receive notification on a per-node basis when the status of a command
changes.'
SendCommandRequest:
type: object
properties:
InstanceIds:
type: array
items:
type: string
description: The IDs of the managed nodes where the command should run. Specifying managed node IDs is most useful
when you are targeting a limited number of managed nodes, though you can specify up to 50 IDs. To target a larger
number of managed nodes, or if you prefer not to list individual node IDs, we recommend using the Targets option
instead. Using Targets, which accepts tag key-value pairs to identify the managed nodes to send commands to, you
can a send command to tens, hundreds, or thousands of nodes at once. For more information about how to use targets,
see Run commands at scale in the Amazon We
Targets:
type: array
items:
$ref: '#/components/schemas/Target'
description: An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
Specifying targets is most useful when you want to send a command to a large number of managed nodes at once.
Using Targets, which accepts tag key-value pairs to identify managed nodes, you can send a command to tens, hundreds,
or thousands of nodes at once. To send a command to a smaller number of managed nodes, you can use the InstanceIds
option instead. For more information about how to use targets, see Run commands at scale in the Amazon Web Services
Systems Manager User Guide.
DocumentName:
type: string
description: The name of the Amazon Web Services Systems Manager document (SSM document) to run. This can be a public
document or a custom document. To run a shared document belonging to another account, specify the document Amazon
Resource Name (ARN). For more information about how to use shared documents, see Sharing SSM documents in the
Amazon Web Services Systems Manager User Guide. If you specify a document name or ARN that hasn't been shared
with your account, you receive an InvalidDocument error.
DocumentVersion:
type: string
description: 'The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version
number. If you run commands by using the Command Line Interface (Amazon Web Services CLI), then you must escape
the first two options by using a backslash. If you specify a version number, then you don''t need to use the backslash.
For example: --document-version "\$DEFAULT" --document-version "\$LATEST" --document-version "3"'
DocumentHash:
type: string
description: The Sha256 or Sha1 hash created by the system when the document was created. Sha1 hashes have been
deprecated.
DocumentHashType:
type: string
enum:
- Sha256
- Sha1
description: Sha256 or Sha1. Sha1 hashes have been deprecated.
TimeoutSeconds:
type: integer
description: If this time is reached and the command hasn't already started running, it won't run.
Comment:
type: string
description: User-specified information about the command, such as a brief description of what the command should
do.
Parameters:
type: object
additionalProperties:
type: array
items:
type: string
description: The required and optional parameters specified in the document being run.
OutputS3Region:
type: string
description: (Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager
automatically determines the Amazon Web Services Region of the S3 bucket.
OutputS3BucketName:
type: string
description: The name of the S3 bucket where command execution responses should be stored.
OutputS3KeyPrefix:
type: string
description: The directory structure within the S3 bucket where the responses should be stored.
MaxConcurrency:
type: string
description: (Optional) The maximum number of managed nodes that are allowed to run the command at the same time.
You can specify a number such as 10 or a percentage such as 10%. The default value is 50. For more information
about how to use MaxConcurrency, see Using concurrency controls in the Amazon Web Services Systems Manager User
Guide.
MaxErrors:
type: string
description: The maximum number of errors allowed without the command failing. When the command fails one more time
beyond the value of MaxErrors, the systems stops sending the command to additional targets. You can specify a
number like 10 or a percentage like 10%. The default value is 0. For more information about how to use MaxErrors,
see Using error controls in the Amazon Web Services Systems Manager User Guide.
ServiceRoleArn:
type: string
description: The ARN of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification
Service (Amazon SNS) notifications for Run Command commands. This role must provide the sns:Publish permission
for your notification topic. For information about creating and using this service role, see Monitoring Systems
Manager status changes using Amazon SNS notifications in the Amazon Web Services Systems Manager User Guide.
NotificationConfig:
$ref: '#/components/schemas/NotificationConfig'
CloudWatchOutputConfig:
$ref: '#/components/schemas/CloudWatchOutputConfig'
AlarmConfiguration:
$ref: '#/components/schemas/AlarmConfiguration'
required:
- DocumentName
SendCommandResult:
type: object
properties:
Command:
$ref: '#/components/schemas/Command'
Target:
type: object
properties:
Key:
type: string
description: User-defined criteria for sending commands that target managed nodes that meet the criteria.
Values:
type: array
items:
type: string
description: User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify
value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer. Depending on the
type of target, the maximum number of values for a key might be lower than the global maximum of 50.
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/ssm/service/2014-11-06/ssm-2014-11-06.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)