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

**********************
list_v2_logging_levels
**********************



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

  

  Lists logging levels.

   

  Requires permission to access the `ListV2LoggingLevels <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/ListV2LoggingLevels>`_  


  **Request Syntax**
  ::

    response = client.list_v2_logging_levels(
        targetType='DEFAULT'|'THING_GROUP'|'CLIENT_ID'|'SOURCE_IP'|'PRINCIPAL_ID',
        nextToken='string',
        maxResults=123
    )
    
  :type targetType: string
  :param targetType: 

    The type of resource for which you are configuring logging. Must be ``THING_Group``.

    

  
  :type nextToken: string
  :param nextToken: 

    To retrieve the next set of results, the ``nextToken`` value from a previous response; otherwise **null** to receive the first set of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return at one time.

    

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

    
    ::

      {
          'logTargetConfigurations': [
              {
                  'logTarget': {
                      'targetType': 'DEFAULT'|'THING_GROUP'|'CLIENT_ID'|'SOURCE_IP'|'PRINCIPAL_ID',
                      'targetName': 'string'
                  },
                  'logLevel': 'DEBUG'|'INFO'|'ERROR'|'WARN'|'DISABLED'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **logTargetConfigurations** *(list) --* 

        The logging configuration for a target.

        
        

        - *(dict) --* 

          The target configuration.

          
          

          - **logTarget** *(dict) --* 

            A log target

            
            

            - **targetType** *(string) --* 

              The target type.

              
            

            - **targetName** *(string) --* 

              The target name.

              
        
          

          - **logLevel** *(string) --* 

            The logging level.

            
      
    
      

      - **nextToken** *(string) --* 

        The token to use to get the next set of results, or **null** if there are no additional results.

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

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

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

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

  