:doc:`IoT <../../iot>` / Client / list_ca_certificates

********************
list_ca_certificates
********************



.. py:method:: IoT.Client.list_ca_certificates(**kwargs)

  

  Lists the CA certificates registered for your Amazon Web Services account.

   

  The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

   

  Requires permission to access the `ListCACertificates <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions>`__ action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/ListCACertificates>`_  


  **Request Syntax**
  ::

    response = client.list_ca_certificates(
        pageSize=123,
        marker='string',
        ascendingOrder=True|False,
        templateName='string'
    )
    
  :type pageSize: integer
  :param pageSize: 

    The result page size.

    

  
  :type marker: string
  :param marker: 

    The marker for the next set of results.

    

  
  :type ascendingOrder: boolean
  :param ascendingOrder: 

    Determines the order of the results.

    

  
  :type templateName: string
  :param templateName: 

    The name of the provisioning template.

    

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

    
    ::

      {
          'certificates': [
              {
                  'certificateArn': 'string',
                  'certificateId': 'string',
                  'status': 'ACTIVE'|'INACTIVE',
                  'creationDate': datetime(2015, 1, 1)
              },
          ],
          'nextMarker': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The output from the ListCACertificates operation.

      
      

      - **certificates** *(list) --* 

        The CA certificates registered in your Amazon Web Services account.

        
        

        - *(dict) --* 

          A CA certificate.

          
          

          - **certificateArn** *(string) --* 

            The ARN of the CA certificate.

            
          

          - **certificateId** *(string) --* 

            The ID of the CA certificate.

            
          

          - **status** *(string) --* 

            The status of the CA certificate.

             

            The status value REGISTER_INACTIVE is deprecated and should not be used.

            
          

          - **creationDate** *(datetime) --* 

            The date the CA certificate was created.

            
      
    
      

      - **nextMarker** *(string) --* 

        The current position within the list of CA certificates.

        
  
  **Exceptions**
  
  *   :py:class:`IoT.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`IoT.Client.exceptions.ThrottlingException`

  
  *   :py:class:`IoT.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`IoT.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`IoT.Client.exceptions.InternalFailureException`

  