az notification-hub credential gcm
Note
This reference is part of the notification-hub extension for the Azure CLI (version 2.67.0 or higher). 擴充功能會在您第一次執行 az notification-hub credential gcm 命令時,自動安裝。 Learn more about extensions.
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az notification-hub credential gcm update |
更新Google GCM/FCM API 金鑰。 |
Extension | Experimental |
az notification-hub credential gcm update
此命令是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
更新Google GCM/FCM API 金鑰。
az notification-hub credential gcm update --google-api-key
--name --notification-hub-name
--namespace-name
--resource-group
範例
更新 Android 推送 API 金鑰
az notification-hub credential gcm update --resource-group groupName --namespace-name spaceName --notification-hub-name hubName --google-api-key keyValue
必要參數
Google API 金鑰。
屬性 | 值 |
---|---|
Parameter group: | Properties Arguments |
通知中樞名稱。
命名空間名稱。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | 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 |