Share via


Get-DPMProtectionGroupSla

Gets the SLA for a protection group.

Syntax

ProtectionGroup (Default)

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

ProtectionGroupId

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

Description

The Get-DPMProtectionGroupSla cmdlet gets the service level agreement (SLA) for a System Center - 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.

Parameter properties

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

Parameter sets

ProtectionGroup
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ProtectionGroupId

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

Parameter properties

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

Parameter sets

ProtectionGroupId
Position:1
Mandatory:True
Value from pipeline:True
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.