:doc:`ManagedGrafana <../../grafana>` / Paginator / ListWorkspaceServiceAccountTokens

*********************************
ListWorkspaceServiceAccountTokens
*********************************



.. py:class:: ManagedGrafana.Paginator.ListWorkspaceServiceAccountTokens

  ::

    
    paginator = client.get_paginator('list_workspace_service_account_tokens')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`ManagedGrafana.Client.list_workspace_service_account_tokens`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListWorkspaceServiceAccountTokens>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          serviceAccountId='string',
          workspaceId='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type serviceAccountId: string
    :param serviceAccountId: **[REQUIRED]** 

      The ID of the service account for which to return tokens.

      

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

      The ID of the workspace for which to return tokens.

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      A dictionary that provides parameters to control pagination.

      

    
      - **MaxItems** *(integer) --* 

        The total number of items to return. If the total number of items available is more than the value specified in max-items then a ``NextToken`` will be provided in the output that you can use to resume pagination.

        

      
      - **PageSize** *(integer) --* 

        The size of each page.

        

      
      - **StartingToken** *(string) --* 

        A token to specify where to start paginating. This is the ``NextToken`` from a previous response.

        

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

      
      ::

        {
            'serviceAccountId': 'string',
            'serviceAccountTokens': [
                {
                    'createdAt': datetime(2015, 1, 1),
                    'expiresAt': datetime(2015, 1, 1),
                    'id': 'string',
                    'lastUsedAt': datetime(2015, 1, 1),
                    'name': 'string'
                },
            ],
            'workspaceId': 'string',
            'NextToken': 'string'
        }
        
      **Response Structure**

      

      - *(dict) --* 
        

        - **serviceAccountId** *(string) --* 

          The ID of the service account where the tokens reside.

          
        

        - **serviceAccountTokens** *(list) --* 

          An array of structures containing information about the tokens.

          
          

          - *(dict) --* 

            A structure that contains the information about a service account token.

            
            

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

              When the service account token was created.

              
            

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

              When the service account token will expire.

              
            

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

              The unique ID of the service account token.

              
            

            - **lastUsedAt** *(datetime) --* 

              The last time the token was used to authorize a Grafana HTTP API.

              
            

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

              The name of the service account token.

              
        
      
        

        - **workspaceId** *(string) --* 

          The ID of the workspace where the tokens reside.

          
        

        - **NextToken** *(string) --* 

          A token to resume pagination.

          
    