DeadlineCloud / Client / list_session_actions
list_session_actions#
- DeadlineCloud.Client.list_session_actions(**kwargs)#
- Lists session actions. - See also: AWS API Documentation - Request Syntax- response = client.list_session_actions( farmId='string', jobId='string', maxResults=123, nextToken='string', queueId='string', sessionId='string', taskId='string' ) - Parameters:
- farmId (string) – - [REQUIRED] - The farm ID for the session actions list. 
- jobId (string) – - [REQUIRED] - The job ID for the session actions list. 
- maxResults (integer) – The maximum number of results to return. Use this parameter with - NextTokento get results as a set of sequential pages.
- nextToken (string) – The token for the next set of results, or - nullto start from the beginning.
- queueId (string) – - [REQUIRED] - The queue ID for the session actions list. 
- sessionId (string) – The session ID to include on the sessions action list. 
- taskId (string) – The task ID for the session actions list. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'nextToken': 'string', 'sessionActions': [ { 'definition': { 'envEnter': { 'environmentId': 'string' }, 'envExit': { 'environmentId': 'string' }, 'syncInputJobAttachments': { 'stepId': 'string' }, 'taskRun': { 'stepId': 'string', 'taskId': 'string' } }, 'endedAt': datetime(2015, 1, 1), 'progressPercent': ..., 'sessionActionId': 'string', 'startedAt': datetime(2015, 1, 1), 'status': 'ASSIGNED'|'RUNNING'|'CANCELING'|'SUCCEEDED'|'FAILED'|'INTERRUPTED'|'CANCELED'|'NEVER_ATTEMPTED'|'SCHEDULED'|'RECLAIMING'|'RECLAIMED', 'workerUpdatedAt': datetime(2015, 1, 1) }, ] } - Response Structure- (dict) – - nextToken (string) – - If Deadline Cloud returns - nextToken, then there are more results available. The value of- nextTokenis a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then- nextTokenis set to- null. Each pagination token expires after 24 hours. If you provide a token that isn’t valid, then you receive an HTTP 400- ValidationExceptionerror.
- sessionActions (list) – - The session actions. - (dict) – - The details of a session action. - definition (dict) – - The session action definition. - Note- This is a Tagged Union structure. Only one of the following top level keys will be set: - envEnter,- envExit,- syncInputJobAttachments,- taskRun. If a client receives an unknown member it will set- SDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure of- SDK_UNKNOWN_MEMBERis as follows:- 'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'} - envEnter (dict) – - The environment to enter into. - environmentId (string) – - The environment ID. 
 
- envExit (dict) – - The environment to exit from. - environmentId (string) – - The environment ID. 
 
- syncInputJobAttachments (dict) – - The job attachments to sync with the session action definition. - stepId (string) – - The step ID of the step in the job attachment. 
 
- taskRun (dict) – - The task run. - stepId (string) – - The step ID. 
- taskId (string) – - The task ID. 
 
 
- endedAt (datetime) – - The date and time the resource ended running. 
- progressPercent (float) – - The completion percentage for the session action. 
- sessionActionId (string) – - The session action ID. 
- startedAt (datetime) – - The date and time the resource started running. 
- status (string) – - The status of the session action. 
- workerUpdatedAt (datetime) – - The Linux timestamp of the last date and time that the session action was updated. 
 
 
 
 
 - Exceptions- DeadlineCloud.Client.exceptions.AccessDeniedException
- DeadlineCloud.Client.exceptions.InternalServerErrorException
- DeadlineCloud.Client.exceptions.ResourceNotFoundException
- DeadlineCloud.Client.exceptions.ThrottlingException
- DeadlineCloud.Client.exceptions.ValidationException