az network dns record-set txt
管理 DNS TXT 记录。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az network dns record-set txt add-record |
添加 TXT 记录。 |
Core | GA |
az network dns record-set txt create |
创建 TXT 记录集。 |
Core | GA |
az network dns record-set txt delete |
删除 TXT 记录集。 |
Core | GA |
az network dns record-set txt list |
列出区域中的 TXT 记录集。 |
Core | GA |
az network dns record-set txt remove-record |
从记录集中删除 TXT 记录。 |
Core | GA |
az network dns record-set txt show |
获取 TXT 记录集。 |
Core | GA |
az network dns record-set txt update |
更新 TXT 记录集。 |
Core | GA |
az network dns record-set txt add-record
添加 TXT 记录。
az network dns record-set txt add-record --record-set-name
--resource-group
--value
--zone-name
[--if-none-match]
示例
添加 TXT 记录。
az network dns record-set txt add-record -g MyResourceGroup -z www.mysite.com \
-n MyRecordSet -v Owner=WebTeam
必需参数
相对于区域记录集的名称。 如果不存在记录集,则创建一个新记录集。
资源组的名称。 可以使用 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.
仅当记录集尚不存在时,才创建记录集。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | 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 network dns record-set txt create
创建 TXT 记录集。
az network dns record-set txt create --name
--resource-group
--zone-name
[--if-match]
[--if-none-match]
[--metadata]
[--target-resource]
[--tm-profile --traffic-management-profile]
[--ttl]
示例
创建 TXT 记录集。
az network dns record-set txt create -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam
必需参数
记录集的名称,相对于区域的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
DNS 区域的名称(没有终止点)。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
记录集的 etag。 省略此值以始终覆盖当前记录集。 指定最后看到的 etag 值,以防止意外覆盖任何并发更改。
设置为“*”以允许创建新记录集,但要防止更新现有记录集。 将忽略其他值。
附加到记录集的元数据。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
从中获取 DNS 资源值的 Azure 资源的 ID。
对从中获取 DNS 资源值的 Azure 流量管理器配置文件资源的引用。
记录集中记录的 TTL(生存时间)。
属性 | 值 |
---|---|
Parameter group: | Properties Arguments |
默认值: | 3600 |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | 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 network dns record-set txt delete
删除 TXT 记录集。
az network dns record-set txt delete [--ids]
[--if-match]
[--name]
[--resource-group]
[--subscription]
[--yes]
[--zone-name]
示例
删除 TXT 记录集。
az network dns record-set txt delete -g MyResourceGroup -z www.mysite.com -n MyRecordSet
可选参数
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 |
记录集的 Etag。 省略此值以始终删除当前记录集。 指定最后一次看到的 etag 值,以防止意外删除任何并发更改。
记录集的名称,相对于区域的名称。
属性 | 值 |
---|---|
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 |
DNS 区域的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az network dns record-set txt list
列出区域中的 TXT 记录集。
az network dns record-set txt list --resource-group
--zone-name
[--max-items]
[--next-token]
[--recordsetnamesuffix]
[--top]
示例
列出区域中的 TXT 记录集。
az network dns record-set txt list -g MyResourceGroup -z www.mysite.com
必需参数
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
DNS 区域的名称(没有终止点)。
可选参数
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 |
必须用于筛选记录集枚举的记录集名称的后缀标签。 如果指定此参数,枚举将仅返回以 .<recordSetNameSuffix>
结尾的记录。
要返回的最大记录集数。 如果未指定,则最多返回 100 个记录集。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | 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 network dns record-set txt remove-record
从记录集中删除 TXT 记录。
默认情况下,如果删除了集中的最后一条记录,则会删除记录集。 若要保留空记录集,请包括 --keep-empty-record-set。
az network dns record-set txt remove-record --record-set-name
--resource-group
--value
--zone-name
[--keep-empty-record-set]
示例
从记录集中删除 TXT 记录。
az network dns record-set txt remove-record -g MyResourceGroup -z www.mysite.com \
-n MyRecordSet -v Owner=WebTeam
必需参数
相对于区域记录集的名称。
资源组的名称。 可以使用 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.
删除最后一条记录时保留空记录集。
属性 | 值 |
---|---|
默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | 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 network dns record-set txt show
获取 TXT 记录集。
az network dns record-set txt show [--ids]
[--name]
[--resource-group]
[--subscription]
[--zone-name]
示例
获取 TXT 记录集。
az network dns record-set txt show -g MyResourceGroup -z www.mysite.com -n MyRecordSet
可选参数
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 |
DNS 区域的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az network dns record-set txt update
更新 TXT 记录集。
az network dns record-set txt update [--add]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--if-match]
[--if-none-match]
[--metadata]
[--name]
[--remove]
[--resource-group]
[--set]
[--subscription]
[--target-resource]
[--tm-profile --traffic-management-profile]
[--zone-name]
示例
更新 TXT 记录集。
az network dns record-set txt update -g MyResourceGroup -z www.mysite.com -n MyRecordSet --metadata owner=WebTeam
可选参数
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 |
记录集的 Etag。 省略此值以始终覆盖当前记录集。 指定最后看到的 etag 值,以防止意外覆盖任何并发更改。
设置为 *
以允许创建新记录集,但要防止更新现有记录集。 将忽略其他值。
空格分隔键值对中的元数据。 这会覆盖任何现有元数据。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
记录集的名称,相对于区域的名称。
属性 | 值 |
---|---|
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 |
从中获取 DNS 资源值的 Azure 资源的 ID。
对从中获取 DNS 资源值的 Azure 流量管理器配置文件资源的引用。
DNS 区域的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |