Skip to main content

statuses

Creates, updates, deletes, gets or lists a statuses resource.

Overview

Namestatuses
TypeResource
Idcloudflare.waiting_rooms.statuses

Fields

The following fields are returned by SELECT queries:

Get waiting room status response

NameDatatypeDescription
event_idstring (example: 25756b2dfe6e378a06b033b670413757)
estimated_queued_usersinteger
estimated_total_active_usersinteger
max_estimated_time_minutesinteger
statusstring (event_prequeueing, not_queueing, queueing, suspended) (example: queueing)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectwaiting_room_id, zone_idFetches the status of a configured waiting room. Response fields include: 1. status: String indicating the status of the waiting room. The possible status are: - not_queueing indicates that the configured thresholds have not been met and all users are going through to the origin. - queueing indicates that the thresholds have been met and some users are held in the waiting room. - event_prequeueing indicates that an event is active and is currently prequeueing users before it starts. - suspended indicates that the room is suspended. 2. event_id: String of the current event's id if an event is active, otherwise an empty string. 3. estimated_queued_users: Integer of the estimated number of users currently waiting in the queue. 4. estimated_total_active_users: Integer of the estimated number of users currently active on the origin. 5. max_estimated_time_minutes: Integer of the maximum estimated time currently presented to the users.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
waiting_room_idstringThe Waiting Room ID.
zone_idstringThe Cloudflare zone ID.

SELECT examples

Fetches the status of a configured waiting room. Response fields include: 1. status: String indicating the status of the waiting room. The possible status are: - not_queueing indicates that the configured thresholds have not been met and all users are going through to the origin. - queueing indicates that the thresholds have been met and some users are held in the waiting room. - event_prequeueing indicates that an event is active and is currently prequeueing users before it starts. - suspended indicates that the room is suspended. 2. event_id: String of the current event's id if an event is active, otherwise an empty string. 3. estimated_queued_users: Integer of the estimated number of users currently waiting in the queue. 4. estimated_total_active_users: Integer of the estimated number of users currently active on the origin. 5. max_estimated_time_minutes: Integer of the maximum estimated time currently presented to the users.

SELECT
event_id,
estimated_queued_users,
estimated_total_active_users,
max_estimated_time_minutes,
status
FROM cloudflare.waiting_rooms.statuses
WHERE waiting_room_id = '{{ waiting_room_id }}' -- required
AND zone_id = '{{ zone_id }}' -- required
;