DeadlineCloud / Client / update_worker

update_worker#

DeadlineCloud.Client.update_worker(**kwargs)#

Updates a worker.

See also: AWS API Documentation

Request Syntax

response = client.update_worker(
    farmId='string',
    fleetId='string',
    workerId='string',
    status='STARTED'|'STOPPING'|'STOPPED',
    capabilities={
        'amounts': [
            {
                'name': 'string',
                'value': ...
            },
        ],
        'attributes': [
            {
                'name': 'string',
                'values': [
                    'string',
                ]
            },
        ]
    },
    hostProperties={
        'ipAddresses': {
            'ipV4Addresses': [
                'string',
            ],
            'ipV6Addresses': [
                'string',
            ]
        },
        'hostName': 'string'
    }
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID to update.

  • fleetId (string) –

    [REQUIRED]

    The fleet ID to update.

  • workerId (string) –

    [REQUIRED]

    The worker ID to update.

  • status (string) – The worker status to update.

  • capabilities (dict) –

    The worker capabilities to update.

    • amounts (list) – [REQUIRED]

      The worker capabilities amounts on a list of worker capabilities.

      • (dict) –

        The details of the worker amount capability.

        • name (string) – [REQUIRED]

          The name of the worker amount capability.

        • value (float) – [REQUIRED]

          The value of the worker amount capability.

    • attributes (list) – [REQUIRED]

      The worker attribute capabilities in the list of attribute capabilities.

      • (dict) –

        The details of the worker attribute capability.

        • name (string) – [REQUIRED]

          The name of the worker attribute capability.

        • values (list) – [REQUIRED]

          The values of the worker amount capability.

          • (string) –

  • hostProperties (dict) –

    The host properties to update.

    • 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) –

    • hostName (string) –

      The host name.

Return type:

dict

Returns:

Response Syntax

{
    'log': {
        'logDriver': 'string',
        'options': {
            'string': 'string'
        },
        'parameters': {
            'string': 'string'
        },
        'error': 'string'
    }
}

Response Structure

  • (dict) –

    • log (dict) –

      The worker log to update.

      • 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) –

      • error (string) –

        The log configuration error details.

Exceptions

  • DeadlineCloud.Client.exceptions.AccessDeniedException

  • DeadlineCloud.Client.exceptions.InternalServerErrorException

  • DeadlineCloud.Client.exceptions.ResourceNotFoundException

  • DeadlineCloud.Client.exceptions.ThrottlingException

  • DeadlineCloud.Client.exceptions.ConflictException

  • DeadlineCloud.Client.exceptions.ValidationException