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

***************
list_dimensions
***************



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

  

  List the set of dimensions that are defined for your Amazon Web Services accounts.

   

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


  **Request Syntax**
  ::

    response = client.list_dimensions(
        nextToken='string',
        maxResults=123
    )
    
  :type nextToken: string
  :param nextToken: 

    The token for the next set of results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to retrieve at one time.

    

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

    
    ::

      {
          'dimensionNames': [
              'string',
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **dimensionNames** *(list) --* 

        A list of the names of the defined dimensions. Use ``DescribeDimension`` to get details for a dimension.

        
        

        - *(string) --* 
    
      

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

        A token that can be used to retrieve the next set of results, or ``null`` if there are no additional results.

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

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

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

  