event_tokens
Creates, updates, deletes, gets or lists an event_tokens resource.
Overview​
| Name | event_tokens |
| Type | Resource |
| Id | ovh.telephony.event_tokens |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
token | string |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | billing_account | Get the event token | |
create | insert | billing_account, expiration | Create an event token | |
delete | delete | billing_account | Delete 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_account | string | The name of your billingAccount (wire: billingAccount) |
SELECT examples​
- get
Get the event token
SELECT
token
FROM ovh.telephony.event_tokens
WHERE billing_account = '{{ billing_account }}' -- required
;
INSERT examples​
- create
- Manifest
Create an event token
INSERT INTO ovh.telephony.event_tokens (
expiration,
billing_account
)
SELECT
'{{ expiration }}' /* required */,
'{{ billing_account }}'
;
# Description fields are for documentation purposes
- name: event_tokens
props:
- name: billing_account
value: "{{ billing_account }}"
description: Required parameter for the event_tokens resource.
- name: expiration
value: "{{ expiration }}"
description: |
Time to live in seconds for the token
valid_values: ['1 day', '1 hour', '30 days', '5 minutes', 'unlimited']
DELETE examples​
- delete
Delete the event token
DELETE FROM ovh.telephony.event_tokens
WHERE billing_account = '{{ billing_account }}' --required
;