az communication chat message
Note
此参考是 Azure CLI(版本 2.67.0 或更高版本) 的通信 扩展的一部分。 该扩展将在首次运行 az communication chat message 命令时自动安装。 了解更多关于扩展的信息。
命令组“通信聊天”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
用于管理通信服务资源的聊天线程中的消息的命令。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az communication chat message delete |
按 ID 从聊天线程中删除消息。 |
Extension | Preview |
| az communication chat message get |
按 ID 从聊天线程获取消息。 |
Extension | Preview |
| az communication chat message list |
从聊天线程获取消息列表。 |
Extension | Preview |
| az communication chat message receipt |
用于在通信服务资源的聊天线程中管理消息读回执的命令。 |
Extension | Preview |
| az communication chat message receipt list |
获取聊天线程的已读回执。 |
Extension | Preview |
| az communication chat message receipt send |
代表用户将已读回执事件发布到聊天线程。 |
Extension | Preview |
| az communication chat message send |
向聊天线程发送消息。 |
Extension | Preview |
| az communication chat message update |
更新消息。 |
Extension | Preview |
az communication chat message delete
命令组“通信聊天消息”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
按 ID 从聊天线程中删除消息。
az communication chat message delete --message-id
--thread
[--access-token]
[--endpoint]
[--yes]
示例
删除邮件
az communication chat message delete --thread "19:a-bcd=xyz" --message-id "12345678"
必需参数
消息 ID。
线程 ID。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az communication chat message get
命令组“通信聊天消息”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
按 ID 从聊天线程获取消息。
az communication chat message get --message-id
--thread
[--access-token]
[--endpoint]
示例
获取邮件
az communication chat message get --thread "19:a-bcd=xyz" --message-id "12345678"
必需参数
消息 ID。
线程 ID。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az communication chat message list
命令组“通信聊天消息”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
从聊天线程获取消息列表。
az communication chat message list --thread
[--access-token]
[--endpoint]
[--start-time]
示例
列出邮件
az communication chat message list --thread "19:a-bcd=xyz" --start-time "2022-07-14T10:21"
必需参数
线程 ID。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
ISO8601格式的开始时间,例如:2022-07-14T10:21。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az communication chat message send
命令组“通信聊天消息”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
向聊天线程发送消息。
az communication chat message send --content
--thread
[--access-token]
[--display-name]
[--endpoint]
[--message-type]
示例
发送消息
az communication chat message send --thread "19:a-bcd=xyz" --display-name "John Doe" --content "Hello there!" --message-type "text"
必需参数
聊天消息内容。
线程 ID。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
发送方显示名称。
通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
内容类型可以是文本或 html。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az communication chat message update
命令组“通信聊天消息”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
更新消息。
az communication chat message update --content
--message-id
--thread
[--access-token]
[--endpoint]
示例
更新邮件
az communication chat message update --thread "19:a-bcd=xyz" --message-id "12345678" --content "Hello, there!"
必需参数
聊天消息内容。
消息 ID。
线程 ID。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
通信访问令牌。 环境变量:AZURE_COMMUNICATION_ACCESS_TOKEN。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
通信终结点。 环境变量:AZURE_COMMUNICATION_ENDPOINT。
| 属性 | 值 |
|---|---|
| 参数组: | Communication Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |