az dataprotection job
Note
This reference is part of the dataprotection extension for the Azure CLI (version 2.67.0 or higher). 擴充功能會在您第一次執行 az dataprotection job 命令時自動安裝。 Learn more about extensions.
使用 dataprotection 管理作業。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az dataprotection job list |
傳回屬於備份保存庫的工作清單。 |
Extension | GA |
az dataprotection job list-from-resourcegraph |
列出跨訂用帳戶、資源群組和保存庫的備份作業。 |
Extension | GA |
az dataprotection job show |
取得備份保存庫中標識碼為的工作。 |
Extension | GA |
az dataprotection job list
傳回屬於備份保存庫的工作清單。
az dataprotection job list --resource-group
--vault-name
[--max-items]
[--next-token]
[--use-secondary-region {false, true}]
範例
Get Jobs
az dataprotection job list --resource-group "BugBash1" --vault-name "BugBashVaultForCCYv11"
必要參數
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
備份保存庫的名稱。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token
自變數中提供令牌值。
標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。
使用此旗標從次要區域擷取作業清單。
屬性 | 值 |
---|---|
接受的值: | false, true |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az dataprotection job list-from-resourcegraph
列出跨訂用帳戶、資源群組和保存庫的備份作業。
az dataprotection job list-from-resourcegraph [--datasource-id]
[--datasource-type {AzureBlob, AzureDatabaseForMySQL, AzureDatabaseForPostgreSQL, AzureDatabaseForPostgreSQLFlexibleServer, AzureDisk, AzureKubernetesService}]
[--end-time]
[--operation {OnDemandBackup, Restore, ScheduledBackup}]
[--resource-groups]
[--start-time]
[--status {Completed, Failed, InProgress}]
[--subscriptions]
[--vaults]
範例
取得目前訂用帳戶中所有資源群組的備份作業,這些資源群組已完成
az dataprotection job list-from-resourcegraph --datasource-type AzureDisk --status Completed
在一組指定的保存庫和指定時間範圍中取得備份作業
az dataprotection job list-from-resourcegraph --datasource-type AzureDisk --vaults MyVault1 MyVault2 --start-time 2020-11-11T01:01:00 --end-time 2020-11-14T01:01:00
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
指定要套用的數據源標識元篩選。
指定數據來源類型。
屬性 | 值 |
---|---|
接受的值: | AzureBlob, AzureDatabaseForMySQL, AzureDatabaseForPostgreSQL, AzureDatabaseForPostgreSQLFlexibleServer, AzureDisk, AzureKubernetesService |
以 UTC 指定作業的結束時間(yyyy-mm-ddTHH:MM:SS)。
指定篩選的作業作業值。
屬性 | 值 |
---|---|
接受的值: | OnDemandBackup, Restore, ScheduledBackup |
資源群組的清單。
以 UTC 指定作業的開始時間(yyyy-mm-ddTHH:MM:SS)。
指定篩選的作業狀態值。
屬性 | 值 |
---|---|
接受的值: | Completed, Failed, InProgress |
訂用帳戶標識碼清單。
保存庫名稱的清單。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az dataprotection job show
取得備份保存庫中標識碼為的工作。
az dataprotection job show [--ids]
[--job-id]
[--resource-group]
[--subscription]
[--use-secondary-region {false, true}]
[--vault-name]
範例
Get Job
az dataprotection job show --job-id "00000000-0000-0000-0000-000000000000" --resource-group "BugBash1" --vault-name "BugBashVaultForCCYv11"
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
作業標識碼。 這是 GUID 格式的字串(例如 0000000000-0000-0000-0000-0000000000000000)。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
使用此旗標從次要區域擷取作業清單。
屬性 | 值 |
---|---|
接受的值: | false, true |
備份保存庫的名稱。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |