Skip to main content

repair_tasks

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

Overview

Namerepair_tasks
TypeResource
Idazure.service_fabric_dataplane.repair_tasks

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_repair_taskinsertendpoint, TaskId, State, ActionCreates a new repair task. For clusters that have the Repair Manager Service configured, this API provides a way to create repair tasks that run automatically or manually. For repair tasks that run automatically, an appropriate repair executor must be running for each repair action to run automatically. These are currently only available in specially-configured Azure Cloud Services. To create a manual repair task, provide the set of impacted node names and the expected impact. When the state of the created repair task changes to approved, you can safely perform repair actions on those nodes. This API supports the Service Fabric platform; it is not meant to be used directly from your code.
delete_repair_taskdeleteendpointDeletes a completed repair task. This API supports the Service Fabric platform; it is not meant to be used directly from your code.

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
endpointstringThe service endpoint host (no scheme). (default: )

INSERT examples

Creates a new repair task. For clusters that have the Repair Manager Service configured, this API provides a way to create repair tasks that run automatically or manually. For repair tasks that run automatically, an appropriate repair executor must be running for each repair action to run automatically. These are currently only available in specially-configured Azure Cloud Services. To create a manual repair task, provide the set of impacted node names and the expected impact. When the state of the created repair task changes to approved, you can safely perform repair actions on those nodes. This API supports the Service Fabric platform; it is not meant to be used directly from your code.

INSERT INTO azure.service_fabric_dataplane.repair_tasks (
TaskId,
Version,
Description,
State,
Flags,
Action,
Target,
Executor,
ExecutorData,
Impact,
ResultStatus,
ResultCode,
ResultDetails,
History,
PreparingHealthCheckState,
RestoringHealthCheckState,
PerformPreparingHealthCheck,
PerformRestoringHealthCheck,
endpoint
)
SELECT
'{{ TaskId }}' /* required */,
'{{ Version }}',
'{{ Description }}',
'{{ State }}' /* required */,
{{ Flags }},
'{{ Action }}' /* required */,
'{{ Target }}',
'{{ Executor }}',
'{{ ExecutorData }}',
'{{ Impact }}',
'{{ ResultStatus }}',
{{ ResultCode }},
'{{ ResultDetails }}',
'{{ History }}',
'{{ PreparingHealthCheckState }}',
'{{ RestoringHealthCheckState }}',
{{ PerformPreparingHealthCheck }},
{{ PerformRestoringHealthCheck }},
'{{ endpoint }}'
RETURNING
Version
;

DELETE examples

Deletes a completed repair task. This API supports the Service Fabric platform; it is not meant to be used directly from your code.

DELETE FROM azure.service_fabric_dataplane.repair_tasks
WHERE endpoint = '{{ endpoint }}' --required
;