Skip to main content

easy_hunting_hunting_agents

Creates, updates, deletes, gets or lists an easy_hunting_hunting_agents resource.

Overview​

Nameeasy_hunting_hunting_agents
TypeResource
Idovh.telephony.easy_hunting_hunting_agents

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
agent_idinteger (wire: agentId)
break_statusintegerThe id of the current break status of the agent (wire: breakStatus)
descriptionstringThe agent's description
numberstring (phone-number)The number of the agent
simultaneous_linesintegerThe maximum of simultaneous calls that the agent will receive from the hunting (wire: simultaneousLines)
statusstringThe current status of the agent (available, loggedOut, onBreak)
timeoutintegerThe waiting timeout (in seconds) before hangup an assigned called
typestringThe agent's type (external, internal)
wrap_up_timeintegerThe wrap up time (in seconds) after the calls (wire: wrapUpTime)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagent_id, billing_account, service_nameGet an agent
listselectbilling_account, service_namex_pagination_modeList agents
createinsertbilling_account, service_name, number, simultaneous_lines, status, timeout, wrap_up_timeCreate an agent
updateupdateagent_id, billing_account, service_nameUpdate an agent
deletedeleteagent_id, billing_account, service_nameDelete an agent

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
agent_idinteger (wire: agentId)
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
service_namestring (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get an agent

SELECT
agent_id,
break_status,
description,
number,
simultaneous_lines,
status,
timeout,
type,
wrap_up_time
FROM ovh.telephony.easy_hunting_hunting_agents
WHERE agent_id = '{{ agent_id }}' -- required
AND billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create an agent

INSERT INTO ovh.telephony.easy_hunting_hunting_agents (
description,
number,
simultaneous_lines,
status,
timeout,
wrap_up_time,
billing_account,
service_name
)
SELECT
'{{ description }}',
'{{ number }}' /* required */,
{{ simultaneous_lines }} /* required */,
'{{ status }}' /* required */,
{{ timeout }} /* required */,
{{ wrap_up_time }} /* required */,
'{{ billing_account }}',
'{{ service_name }}'
RETURNING
agent_id,
break_status,
description,
number,
simultaneous_lines,
status,
timeout,
type,
wrap_up_time
;

UPDATE examples​

Update an agent

UPDATE ovh.telephony.easy_hunting_hunting_agents
SET
break_status = {{ break_status }},
description = '{{ description }}',
number = '{{ number }}',
simultaneous_lines = {{ simultaneous_lines }},
status = '{{ status }}',
timeout = {{ timeout }},
wrap_up_time = {{ wrap_up_time }}
WHERE
agent_id = '{{ agent_id }}' --required
AND billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete an agent

DELETE FROM ovh.telephony.easy_hunting_hunting_agents
WHERE agent_id = '{{ agent_id }}' --required
AND billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required
;