Skip to main content

scheduler_events

Creates, updates, deletes, gets or lists a scheduler_events resource.

Overview​

Namescheduler_events
TypeResource
Idovh.telephony.scheduler_events

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
categoriesstringThe category of the event (holidays, scheduler1, scheduler2, scheduler3)
date_endstring (date-time)The ending date of the event (wire: dateEnd)
date_startstring (date-time)The beginning date of the event (wire: dateStart)
descriptionstring
titlestring
uidstringThe unique ICS event identifier

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_name, uidGet a scheduler event
listselectbilling_account, service_namecategories, date_end.from, date_end.to, date_start.from, date_start.to, x_pagination_modeList scheduler events
createinsertbilling_account, service_name, category, date_end, date_start, titleCreate a scheduler event
updateupdatebilling_account, service_name, uidUpdate a scheduler event
deletedeletebilling_account, service_name, uidDelete a scheduler event

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)
service_namestring (wire: serviceName)
uidstringThe unique ICS event identifier
categoriesstringFilter the value of categories property (=)
date_end.fromstring (date-time)Filter the value of dateEnd property (>=) (wire: dateEnd.from)
date_end.tostring (date-time)Filter the value of dateEnd property (<=) (wire: dateEnd.to)
date_start.fromstring (date-time)Filter the value of dateStart property (>=) (wire: dateStart.from)
date_start.tostring (date-time)Filter the value of dateStart property (<=) (wire: dateStart.to)
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 a scheduler event

SELECT
categories,
date_end,
date_start,
description,
title,
uid
FROM ovh.telephony.scheduler_events
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
AND uid = '{{ uid }}' -- required
;

INSERT examples​

Create a scheduler event

INSERT INTO ovh.telephony.scheduler_events (
category,
date_end,
date_start,
description,
title,
uid,
billing_account,
service_name
)
SELECT
'{{ category }}' /* required */,
'{{ date_end }}' /* required */,
'{{ date_start }}' /* required */,
'{{ description }}',
'{{ title }}' /* required */,
'{{ uid }}',
'{{ billing_account }}',
'{{ service_name }}'
;

UPDATE examples​

Update a scheduler event

UPDATE ovh.telephony.scheduler_events
SET
categories = '{{ categories }}',
date_end = '{{ date_end }}',
date_start = '{{ date_start }}',
description = '{{ description }}',
title = '{{ title }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required
AND uid = '{{ uid }}' --required;

DELETE examples​

Delete a scheduler event

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