az datashare trigger
Note
此參考是 Azure CLI 的數據 共用 延伸模組的一部分(2.15.0 版或更高版本)。 當您第一次執行 az datashare trigger 命令時,擴充功能會自動安裝。 深入了解擴充功能。
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
使用 datashare 管理觸發程式。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az datashare trigger create |
建立觸發程式。 |
Extension | Experimental |
| az datashare trigger delete |
刪除 shareSubscription 中的觸發程式。 |
Extension | Experimental |
| az datashare trigger list |
列出共用訂用帳戶中的觸發程式。 |
Extension | Experimental |
| az datashare trigger show |
在 shareSubscription 中取得觸發程式。 |
Extension | Experimental |
| az datashare trigger wait |
將 CLI 置於等候狀態,直到符合 datashare 觸發程式的條件為止。 |
Extension | Experimental |
az datashare trigger create
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
建立觸發程式。
az datashare trigger create --account-name
--name --trigger-name
--resource-group
--share-subscription-name
[--no-wait]
[--scheduled-trigger]
範例
Triggers_Create
az datashare trigger create --account-name "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --scheduled-trigger recurrence-interval="Day" synchronization-mode="Incremental" synchronization-time="2018-11-14T04:47:52.9614956Z" --name "Trigger1"
必要參數
共用帳戶的名稱。
觸發程式的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
將保存資料集接收的共用訂閱名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
根據排程的觸發程序類型。
使用方式:--scheduled-trigger recurrence-interval=XX synchronization-mode=XX synchronization-time=XX kind=XX
recurrence-interval:必要。 周期間隔同步處理模式:同步模式同步處理時間:必要。 同步處理時間種類:必要。 觸發程式上的同步處理類型。
| 屬性 | 值 |
|---|---|
| 參數群組: | Trigger Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare trigger delete
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
刪除 shareSubscription 中的觸發程式。
az datashare trigger delete [--account-name]
[--ids]
[--name --trigger-name]
[--no-wait]
[--resource-group]
[--share-subscription-name]
[--subscription]
[--yes]
範例
Triggers_Delete
az datashare trigger delete --account-name "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --name "Trigger1"
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
共用帳戶的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
觸發程式的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
shareSubscription 的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare trigger list
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
列出共用訂用帳戶中的觸發程式。
az datashare trigger list --account-name
--resource-group
--share-subscription-name
[--skip-token]
範例
Triggers_ListByShareSubscription
az datashare trigger list --account-name "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1"
必要參數
共用帳戶的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
共用訂閱的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
接續令牌。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare trigger show
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
在 shareSubscription 中取得觸發程式。
az datashare trigger show [--account-name]
[--ids]
[--name --trigger-name]
[--resource-group]
[--share-subscription-name]
[--subscription]
範例
Triggers_Get
az datashare trigger show --account-name "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --name "Trigger1"
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
共用帳戶的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
觸發程式的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
shareSubscription 的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare trigger wait
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
將 CLI 置於等候狀態,直到符合 datashare 觸發程式的條件為止。
az datashare trigger wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name --trigger-name]
[--resource-group]
[--share-subscription-name]
[--subscription]
[--timeout]
[--updated]
範例
暫停執行下一行 CLI 腳本,直到成功建立 datashare 觸發程序為止。
az datashare trigger wait --account-name "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --name "Trigger1" --created
暫停執行下一行 CLI 腳本,直到成功刪除 datashare 觸發程式為止。
az datashare trigger wait --account-name "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --name "Trigger1" --deleted
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
共用帳戶的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
請等候在 'Succeeded' 使用 'provisioningState' 建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
等到刪除為止。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等候資源存在。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
輪詢間隔以秒為單位。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 30 |
觸發程式的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
shareSubscription 的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
以秒為單位的等候上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 3600 |
等到 provisioningState 更新為 'Succeeded'。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |