:doc:`Route53GlobalResolver <../../route53globalresolver>` / Client / list_access_tokens

******************
list_access_tokens
******************



.. py:method:: Route53GlobalResolver.Client.list_access_tokens(**kwargs)

  

  Lists all access tokens for a DNS view with pagination support.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/route53globalresolver-2022-09-27/ListAccessTokens>`_  


  **Request Syntax**
  ::

    response = client.list_access_tokens(
        maxResults=123,
        nextToken='string',
        dnsViewId='string',
        filters={
            'string': [
                'string',
            ]
        }
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to retrieve in a single call.

    

  
  :type nextToken: string
  :param nextToken: 

    A pagination token used for large sets of results that can't be returned in a single response.

    

  
  :type dnsViewId: string
  :param dnsViewId: **[REQUIRED]** 

    The ID of the DNS view to list the tokens for.

    

  
  :type filters: dict
  :param filters: 

    Filtering parameters.

    

  
    - *(string) --* 

    
      - *(list) --* 

      
        - *(string) --* 

        
    


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

    
    ::

      {
          'nextToken': 'string',
          'accessTokens': [
              {
                  'id': 'string',
                  'arn': 'string',
                  'createdAt': datetime(2015, 1, 1),
                  'dnsViewId': 'string',
                  'expiresAt': datetime(2015, 1, 1),
                  'globalResolverId': 'string',
                  'name': 'string',
                  'status': 'CREATING'|'OPERATIONAL'|'DELETING',
                  'updatedAt': datetime(2015, 1, 1)
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        A pagination token used for large sets of results that can't be returned in a single response. Provide this token in the next call to get the results not returned in this call.

        
      

      - **accessTokens** *(list) --* 

        List of the tokens.

        
        

        - *(dict) --* 

          Summary information about a token.

          
          

          - **id** *(string) --* 

            The unique identifier of the token.

            
          

          - **arn** *(string) --* 

            The Amazon Resource Name (ARN) of the token.

            
          

          - **createdAt** *(datetime) --* 

            The date and time when the token was created.

            
          

          - **dnsViewId** *(string) --* 

            The ID of the DNS view associated with the token.

            
          

          - **expiresAt** *(datetime) --* 

            The date and time when the token expires.

            
          

          - **globalResolverId** *(string) --* 

            The ID of the global resolver associated with the token.

            
          

          - **name** *(string) --* 

            The name of the token.

            
          

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

            The current status of the token.

            
          

          - **updatedAt** *(datetime) --* 

            The date and time when the token was last updated.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.InternalServerException`

  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.ValidationException`

  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.ResourceNotFoundException`

  