Amazon Simple Systems Manager (SSM)
    Amazon Simple Systems Manager (SSM)
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST

      /

      The Amazon SSM multi-region endpoint
      http://ssm.{region}.amazonaws.com
      The Amazon SSM multi-region endpoint
      http://ssm.{region}.amazonaws.com
      POST
      /
      Describes the association for the specified target or managed node. If you created the association by using the Targets parameter, then you must retrieve the association by using the association ID.
      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 '{
          "Name": "string",
          "InstanceId": "string",
          "AssociationId": "string",
          "AssociationVersion": "string"
      }'
      Response Response Example
      200 - Example 1
      {
          "AssociationDescription": {
              "Name": "string",
              "InstanceId": "string",
              "AssociationVersion": "string",
              "Date": "string",
              "LastUpdateAssociationDate": "string",
              "Status": {
                  "Date": "string",
                  "Name": "Pending",
                  "Message": "string",
                  "AdditionalInfo": "string"
              },
              "Overview": {
                  "Status": "string",
                  "DetailedStatus": "string",
                  "AssociationStatusAggregatedCount": {
                      "property1": 0,
                      "property2": 0
                  }
              },
              "DocumentVersion": "string",
              "AutomationTargetParameterName": "string",
              "Parameters": {
                  "property1": [
                      "string"
                  ],
                  "property2": [
                      "string"
                  ]
              },
              "AssociationId": "string",
              "Targets": [],
              "ScheduleExpression": "string",
              "OutputLocation": {
                  "S3Location": {
                      "OutputS3Region": "string",
                      "OutputS3BucketName": "string",
                      "OutputS3KeyPrefix": "string"
                  }
              },
              "LastExecutionDate": "string",
              "LastSuccessfulExecutionDate": "string",
              "AssociationName": "string",
              "MaxErrors": "string",
              "MaxConcurrency": "string",
              "ComplianceSeverity": "CRITICAL",
              "SyncCompliance": "AUTO",
              "ApplyOnlyAtCronInterval": true,
              "CalendarNames": [],
              "TargetLocations": [],
              "ScheduleOffset": 0,
              "TargetMaps": [],
              "AlarmConfiguration": {
                  "IgnorePollAlarmFailure": true,
                  "Alarms": []
              },
              "TriggeredAlarms": []
          }
      }

      Request

      Header Params
      X-Amz-Target
      string 
      required
      Body Params application/json
      Name
      string 
      optional
      The name of the SSM document.
      Match pattern:
      ^[a-zA-Z0-9_\-.:/]{3,128}$
      InstanceId
      string 
      optional
      The managed node ID.
      Match pattern:
      (^i-(\w{8}|\w{17})$)|(^mi-\w{17}$)
      AssociationId
      string 
      optional
      The association ID for which you want information.
      Match pattern:
      [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}
      AssociationVersion
      string 
      optional
      Specify the association version to retrieve. To view the latest version, either specify $LATEST for this parameter, or omit this parameter. To view a list of all associations for a managed node, use ListAssociations. To get a list of versions for a specific association, use ListAssociationVersions.
      Match pattern:
      ([$]LATEST)|([1-9][0-9]*)
      Examples

      Responses

      🟢200Success
      application/json
      Body
      AssociationDescription
      object 
      optional
      Information about the association.
      Name
      string 
      optional
      The name of the SSM document.
      Match pattern:
      ^[a-zA-Z0-9_\-.:/]{3,128}$
      InstanceId
      string 
      optional
      The managed node ID.
      Match pattern:
      (^i-(\w{8}|\w{17})$)|(^mi-\w{17}$)
      AssociationVersion
      string 
      optional
      The association version.
      Match pattern:
      ([$]LATEST)|([1-9][0-9]*)
      Date
      string <date-time>
      optional
      The date when the association was made.
      LastUpdateAssociationDate
      string <date-time>
      optional
      The date when the association was last updated.
      Status
      object 
      optional
      The association status.
      Overview
      object 
      optional
      Information about the association.
      DocumentVersion
      string 
      optional
      The document version.
      Match pattern:
      ([$]LATEST|[$]DEFAULT|^[1-9][0-9]*$)
      AutomationTargetParameterName
      string 
      optional
      Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of Amazon Web Services Systems Manager.
      >= 1 characters<= 50 characters
      Parameters
      object 
      optional
      A description of the parameters for a document.
      AssociationId
      string 
      optional
      The association ID.
      Match pattern:
      [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}
      Targets
      array [object] 
      optional
      The managed nodes targeted by the request.
      >= 0 items<= 5 items
      ScheduleExpression
      string 
      optional
      A cron expression that specifies a schedule when the association runs.
      >= 1 characters<= 256 characters
      OutputLocation
      object 
      optional
      An S3 bucket where you want to store the output details of the request.
      LastExecutionDate
      string <date-time>
      optional
      The date on which the association was last run.
      LastSuccessfulExecutionDate
      string <date-time>
      optional
      The last date on which the association was successfully run.
      AssociationName
      string 
      optional
      The association name.
      Match pattern:
      ^[a-zA-Z0-9_\-.]{3,128}$
      MaxErrors
      string 
      optional
      The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set MaxError to 10%, then the system stops sending the request when the sixth error is received.
      Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won't be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.
      >= 1 characters<= 7 characters
      Match pattern:
      ^([1-9][0-9]*|[0]|[1-9][0-9]%|[0-9]%|100%)$
      MaxConcurrency
      string 
      optional
      The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.
      If a new managed node starts and attempts to run an association while Systems Manager is running MaxConcurrency associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified for MaxConcurrency.
      >= 1 characters<= 7 characters
      Match pattern:
      ^([1-9][0-9]*|[1-9][0-9]%|[1-9]%|100%)$
      ComplianceSeverity
      enum<string> 
      optional
      The severity level that is assigned to the association.
      Allowed values:
      CRITICALHIGHMEDIUMLOWUNSPECIFIED
      SyncCompliance
      enum<string> 
      optional
      The mode for generating association compliance. You can specify AUTO or MANUAL. In AUTO mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association is COMPLIANT. If the association execution doesn't run successfully, the association is NON-COMPLIANT.
      In MANUAL mode, you must specify the AssociationId as a parameter for the PutComplianceItems API operation. In this case, compliance data isn't managed by State Manager, a capability of Amazon Web Services Systems Manager. It is managed by your direct call to the PutComplianceItems API operation.
      By default, all associations use AUTO mode.
      Allowed values:
      AUTOMANUAL
      ApplyOnlyAtCronInterval
      boolean 
      optional
      By default, when you create a new associations, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don't want an association to run immediately after you create it. This parameter isn't supported for rate expressions.
      CalendarNames
      array[string]
      optional
      The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your associations are gated under. The associations only run when that change calendar is open. For more information, see Amazon Web Services Systems Manager Change Calendar.
      TargetLocations
      array[object (TargetLocation) {6}] 
      optional
      The combination of Amazon Web Services Regions and Amazon Web Services accounts where you want to run the association.
      >= 1 items<= 100 items
      ScheduleOffset
      integer 
      optional
      Number of days to wait after the scheduled day to run an association.
      >= 1<= 6
      TargetMaps
      array[object (TargetMap)] 
      optional
      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can't be specified together.
      >= 0 items<= 300 items
      AlarmConfiguration
      object 
      AlarmConfiguration
      optional
      The details for the CloudWatch alarm you want to apply to an automation or command.
      TriggeredAlarms
      array[object (AlarmStateInformation) {2}] 
      optional
      The CloudWatch alarm that was invoked during the association.
      >= 1 items<= 1 items
      đźź 480AssociationDoesNotExist
      đźź 481InvalidAssociationVersion
      đźź 482InternalServerError
      đźź 483InvalidDocument
      đźź 484InvalidInstanceId
      Previous
      /
      Next
      /
      Built with