Skip to main content

task_available_timeslots

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

Overview​

Nametask_available_timeslots
TypeResource
Idovh.dedicated_server.task_available_timeslots

Fields​

The following fields are returned by SELECT queries:

A time slot for a planned intervention

NameDatatypeDescription
end_datestring (date-time)End date for the planned intervention (wire: endDate)
start_datestring (date-time)Start date for the planned intervention (wire: startDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectperiod_end, period_start, service_name, task_idList available time slots. Returns the time slots available for the planned intervention of a task, between periodStart and periodEnd. Only a task whose needSchedule is true has slots; any other task returns an error. (Beta version)

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"}})
period_endstring (date)End of the period to query (wire: periodEnd)
period_startstring (date)Begining of the period to query (wire: periodStart)
service_namestringThe internal name of your dedicated server (wire: serviceName)
task_idintegerthe id of the task (wire: taskId)

SELECT examples​

List available time slots. Returns the time slots available for the planned intervention of a task, between periodStart and periodEnd. Only a task whose needSchedule is true has slots; any other task returns an error. (Beta version)

SELECT
end_date,
start_date
FROM ovh.dedicated_server.task_available_timeslots
WHERE period_end = '{{ period_end }}' -- required
AND period_start = '{{ period_start }}' -- required
AND service_name = '{{ service_name }}' -- required
AND task_id = '{{ task_id }}' -- required
;