:doc:`Greengrass <../../greengrass>` / Client / get_group_certificate_authority

*******************************
get_group_certificate_authority
*******************************



.. py:method:: Greengrass.Client.get_group_certificate_authority(**kwargs)

  Retreives the CA associated with a group. Returns the public key of the CA.

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupCertificateAuthority>`_  


  **Request Syntax**
  ::

    response = client.get_group_certificate_authority(
        CertificateAuthorityId='string',
        GroupId='string'
    )
    
  :type CertificateAuthorityId: string
  :param CertificateAuthorityId: **[REQUIRED]** The ID of the certificate authority.

  
  :type GroupId: string
  :param GroupId: **[REQUIRED]** The ID of the Greengrass group.

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

    
    ::

      {
          'GroupCertificateAuthorityArn': 'string',
          'GroupCertificateAuthorityId': 'string',
          'PemEncodedCertificate': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* Success. The response body contains the PKI Configuration.
      

      - **GroupCertificateAuthorityArn** *(string) --* The ARN of the certificate authority for the group.
      

      - **GroupCertificateAuthorityId** *(string) --* The ID of the certificate authority for the group.
      

      - **PemEncodedCertificate** *(string) --* The PEM encoded certificate for the group.
  
  **Exceptions**
  
  *   :py:class:`Greengrass.Client.exceptions.BadRequestException`

  
  *   :py:class:`Greengrass.Client.exceptions.InternalServerErrorException`

  