WorkSpacesWeb / Client / list_sessions
list_sessions¶
- WorkSpacesWeb.Client.list_sessions(**kwargs)¶
- Lists information for multiple secure browser sessions from a specific portal. - See also: AWS API Documentation - Request Syntax- response = client.list_sessions( portalId='string', username='string', sessionId='string', sortBy='StartTimeAscending'|'StartTimeDescending', status='Active'|'Terminated', maxResults=123, nextToken='string' ) - Parameters:
- portalId (string) – - [REQUIRED] - The ID of the web portal for the sessions. 
- username (string) – The username of the session. 
- sessionId (string) – The ID of the session. 
- sortBy (string) – The method in which the returned sessions should be sorted. 
- status (string) – The status of the session. 
- maxResults (integer) – The maximum number of results to be included in the next page. 
- nextToken (string) – The pagination token used to retrieve the next page of results for this operation. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'sessions': [ { 'portalArn': 'string', 'sessionId': 'string', 'username': 'string', 'status': 'Active'|'Terminated', 'startTime': datetime(2015, 1, 1), 'endTime': datetime(2015, 1, 1) }, ], 'nextToken': 'string' } - Response Structure- (dict) – - sessions (list) – - The sessions in a list. - (dict) – - Summary information about a secure browser session. - portalArn (string) – - The ARN of the web portal. 
- sessionId (string) – - The ID of the session. 
- username (string) – - The username of the session. 
- status (string) – - The status of the session. 
- startTime (datetime) – - The start time of the session. 
- endTime (datetime) – - The end time of the session. 
 
 
- nextToken (string) – - The pagination token used to retrieve the next page of results for this operation. 
 
 
 - Exceptions