Skip to main content

event_tokens

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

Overview​

Nameevent_tokens
TypeResource
Idovh.telephony.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
getselectbilling_accountGet the event token
createinsertbilling_account, expirationCreate an event token
deletedeletebilling_accountDelete 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
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)

SELECT examples​

Get the event token

SELECT
token
FROM ovh.telephony.event_tokens
WHERE billing_account = '{{ billing_account }}' -- required
;

INSERT examples​

Create an event token

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

DELETE examples​

Delete the event token

DELETE FROM ovh.telephony.event_tokens
WHERE billing_account = '{{ billing_account }}' --required
;