共用方式為


Get-DPMProtectionGroupSla

Get-DPMProtectionGroupSla

Gets the SLA for a protection group.

Syntax

Parameter Set: ProtectionGroup
Get-DPMProtectionGroupSla [-ProtectionGroup] <ProtectionGroup> [ <CommonParameters>]

Parameter Set: ProtectionGroupId
Get-DPMProtectionGroupSla [-ProtectionGroupId] <Guid> [ <CommonParameters>]

Detailed Description

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

Parameters

-ProtectionGroup<ProtectionGroup>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-ProtectionGroupId<Guid>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get the SLA for a protection group object

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.

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

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

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.

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

Set-DPMProtectionGroupSla

Get-DPMProtectionGroup