DeadlineCloud / Client / list_sessions

list_sessions#

DeadlineCloud.Client.list_sessions(**kwargs)#

Lists sessions.

See also: AWS API Documentation

Request Syntax

response = client.list_sessions(
    farmId='string',
    jobId='string',
    maxResults=123,
    nextToken='string',
    queueId='string'
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID for the list of sessions.

  • jobId (string) –

    [REQUIRED]

    The job ID for the list of sessions.

  • maxResults (integer) – The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

  • nextToken (string) – The token for the next set of results, or null to start from the beginning.

  • queueId (string) –

    [REQUIRED]

    The queue ID for the list of sessions

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'sessions': [
        {
            'endedAt': datetime(2015, 1, 1),
            'fleetId': 'string',
            'lifecycleStatus': 'STARTED'|'UPDATE_IN_PROGRESS'|'UPDATE_SUCCEEDED'|'UPDATE_FAILED'|'ENDED',
            'sessionId': 'string',
            'startedAt': datetime(2015, 1, 1),
            'targetLifecycleStatus': 'ENDED',
            'updatedAt': datetime(2015, 1, 1),
            'updatedBy': 'string',
            'workerId': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is 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 nextToken is 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 ValidationException error.

    • sessions (list) –

      The sessions on the list.

      • (dict) –

        The summary of a session.

        • endedAt (datetime) –

          The date and time the resource ended running.

        • fleetId (string) –

          The fleet ID.

        • lifecycleStatus (string) –

          The life cycle status for the session.

        • sessionId (string) –

          The session ID.

        • startedAt (datetime) –

          The date and time the resource started running.

        • targetLifecycleStatus (string) –

          The target life cycle status for the session.

        • updatedAt (datetime) –

          The date and time the resource was updated.

        • updatedBy (string) –

          The user or system that updated this resource.

        • workerId (string) –

          The worker ID.

Exceptions