LicenseManager / Client / list_tokens
list_tokens#
- LicenseManager.Client.list_tokens(**kwargs)#
Lists your tokens.
See also: AWS API Documentation
Request Syntax
response = client.list_tokens( TokenIds=[ 'string', ], Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], NextToken='string', MaxResults=123 )
- Parameters:
TokenIds (list) –
Token IDs.
(string) –
Filters (list) –
Filters to scope the results. The following filter is supported:
LicenseArns
(dict) –
A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
Name (string) –
Name of the filter. Filter names are case-sensitive.
Values (list) –
Filter values. Filter values are case-sensitive.
(string) –
NextToken (string) – Token for the next set of results.
MaxResults (integer) – Maximum number of results to return in a single call.
- Return type:
dict
- Returns:
Response Syntax
{ 'Tokens': [ { 'TokenId': 'string', 'TokenType': 'string', 'LicenseArn': 'string', 'ExpirationTime': 'string', 'TokenProperties': [ 'string', ], 'RoleArns': [ 'string', ], 'Status': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Tokens (list) –
Received token details.
(dict) –
Describes a token.
TokenId (string) –
Token ID.
TokenType (string) –
Type of token generated. The supported value is
REFRESH_TOKEN
.LicenseArn (string) –
Amazon Resource Name (ARN) of the license.
ExpirationTime (string) –
Token expiration time, in ISO8601-UTC format.
TokenProperties (list) –
Data specified by the caller.
(string) –
RoleArns (list) –
Amazon Resource Names (ARN) of the roles included in the token.
(string) –
Status (string) –
Token status. The possible values are
AVAILABLE
andDELETED
.
NextToken (string) –
Token for the next set of results.
Exceptions
LicenseManager.Client.exceptions.ValidationException
LicenseManager.Client.exceptions.AuthorizationException
LicenseManager.Client.exceptions.AccessDeniedException
LicenseManager.Client.exceptions.RateLimitExceededException
LicenseManager.Client.exceptions.ServerInternalException