:doc:`SSM <../../ssm>` / Client / get_patch_baseline_for_patch_group

**********************************
get_patch_baseline_for_patch_group
**********************************



.. py:method:: SSM.Client.get_patch_baseline_for_patch_group(**kwargs)

  

  Retrieves the patch baseline that should be used for the specified patch group.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineForPatchGroup>`_  


  **Request Syntax**
  ::

    response = client.get_patch_baseline_for_patch_group(
        PatchGroup='string',
        OperatingSystem='WINDOWS'|'AMAZON_LINUX'|'AMAZON_LINUX_2'|'AMAZON_LINUX_2022'|'UBUNTU'|'REDHAT_ENTERPRISE_LINUX'|'SUSE'|'CENTOS'|'ORACLE_LINUX'|'DEBIAN'|'MACOS'|'RASPBIAN'|'ROCKY_LINUX'|'ALMA_LINUX'|'AMAZON_LINUX_2023'
    )
    
  :type PatchGroup: string
  :param PatchGroup: **[REQUIRED]** 

    The name of the patch group whose patch baseline should be retrieved.

    

  
  :type OperatingSystem: string
  :param OperatingSystem: 

    Returns the operating system rule specified for patch groups using the patch baseline.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'BaselineId': 'string',
          'PatchGroup': 'string',
          'OperatingSystem': 'WINDOWS'|'AMAZON_LINUX'|'AMAZON_LINUX_2'|'AMAZON_LINUX_2022'|'UBUNTU'|'REDHAT_ENTERPRISE_LINUX'|'SUSE'|'CENTOS'|'ORACLE_LINUX'|'DEBIAN'|'MACOS'|'RASPBIAN'|'ROCKY_LINUX'|'ALMA_LINUX'|'AMAZON_LINUX_2023'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **BaselineId** *(string) --* 

        The ID of the patch baseline that should be used for the patch group.

        
      

      - **PatchGroup** *(string) --* 

        The name of the patch group.

        
      

      - **OperatingSystem** *(string) --* 

        The operating system rule specified for patch groups using the patch baseline.

        
  
  **Exceptions**
  
  *   :py:class:`SSM.Client.exceptions.InternalServerError`

  