Get-OBRetentionPolicy

Gets the current retention policy for backups from the backup policy (OBPolicy object).

语法

Default (默认值)

Get-OBRetentionPolicy
    [-Policy] <CBPolicy>

说明

The Get-OBRetentionPolicy cmdlet gets the current retention policy for backups from the backup policy (OBPolicy object). The retention policy allows the number of retention days to be set to one of the following values: 7, 15, 30.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

示例

EXAMPLE 1

Get-OBPolicy | Get-OBRetentionPolicy

This example returns a saved retention policy.

参数

-Policy

Specify the OBPolicy object for which the OBRetentionPolicy should be retrieved.

参数属性

类型:CBPolicy
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:1
必需:True
来自管道的值:True
来自管道的值(按属性名称):False
来自剩余参数的值:False

输入

None

输出

Microsoft.Internal.CloudBackup.Commands.OBPolicy