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
      /
      Creates a patch baseline.
      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 '{
          "OperatingSystem": "WINDOWS",
          "Name": "string",
          "GlobalFilters": {
              "PatchFilters": []
          },
          "ApprovalRules": {
              "PatchRules": []
          },
          "ApprovedPatches": [],
          "ApprovedPatchesComplianceLevel": "CRITICAL",
          "ApprovedPatchesEnableNonSecurity": true,
          "RejectedPatches": [],
          "RejectedPatchesAction": "ALLOW_AS_DEPENDENCY",
          "Description": "string",
          "Sources": [],
          "ClientToken": "string",
          "Tags": []
      }'
      Response Response Example
      200 - Example 1
      {
          "BaselineId": "string"
      }

      Request

      Header Params
      X-Amz-Target
      string 
      required
      Body Params application/json
      OperatingSystem
      enum<string> 
      optional
      Defines the operating system the patch baseline applies to. The default value is WINDOWS.
      Allowed values:
      WINDOWSAMAZON_LINUXAMAZON_LINUX_2AMAZON_LINUX_2022UBUNTUREDHAT_ENTERPRISE_LINUXSUSECENTOSORACLE_LINUXDEBIANMACOSRASPBIANROCKY_LINUXALMA_LINUXAMAZON_LINUX_2023
      Name
      string 
      required
      The name of the patch baseline.
      >= 3 characters<= 128 characters
      Match pattern:
      ^[a-zA-Z0-9_\-.]{3,128}$
      GlobalFilters
      object 
      optional
      A set of global filters used to include patches in the baseline.
      PatchFilters
      array [object] 
      required
      The set of patch filters that make up the group.
      >= 0 items<= 4 items
      ApprovalRules
      object 
      optional
      A set of rules used to include patches in the baseline.
      PatchRules
      array[object (PatchRule) {5}] 
      required
      The rules that make up the rule group.
      >= 0 items<= 10 items
      ApprovedPatches
      array[string]
      optional
      A list of explicitly approved patches for the baseline.
      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.
      >= 0 items<= 50 items
      ApprovedPatchesComplianceLevel
      enum<string> 
      optional
      Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is UNSPECIFIED.
      Allowed values:
      CRITICALHIGHMEDIUMLOWINFORMATIONALUNSPECIFIED
      ApprovedPatchesEnableNonSecurity
      boolean 
      optional
      Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is false. Applies to Linux managed nodes only.
      RejectedPatches
      array[string]
      optional
      A list of explicitly rejected patches for the baseline.
      For information about accepted formats for lists of approved patches and rejected patches, see About package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.
      >= 0 items<= 50 items
      RejectedPatchesAction
      enum<string> 
      optional
      The action for Patch Manager to take on patches included in the RejectedPackages list.
      • ALLOW_AS_DEPENDENCY : A package in the Rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as InstalledOther. This is the default action if no option is specified.
      • BLOCK : Packages in the RejectedPatches list, and packages that include them as dependencies, aren't installed under any circumstances. If a package was installed before it was added to the Rejected patches list, it is considered non-compliant with the patch baseline, and its status is reported as InstalledRejected.
      Allowed values:
      ALLOW_AS_DEPENDENCYBLOCK
      Description
      string 
      optional
      A description of the patch baseline.
      >= 1 characters<= 1024 characters
      Sources
      array[object (PatchSource) {3}] 
      optional
      Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.
      >= 0 items<= 20 items
      Name
      string 
      required
      The name specified to identify the patch source.
      Match pattern:
      ^[a-zA-Z0-9_\-.]{3,50}$
      Products
      array[string]
      required
      The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product values, see PatchFilter.
      >= 1 items<= 20 items
      Configuration
      string <password>
      required
      The value of the yum repo configuration. For example:
      [main]
      name=MyCustomRepository
      baseurl=https://my-custom-repository
      enabled=1
      >= 1 characters<= 1024 characters
      ClientToken
      string 
      optional
      User-provided idempotency token.
      >= 1 characters<= 64 characters
      Tags
      array[object (Tag) {2}] 
      optional
      Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:
      • Key=PatchSeverity,Value=Critical
      • Key=OS,Value=Windows
      <= 1000 items
      Key
      string 
      required
      The name of the tag.
      >= 1 characters<= 128 characters
      Match pattern:
      ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
      Value
      string 
      required
      The value of the tag.
      >= 0 characters<= 256 characters
      Match pattern:
      ^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$
      Examples

      Responses

      🟢200Success
      application/json
      Body
      BaselineId
      string 
      optional
      The ID of the created patch baseline.
      >= 20 characters<= 128 characters
      Match pattern:
      ^[a-zA-Z0-9_\-:/]{20,128}$
      🟠480IdempotentParameterMismatch
      🟠481ResourceLimitExceededException
      🟠482InternalServerError
      Previous
      /
      Next
      /
      Built with