Get-ServiceFabricRepairTask

Gets the repair tasks.

Syntax

Get-ServiceFabricRepairTask
   [[-TaskId] <String>]
   [-State <RepairTaskStateFilter>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricRepairTask cmdlet gets the Service Fabric repair tasks.

This cmdlet supports the Service Fabric platform. Do not run this cmdlet directly.

Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Examples

Example 1: Get all repair tasks

PS C:\> Get-ServiceFabricRepairTask

This command returns all repair tasks in the system, regardless of state.

Example 2: Get active repair tasks

PS C:\> Get-ServiceFabricRepairTask -State Active

This command returns all repair tasks in the system that are not yet completed.

Parameters

-State

Specifies a bitwise combination of state filter values. The states determine which repair task states that this cmdlet gets. Valid states include the following:

  • Default
  • Created
  • Claimed
  • Preparing
  • Approved
  • Executing
  • ReadyToExecute
  • Restoring
  • Active
  • Completed
  • All
Type:RepairTaskStateFilter
Accepted values:Default, Created, Claimed, Preparing, Approved, Executing, ReadyToExecute, Restoring, Active, Completed, All
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TaskId

Specifies a repair task ID prefix to match.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

Outputs

System.Object