Skip to main content

domains_cache_rules_tasks

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

Overview​

Namedomains_cache_rules_tasks
TypeResource
Idovh.cdn_dedicated.domains_cache_rules_tasks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_idinteger (wire: taskId)
commentstring
functionstringAll function CDN task can be (flush, flushAll, generateSsl, installSsl, reinstallSsl, removeDomain, uninstallSsl, updateCacheRule)
statusstringAll states a CDN task can be in (cancelled, doing, done, error, todo)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcache_rule_id, domain, service_name, task_idGet a task
listselectcache_rule_id, domain, service_namex_pagination_modeList cache rule tasks

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"}})
cache_rule_idintegerId for this cache rule (wire: cacheRuleId)
domainstringDomain of this object
service_namestringThe internal name of your CDN offer (wire: serviceName)
task_idinteger (wire: taskId)
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 task

SELECT
task_id,
comment,
function,
status
FROM ovh.cdn_dedicated.domains_cache_rules_tasks
WHERE cache_rule_id = '{{ cache_rule_id }}' -- required
AND domain = '{{ domain }}' -- required
AND service_name = '{{ service_name }}' -- required
AND task_id = '{{ task_id }}' -- required
;