Skip to main content

ovh_pabx_hunting_agent_event_tokens

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

Overview​

Nameovh_pabx_hunting_agent_event_tokens
TypeResource
Idovh.telephony.ovh_pabx_hunting_agent_event_tokens

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
tokenstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagent_id, billing_account, service_nameGet the event token
createinsertagent_id, billing_account, service_name, expirationCreate an event token
deletedeleteagent_id, billing_account, service_nameDelete the event token

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)

SELECT examples​

Get the event token

SELECT
token
FROM ovh.telephony.ovh_pabx_hunting_agent_event_tokens
WHERE agent_id = '{{ agent_id }}' -- required
AND billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create an event token

INSERT INTO ovh.telephony.ovh_pabx_hunting_agent_event_tokens (
expiration,
agent_id,
billing_account,
service_name
)
SELECT
'{{ expiration }}' /* required */,
'{{ agent_id }}',
'{{ billing_account }}',
'{{ service_name }}'
;

DELETE examples​

Delete the event token

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