cdn_operations
Creates, updates, deletes, gets or lists a cdn_operations resource.
Overview​
| Name | cdn_operations |
| Type | Resource |
| Id | ovh.hosting_web.cdn_operations |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | Operation id |
comment | string | Comment |
creation_date | string (date-time) | Creation date (wire: creationDate) |
function | string | Operation function (analytics_delete, analytics_recompute, domain_delete, domain_disable, domain_purge, domain_refresh, service_install, ssl_delete, ssl_install) |
parameter | object | Operation parameter |
service | string | Shared CDN service |
status | string | Operation status (cancelled, doing, done, error, todo) |
todo_date | string (date-time) | Next execution date (wire: todoDate) |
updated_date | string (date-time) | Last execution date (wire: updatedDate) |
Operation details
| Name | Datatype | Description |
|---|---|---|
id | integer | Operation id |
comment | string | Comment |
creation_date | string (date-time) | Creation date (wire: creationDate) |
function | string | Operation function (analytics_delete, analytics_recompute, domain_delete, domain_disable, domain_purge, domain_refresh, service_install, ssl_delete, ssl_install) |
parameter | object | Operation parameter |
service | string | Shared CDN service |
status | string | Operation status (cancelled, doing, done, error, todo) |
todo_date | string (date-time) | Next execution date (wire: todoDate) |
updated_date | string (date-time) | Last execution date (wire: updatedDate) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, service_name | Get details for a Shared CDN operation | |
list | select | service_name | List all operations for a Shared CDN service |
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"}}) |
id | integer | Id |
service_name | string | Service name (wire: serviceName) |
SELECT examples​
- get
- list
Get details for a Shared CDN operation
SELECT
id,
comment,
creation_date,
function,
parameter,
service,
status,
todo_date,
updated_date
FROM ovh.hosting_web.cdn_operations
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;
List all operations for a Shared CDN service
SELECT
id,
comment,
creation_date,
function,
parameter,
service,
status,
todo_date,
updated_date
FROM ovh.hosting_web.cdn_operations
WHERE service_name = '{{ service_name }}' -- required
;