az iot hub message-endpoint
Note
此参考是 Azure CLI(版本 2.67.0 或更高版本)的 azure-iot 扩展的一部分。 该扩展将在首次运行 az iot hub message-endpoint 命令时自动安装。 了解更多关于扩展的信息。
此命令组处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
管理 IoT 中心的自定义终结点。
命令
az iot hub message-endpoint delete
命令组“iot 中心消息终结点”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
删除IoT 中心的所有或特定终结点。
在删除终结点之前,必须先删除任何路由和消息扩充到终结点。
az iot hub message-endpoint delete [--en --endpoint --endpoint-name]
[--endpoint-type --type {cosmosdb-container, eventhub, servicebus-queue, servicebus-topic, storage-container}]
[--force]
[--hub-name]
[--ids]
[--resource-group]
[--subscription]
[--yes {false, true}]
示例
从 IoT 中心删除终结点。
az iot hub message-endpoint delete -n {iothub_name} --endpoint-name {endpoint_name}
从 IoT 中心删除类型为“EventHub”的所有终结点。
az iot hub message-endpoint delete -n {iothub_name} --endpoint-type eventhub
从 IoT 中心删除所有终结点。
az iot hub message-endpoint delete -n {iothub_name}
强制从 IoT 中心删除终结点。 这将删除与此终结点关联的任何路由和消息扩充。
az iot hub message-endpoint delete -n {iothub_name} --endpoint-name {endpoint_name} -f
从 IoT 中心强制删除类型为“EventHub”的所有终结点。 这将删除与此终结点关联的任何路由和消息扩充。
az iot hub message-endpoint delete -n {iothub_name} --endpoint-type eventhub -f
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
路由终结点的名称。
路由终结点的类型。
| 属性 | 值 |
|---|---|
| 接受的值: | cosmosdb-container, eventhub, servicebus-queue, servicebus-topic, storage-container |
强制删除终结点以及关联的任何路由和消息扩充。
| 属性 | 值 |
|---|---|
| 默认值: | False |
IoT 中心名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
跳过用户提示。 指示接受操作。 主要用于自动化方案。 默认值:false。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az iot hub message-endpoint list
命令组“iot 中心消息终结点”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
获取有关IoT 中心的所有终结点的信息。
还可以指定要获取相关信息的终结点类型。
az iot hub message-endpoint list [--endpoint-type --type {cosmosdb-container, eventhub, servicebus-queue, servicebus-topic, storage-container}]
[--hub-name]
[--ids]
[--resource-group]
[--subscription]
示例
从 IoT 中心获取所有终结点。
az iot hub message-endpoint list -n {iothub_name}
从 IoT 中心获取类型为“EventHub”的所有终结点。
az iot hub message-endpoint list -n {iothub_name} --endpoint-type eventhub
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
路由终结点的类型。
| 属性 | 值 |
|---|---|
| 接受的值: | cosmosdb-container, eventhub, servicebus-queue, servicebus-topic, storage-container |
IoT 中心名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 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 iot hub message-endpoint show
命令组“iot 中心消息终结点”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
获取有关IoT 中心的已提及终结点的信息。
az iot hub message-endpoint show --en --endpoint --endpoint-name
[--hub-name]
[--ids]
[--resource-group]
[--subscription]
示例
从 IoT 中心获取终结点信息。
az iot hub message-endpoint show -n {iothub_name} --endpoint-name {endpoint_name}
必需参数
路由终结点的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
IoT 中心名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 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 |