repair_tasks
Creates, updates, deletes, gets or lists a repair_tasks resource.
Overview
| Name | repair_tasks |
| Type | Resource |
| Id | azure.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
create_repair_task | insert | endpoint, TaskId, State, Action | 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. | |
delete_repair_task | delete | endpoint | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme). (default: ) |
INSERT examples
- create_repair_task
- Manifest
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
;
# Description fields are for documentation purposes
- name: repair_tasks
props:
- name: endpoint
value: "{{ endpoint }}"
description: Required parameter for the repair_tasks resource.
- name: TaskId
value: "{{ TaskId }}"
- name: Version
value: "{{ Version }}"
- name: Description
value: "{{ Description }}"
- name: State
value: "{{ State }}"
- name: Flags
value: {{ Flags }}
- name: Action
value: "{{ Action }}"
- name: Target
description: |
Describes the entities targeted by a repair action. This type supports the Service Fabric platform; it is not meant to be used directly from your code. You probably want to use the sub-classes and not this class directly. Known sub-classes are: NodeRepairTargetDescription All required parameters must be populated in order to send to Azure.
value:
Kind: "{{ Kind }}"
- name: Executor
value: "{{ Executor }}"
- name: ExecutorData
value: "{{ ExecutorData }}"
- name: Impact
description: |
Describes the expected impact of executing a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code. You probably want to use the sub-classes and not this class directly. Known sub-classes are: NodeRepairImpactDescription All required parameters must be populated in order to send to Azure.
value:
Kind: "{{ Kind }}"
- name: ResultStatus
value: "{{ ResultStatus }}"
- name: ResultCode
value: {{ ResultCode }}
- name: ResultDetails
value: "{{ ResultDetails }}"
- name: History
description: |
A record of the times when the repair task entered each state. This type supports the Service Fabric platform; it is not meant to be used directly from your code.
value:
CreatedUtcTimestamp: "{{ CreatedUtcTimestamp }}"
ClaimedUtcTimestamp: "{{ ClaimedUtcTimestamp }}"
PreparingUtcTimestamp: "{{ PreparingUtcTimestamp }}"
ApprovedUtcTimestamp: "{{ ApprovedUtcTimestamp }}"
ExecutingUtcTimestamp: "{{ ExecutingUtcTimestamp }}"
RestoringUtcTimestamp: "{{ RestoringUtcTimestamp }}"
CompletedUtcTimestamp: "{{ CompletedUtcTimestamp }}"
PreparingHealthCheckStartUtcTimestamp: "{{ PreparingHealthCheckStartUtcTimestamp }}"
PreparingHealthCheckEndUtcTimestamp: "{{ PreparingHealthCheckEndUtcTimestamp }}"
RestoringHealthCheckStartUtcTimestamp: "{{ RestoringHealthCheckStartUtcTimestamp }}"
RestoringHealthCheckEndUtcTimestamp: "{{ RestoringHealthCheckEndUtcTimestamp }}"
- name: PreparingHealthCheckState
value: "{{ PreparingHealthCheckState }}"
- name: RestoringHealthCheckState
value: "{{ RestoringHealthCheckState }}"
- name: PerformPreparingHealthCheck
value: {{ PerformPreparingHealthCheck }}
- name: PerformRestoringHealthCheck
value: {{ PerformRestoringHealthCheck }}
DELETE examples
- delete_repair_task
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
;