az acat report snapshot

注意

此參考是 Azure CLI 的 acat 延伸模組的一部分(2.61.0 版或更高版本)。 擴充功能會在您第一次執行 az acat report snapshot 命令時自動安裝。 深入了解擴充功能。

管理 ACAT 報表快照集。

命令

名稱 Description 類型 狀態
az acat report snapshot download

從快照集下載合規性需求,例如:合規性報告、資源清單。

副檔名 GA
az acat report snapshot list

列出AppComplianceAutomation 快照集清單。

副檔名 GA

az acat report snapshot download

從快照集下載合規性需求,例如:合規性報告、資源清單。

az acat report snapshot download --download-type {ComplianceDetailedPdfReport, CompliancePdfReport, ComplianceReport, ResourceList}
                                 --report-name
                                 --snapshot-name
                                 [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                 [--offer-guid]
                                 [--tenant]

必要參數

--download-type

表示下載類型。

接受的值: ComplianceDetailedPdfReport, CompliancePdfReport, ComplianceReport, ResourceList
--report-name

報表名稱。

--snapshot-name

快照集名稱。

選擇性參數

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--offer-guid

會對應至報表的 offerGuid。

--tenant

租用戶標識碼。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az acat report snapshot list

列出AppComplianceAutomation 快照集清單。

az acat report snapshot list --report-name
                             [--filter]
                             [--max-items]
                             [--next-token]
                             [--offer-guid]
                             [--orderby]
                             [--select]
                             [--skip-token]
                             [--tenant]
                             [--top]

必要參數

--report-name

報表名稱。

選擇性參數

--filter

要套用至作業的篩選條件。

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的自變數中 --next-token 提供令牌值。

--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

--offer-guid

會對應至報表的 offerGuid。

--orderby

依查詢選項排序 OData 順序。

--select

OData Select 語句。 將每個專案上的屬性限制為只要求的屬性,例如 ?$select=reportName,id。

--skip-token

擷取結果時略過。

--tenant

報表建立者的租用戶標識碼。

--top

擷取結果時要傳回的項目數目。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。