Skip to main content

kafka_connect_connector_tasks

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

Overview​

Namekafka_connect_connector_tasks
TypeResource
Idovh.public_cloud_analytics.kafka_connect_connector_tasks

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerIdentifier of the task within the connector
checksumstringHash of the resource used for concurrency control
created_atstring (date-time)Date at which the resource was created (wire: createdAt)
statusstringCurrent status of the task (FAILED, PAUSED, RUNNING)
tracestringError trace if the task is in error state
updated_atstring (date-time)Date of the last update to the resource (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectconnector_id, service_id, task_id, project_idReturns the status of the task and, when it failed, its error trace. (Beta version)
listselectconnector_id, service_id, project_idx_pagination_cursor, x_pagination_sizeReturns the tasks of the connector with their status. (Beta version)
restartexecconnectorId, serviceId, taskId, project_idRestarts the task and returns it with its new status. (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"}})
connectorIdstring (uuid)Connector ID
connector_idstring (uuid)Connector ID (wire: connectorId)
project_idstringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
serviceIdstring (uuid)Service ID
service_idstring (uuid)Service ID (wire: serviceId)
taskIdintegerTask ID
task_idintegerTask ID (wire: taskId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the status of the task and, when it failed, its error trace. (Beta version)

SELECT
id,
checksum,
created_at,
status,
trace,
updated_at
FROM ovh.public_cloud_analytics.kafka_connect_connector_tasks
WHERE connector_id = '{{ connector_id }}' -- required
AND service_id = '{{ service_id }}' -- required
AND task_id = '{{ task_id }}' -- required
AND project_id = '{{ project_id }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Restarts the task and returns it with its new status. (Beta version)

EXEC ovh.public_cloud_analytics.kafka_connect_connector_tasks.restart
@connectorId='{{ connectorId }}' --required,
@serviceId='{{ serviceId }}' --required,
@taskId='{{ taskId }}' --required,
@project_id='{{ project_id }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
;