global_tasks
Creates, updates, deletes, gets or lists a global_tasks resource.
Overview​
| Name | global_tasks |
| Type | Resource |
| Id | ovh.dedicated_cloud.global_tasks |
Fields​
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
value | integer |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | service_name | datacenter_id, end_date.from, end_date.to, execution_date.from, execution_date.to, filer_id, host_id, last_modification_date.from, last_modification_date.to, name, network_access_id, order_id, parent_task_id, state, user_id, vlan_id | List all tasks. Returns the IDs of the tasks of the service and its resources. Filter by datacenter, host, datastore, user, VLAN, state, name or date. |
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"}}) |
service_name | string | Domain of the service (wire: serviceName) |
datacenter_id | integer | Filter the tasks by datacenter Id (wire: datacenterId) |
end_date.from | string (date) | Filter the tasks by end date (>=) (wire: endDate.from) |
end_date.to | string (date) | Filter the tasks by end date (<=) (wire: endDate.to) |
execution_date.from | string (date-time) | Filter the tasks by execution date (>=) (wire: executionDate.from) |
execution_date.to | string (date-time) | Filter the tasks by execution date (<=) (wire: executionDate.to) |
filer_id | integer | Filter the tasks by filer Id (wire: filerId) |
host_id | integer | Filter the tasks by host Id (wire: hostId) |
last_modification_date.from | string (date-time) | Filter the tasks by last modification date (>=) (wire: lastModificationDate.from) |
last_modification_date.to | string (date-time) | Filter the tasks by last modification date (<=) (wire: lastModificationDate.to) |
name | string | Filter the tasks by name |
network_access_id | integer | Filter the tasks by network access Id (wire: networkAccessId) |
order_id | integer | Filter the tasks by order Id (wire: orderId) |
parent_task_id | integer | Filter the tasks by parent task Id (wire: parentTaskId) |
state | array | Filter the tasks by state |
user_id | integer | Filter the tasks by user Id (wire: userId) |
vlan_id | integer | Filter the tasks by vlan Id (wire: vlanId) |
SELECT examples​
- list
List all tasks. Returns the IDs of the tasks of the service and its resources. Filter by datacenter, host, datastore, user, VLAN, state, name or date.
SELECT
value
FROM ovh.dedicated_cloud.global_tasks
WHERE service_name = '{{ service_name }}' -- required
AND datacenter_id = '{{ datacenter_id }}'
AND end_date.from = '{{ end_date.from }}'
AND end_date.to = '{{ end_date.to }}'
AND execution_date.from = '{{ execution_date.from }}'
AND execution_date.to = '{{ execution_date.to }}'
AND filer_id = '{{ filer_id }}'
AND host_id = '{{ host_id }}'
AND last_modification_date.from = '{{ last_modification_date.from }}'
AND last_modification_date.to = '{{ last_modification_date.to }}'
AND name = '{{ name }}'
AND network_access_id = '{{ network_access_id }}'
AND order_id = '{{ order_id }}'
AND parent_task_id = '{{ parent_task_id }}'
AND state = '{{ state }}'
AND user_id = '{{ user_id }}'
AND vlan_id = '{{ vlan_id }}'
;