DeadlineCloud / Client / get_session

get_session#

DeadlineCloud.Client.get_session(**kwargs)#

Gets a session.

See also: AWS API Documentation

Request Syntax

response = client.get_session(
    farmId='string',
    jobId='string',
    queueId='string',
    sessionId='string'
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID for the session.

  • jobId (string) –

    [REQUIRED]

    The job ID for the session.

  • queueId (string) –

    [REQUIRED]

    The queue ID for the session.

  • sessionId (string) –

    [REQUIRED]

    The session ID.

Return type:

dict

Returns:

Response Syntax

{
    'endedAt': datetime(2015, 1, 1),
    'fleetId': 'string',
    'hostProperties': {
        'ec2InstanceArn': 'string',
        'ec2InstanceType': 'string',
        'hostName': 'string',
        'ipAddresses': {
            'ipV4Addresses': [
                'string',
            ],
            'ipV6Addresses': [
                'string',
            ]
        }
    },
    'lifecycleStatus': 'STARTED'|'UPDATE_IN_PROGRESS'|'UPDATE_SUCCEEDED'|'UPDATE_FAILED'|'ENDED',
    'log': {
        'error': 'string',
        'logDriver': 'string',
        'options': {
            'string': 'string'
        },
        'parameters': {
            'string': 'string'
        }
    },
    'sessionId': 'string',
    'startedAt': datetime(2015, 1, 1),
    'targetLifecycleStatus': 'ENDED',
    'updatedAt': datetime(2015, 1, 1),
    'updatedBy': 'string',
    'workerId': 'string',
    'workerLog': {
        'error': 'string',
        'logDriver': 'string',
        'options': {
            'string': 'string'
        },
        'parameters': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • endedAt (datetime) –

      The date and time the resource ended running.

    • fleetId (string) –

      The fleet ID for the session.

    • hostProperties (dict) –

      Provides the Amazon EC2 properties of the host.

      • ec2InstanceArn (string) –

        The ARN of the host EC2 instance.

      • ec2InstanceType (string) –

        The instance type of the host EC2 instance.

      • hostName (string) –

        The host name.

      • ipAddresses (dict) –

        The IP address of the host.

        • ipV4Addresses (list) –

          The IpV4 address of the network.

          • (string) –

        • ipV6Addresses (list) –

          The IpV6 address for the network and node component.

          • (string) –

    • lifecycleStatus (string) –

      The life cycle status of the session.

    • log (dict) –

      The session log.

      • error (string) –

        The log configuration error details.

      • logDriver (string) –

        The log drivers for worker related logs.

      • options (dict) –

        The options for a log driver.

        • (string) –

          • (string) –

      • parameters (dict) –

        The parameters for the log configuration.

        • (string) –

          • (string) –

    • sessionId (string) –

      The session ID.

    • startedAt (datetime) –

      The date and time the resource started running.

    • targetLifecycleStatus (string) –

      The life cycle status with which the session started.

    • 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 for the session.

    • workerLog (dict) –

      The worker log for the session.

      • error (string) –

        The log configuration error details.

      • logDriver (string) –

        The log drivers for worker related logs.

      • options (dict) –

        The options for a log driver.

        • (string) –

          • (string) –

      • parameters (dict) –

        The parameters for the log configuration.

        • (string) –

          • (string) –

Exceptions