azcopy list

此命令會列出帳戶、容器和目錄。 支援 Blob 儲存體、Azure Data Lake 儲存體 Gen2 和檔案 儲存體。 目前不支援檔案的 OAuth;請使用 SAS 來驗證檔案。

概要

目前版本僅支援 Blob 容器。

azcopy list [containerURL] [flags]

範例

azcopy list [containerURL] --properties [semicolon(;) separated list of attributes (LastModifiedTime, VersionId, BlobType, BlobAccessTier, ContentType, ContentEncoding, LeaseState, LeaseDuration, LeaseStatus) enclosed in double quotes (")]

選項。

-h--help 清單的說明

--machine-readable 列出以位元組為單位的檔案大小。

--mega-units 依 1000 的順序顯示單位,而不是 1024。

--properties (string) 分隔符 (;)列表輸出中所需的屬性分隔值。

--running-tally 計算檔案總數及其大小。

繼承自父命令的選項

--cap-mbps (float)以每秒 MB 為單位來限制傳輸速率。 暫時輸送量可能會與上限稍有不同。 如果此選項設定為零,或省略此選項,則不會限制輸送量。

--output-type (字串)命令輸出的格式。 選項包括:text、json。 預設值為 『text』。 (預設 “text”)

--trusted-microsoft-suffixes (字串)指定可以傳送 Microsoft Entra 登入令牌的其他網域後綴。 預設值為 『.core.windows.net;。core.chinacloudapi.cn;。core.cloudapi.de;。core.usgovcloudapi.net;*.storage.azure.net'。 此處所列的任何專案會新增至預設值。 基於安全性,您應該只在這裡放置 Microsoft Azure 網域。 使用分號分隔多個專案。

另請參閱