DeadlineCloud / Client / list_queues

list_queues#

DeadlineCloud.Client.list_queues(**kwargs)#

Lists queues.

See also: AWS API Documentation

Request Syntax

response = client.list_queues(
    farmId='string',
    maxResults=123,
    nextToken='string',
    principalId='string',
    status='IDLE'|'SCHEDULING'|'SCHEDULING_BLOCKED'
)
Parameters:
  • farmId (string) –

    [REQUIRED]

    The farm ID of the queue.

  • 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.

  • principalId (string) – The principal ID. This filter is only valid when using Nimble Studio credentials and should match the user ID in the credentials of the caller.

  • status (string) –

    The status of the queues listed.

    • ACTIVE–The queues are active.

    • SCHEDULING–The queues are scheduling.

    • SCHEDULING_BLOCKED–The queue scheduling is blocked for these queues.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'queues': [
        {
            'blockedReason': 'NO_BUDGET_CONFIGURED'|'BUDGET_THRESHOLD_REACHED',
            'createdAt': datetime(2015, 1, 1),
            'createdBy': 'string',
            'defaultBudgetAction': 'NONE'|'STOP_SCHEDULING_AND_COMPLETE_TASKS'|'STOP_SCHEDULING_AND_CANCEL_TASKS',
            'displayName': 'string',
            'farmId': 'string',
            'queueId': 'string',
            'status': 'IDLE'|'SCHEDULING'|'SCHEDULING_BLOCKED',
            'updatedAt': datetime(2015, 1, 1),
            'updatedBy': '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.

    • queues (list) –

      The queues on the list.

      • (dict) –

        The details of a queue summary.

        • blockedReason (string) –

          The reason the queue is blocked, if applicable.

        • createdAt (datetime) –

          The date and time the resource was created.

        • createdBy (string) –

          The user or system that created this resource.

        • defaultBudgetAction (string) –

          The default action taken on a queue summary if a budget wasn’t configured.

        • displayName (string) –

          The display name of the queue summary to update.

        • farmId (string) –

          The farm ID.

        • queueId (string) –

          The queue ID.

        • status (string) –

          That status of the queue.

        • updatedAt (datetime) –

          The date and time the resource was updated.

        • updatedBy (string) –

          The user or system that updated this resource.

Exceptions

  • DeadlineCloud.Client.exceptions.AccessDeniedException

  • DeadlineCloud.Client.exceptions.InternalServerErrorException

  • DeadlineCloud.Client.exceptions.ResourceNotFoundException

  • DeadlineCloud.Client.exceptions.ThrottlingException

  • DeadlineCloud.Client.exceptions.ValidationException