[COMMAND]
Fetching a List of Queues
The provisioning_request_list
command can be used to fetch a list of queues, which may optionally be filtered and sorted by specific criteria. The data returned by this command is structured as a JSON array.
The table
parameter can be used to request other types of data, either as well as or instead of queues.
Parameters
tablerequired |
string |
To fetch only queues, set this to To fetch data from more than one table, set this to a comma-separated list containing the name of each table needed. |
only_activeoptional |
Boolean |
If set to 1 ( If set to 0 ( |
order_byoptional |
number |
Determines how the list should be sorted. Can be one of the following:
|
request_idoptional |
string |
If specified, this value will be returned as part of the response event. It can be used to help a calling application associate a request with its response. |
external_id_typeoptional |
string |
Each entry in the list may have been assigned an To view the |
Example Request
{"command":{"command_type":"provisioning_request_list", "table":"ut_operatorQueue", "only_active":0, "order_by":3}}
Responses
On Success:
A successful request will trigger a provisioning_list
event, containing details of the request and an array of queues matching the request.
On Failure:
Failure to complete this command will cause a provisioning_error
event, containing a description of what went wrong.