Get-DPMProtectionGroupSla

Gets the SLA for a protection group.

Syntax

Get-DPMProtectionGroupSla [-ProtectionGroup] <ProtectionGroup> [<CommonParameters>]
Get-DPMProtectionGroupSla [-ProtectionGroupId] <Guid> [<CommonParameters>]

Description

The Get-DPMProtectionGroupSla cmdlet gets the service level agreement (SLA) for a System Center 2016 - Data Protection Manager (DPM) protection group. An SLA is an integer value that defines a period, in hours. For more information, see the Set-DPMProtectionGroupSla cmdlet.

Examples

Example 1: Get the SLA for a protection group object

PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Get-DPMProtectionGroupSLA -ProtectionGroup $PGroup

The first command gets the protection group on the DPM server named DPMServer02. The command stores the protection group in the $PGroup variable.

The second command gets the SLA for the protection group stored in $PGroup.

Example 2: Get the SLA for a protection group specified by ID

PS C:\> $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
PS C:\> Get-DPMProtectionGroupSLA -ProtectionGroupId $PGroup.ProtectionGroupId

The first command gets the protection group on the DPM server named DPMServer02. The command stores the protection group in the $PGroup variable.

The second command gets the SLA for the protection group that has the GUID specified by the ProtectionGroupId property of $PGroup.

Parameters

-ProtectionGroup

Specifies a protection group for which this cmdlet gets an SLA. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Type:ProtectionGroup
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ProtectionGroupId

Specifies the unique identifier for a protection group. This cmdlet gets the SLA for the protection group that this parameter specifies.

Type:Guid
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False