FabricClient.RepairManagementClient.UpdateRepairTaskHealthPolicyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>) |
Updates the health policy of the given repair task. |
UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>, TimeSpan, CancellationToken) |
Updates the health policy of the given repair task. |
UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>)
Updates the health policy of the given repair task.
public System.Threading.Tasks.Task<long> UpdateRepairTaskHealthPolicyAsync (string repairTaskId, long version, bool? performPreparingHealthCheck, bool? performRestoringHealthCheck);
member this.UpdateRepairTaskHealthPolicyAsync : string * int64 * Nullable<bool> * Nullable<bool> -> System.Threading.Tasks.Task<int64>
Public Function UpdateRepairTaskHealthPolicyAsync (repairTaskId As String, version As Long, performPreparingHealthCheck As Nullable(Of Boolean), performRestoringHealthCheck As Nullable(Of Boolean)) As Task(Of Long)
Parameters
- repairTaskId
- String
The ID of the repair task for which the health policy is to be updated.
- version
- Int64
The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed.
A nullable boolean indicating if health check is to be performed in the Preparing stage of the repair task.
Specify null
for this parameter if the existing value should not be altered. Otherwise, specify the desired new value.
A nullable boolean indicating if health check is to be performed in the Restoring stage of the repair task.
Specify null
for this parameter if the existing value should not be altered. Otherwise, specify the desired new value.
Returns
Applies to
UpdateRepairTaskHealthPolicyAsync(String, Int64, Nullable<Boolean>, Nullable<Boolean>, TimeSpan, CancellationToken)
Updates the health policy of the given repair task.
public System.Threading.Tasks.Task<long> UpdateRepairTaskHealthPolicyAsync (string repairTaskId, long version, bool? performPreparingHealthCheck, bool? performRestoringHealthCheck, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.UpdateRepairTaskHealthPolicyAsync : string * int64 * Nullable<bool> * Nullable<bool> * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int64>
Public Function UpdateRepairTaskHealthPolicyAsync (repairTaskId As String, version As Long, performPreparingHealthCheck As Nullable(Of Boolean), performRestoringHealthCheck As Nullable(Of Boolean), timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of Long)
Parameters
- repairTaskId
- String
The ID of the repair task for which the health policy is to be updated.
- version
- Int64
The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed.
A nullable boolean indicating if health check is to be performed in the Preparing stage of the repair task.
Specify null
for this parameter if the existing value should not be altered. Else, specify the appropriate bool
value.
A nullable boolean indicating if health check is to be performed in the Restoring stage of the repair task.
Specify null
for this parameter if the existing value should not be altered. Else, specify the appropriate bool
value.
- timeout
- TimeSpan
The maximum amount of time Service Fabric will allow this operation to continue before returning a TimeoutException.
- cancellationToken
- CancellationToken
The optional cancellation token that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation may still be completed even if it is cancelled.
Returns
A task representing the asynchronous operation.
Applies to
Azure SDK for .NET