Share via


Get-ServiceFabricRepairTask

Gets the repair tasks.

Syntax

Default (Default)

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

Parameter properties

Type:RepairTaskStateFilter
Default value:None
Accepted values:Default, Created, Claimed, Preparing, Approved, Executing, ReadyToExecute, Restoring, Active, Completed, All
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TaskId

Specifies a repair task ID prefix to match.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-TimeoutSec

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

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

Outputs

System.Object