Get-OBRecoverableItem

Gets the array of OBRecoverableItem objects associated with the server.

语法

UNNAMED_PARAMETER_SET_1

Get-OBRecoverableItem
    [-Location] <String>
    [-RecoveryPoint] <CBRecoverableItem>
    [[-PagingContext] <CBPagingContext>]

UNNAMED_PARAMETER_SET_2

Get-OBRecoverableItem
    [-ParentItem] <CBRecoverableItem>
    [[-PagingContext] <CBPagingContext>]

UNNAMED_PARAMETER_SET_3

Get-OBRecoverableItem
    [-Source] <CBRecoverableSource>

说明

The Get-OBRecoverableItem cmdlet gets the list of OBRecoverableItem[] objects associated with the specified Microsoft Azure Backup server (OBServer object). The OBRecoverableItem[] objects define what items will be recovered from the list of backup items.

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

示例

EXAMPLE 1

Get-OBRecoverableSource | Where-Object -FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItem

This example returns a recoverable item from source.

EXAMPLE 2

$pc = New-OBPagingContext



$parents = Get-OBRecoverableSource | Where-Object -FilterScript {$_.FriendlyName -like "C*"} | Get-OBRecoverableItem



New-OBPagingContext | Get-OBRecoverableItem -ParentItem $parents[0] -Type FileOnly

This example returns a recoverable item based on browse.

参数

-Location

Specifies the path of the root folder to start searching the OBRecoverableItem[] object.

参数属性

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

参数集

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

-PagingContext

Specifies the OBPagingContext object which contains pagination options to retrieve the OBRecoverableItem[] object as part of search, browse, or search and browse.

参数属性

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

参数集

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

-ParentItem

Specifies the parent OBRecoverableItem[] object from which to obtain the list of one or more child OBRecoverableItem[] objects as part of Recovery.

参数属性

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

参数集

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

-RecoveryPoint

Specifies the RecoveryPoint to get the OBRecoverableItem[] object.

参数属性

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

参数集

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

-Source

Lists all root level OBRecoverableItem[] objects of the specified OBRecoverableSource object.

参数属性

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

参数集

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

输入

None

输出

Microsoft.Internal.CloudBackup.Commands.OBRecoverableItem