az notification-hub
Note
This reference is part of the notification-hub extension for the Azure CLI (version 2.67.0 or higher). The extension will automatically install the first time you run an az notification-hub command. Learn more about extensions.
管理通知中心。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az notification-hub authorization-rule |
用于管理通知中心授权规则的命令。 |
Extension | GA |
az notification-hub authorization-rule create |
为通知中心创建授权规则。 |
Extension | Experimental |
az notification-hub authorization-rule delete |
删除 notificationHub 授权规则。 |
Extension | Experimental |
az notification-hub authorization-rule list |
列出通知中心的授权规则。 |
Extension | Experimental |
az notification-hub authorization-rule list-keys |
列出通知中心的主连接字符串和辅助连接字符串。 |
Extension | Experimental |
az notification-hub authorization-rule regenerate-keys |
将主密钥/辅助密钥重新生成到通知中心授权规则。 |
Extension | Experimental |
az notification-hub authorization-rule show |
按名称显示通知中心的授权规则。 |
Extension | Experimental |
az notification-hub check-availability |
检查命名空间中给定通知中心的可用性。 |
Extension | Experimental |
az notification-hub create |
在命名空间中创建通知中心。 |
Extension | Experimental |
az notification-hub credential |
用于管理通知中心凭据的命令。 |
Extension | GA |
az notification-hub credential adm |
管理通知中心。 |
Extension | GA |
az notification-hub credential adm update |
更新 Amazon(ADM)的凭据。 |
Extension | Experimental |
az notification-hub credential apns |
管理通知中心。 |
Extension | GA |
az notification-hub credential apns update |
更新 Apple(APNS)的凭据。 |
Extension | Experimental |
az notification-hub credential baidu |
管理通知中心。 |
Extension | GA |
az notification-hub credential baidu update |
更新百度(Andrioid China)的凭据。 |
Extension | Experimental |
az notification-hub credential gcm |
管理通知中心。 |
Extension | GA |
az notification-hub credential gcm update |
更新 Google GCM/FCM API 密钥。 |
Extension | Experimental |
az notification-hub credential list |
列出与通知中心关联的 PNS 凭据。 |
Extension | Experimental |
az notification-hub credential mpns |
管理通知中心。 |
Extension | GA |
az notification-hub credential mpns update |
更新 Windows Phone(MPNS)的凭据。 |
Extension | Experimental |
az notification-hub credential wns |
管理通知中心。 |
Extension | GA |
az notification-hub credential wns update |
更新 Windows(WNS)的凭据。 |
Extension | Experimental |
az notification-hub delete |
删除与命名空间关联的通知中心。 |
Extension | Experimental |
az notification-hub list |
列出与命名空间关联的通知中心。 |
Extension | Experimental |
az notification-hub namespace |
用于管理通知中心命名空间的命令。 |
Extension | GA |
az notification-hub namespace authorization-rule |
用于管理通知中心命名空间授权规则的命令。 |
Extension | GA |
az notification-hub namespace authorization-rule create |
为命名空间创建授权规则。 |
Extension | Experimental |
az notification-hub namespace authorization-rule delete |
删除命名空间授权规则。 |
Extension | Experimental |
az notification-hub namespace authorization-rule list |
列出命名空间的授权规则。 |
Extension | Experimental |
az notification-hub namespace authorization-rule list-keys |
列出命名空间的主连接字符串和辅助连接字符串。 |
Extension | Experimental |
az notification-hub namespace authorization-rule regenerate-keys |
将主密钥/辅助密钥重新生成到命名空间授权规则。 |
Extension | Experimental |
az notification-hub namespace authorization-rule show |
按名称获取命名空间的授权规则。 |
Extension | Experimental |
az notification-hub namespace check-availability |
检查所有 Azure 订阅中给定服务命名空间的可用性。 这很有用,因为域名是基于服务命名空间名称创建的。 |
Extension | Experimental |
az notification-hub namespace create |
创建服务命名空间。 创建后,此命名空间的资源清单是不可变的。 此作是幂等的。 |
Extension | Experimental |
az notification-hub namespace delete |
删除现有命名空间。 此作还会删除命名空间下的所有关联 notificationHub。 |
Extension | Experimental |
az notification-hub namespace list |
列出可用的命名空间。 |
Extension | Experimental |
az notification-hub namespace show |
返回指定命名空间的说明。 |
Extension | Experimental |
az notification-hub namespace update |
更新服务命名空间。 命名空间的资源清单是不可变的,无法修改。 |
Extension | Experimental |
az notification-hub namespace wait |
将 CLI 置于等待状态,直到满足条件。 |
Extension | GA |
az notification-hub show |
显示通知中心信息。 |
Extension | Experimental |
az notification-hub update |
更新命名空间中的通知中心。 |
Extension | Experimental |
az notification-hub check-availability
此命令是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
检查命名空间中给定通知中心的可用性。
az notification-hub check-availability --name
[--ids]
[--namespace-name]
[--resource-group]
[--subscription]
示例
检查给定通知中心名称的可用性
az notification-hub check-availability --resource-group MyResourceGroup --namespace-name "locp-newns" --name my-hub
必需参数
Resource name.
属性 | 值 |
---|---|
Parameter group: | Parameters Arguments |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
命名空间名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az notification-hub create
此命令是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
在命名空间中创建通知中心。
az notification-hub create --name
--namespace-name
--resource-group
[--location]
[--registration-ttl]
[--tags]
示例
创建通知中心
az notification-hub create --resource-group MyResourceGroup --namespace-name my-namespace --name my-hub --location "South Central US"
必需参数
通知中心名称。
命名空间名称。
资源组的名称。 可以使用 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.
未指定资源位置时,将使用资源组的位置。
属性 | 值 |
---|---|
Parameter group: | Parameters Arguments |
创建的 NotificationHub 的 RegistrationTtl。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
资源标记支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Parameters Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az notification-hub delete
此命令是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
删除与命名空间关联的通知中心。
az notification-hub delete [--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]
[--yes]
示例
删除通知中心
az notification-hub delete --resource-group MyResourceGroup --namespace-name my-namespace --name my-hub
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
通知中心名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
命名空间名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
不要提示确认。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az notification-hub list
此命令是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出与命名空间关联的通知中心。
az notification-hub list --namespace-name
--resource-group
[--max-items]
[--next-token]
示例
列出通知中心
az notification-hub list --resource-group MyResourceGroup --namespace-name my-namespace
必需参数
命名空间名称。
资源组的名称。 可以使用 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
参数中提供令牌值。
属性 | 值 |
---|---|
Parameter group: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
属性 | 值 |
---|---|
Parameter group: | Pagination Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az notification-hub show
此命令是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
显示通知中心信息。
az notification-hub show [--ids]
[--name]
[--namespace-name]
[--resource-group]
[--subscription]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
通知中心名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
命名空间名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az notification-hub update
此命令是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
更新命名空间中的通知中心。
az notification-hub update [--add]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--location]
[--name --notification-hub-name]
[--namespace-name]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--tags]
示例
更新通知中心
az notification-hub update --resource-group MyResourceGroup --namespace-name my-namespace --name "sdk-notificationHubs-8708"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>
。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Resource location.
属性 | 值 |
---|---|
Parameter group: | Parameters Arguments |
通知中心名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
命名空间名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>
。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源标记支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Parameters Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |