共用方式為


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-key

Google API 金鑰。

屬性
Parameter group: Properties Arguments
--name --notification-hub-name -n

通知中樞名稱。

--namespace-name

命名空間名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False