共用方式為


Get-AzDataLakeStoreDeletedItem

在垃圾箱中搜尋符合篩選條件的已刪除專案。

Syntax

Get-AzDataLakeStoreDeletedItem
   [-Account] <String>
   [-Filter] <String>
   [-Count <Int32>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzDataLakeStoreDeletedItem Cmdlet 會搜尋 Data Lake Store 中已刪除的檔案或資料夾,符合指定的篩選條件。 它會顯示已刪除專案的下列屬性 - OriginalPath、TrashDirPath、Type、CreationTime。 這可能是長時間執行的作業,因為它可能必須搜尋垃圾箱中的數百萬個檔案,而且可以當做工作執行。 注意:取消刪除檔案是最佳作業。 一旦刪除檔案,就不保證可以還原檔案。 此 API 的使用是透過allowlisting 啟用。 如果不允許列出您的 ADL 帳戶,則使用此 API 將會擲回 [未實作的例外狀況]。 如需進一步的信息和協助,請連絡 Microsoft 支援服務。

範例

範例:從 Data Lake Store 取得檔案的詳細數據

Get-AzDataLakeStoreDeletedItem -Account ml1ptrashtest -Filter test0/file_123

TrashDirPath                         OriginalPath                                          Type CreationTime
------------                         ------------                                          ---- ------------
cd6ad5ce-792b-4812-8a33-8f9ed19eb532 adl://ml1ptrashtest.azuredatalake.com/test0/file_1230 FILE 2/8/2019 8:12:18 AM
356cfd42-39c7-451e-96cb-9f47883d91e2 adl://ml1ptrashtest.azuredatalake.com/test0/file_1232 FILE 2/8/2019 8:12:18 AM
e7b30ac8-2dbc-43a3-8ca6-2d420ac0c488 adl://ml1ptrashtest.azuredatalake.com/test0/file_1237 FILE 2/8/2019 8:12:18 AM

參數

-Account

指定 Data Lake Store 帳戶的名稱。

類型:String
Aliases:AccountName
Position:0
預設值:None
必要:True
Accept pipeline input:True
Accept wildcard characters:False

-AsJob

在背景中執行 Cmdlet。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-Count

指定使用者想要尋找的結果數目。 查詢會執行,直到它找到 Count 結果,或它會搜尋整個垃圾箱,只要先發生。

類型:Int32
Position:Named
預設值:1
必要:False
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-Filter

指定搜尋查詢。 更具體的值可提供更相關的結果。

類型:String
Position:1
預設值:None
必要:True
Accept pipeline input:True
Accept wildcard characters:False

輸入

String

輸出

System.Collections.Generic.List<Microsoft.Azure.Commands.DataLakeStore.Models.DataLakeStoreDeletedItem>