ManagedGrafana / Paginator / ListWorkspaceServiceAccountTokens
ListWorkspaceServiceAccountTokens#
- class ManagedGrafana.Paginator.ListWorkspaceServiceAccountTokens#
paginator = client.get_paginator('list_workspace_service_account_tokens')
- paginate(**kwargs)#
Creates an iterator that will paginate through responses from
ManagedGrafana.Client.list_workspace_service_account_tokens()
.See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( serviceAccountId='string', workspaceId='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
serviceAccountId (string) –
[REQUIRED]
The ID of the service account for which to return tokens.
workspaceId (string) –
[REQUIRED]
The ID of the workspace for which to return tokens.
PaginationConfig (dict) –
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.
- Return type:
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.