云解析DNS - alidns CLI 命令参考

更新时间:
复制 MD 格式

本文列出云解析DNS - alidns 在阿里云 CLI 中的可用命令,并提供各命令的语法和参数说明。

前提条件

  • 已安装阿里云 CLI。安装方法请参见安装/更新 CLI。

  • 执行需要身份认证的命令前,请确认已配置阿里云 CLI 凭证,且凭证对应的身份拥有所需权限。配置方法请参见配置与管理身份凭证。

地域与接入点

凭证配置中的默认地域可用 --region <regionId> 覆盖。

未指定接入地址时,CLI 按产品规则尝试解析,需要指定时可按地域和网络类型查看 Endpoint,再使用 --endpoint <endpoint>。

版本信息

属性

值

CLI 版本

3.5.4

API 版本

2015-01-09

可用命令

单击命令名称,查看命令描述、语法和参数说明。

命令详情

语法逐行列出命令参数:<类型> 是需要替换的值占位符,方括号表示可选参数,# 表示列表项序号;[options] 表示 CLI 通用选项,见“全局选项”。可选对象或列表内标为必填的字段,仅在提供该对象或列表项时必填。完整参数定义见各命令的参数说明。

AddCustomLine

命令描述

给域名添加自定义线路

语法

aliyun alidns AddCustomLine
    --DomainName <string>
    --IpSegment <array>
    [--IpSegment.#.EndIp <string>]
    [--IpSegment.#.StartIp <string>]
    [--Lang <string>]
    --LineName <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--IpSegment

List

是

IP段列表

  • 列表项:

    • 类型:object

--IpSegment.#.EndIp

String

否

Ip段的结束IP

--IpSegment.#.StartIp

String

否

IP段的开始IP

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--LineName

String

是

自定义线路名称

示例

aliyun alidns AddCustomLine --region cn-hangzhou --IpSegment.1.EndIp '192.0.2.254' --DomainName 'example.com' --IpSegment.1.StartIp '192.0.2.0' --LineName '北京线路'

AddDnsCacheDomain

命令描述

根据传入参数添加 DNS 权威代理域名

语法

aliyun alidns AddDnsCacheDomain
    --CacheTtlMax <int>
    --CacheTtlMin <int>
    --DomainName <string>
    --InstanceId <string>
    [--Lang <string>]
    [--Remark <string>]
    --SourceDnsServer.#.Host <string>
    --SourceDnsServer.#.Port <string>
    --SourceEdns <string>
    --SourceProtocol <string>
    [options]

参数

参数

类型

必填

说明

--CacheTtlMax

Integer

是

回源缓存数据TTL(最大值),取值范围为30 - 86400

  • 约束:

    • 最大值:86400

    • 最小值:30

--CacheTtlMin

Integer

是

回源缓存数据TTL(最小值),取值范围为30 - 86400

  • 约束:

    • 最大值:86400

    • 最小值:30

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--InstanceId

String

是

权威代理域名实例ID。可通过调用ListCloudGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-listcloudgtminstances?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh:中文
en:英文
默认为zh


--Remark

String

否

备注

--SourceDnsServer

List

是

源站DNS服务器列表,最多支持10条记录

  • 列表项:

    • 类型:object

--SourceDnsServer.#.Host

String

是

源站服务器的域名或IP地址

--SourceDnsServer.#.Port

String

是

源站DNS服务器端口

--SourceEdns

String

是

源站是否支持edns。NOT_SUPPORT:不支持,SUPPORT:支持

--SourceProtocol

String

是

回源协议,TCP、UDP。默认值为UDP

示例

aliyun alidns AddDnsCacheDomain --region cn-hangzhou --SourceEdns SUPPORT --DomainName 'example.com' --InstanceId 'dns-cn-00000' --SourceDnsServer.1.Port 53 --SourceProtocol UDP --CacheTtlMin 30 --SourceDnsServer.1.Host '192.168.0.1' --CacheTtlMax 86400

AddDnsGtmAccessStrategy

命令描述

新增访问策略

语法

aliyun alidns AddDnsGtmAccessStrategy
    --DefaultAddrPool <array>
    [--DefaultAddrPool.#.Id <string>]
    [--DefaultAddrPool.#.LbaWeight <int>]
    --DefaultAddrPoolType <string>
    [--DefaultLatencyOptimization <string>]
    [--DefaultLbaStrategy <string>]
    [--DefaultMaxReturnAddrNum <int>]
    --DefaultMinAvailableAddrNum <int>
    [--FailoverAddrPool.#.Id <string>]
    [--FailoverAddrPool.#.LbaWeight <int>]
    [--FailoverAddrPoolType <string>]
    [--FailoverLatencyOptimization <string>]
    [--FailoverLbaStrategy <string>]
    [--FailoverMaxReturnAddrNum <int>]
    [--FailoverMinAvailableAddrNum <int>]
    --InstanceId <string>
    [--Lang <string>]
    --Lines <string>
    --StrategyMode <string>
    --StrategyName <string>
    [options]

参数

参数

类型

必填

说明

--DefaultAddrPool

List

是

主地址池集合列表

  • 列表项:

    • 类型:object

--DefaultAddrPool.#.Id

String

否

主地址池集合列表中地址池Id

--DefaultAddrPool.#.LbaWeight

Integer

否

主地址池集合列表中权重

--DefaultAddrPoolType

String

是

主地址池类型:
IPV4
IPV6
DOMAIN


--DefaultLatencyOptimization

String

否

主地址池集合延时解析调度优化:
OPEN:开启
CLOSE:关闭

--DefaultLbaStrategy

String

否

主地址池集合负载均衡策略:
ALL_RR: 返回全部地址
RATIO:按权重返回地址

--DefaultMaxReturnAddrNum

Integer

否

主地址池集合最多返回地址数量

  • 约束:

    • 最大值:8

    • 最小值:1

--DefaultMinAvailableAddrNum

Integer

是

主地址池集合最小可用地址数量

  • 约束:

    • 最大值:400

    • 最小值:1

--FailoverAddrPool

List

否

备地址池集合,若未设置备地址池集合,输入"EMPTY"

  • 列表项:

    • 类型:object

--FailoverAddrPool.#.Id

String

否

备地址池集合列表中地址池id

--FailoverAddrPool.#.LbaWeight

Integer

否

备地址池集合列表中权重

--FailoverAddrPoolType

String

否

备地址池类型:
IPV4
IPV6
DOMAIN


--FailoverLatencyOptimization

String

否

备地址池集合延时解析调度优化:
OPEN:开启
CLOSE:关闭

--FailoverLbaStrategy

String

否

备地址池集合负载均衡策略:
ALL_RR: 返回全部地址
RATIO:按权重返回地址

--FailoverMaxReturnAddrNum

Integer

否

备地址池集合最多返回地址数量

  • 约束:

    • 最大值:8

    • 最小值:1

--FailoverMinAvailableAddrNum

Integer

否

备地址池集合最小可用地址数量

  • 约束:

    • 最大值:400

    • 最小值:1

--InstanceId

String

是

实例id

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--Lines

String

是

解析请求来源。例如:["default", "drpeng"],即全局策略和鹏博士

--StrategyMode

String

是

访问策略类型:
GEO:基于地理位置的访问策略
LATENCY:基于访问延时的访问策略

--StrategyName

String

是

策略名称

示例

aliyun alidns AddDnsGtmAccessStrategy --region cn-hangzhou --DefaultMinAvailableAddrNum 1 --DefaultAddrPoolType IPV4 --StrategyName testStrategyName --InstanceId instance1 --DefaultAddrPool.1.LbaWeight 1 --DefaultAddrPool.1.Id pool1 --StrategyMode GEO

AddDnsGtmAddressPool

命令描述

新增地址池

语法

aliyun alidns AddDnsGtmAddressPool
    --Addr.#.Addr <string>
    --Addr.#.AttributeInfo <string>
    [--Addr.#.LbaWeight <int>]
    --Addr.#.Mode <string>
    [--Addr.#.Remark <string>]
    [--EvaluationCount <int>]
    --InstanceId <string>
    [--Interval <int>]
    [--IspCityNode.#.CityCode <string>]
    [--IspCityNode.#.IspCode <string>]
    [--Lang <string>]
    --LbaStrategy <string>
    [--MonitorExtendInfo <string>]
    [--MonitorStatus <string>]
    --Name <string>
    [--ProtocolType <string>]
    [--Timeout <int>]
    --Type <string>
    [options]

参数

参数

类型

必填

说明

--Addr

List

是

地址池列表

  • 列表项:

    • 类型:object

--Addr.#.Addr

String

是

地址

--Addr.#.AttributeInfo

String

是

地址归属信息, JSON字符串格式。
lineCode:归属线路Code
lineCodeRectifyType:归属线路订正类型,默认:自动订正
- NO_NEED 不订正
- RECTIFIED 已订正
- AUTO 自动订正




--Addr.#.LbaWeight

Integer

否

权重

--Addr.#.Mode

String

是

模式:
SMART:智能返回
ONLINE:永远在线
OFFLINE:永远离线


--Addr.#.Remark

String

否

备注

--EvaluationCount

Integer

否

连续失败次数

  • 约束:

    • 最大值:9999999

    • 最小值:1

--InstanceId

String

是

实例ID。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Interval

Integer

否

检查间隔,单位秒

  • 约束:

    • 最大值:9999999

    • 最小值:1

--IspCityNode

List

否

监控城市节点列表。当 MonitorStatus 为 OPEN 状态时,节点列表中至少应配置一个有效节点

  • 列表项:

    • 类型:object

--IspCityNode.#.CityCode

String

否

城市Code。当 MonitorStatus 为 OPEN 状态时,CityCode不能为空。
具体取值可参考:DescribeDnsGtmMonitorAvailableConfig接口返回数据

--IspCityNode.#.IspCode

String

否

当 MonitorStatus 为 OPEN 状态时,IspCode不能为空。
具体取值可参考:DescribeDnsGtmMonitorAvailableConfig接口返回数据

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--LbaStrategy

String

是

负载均衡状态:
ALL_RR:返回全部地址
RATIO:按权重返回地址

--MonitorExtendInfo

String

否

扩展信息,各协议检查所需参数:
HTTP(S):
port:检查端口
host:Host设置
path:URL路径
code:返回码(大于此值会被判定为异常)。取值:400、500。
failureRate:失败比例
sni:是否开启sni,仅在HTTPS协议时使用。
- true-开启
- 其他-未开启
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
PING:
failureRate:失败比例
packetNum:ping包数目
packetLossRate:丢包率
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
TCP:
port:检查端口
failureRate:失败比例
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
























--MonitorStatus

String

否

健康检查开启状态(默认CLOSE),若OPEN则校验健康检查配置,否则抛弃
OPEN:开启
CLOSE:关闭

--Name

String

是

地址池名称

--ProtocolType

String

否

检查协议:
HTTP
HTTPS
PING
TCP



--Timeout

Integer

否

超时时间,单位毫秒

  • 约束:

    • 最大值:9999999

    • 最小值:1

--Type

String

是

地址池类型:
IPV4:ipv4地址
IPV6: ipv6地址
DOMAIN:域名


示例

aliyun alidns AddDnsGtmAddressPool --region cn-hangzhou --Addr.1.AttributeInfo 'lineCodeRectifyType_:_AUTO_,_lineCode_:' --Type IPV4 --LbaStrategy ALL_RR --InstanceId 'gtm-cn-cs02xyk0000' --Addr.1.Mode SMART --Addr.1.LbaWeight 1 --Addr.1.Addr '223.5.XX.XX' --Addr.1.Remark test --Name test

AddDnsGtmMonitor

命令描述

创建健康检查

语法

aliyun alidns AddDnsGtmMonitor
    --AddrPoolId <string>
    --EvaluationCount <int>
    --Interval <int>
    --IspCityNode <array>
    [--IspCityNode.#.CityCode <string>]
    [--IspCityNode.#.IspCode <string>]
    [--Lang <string>]
    --MonitorExtendInfo <string>
    --ProtocolType <string>
    --Timeout <int>
    [options]

参数

参数

类型

必填

说明

--AddrPoolId

String

是

地址池id。可通过调用DescribeDnsGtmInstanceAddressPools (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstanceaddresspools?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_9_7.1cee430dbd1I3y)获取

--EvaluationCount

Integer

是

连续次数

  • 约束:

    • 最大值:3

    • 最小值:1

--Interval

Integer

是

检查间隔,单位秒

  • 约束:

    • 最大值:60

    • 最小值:15

--IspCityNode

List

是

监控城市节点列表

  • 列表项:

    • 类型:object

--IspCityNode.#.CityCode

String

否

监控节点-城市code

--IspCityNode.#.IspCode

String

否

监控节点-运营商code

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--MonitorExtendInfo

String

是

扩展信息,各协议检查所需参数:
HTTP(S):
port:检查端口
host:Host设置
path:URL路径
code:返回码大于某个数值时则判定健康检查异常。
failureRate:失败率
sni:是否开启sni,仅在HTTPS协议时使用。
- true-开启
- false-未开启
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
PING:
failureRate:失败率
packetNum:ping包数
packetLossRate:ping丢包率
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
TCP:
port:检查端口
failureRate:失败率
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
本字段需以 JSON 字符串格式输入

























--ProtocolType

String

是

检查协议:
HTTP
HTTPS
PING
TCP



--Timeout

Integer

是

超时时间,单位毫秒

  • 约束:

    • 最大值:10000

    • 最小值:1000

示例

aliyun alidns AddDnsGtmMonitor --region cn-hangzhou --IspCityNode.1.CityCode 123 --ProtocolType TCP --Timeout 3000 --AddrPoolId po00 --EvaluationCount 1 --MonitorExtendInfo 'failureRate_:50,_port_:80' --IspCityNode.1.IspCode 123 --Interval 60

AddDomain

命令描述

根据传入参数添加域名

语法

aliyun alidns AddDomain
    --DomainName <string>
    [--GroupId <string>]
    [--Lang <string>]
    [--ResourceGroupId <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称

--GroupId

String

否

指域名分组ID。如不填或传空字符或传defaultGroup,将添加在默认分组下。可通过调用 AddDomainGroup获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--ResourceGroupId

String

否

域名在资源管理产品中所属的资源组ID。默认为空,即属于默认资源组

示例

aliyun alidns AddDomain --region cn-hangzhou --DomainName 'example.com'

AddDomainBackup

命令描述

根据传入的域名名称和备份周期给该域名建立备份

语法

aliyun alidns AddDomainBackup
    --DomainName <string>
    [--Lang <string>]
    --PeriodType <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--PeriodType

String

是

备份周期,当前支持:
DAY:每天备份一次
HOUR:每小时备份一次

示例

aliyun alidns AddDomainBackup --region cn-hangzhou --PeriodType HOUR --DomainName 'dns-example.top'

AddDomainGroup

命令描述

根据传入参数添加域名分组

语法

aliyun alidns AddDomainGroup
    --GroupName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--GroupName

String

是

域名分组名称

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


示例

aliyun alidns AddDomainGroup --region cn-hangzhou --GroupName MyGroup

AddDomainRecord

命令描述

根据传入参数添加解析记录

语法

aliyun alidns AddDomainRecord
    --DomainName <string>
    [--Lang <string>]
    [--Line <string>]
    [--Priority <int>]
    --RR <string>
    [--TTL <int>]
    --Type <string>
    [--UserClientIp <string>]
    --Value <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh:中文
en:英文
默认为zh


--Line

String

否

解析线路,默认为default。参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)

--Priority

Integer

否

MX记录的优先级,取值范围:[1,50]。
记录类型为MX记录时,此参数必需,MX 优先级的数值越低,优先级别就越高

  • 约束:

    • 最大值:65535

    • 最小值:0

--RR

String

是

主机记录。
如果要解析exmaple.com,主机记录要填写”@”,而不是空

--TTL

Integer

否

解析生效时间,默认为600秒(10分钟)。参见:
TTL定义说明 (https://help.aliyun.com/document_detail/29806.html)

  • 约束:

    • 最大值:86400

    • 最小值:1

--Type

String

是

解析记录类型,参见:
解析记录类型格式 (https://help.aliyun.com/document_detail/29805.html)

--UserClientIp

String

否

用户端IP

--Value

String

是

记录值

示例

aliyun alidns AddDomainRecord --region cn-hangzhou --RR www --Type A --DomainName 'example.com' --Value '192.168.0.1'

AddGtmAccessStrategy

命令描述

根据传入参数新增访问策略

语法

aliyun alidns AddGtmAccessStrategy
    --AccessLines <string>
    --DefaultAddrPoolId <string>
    --FailoverAddrPoolId <string>
    --InstanceId <string>
    [--Lang <string>]
    --StrategyName <string>
    [options]

参数

参数

类型

必填

说明

--AccessLines

String

是

解析请求来源

--DefaultAddrPoolId

String

是

主地址池集合ID

--FailoverAddrPoolId

String

是

备地址池集合ID。
若未设置备地址池集合,参数输入EMPTY

--InstanceId

String

是

实例ID

--Lang

String

否

语言

--StrategyName

String

是

策略名称

示例

aliyun alidns AddGtmAccessStrategy --region cn-hangzhou --StrategyName '访问策略测试' --InstanceId instance1 --AccessLines 'default_,_drpeng' --FailoverAddrPoolId hrsyw --DefaultAddrPoolId hrsix

AddGtmAddressPool

命令描述

新增地址池

语法

aliyun alidns AddGtmAddressPool
    --Addr <array>
    [--Addr.#.LbaWeight <int>]
    [--Addr.#.Mode <string>]
    [--Addr.#.Value <string>]
    [--EvaluationCount <int>]
    --InstanceId <string>
    [--Interval <int>]
    [--IspCityNode.#.CityCode <string>]
    [--IspCityNode.#.IspCode <string>]
    [--Lang <string>]
    --MinAvailableAddrNum <int>
    [--MonitorExtendInfo <string>]
    [--MonitorStatus <string>]
    --Name <string>
    [--ProtocolType <string>]
    [--Timeout <int>]
    --Type <string>
    [options]

参数

参数

类型

必填

说明

--Addr

List

是

地址池列表

  • 列表项:

    • 类型:object

--Addr.#.LbaWeight

Integer

否

地址池权重

--Addr.#.Mode

String

否

地址池模式。取值:
SMART:智能返回
ONLINE:永远在线
OFFLINE:永远离线


--Addr.#.Value

String

否

地址池地址

--EvaluationCount

Integer

否

连续失败次数

--InstanceId

String

是

实例ID

--Interval

Integer

否

检查间隔,单位:秒,取值范围:60

--IspCityNode

List

否

监控城市节点列表

  • 列表项:

    • 类型:object

--IspCityNode.#.CityCode

String

否

监控节点的城市Code。具体取值请参考DescribeGtmMonitorAvailableConfig的返回值

--IspCityNode.#.IspCode

String

否

具体取值可参考:DescribeGtmMonitorAvailableConfig接口返回数据。
GroupType为BGP或Overseas时,IspCityNode.N.IspCode为非必传值,默认为465。
GroupType为非BGP或Overseas时,IspCityNode.N.IspCode为必传值。并与IspCityNode.N.CityCode匹配使用

--Lang

String

否

用户语言

--MinAvailableAddrNum

Integer

是

最小可用地址数量

--MonitorExtendInfo

String

否

扩展信息。根据不同协议,进行传参:
HTTP、HTTPS:
port:检查端口
failureRate:失败比例
code:返回码(大于此值会被判定为异常)。取值:400、500。
host:Host设置
path:URL路径
PING:
packetNum:ping包数目
packetLossRate:丢包率
failureRate:失败比例
TCP:
port:检查端口
failureRate:失败比例












--MonitorStatus

String

否

健康检查开启状态。取值:
OPEN:开启
CLOSE(默认):关闭

--Name

String

是

地址池名称

--ProtocolType

String

否

检查协议。取值:
HTTP
HTTPS
Ping
TCP



--Timeout

Integer

否

超时时间,单位:毫秒,取值范围:2000、3000、5000、10000

--Type

String

是

地址池类型。取值:
IP:IPv4地址
DOMAIN:域名

示例

aliyun alidns AddGtmAddressPool --region cn-hangzhou --Type IP --InstanceId 'gtm-cn-xxxxxxx' --Addr.1.Mode SMART --MinAvailableAddrNum 1 --Addr.1.LbaWeight 1 --Addr.1.Value '1.1.XX.XX' --Name '测试'

AddGtmMonitor

命令描述

创建健康检查

语法

aliyun alidns AddGtmMonitor
    --AddrPoolId <string>
    --EvaluationCount <int>
    --Interval <int>
    --IspCityNode <array>
    [--IspCityNode.#.CityCode <string>]
    [--IspCityNode.#.IspCode <string>]
    [--Lang <string>]
    --MonitorExtendInfo <string>
    --ProtocolType <string>
    --Timeout <int>
    [options]

参数

参数

类型

必填

说明

--AddrPoolId

String

是

地址池ID

--EvaluationCount

Integer

是

连续失败次数

--Interval

Integer

是

检查间隔,单位:秒,取值范围:60

--IspCityNode

List

是

监控城市节点列表

  • 列表项:

    • 类型:object

--IspCityNode.#.CityCode

String

否

城市Code。
具体取值可参考:DescribeGtmMonitorAvailableConfig接口返回数据

--IspCityNode.#.IspCode

String

否

具体取值可参考:DescribeGtmMonitorAvailableConfig接口返回数据。
GroupType为BGP或Overseas时,IspCityNode.N.IspCode为非必传值,默认为465。
GroupType为非BGP或Overseas时,IspCityNode.N.IspCode为必传值。并与IspCityNode.N.CityCode匹配使用

--Lang

String

否

语言

--MonitorExtendInfo

String

是

扩展信息。根据不同协议,进行传参:
HTTP、HTTPS:
port:检查端口
failureRate:失败比例
code:返回码(大于此值会被判定为异常)。取值:400、500。
host:Host设置
path:URL路径
PING:
packetNum:ping包数
packetLossRate:丢包率
failureRate:失败比例
TCP:
port:检查端口
failureRate:失败比例












--ProtocolType

String

是

检查协议。取值:
HTTP
HTTPS
PING
TCP



--Timeout

Integer

是

超时时间,单位:毫秒,取值范围:2000、3000、5000、10000

示例

aliyun alidns AddGtmMonitor --region cn-hangzhou --IspCityNode.1.CityCode 503 --ProtocolType HTTP --Timeout 3000 --AddrPoolId xxxx --EvaluationCount 3 --MonitorExtendInfo 'code_:200,_path_:_/index.htm_,_host_:_aliyun.com' --IspCityNode.1.IspCode 465 --Interval 60

AddGtmRecoveryPlan

命令描述

新增容灾预案

语法

aliyun alidns AddGtmRecoveryPlan
    --FaultAddrPool <string>
    [--Lang <string>]
    --Name <string>
    --Remark <string>
    [options]

参数

参数

类型

必填

说明

--FaultAddrPool

String

是

故障地址池ID列表

--Lang

String

否

用户语言

--Name

String

是

容灾预案名称

--Remark

String

是

备注

示例

aliyun alidns AddGtmRecoveryPlan --region cn-hangzhou --FaultAddrPool hra0or --Name 'name-example'

AddRecursionRecord

命令描述

新增递归解析内置权威解析记录

语法

aliyun alidns AddRecursionRecord
    [--ClientToken <string>]
    [--Priority <int>]
    [--RequestSource <string>]
    [--Rr <string>]
    [--Ttl <int>]
    [--Type <string>]
    [--UserClientIp <string>]
    [--Value <string>]
    [--Weight <int>]
    --ZoneId <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--Priority

Integer

否

MX记录的优先级。取值越小,优先级越高,取值范围:[1,99]

--RequestSource

String

否

解析线路,默认为default。参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)

--Rr

String

否

主机记录。主机记录就是域名前缀,常见用法有www、@、*(泛解析)、mail(常用于邮箱)。
例如要解析@.exmaple.com,主机记录要填写"@”,而不是空

--Ttl

Integer

否

本地缓存时间。目前取值仅支持5、30、60、3600(1小时)、43200(12小时)、86400(24小时),单位秒(s),默认60

--Type

String

否

解析记录类型,目前支持如下: A:IPV4记录,支持将域名映射到IPv4地址使用 AAAA:IPV6记录,支持将域名映射到IPv6地址使用 CNAME:别名记录,支持将域名指向另外一个域名 MX:电邮交互记录,支持将域名指向邮件服务器地址 TXT:文本记录,是任意可读的文本DNS记录 SRV:服务器资源记录,用来标识某台服务器使用了某个服务,常见于微软系统的目录管理 NS:名称服务器记录,支持将子域名委托给其他DNS服务商解析 CAA:CAA资源记录,可以限定域名颁发证书和CA(证书颁发机构)之间的联系 URL:将域名指向另外一个已经存在的站点 SVCB:服务绑定记录,主要用于服务发现,以DNS记录的方式披露服务支持的协议和服务参数信息 HTTPS:针对HTTPS服务的特定记录类型,使用HTTPS记录,可约定安全的HTTPS建连协议,以及最优的服务站点地址

--UserClientIp

String

否

用户端IP

--Value

String

否

记录值。根据不同解析记录类型,填写相应的记录值

--Weight

Integer

否

权重值(1-100 内的整数,包括 1 和 100,默认为1),支持对每个地址设置不同的权重值,实现解析查询按照权重比例返回地址

--ZoneId

String

是

Zone ID

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns AddRecursionRecord --region cn-hangzhou --ZoneId 173671468000011

AddRecursionZone

命令描述

新增递归解析内置权威域名zone

语法

aliyun alidns AddRecursionZone
    [--ClientToken <string>]
    [--ProxyPattern <string>]
    [--ZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ProxyPattern

String

否

是否开启子域名递归代理。取值:
zone: 关闭(当解析本域名下不存在的子域名时,直接返回NXDOMAIN,表示子域名不存在)
record: 开启(当解析本域名下不存在的子域名时,会依次查询“转发”和“递归”模块,并以最终查询到的解析结果来应答解析请求)

--ZoneName

String

否

域名(Zone)名称

示例

aliyun alidns AddRecursionZone --region cn-hangzhou --ZoneName 'example.com' --ProxyPattern record --ClientToken '1ae05db4-10e7-11ef-b126-00163e240022'

AddRspDomainServerHoldStatusForGateway

命令描述

用于添加特定域名的serverHold状态信息

语法

aliyun alidns AddRspDomainServerHoldStatusForGateway
    --ClientToken <string>
    --DomainName <string>
    --StatusMsg <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

是

幂等参数

--DomainName

String

是

域名名称

--StatusMsg

String

是

状态描述信息

示例

aliyun alidns AddRspDomainServerHoldStatusForGateway --region cn-hangzhou --StatusMsg '实名认证通过,解除serverHold状态' --DomainName 'dns-example.top' --ClientToken token123

AddRspDomainServerHoldStatusForGatewayOte

命令描述

用于添加特定域名的serverHold状态信息

语法

aliyun alidns AddRspDomainServerHoldStatusForGatewayOte
    --ClientToken <string>
    --DomainName <string>
    --StatusMsg <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

是

幂等参数

--DomainName

String

是

域名名称

--StatusMsg

String

是

状态描述信息

示例

aliyun alidns AddRspDomainServerHoldStatusForGatewayOte --region cn-hangzhou --StatusMsg '实名认证通过,解除serverHold状态' --DomainName 'dns-example.top' --ClientToken qwoefasdf

BindInstanceDomains

命令描述

绑定付费版DNS域名到实例ID

语法

aliyun alidns BindInstanceDomains
    --DomainNames <string>
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainNames

String

是

域名列表。
英文 " , ” 号隔开多个域名,最多100个域名

--InstanceId

String

是

权威域名实例ID(域名绑定的产品实例ID)。可通过调用ListCloudGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-listcloudgtminstances?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:zh


示例

aliyun alidns BindInstanceDomains --region cn-hangzhou --InstanceId s00000000 --DomainNames 'example.com,example.net'

ChangeDomainGroup

命令描述

根据传入参数将域名从原分组更换到新分组

语法

aliyun alidns ChangeDomainGroup
    --DomainName <string>
    [--GroupId <string>]
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--GroupId

String

否

目标域名分组ID。
如不传GroupId,则指将域名放到默认分组下。
如GroupId为空字符"",则指将域名放到默认分组下。
如GroupId为defaultGroup,则指将域名放到默认分组下。
如GroupId不符合上述条件,传入的GroupId验证结果为存在,则更新目标域名的GroupId,不存在则不更新



--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


示例

aliyun alidns ChangeDomainGroup --region cn-hangzhou --DomainName 'example.com'

ChangeDomainOfDnsProduct

命令描述

更换云解析产品绑定的域名

语法

aliyun alidns ChangeDomainOfDnsProduct
    [--Force <bool>]
    --InstanceId <string>
    [--Lang <string>]
    [--NewDomain <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--Force

Boolean

否

是否强制绑定。
取值:
false:否
true:是
默认值为false



--InstanceId

String

是

云解析产品ID。
可通过调用 ListCloudGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-listcloudgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_14_34.14ce3409EfbfOE) 获取。

--Lang

String

否

请求和接收消息的语言类型。
取值:
zh:中文
en:英文
默认值为zh



--NewDomain

String

否

目标绑定域名,如不填写,则为解绑

--UserClientIp

String

否

用户端IP

示例

aliyun alidns ChangeDomainOfDnsProduct --region cn-hangzhou --InstanceId 'i-7XX'

CopyGtmConfig

命令描述

复制GTM配置

语法

aliyun alidns CopyGtmConfig
    --CopyType <string>
    [--Lang <string>]
    --SourceId <string>
    --TargetId <string>
    [options]

参数

参数

类型

必填

说明

--CopyType

String

是

复制类型,目前仅支持INSTANCE

--Lang

String

否

语言

--SourceId

String

是

源对象Id,目前仅支持实例id

--TargetId

String

是

目标对象Id,目前仅支持实例id

示例

aliyun alidns CopyGtmConfig --region cn-hangzhou --SourceId 'gtm-cn-0pp1j84v60d' --CopyType INSTANCE --TargetId 'gtm-cn-v0h1gaujg06'

CreateAtiAgentRegisterInfo

命令描述

注册Agent

语法

aliyun alidns CreateAtiAgentRegisterInfo
    [--AgentDescription <string>]
    --AgentDisplayName <string>
    --AgentHost <string>
    [--AgentSubHost <string>]
    --AgentVersion <string>
    [--ClientToken <string>]
    [--DomainMode <string>]
    --Endpoints <array>
    --RegistrantId <string>
    [options]

参数

参数

类型

必填

说明

--AgentDescription

String

否

Agent能力描述

--AgentDisplayName

String

是

Agent显示名称

--AgentHost

String

是

Agent对外提供服务Endpoint域名名称

--AgentSubHost

String

否

Agent 端点子域名。仅共享域名模式需要,用于在共享的父域名下唯一标识 Agent

--AgentVersion

String

是

Agent版本

--ClientToken

String

否

提供幂等能力,3分钟内,相同的值只会生效一次

--DomainMode

String

否

Agent 域名模式,用于确定访问主机名与身份主机名的关系。独立域名模式下两者相同;共享域名模式下需使用额外的子域名作为身份主机名

--Endpoints

List

是

配置Agent接入点信息

--RegistrantId

String

是

实名认证注册者的id,需要调用实名认证API接口获取或从ATS控制台获取

示例

aliyun alidns CreateAtiAgentRegisterInfo --region cn-hangzhou --Endpoints '[{"AgentUrl":"https://www.example.com/mcp","Transports":["STREAMABLE-HTTP"],"Protocol":"A2A","MetadataUrl":"//_https://my-agent.example.com/.well-known/agent.json_name_:_智能客服助手_,_version_:_1.2.0_,_protocol_:_MCP_,_description_:_提供产品咨询、订单查询、售后服务的智能客服Agent_,_capabilities_:_tools_:_name_:_order_query_,_description_:_查询订单状态_,_name_:_product_search_,_description_:_搜索产品信息_,_name_:_refund_request_,_description_:_发起退款申请_,_resources_:_uri_:_faq://knowledge-base_,_description_:_FAQ知识库_,_endpoint_:_url_:_https://my-agent.example.com/mcp_,_transport_:_STREAMABLE-HTTP_,_SSE_,_policy_:_authentication_:_mTLS_,_rateLimit_:_100/min"}]' --AgentHost 'example.com' --AgentVersion '1.0.1' --AgentDisplayName '测试Agent' --RegistrantId 2072277378616354816

CreateAtiAgentRegisterInfoAcmeChallengeRecord

命令描述

注册Agent - 步骤二:生成域名归属验证解析记录

语法

aliyun alidns CreateAtiAgentRegisterInfoAcmeChallengeRecord
    --AgentRegisterInfoId <string>
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AgentRegisterInfoId

String

是

AgentRegisterInfoId Agent注册ID。由阿里云 ATS 平台自动生成,在阿里云 ATS 平台具有全局唯一性。在 Agent 注册过程中自动生成,通过API注册、查询流程中,该 ID 必须全程携带,需调用接口 ListAtiAgentRegisterInfos 查询目标Agent后从应答内容获取AgentRegisterInfoId

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

示例

aliyun alidns CreateAtiAgentRegisterInfoAcmeChallengeRecord --region cn-hangzhou --AgentRegisterInfoId 2074031103110331392

CreateAtiRegistrant

命令描述

提交实名注册人

语法

aliyun alidns CreateAtiRegistrant
    --Cc <string>
    --City <string>
    [--ClientToken <string>]
    --DocumentCode <string>
    --DocumentImage <string>
    --DocumentType <string>
    --Email <string>
    --Name <string>
    --Phone <string>
    --State <string>
    [--Street <string>]
    [options]

参数

参数

类型

必填

说明

--Cc

String

是

注册者所属国家或地区,2位的国家地区代码(参考GB/T 2659.1-2022)

--City

String

是

注册者所在市。长度不超过255字符。所属国家是中国的,需符合GB/T 2260-2007要求

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

--DocumentCode

String

是

注册者证件号码。长度不超过50字符

--DocumentImage

String

是

注册者证件图片(base64)。原文件大小为50KB-3MB

--DocumentType

String

是

注册者证件类型。
| 字段 | 说明 |
| ---- | ---------------- |
| SFZ | 身份证 |
| HZ | 护照 |
| ORG | 组织机构代码证书 |
| YYZZ| 工商营业执照 |
| BDDM | 部队代号 |
| CHNSHXYD| 中华人民共和国社会信用代码证书 |
| GAJMTX | 港澳居民来往内地通行证 |
| GAJZZ| 港澳居民居住证 |
| GATLYCZD| 港澳台地区旅游部门常驻代表机构批准登记证 |
| GAXWZNDJ| 港澳新闻机构常驻内地记者站登记证 |
| GZJGZY| 公证机构执业证 |
| JDDWFW | 军队单位对外有偿服务许可证 |
| JGZ| 军官证 |
| JJHFR| 基金会法人登记证书 |
| LSZY| 律师事务所执业许可证 |
| MBFQY| 民办非企业单位登记证书 |
| MBXXBX| 民办学校办学许可证 |
| NCJTJJZZ| 农村集体经济组织登记证 |
| QTTYDM | 其他-统一社会信用代码 |
| SFJD| 司法鉴定许可证 |
| SHTTFR | 社会团体法人登记证书 |
| SHFWJG| 社会服务机构登记证书 |
| SYDWFR | 事业单位法人证书 |
| TYDM | 统一社会信用代码证书 |
| YLJGZY| 医疗机构执业许可证 |
| ZCWYHDJZ| 仲裁委员会登记证 |
| ZJCS| 宗教活动场所登记证 |
| BJWSXX| 北京市外国驻华使馆人员子女学校办学许可证 |
| JWJG| 境外机构证件 |
| JWFZFDBJ| 境外非政府组织代表机构登记证书 |
| WGCZJG | 外国企业常驻代表机构登记证 |
| WGZHWH| 外国在华文化中心登记证 |
| WGZHXWJG| 外国驻华新闻机构证 |
| WJLSFZ| 外国人永久居留身份证 |
| WLCZJG| 外国政府旅游部门常驻代表机构批准登记证 |
| QT | 其他 |





































--Email

String

是

电子邮箱。长度不超过300字符

--Name

String

是

注册者名称。长度不超过255字符

--Phone

String

是

注册者联系电话。长度不超过128字符。所属国家是中国的,非手机号码区号需与所在市匹配

--State

String

是

注册者所在省。长度不超过255字符。所属国家是中国的,需符合GB/T 2260-2007要求

--Street

String

否

注册者地址。长度不超过255字符

示例

aliyun alidns CreateAtiRegistrant --region cn-hangzhou --Cc '中国' --Email 'example@example.com' --State '浙江省' --Phone 13112345678 --DocumentImage '证件图片' --DocumentType SFZ --City '杭州市' --DocumentCode 110123456789122341 --Name '张xx'

CreateCloudGtmAddress

命令描述

根据传入参数创建地址

语法

aliyun alidns CreateCloudGtmAddress
    [--AcceptLanguage <string>]
    --Address <string>
    [--AttributeInfo <string>]
    --AvailableMode <string>
    [--ClientToken <string>]
    --EnableStatus <string>
    --HealthJudgement <string>
    [--HealthTasks <array>]
    [--ManualAvailableStatus <string>]
    --Name <string>
    [--Remark <string>]
    --Type <string>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认):英文

--Address

String

是

IP地址或者域名

--AttributeInfo

String

否

地址归属信息

--AvailableMode

String

是

地址探测异常切换方式:
auto:自动模式(根据健康检查探测结果确定,探测异常停止解析,探测正常恢复解析)。
manual:手动模式(异常状态下停止解析,健康检查正常也不会恢复解析;正常状态下恢复解析,健康检查异常也只是告警,但不会停止解析)

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

是

表示该地址当前启用状态:
enable:启用状态
disable:禁用状态

--HealthJudgement

String

是

地址健康状态判定条件(HealthTasks 不为空时必填):
any_ok:所有探测模板至少一个探测正常。
p30_ok:所有探测模板至少30%探测正常。
p50_ok:所有探测模板至少50%探测正常。
p70_ok:所有探测模板至少70%探测正常。
all_ok:所有探测模板全部探测正常




--HealthTasks

List

否

地址关联的健康探测任务列表

--ManualAvailableStatus

String

否

当地址探测异常切换模式为manual时,地址设置的可用状态:
available:正常,此状态下该地址正常解析,健康检查异常也只是告警,但不会停止解析。
unavailable:异常,此状态下停止解析,健康检查正常也不会恢复解析

--Name

String

是

地址名称

--Remark

String

否

备注

--Type

String

是

地址类型:
IPv4
IPv6
domain


示例

aliyun alidns CreateCloudGtmAddress --region cn-hangzhou --Type IPv4 --HealthJudgement p50_ok --Address '223.5.XX.XX' --EnableStatus enable --AvailableMode auto --Name 'Address-1'

CreateCloudGtmAddressPool

命令描述

根据传入参数创建地址池

语法

aliyun alidns CreateCloudGtmAddressPool
    [--AcceptLanguage <string>]
    [--AddressPoolName <string>]
    [--AddressPoolType <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [--HealthJudgement <string>]
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressPoolName

String

否

地址池名称,方便用户区分地址池的用途

--AddressPoolType

String

否

地址池类型:
IPv4:表示要解析的服务地址是IPv4地址。
IPv6:表示要解析的服务地址是IPv6地址。
domain:表示要解析的服务地址是域名


--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

地址池的启用状态:
enable:启用,当前地址池在健康检查正常的情况下可参与解析。
disable: 禁用,当前地址池不管健康检查是否正常,均不可参与解析

--HealthJudgement

String

否

地址池健康状态判定条件:
any_ok:地址池内至少1个地址是可用地址。
p30_ok:地址池内至少30%地址是可用地址。
p50_ok:地址池内至少50%地址是可用地址。
p70_ok:地址池内至少70%地址是可用地址。
all_ok:地址池内地址全部可用




--Remark

String

否

地址池的备注说明,方便用户区分地址池的使用场景

示例

aliyun alidns CreateCloudGtmAddressPool --region cn-hangzhou --AddressPoolName 'Address_pool-1' --HealthJudgement any_ok --AddressPoolType IPv4 --EnableStatus enable --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000' --Remark app

CreateCloudGtmInstanceConfig

命令描述

创建gtm实例配置

语法

aliyun alidns CreateCloudGtmInstanceConfig
    [--AcceptLanguage <string>]
    [--ChargeType <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [--InstanceId <string>]
    [--Remark <string>]
    [--ScheduleHostname <string>]
    [--ScheduleRrType <string>]
    [--ScheduleZoneMode <string>]
    [--ScheduleZoneName <string>]
    [--Ttl <int>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US:英文

--ChargeType

String

否

实例配置的付费类型:
预付费:prepay (传入空值默认是prepay)
后付费:postpay

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

域名实例的启用状态:
enable:启用状态,GTM实例智能调度策略生效;
disable:禁用状态,GTM实例智能调度策略不可用;

--InstanceId

String

否

全局流量管理3.0实例ID,唯一标识产品实例

--Remark

String

否

备注

--ScheduleHostname

String

否

GTM接入域名的主机记录

--ScheduleRrType

String

否

接入域名的解析记录类型:
A:IPv4地址
AAAA:IPv6地址
CNAME:域名


--ScheduleZoneMode

String

否

接入域名配置模式:
sys_assign:系统分配(此模式已不支持)
custom:自定义,用户需选择实例所在账号下的域名进行关联,并输入主机记录以生成接入域名

--ScheduleZoneName

String

否

zone名称,即GTM接入域名的父Zone。一般为GTM实例所在账号下,在云解析DNS控制台的托管域名,支持主域和子域

--Ttl

Integer

否

全局TTL,单位是秒。接入域名解析到地址池中地址的TTL值,影响解析记录在运营商LocalDNS中的缓存时间,支持自定义TTL值

示例

aliyun alidns CreateCloudGtmInstanceConfig --region cn-hangzhou --ScheduleRrType A --ScheduleZoneName 'example.com' --InstanceId 'gtm-cn-jmp3qnw0003' --EnableStatus enable --ChargeType postpay --ScheduleHostname www --AcceptLanguage 'en-US' --ScheduleZoneMode custom --ClientToken '1ae05db4-10e7-11ef-b126-00163e240022' --Ttl 30 --Remark test

CreateCloudGtmMonitorTemplate

命令描述

根据传入参数创建健康探测模板

语法

aliyun alidns CreateCloudGtmMonitorTemplate
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    --EvaluationCount <int>
    [--ExtendInfo <string>]
    --FailureRate <int>
    --Interval <int>
    --IpVersion <string>
    --IspCityNodes <array>
    --Name <string>
    --Protocol <string>
    --Timeout <int>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EvaluationCount

Integer

是

重试次数,连续多次监控出现异常,系统才将应用服务判断为异常,以防止因为一些网络瞬间抖动等其他原因影响监控准确率。重试次数可选值为:
1
2
3


--ExtendInfo

String

否

Json 字符串扩展信息,各协议检查所需参数:
http(s):
host:执行HTTP(S)监控时,指定HTTP(S)请求头部信息中携带的Host字段,用于标识需要访问的具体HTTP网站,默认为主域名,如果目标网站的host有特殊要求,请自行修改;
path:HTTP路径,用户HTTP(S)健康检查的URL路径配置,系统默认填写“/”;
code:当执行HTTP(S)监控时,根据Web服务器的返回码判断Web服务器是否正常工作,大于返回码报警阈值时,系统认为应用服务出现异常:
400:Bad Request,即如果HTTP(S)请求携带了错误的请求参数,Web服务器将返回大于400的返回码,如果校验内容设置为“异常码大于400”,请务必在URL路径中填写精确的URL访问路径参数;
500:Server Error,即如果Web服务器出现了某些异常,将返回大于500的异常码,系统默认使用大于500的异常码作为报警阈值;
sni:是否开启sni,仅在HTTPS协议时使用。SNI(Server Name Indication)是TLS协议的一个扩展,它允许客户端在发起TLS握手时指定想要连接的主机名。由于TLS握手发生在HTTP请求的任何数据被发送之前,SNI允许服务器在发送证书之前知道客户端试图访问的服务,这使得服务器可以选择正确的证书来呈现给客户端。
- true-开启
false-未开启
followRedirect:是否跟随3XX重定向
true:监控点获取的状态码为3XX (301,302,303, 307,308) 时,跟随跳转;
false:不跳转;
ping:
packetNum:每次Ping监控,同时发出多少个ICMP数据包,可选20、50、100
packetLossRate:异常时丢包率,每次ping监控,对发出的ICMP数据包,计算丢包率(%)。丢包率=(丢失数据包/发送的总ICMP数据包数目)* 100%,达到丢包率阈值时,异常报警。丢包率可选值为:10、30、40、80、90、100














--FailureRate

Integer

是

所选节点探测失败比例(%),即健康检查异常的探测点占探测点总数的百分比,当失败比例超过设置的阈值时,将服务地址判断为异常。可设置的失败比例阈值为:
20
50
80
100



--Interval

Integer

是

每次检查的时间间隔(秒),默认每间隔1分钟探测一次,健康检查间隔最小支持15秒(面向旗舰版实例开放)

--IpVersion

String

是

探测节点IP地址的类型:
IPv4:当探测的目标地址类型为IPv4地址时适用。
IPv6:当探测的目标地址类型为IPv6地址时适用

--IspCityNodes

List

是

探测节点列表,具体信息可通过调用 https://help.aliyun.com/document_detail/2797349.html 获取

--Name

String

是

健康检查探测模板的名称。为了方便区分和记忆,建议名称可以区分健康检查协议

--Protocol

String

是

对目标IP地址发起探测的协议类型:
ping
tcp
http
https



--Timeout

Integer

是

探测超时时间(毫秒),大于超时时间未返回的数据包即判断为健康检查超时:
2000
3000
5000
10000



示例

aliyun alidns CreateCloudGtmMonitorTemplate --region cn-hangzhou --IpVersion IPv4 --Timeout 5000 --IspCityNodes '[{"CityCode":"503","IspCode":"465"}]' --EvaluationCount 2 --Protocol ping --FailureRate 50 --Name 'Ping-IPv4' --Interval 60

CreatePdnsAppKey

命令描述

创建公共DNS密钥 AccessKey

语法

aliyun alidns CreatePdnsAppKey
    [--Lang <string>]
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

指定返回信息使用的语言

--Remark

String

否

创建 AppKey 时填写的备注

示例

aliyun alidns CreatePdnsAppKey --region cn-hangzhou --Lang 'example-string' --Remark 'example-string'

CreatePdnsUdpIpSegment

命令描述

创建公共DNS Udp Ip地址段

语法

aliyun alidns CreatePdnsUdpIpSegment
    [--Ip <string>]
    [--IpToken <string>]
    [--Lang <string>]
    [--Name <string>]
    [options]

参数

参数

类型

必填

说明

--Ip

String

否

公共 DNS 企业递归网关的 IP 地址

--IpToken

String

否

客户端 IP 校验令牌。服务使用该令牌查找已缓存的客户端 IP;未命中时使用请求中的客户端 IP

--Lang

String

否

指定返回信息使用的语言

--Name

String

否

IP 地址段的名称

示例

aliyun alidns CreatePdnsUdpIpSegment --region cn-hangzhou --Ip 'example-string' --Lang 'example-string' --IpToken 'example-string' --Name 'example-string'

DeleteAtiAgentRegisterInfo

命令描述

删除Agent注册信息

语法

aliyun alidns DeleteAtiAgentRegisterInfo
    --AgentRegisterInfoId <string>
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AgentRegisterInfoId

String

是

AgentRegisterInfoId 由阿里云 ATS 平台自动生成,具有全局唯一性。需要调用查询接口获取,再基于此ID删除该Agent

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

示例

aliyun alidns DeleteAtiAgentRegisterInfo --region cn-hangzhou --AgentRegisterInfoId 2074031103110331392

DeleteAtiRegistrant

命令描述

撤销实名注册人

语法

aliyun alidns DeleteAtiRegistrant
    [--ClientToken <string>]
    [--RegistrantId <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。
从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样

--RegistrantId

String

否

实名认证注册人 ID

示例

aliyun alidns DeleteAtiRegistrant --region cn-hangzhou --RegistrantId 2072277378616354816 --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....'

DeleteCloudGtmAddress

命令描述

根据传入参数删除地址

语法

aliyun alidns DeleteCloudGtmAddress
    [--AcceptLanguage <string>]
    --AddressId <string>
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressId

String

是

地址ID,地址的唯一识别码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns DeleteCloudGtmAddress --region cn-hangzhou --AddressId 'addr-895182181143680000'

DeleteCloudGtmAddressPool

命令描述

根据传入参数删除地址池

语法

aliyun alidns DeleteCloudGtmAddressPool
    [--AcceptLanguage <string>]
    [--AddressPoolId <string>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressPoolId

String

否

地址池ID,地址池的唯一识别码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns DeleteCloudGtmAddressPool --region cn-hangzhou --AddressPoolId 'pool-895280232254420000' --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

DeleteCloudGtmInstanceConfig

命令描述

根据传入参数删除GTM 3.0实例配置的接入域名

语法

aliyun alidns DeleteCloudGtmInstanceConfig
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置ID,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置。
调用https://help.aliyun.com/document_detail/2797349.html 接口可查询域名实例对应的 ConfigId 值

--InstanceId

String

否

删除指定GTM 3.0实例配置的接入域名,仅支持删除单个

示例

aliyun alidns DeleteCloudGtmInstanceConfig --region cn-hangzhou --InstanceId 'gtm-cn-jmp3qnw0000' --AcceptLanguage 'en-US' --ConfigId 'config-000000' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

DeleteCloudGtmMonitorTemplate

命令描述

根据传入参数删除健康探测模板

语法

aliyun alidns DeleteCloudGtmMonitorTemplate
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    --TemplateId <string>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--TemplateId

String

是

健康探测模板ID,唯一标识健康探测模板

示例

aliyun alidns DeleteCloudGtmMonitorTemplate --region cn-hangzhou --TemplateId 'mtp-895180524251000000'

DeleteCustomLines

命令描述

通过自定义线路唯一ID批量删除自定义线路

语法

aliyun alidns DeleteCustomLines
    [--Lang <string>]
    --LineIds <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--LineIds

String

是

自定义线路唯一ID列表,用 “,” 号隔开唯一ID。自定义线路唯一ID可通过调用DescribeCustomLines (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describecustomlines?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

示例

aliyun alidns DeleteCustomLines --region cn-hangzhou --LineIds '10000000,2000000000'

DeleteDnsCacheDomain

命令描述

删除指定的DNS权威代理域名

语法

aliyun alidns DeleteDnsCacheDomain
    --DomainName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh:中文
en:英文
默认为zh


示例

aliyun alidns DeleteDnsCacheDomain --region cn-hangzhou --DomainName 'example.com'

DeleteDnsGtmAccessStrategy

命令描述

通过策略ID删除访问策略

语法

aliyun alidns DeleteDnsGtmAccessStrategy
    [--Lang <string>]
    --StrategyId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--StrategyId

String

是

策略id。可通过调用https://help.aliyun.com/document_detail/2357191.html获取

示例

aliyun alidns DeleteDnsGtmAccessStrategy --region cn-hangzhou --StrategyId testSt000000

DeleteDnsGtmAddressPool

命令描述

通过地址池ID删除地址池

语法

aliyun alidns DeleteDnsGtmAddressPool
    --AddrPoolId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--AddrPoolId

String

是

地址池id。可通过调用DescribeDnsGtmInstanceAddressPools (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstanceaddresspools?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_9_7.1cee430dbd1I3y)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DeleteDnsGtmAddressPool --region cn-hangzhou --AddrPoolId testp000000

DeleteDomain

命令描述

根据传入参数删除域名

语法

aliyun alidns DeleteDomain
    --DomainName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

云解析中已存在的域名。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


示例

aliyun alidns DeleteDomain --region cn-hangzhou --DomainName 'example.com'

DeleteDomainGroup

命令描述

删除域名分组,分组下的域名会被移动到默认分组

语法

aliyun alidns DeleteDomainGroup
    --GroupId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--GroupId

String

是

域名分组ID。可通过调取DescribeDomainGroups (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomaingroups?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


示例

aliyun alidns DeleteDomainGroup --region cn-hangzhou --GroupId d367113100944e488352f99e3c7d0000

DeleteDomainRecord

命令描述

根据传入参数删除解析记录

语法

aliyun alidns DeleteDomainRecord
    [--Lang <string>]
    --RecordId <string>
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--RecordId

String

是

解析记录的ID。可通过调取DescribeDomainRecords (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomainrecords?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取。

--UserClientIp

String

否

用户端IP

示例

aliyun alidns DeleteDomainRecord --region cn-hangzhou --RecordId 99000000

DeleteGtmAccessStrategy

命令描述

根据传入参数删除访问策略

语法

aliyun alidns DeleteGtmAccessStrategy
    [--Lang <string>]
    [--StrategyId <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

语言

--StrategyId

String

否

策略ID

示例

aliyun alidns DeleteGtmAccessStrategy --region cn-hangzhou --StrategyId hrskc --Lang en

DeleteGtmAddressPool

命令描述

删除地址池

语法

aliyun alidns DeleteGtmAddressPool
    --AddrPoolId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--AddrPoolId

String

是

地址池ID

--Lang

String

否

语言

示例

aliyun alidns DeleteGtmAddressPool --region cn-hangzhou --AddrPoolId 1234

DeleteGtmRecoveryPlan

命令描述

删除容灾预案

语法

aliyun alidns DeleteGtmRecoveryPlan
    [--Lang <string>]
    --RecoveryPlanId <int>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--RecoveryPlanId

Integer

是

容灾预案ID。可通过调用DescribeGtmRecoveryPlans (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describegtmrecoveryplans?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_13_5.6dd83618vW4yD7)获取

示例

aliyun alidns DeleteGtmRecoveryPlan --region cn-hangzhou --RecoveryPlanId 1000000000

DeleteRecursionRecord

命令描述

删除递归解析内置权威解析记录

语法

aliyun alidns DeleteRecursionRecord
    [--ClientToken <string>]
    --RecordId <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--RecordId

String

是

解析记录id,解析记录的唯一标识

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns DeleteRecursionRecord --region cn-hangzhou --RecordId 17432432424

DeleteRecursionZone

命令描述

删除递归解析内置权威域名zone

语法

aliyun alidns DeleteRecursionZone
    [--ClientToken <string>]
    [--ZoneId <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。
从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符

--ZoneId

String

否

Zone ID。Zone ID,Zone的唯一识别码

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns DeleteRecursionZone --region cn-hangzhou --ZoneId 169783221000012 --ClientToken 21079fa016944979537637959d09bc

DeleteSubDomainRecords

命令描述

根据传入参数删除主机记录对应的解析记录

语法

aliyun alidns DeleteSubDomainRecords
    --DomainName <string>
    [--Lang <string>]
    --RR <string>
    [--Type <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--RR

String

是

主机记录。
如果要解析@.exmaple.com,主机记录要填写”@”,而不是空

--Type

String

否

解析记录类型。如果不填写,则返回子域名对应的全部解析记录类型。
解析类型包括(不区分大小写):A、MX、CNAME、TXT、REDIRECT_URL、FORWORD_URL、NS、AAAA、SRV

--UserClientIp

String

否

用户端IP

示例

aliyun alidns DeleteSubDomainRecords --region cn-hangzhou --RR www --DomainName 'example.com'

DescribeAtiAgentRegisterInfo

命令描述

查询Agent注册信息详情

语法

aliyun alidns DescribeAtiAgentRegisterInfo
    --AgentRegisterInfoId <string>
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AgentRegisterInfoId

String

是

AgentRegisterInfoId Agent注册ID。由阿里云 ATS 平台自动生成,在阿里云 ATS 平台具有全局唯一性。在 Agent 注册过程中自动生成,通过API注册的多步流程中,该 ID 必须全程携带,以确保各步骤关联至同一 Agent,完成完整的注册闭环

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。说明 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

示例

aliyun alidns DescribeAtiAgentRegisterInfo --region cn-hangzhou --AgentRegisterInfoId 2074753647748672512

DescribeAtiAgentRegisterInfoMarket

命令描述

为sdk查询agent信息功能

语法

aliyun alidns DescribeAtiAgentRegisterInfoMarket
    [--AgentHost <string>]
    [--AgentVersion <string>]
    [--ClientToken <string>]
    [--MaxResults <int>]
    [--NextToken <string>]
    [--TrustLevel <string>]
    [options]

参数

参数

类型

必填

说明

--AgentHost

String

否

Agent 对外提供服务 Endpoint 域名名称

--AgentVersion

String

否

Agent版本

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--MaxResults

Integer

否

本次请求所返回的最大记录条数

--NextToken

String

否

下一个查询开始Token

--TrustLevel

String

否

Agent 信任认证级别,可选 BASIC(基础认证)、ENHANCED(增强认证)或 HIGHEST(最高认证)

示例

aliyun alidns DescribeAtiAgentRegisterInfoMarket --region cn-hangzhou --NextToken 4698691 --AgentHost 'example.com' --AgentVersion '5.0.1' --TrustLevel 'example-string' --MaxResults 100 --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....'

DescribeAtiAlertSettings

命令描述

查询告警设置

语法

aliyun alidns DescribeAtiAlertSettings
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

示例

aliyun alidns DescribeAtiAlertSettings --region cn-hangzhou --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....'

DescribeAtiCertificate

命令描述

查询证书详情

语法

aliyun alidns DescribeAtiCertificate
    [--AgentCertificateId <string>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AgentCertificateId

String

否

查询的证书ID,需调用 ListAtiCertificates 接口查询目标证书信息,从应答内容中获取

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。
从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样

示例

aliyun alidns DescribeAtiCertificate --region cn-hangzhou --AgentCertificateId 2074041094504542210 --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....'

DescribeAtiRegistrant

命令描述

获取实名注册人详情

语法

aliyun alidns DescribeAtiRegistrant
    [--ClientToken <string>]
    --RegistrantId <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

--RegistrantId

String

是

实名认证注册人 ID

示例

aliyun alidns DescribeAtiRegistrant --region cn-hangzhou --RegistrantId 2072277378616354816

DescribeBatchResultCount

命令描述

根据任务ID查询其批量操作任务的执行结果,如果任务ID为空,返回最后一次批量操作任务的执行结果

语法

aliyun alidns DescribeBatchResultCount
    [--BatchType <string>]
    [--Lang <string>]
    [--TaskId <int>]
    [options]

参数

参数

类型

必填

说明

--BatchType

String

否

批量操作类型,取值:
DOMAIN_ADD:批量添加域名
DOMAIN_DEL:批量删除域名
RR_ADD:批量添加解析
RR_DEL:批量删除解析
为空时不做筛选




--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--TaskId

Integer

否

任务ID。
如果TaskId不为空,返回TaskId对应任务的执行结果;如果TaskId为空,返回最后一次任务的执行结果

示例

aliyun alidns DescribeBatchResultCount --region cn-hangzhou --TaskId 10000 --Lang en --BatchType DOMAIN_ADD

DescribeBatchResultDetail

命令描述

查询批量处理结果的详细信息

语法

aliyun alidns DescribeBatchResultDetail
    [--BatchType <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--Status <string>]
    [--TaskId <int>]
    [options]

参数

参数

类型

必填

说明

--BatchType

String

否

批量操作类型。取值:
DOMAIN_ADD:批量添加域名
DOMAIN_DEL:批量删除域名
RR_ADD:批量添加解析
RR_DEL:批量删除解析
为空时不做筛选




--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--PageNumber

Integer

否

当前页码,默认值为1

--PageSize

Integer

否

分页查询时每页设置的大小

--Status

String

否

获取指定状态结果详情,不传入则获取所有

--TaskId

Integer

否

任务ID

示例

aliyun alidns DescribeBatchResultDetail --region cn-hangzhou --Status SUCCESS --TaskId 80000000 --PageSize 20 --PageNumber 1 --Lang en --BatchType DOMAIN_ADD

DescribeCloudGtmAddress

命令描述

根据传入参数获取地址配置信息

语法

aliyun alidns DescribeCloudGtmAddress
    [--AcceptLanguage <string>]
    --AddressId <string>
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressId

String

是

地址ID,地址唯一标识码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns DescribeCloudGtmAddress --region cn-hangzhou --AddressId 'addr-895182181143680000'

DescribeCloudGtmAddressPool

命令描述

根据传入参数获取指定地址池配置信息

语法

aliyun alidns DescribeCloudGtmAddressPool
    [--AcceptLanguage <string>]
    [--AddressPoolId <string>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressPoolId

String

否

地址池ID,地址池的唯一标识码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns DescribeCloudGtmAddressPool --region cn-hangzhou --AddressPoolId 'pool-895646745337550000' --AcceptLanguage 'zh-CN' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

DescribeCloudGtmAddressPoolReference

命令描述

根据传入参数获取地址池被实例引用的信息

语法

aliyun alidns DescribeCloudGtmAddressPoolReference
    [--AcceptLanguage <string>]
    [--AddressPoolId <string>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressPoolId

String

否

地址池ID,地址池的唯一识别码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns DescribeCloudGtmAddressPoolReference --region cn-hangzhou --AddressPoolId 'pool-895280232254420000' --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

DescribeCloudGtmAddressReference

命令描述

根据传入参数获取地址被引用的地址池、GTM3.0实例信息

语法

aliyun alidns DescribeCloudGtmAddressReference
    [--AcceptLanguage <string>]
    [--AddressId <string>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回信息的语言类型:
zh-CN:中文
en-US(默认值):英文

--AddressId

String

否

地址ID,唯一标识地址

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns DescribeCloudGtmAddressReference --region cn-hangzhou --AcceptLanguage 'zh-CN' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000' --AddressId 'addr-895182181143680000'

DescribeCloudGtmGlobalAlert

命令描述

获取全局告警配置

语法

aliyun alidns DescribeCloudGtmGlobalAlert
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回信息的语言类型:
zh-CN:中文
en-US:英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns DescribeCloudGtmGlobalAlert --region cn-hangzhou --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240022'

DescribeCloudGtmInstanceConfigAlert

命令描述

获取实例配置的告警配置

语法

aliyun alidns DescribeCloudGtmInstanceConfigAlert
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US:英文

--ClientToken

String

否

用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符,且该参数值中不能包含非ASCII字符

--ConfigId

String

否

域名实例配置id,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置

--InstanceId

String

否

全局流量管理3.0实例id

示例

aliyun alidns DescribeCloudGtmInstanceConfigAlert --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00' --AcceptLanguage 'en-US' --ConfigId 'Config-0000011' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240022'

DescribeCloudGtmInstanceConfigFullInfo

命令描述

获取全局流量管理实例配置的完整信息,包括接入域名、告警通知、地址池、地址详细信息等

语法

aliyun alidns DescribeCloudGtmInstanceConfigFullInfo
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回信息的语言类型:
zh-CN:中文
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置ID。相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置。
调用https://help.aliyun.com/document_detail/2797349.html接口可查询域名实例对应的ConfigId值

--InstanceId

String

否

全局流量管理3.0实例ID

示例

aliyun alidns DescribeCloudGtmInstanceConfigFullInfo --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3h0000' --AcceptLanguage 'en-US' --ConfigId 'Config-0000000' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

DescribeCloudGtmMonitorTemplate

命令描述

根据传入参数获取指定健康探测模板配置

语法

aliyun alidns DescribeCloudGtmMonitorTemplate
    [--AcceptLanguage <string>]
    --TemplateId <string>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

设置返回后可用区名称的语言,取值:
zh-CN:中文。
en-US(默认值):英文

--TemplateId

String

是

要查询的健康探测模板ID,唯一标识健康探测模板

示例

aliyun alidns DescribeCloudGtmMonitorTemplate --region cn-hangzhou --TemplateId 'mtp-895180524251000000'

DescribeCloudGtmSummary

命令描述

获取GTM实例概要信息

语法

aliyun alidns DescribeCloudGtmSummary
    [--AcceptLanguage <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US:英文

示例

aliyun alidns DescribeCloudGtmSummary --region cn-hangzhou --AcceptLanguage 'en-US'

DescribeCloudGtmSystemLines

命令描述

查询GTM支持的系统线路

语法

aliyun alidns DescribeCloudGtmSystemLines
    [options]

参数

该命令没有专属参数。CLI 通用选项见“全局选项”。

示例

aliyun alidns DescribeCloudGtmSystemLines --region cn-hangzhou

DescribeCustomLine

命令描述

通过自定义线路唯一ID查询自定义线路

语法

aliyun alidns DescribeCustomLine
    [--Lang <string>]
    [--LineId <int>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--LineId

Integer

否

自定义线路唯一ID。可通过调用DescribeCustomLines (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describecustomlines?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

示例

aliyun alidns DescribeCustomLine --region cn-hangzhou --LineId 500000 --Lang en

DescribeCustomLines

命令描述

通过域名名称查询自定义线路列表

语法

aliyun alidns DescribeCustomLines
    --DomainName <string>
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

云解析中已存在的域名。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--PageNumber

Integer

否

页码

--PageSize

Integer

否

每页个数

示例

aliyun alidns DescribeCustomLines --region cn-hangzhou --DomainName 'example.com'

DescribeDNSSLBSubDomains

命令描述

根据传入参数获取权重配置子域名列表

语法

aliyun alidns DescribeDNSSLBSubDomains
    --DomainName <string>
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--Rr <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

接收消息的语言类型。取值:
zh(默认):中文。
en:英文

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

--Rr

String

否

主机记录

--UserClientIp

String

否

用户账号IP

示例

aliyun alidns DescribeDNSSLBSubDomains --region cn-hangzhou --DomainName 'example.com'

DescribeDnsCacheDomains

命令描述

根据传入参数查询该用户的权威代理域名列表

语法

aliyun alidns DescribeDnsCacheDomains
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--Keyword

String

否

关键字,按照”%Keyword%”模式搜索,不区分大小写

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh:中文
en:英文
默认为zh


--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

示例

aliyun alidns DescribeDnsCacheDomains --region cn-hangzhou --Keyword a --PageSize 20 --PageNumber 1 --Lang zh

DescribeDnsGtmAccessStrategies

命令描述

通过实例ID获取实例访问策略列表

语法

aliyun alidns DescribeDnsGtmAccessStrategies
    --InstanceId <string>
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    --StrategyMode <string>
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例id。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--StrategyMode

String

是

访问策略类型:
GEO:基于地理位置的访问策略
LATENCY:基于访问延时的访问策略

示例

aliyun alidns DescribeDnsGtmAccessStrategies --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00' --StrategyMode GEO

DescribeDnsGtmAccessStrategy

命令描述

通过访问策略ID获取访问策略详细信息

语法

aliyun alidns DescribeDnsGtmAccessStrategy
    [--Lang <string>]
    --StrategyId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--StrategyId

String

是

访问策略id。可通过调用https://help.aliyun.com/document_detail/2357191.html获取

示例

aliyun alidns DescribeDnsGtmAccessStrategy --region cn-hangzhou --StrategyId hr0000

DescribeDnsGtmAccessStrategyAvailableConfig

命令描述

通过实例ID获取访问策略可设置的配置

语法

aliyun alidns DescribeDnsGtmAccessStrategyAvailableConfig
    --InstanceId <string>
    [--Lang <string>]
    --StrategyMode <string>
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例id。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--StrategyMode

String

是

调度模式:
GEO:基于地理位置
LATENCY:基于延时

示例

aliyun alidns DescribeDnsGtmAccessStrategyAvailableConfig --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00' --StrategyMode GEO

DescribeDnsGtmAddrAttributeInfo

命令描述

查询地址归属区域

语法

aliyun alidns DescribeDnsGtmAddrAttributeInfo
    --Addrs <string>
    [--Lang <string>]
    --Type <string>
    [options]

参数

参数

类型

必填

说明

--Addrs

String

是

地址列表

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--Type

String

是

地址类型:
IPV4:ipv4地址
IPV6: ipv6地址
DOMAIN:域名


示例

aliyun alidns DescribeDnsGtmAddrAttributeInfo --region cn-hangzhou --Addrs '1.1.XX.XX' --Type IPV4

DescribeDnsGtmAddressPoolAvailableConfig

命令描述

通过GTM实例ID获取地址池可设置配置

语法

aliyun alidns DescribeDnsGtmAddressPoolAvailableConfig
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例ID。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DescribeDnsGtmAddressPoolAvailableConfig --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeDnsGtmAvailableAlertGroup

命令描述

获取可设置的报警组

语法

aliyun alidns DescribeDnsGtmAvailableAlertGroup
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DescribeDnsGtmAvailableAlertGroup --region cn-hangzhou --Lang en

DescribeDnsGtmInstance

命令描述

通过实例ID获取实例详情

语法

aliyun alidns DescribeDnsGtmInstance
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例ID。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DescribeDnsGtmInstance --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeDnsGtmInstanceAddressPool

命令描述

通过地址池ID获取地址池详情

语法

aliyun alidns DescribeDnsGtmInstanceAddressPool
    --AddrPoolId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--AddrPoolId

String

是

地址池id。可通过调用DescribeDnsGtmInstanceAddressPools (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstanceaddresspools?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_9_7.1cee430dbd1I3y)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DescribeDnsGtmInstanceAddressPool --region cn-hangzhou --AddrPoolId test00000

DescribeDnsGtmInstanceAddressPools

命令描述

通过GTM实例ID获取地址池列表

语法

aliyun alidns DescribeDnsGtmInstanceAddressPools
    --InstanceId <string>
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例ID。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最大值:9999999

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

示例

aliyun alidns DescribeDnsGtmInstanceAddressPools --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeDnsGtmInstanceStatus

命令描述

通过实例ID获取实例当前状态

语法

aliyun alidns DescribeDnsGtmInstanceStatus
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例id。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DescribeDnsGtmInstanceStatus --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeDnsGtmInstanceSystemCname

命令描述

通过实例ID获取系统分配的CNAME域名

语法

aliyun alidns DescribeDnsGtmInstanceSystemCname
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例id。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DescribeDnsGtmInstanceSystemCname --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeDnsGtmInstances

命令描述

获取实例列表

语法

aliyun alidns DescribeDnsGtmInstances
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--ResourceGroupId <string>]
    [options]

参数

参数

类型

必填

说明

--Keyword

String

否

查询关键字,支持实例ID、实例名称模糊搜索

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en,zh,ja

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最大值:9999999

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--ResourceGroupId

String

否

资源组ID

示例

aliyun alidns DescribeDnsGtmInstances --region cn-hangzhou --PageSize 1 --Keyword test --ResourceGroupId 'rg-testgroupid' --PageNumber 1 --Lang en

DescribeDnsGtmLogs

命令描述

通过实例ID获取操作日志列表

语法

aliyun alidns DescribeDnsGtmLogs
    [--EndTimestamp <int>]
    --InstanceId <string>
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--StartTimestamp <int>]
    [options]

参数

参数

类型

必填

说明

--EndTimestamp

Integer

否

查询的结束时间(时间戳)

  • 约束:

    • 最大值:999999999999999

    • 最小值:1

--InstanceId

String

是

实例id。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Keyword

String

否

关键字,按照”%KeyWord%”模式搜索,不区分大小写

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最大值:9999999

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--StartTimestamp

Integer

否

查询的开始时间(时间戳)

  • 约束:

    • 最大值:999999999999999

    • 最小值:1

示例

aliyun alidns DescribeDnsGtmLogs --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeDnsGtmMonitorAvailableConfig

命令描述

获取 DNS 健康检查可设置的配置

语法

aliyun alidns DescribeDnsGtmMonitorAvailableConfig
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

示例

aliyun alidns DescribeDnsGtmMonitorAvailableConfig --region cn-hangzhou --Lang en

DescribeDnsGtmMonitorConfig

命令描述

获取地址池健康检查配置

语法

aliyun alidns DescribeDnsGtmMonitorConfig
    [--Lang <string>]
    --MonitorConfigId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--MonitorConfigId

String

是

健康检查配置id。可通过调用DescribeDnsGtmInstanceAddressPool (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstanceaddresspool?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_9_6.7db77000nMCPI1)获取

示例

aliyun alidns DescribeDnsGtmMonitorConfig --region cn-hangzhou --MonitorConfigId Moni0000000

DescribeDnsProductInstance

命令描述

根据实例ID获取云解析收费版本产品实例的详情信息

语法

aliyun alidns DescribeDnsProductInstance
    --InstanceId <string>
    [--Lang <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例ID。可通过调用DescribeDomainInfo (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomaininfo?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--UserClientIp

String

否

用户端IP

示例

aliyun alidns DescribeDnsProductInstance --region cn-hangzhou --InstanceId 'i-8fxxxx'

DescribeDnsProductInstances

命令描述

根据传入参数获取付费版DNS产品实例列表

语法

aliyun alidns DescribeDnsProductInstances
    [--Direction <string>]
    [--DomainType <string>]
    [--Lang <string>]
    [--OrderBy <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--UserClientIp <string>]
    [--VersionCode <string>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向。取值:
DESC:递减(为空时默认递减排序)
ASC: 递增

--DomainType

String

否

域名类型,大小写不敏感。取值:
PUBLIC:权威托管域名(默认值)
CACHE:权威代理域名

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--OrderBy

String

否

排序参数。取值:
createDate:按创建时间排序(为空时默认按创建时间排序)
expireDate:按过期时间排序

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:1000

    • 最小值:1

--UserClientIp

String

否

用户端IP

--VersionCode

String

否

云解析产品code

示例

aliyun alidns DescribeDnsProductInstances --region cn-hangzhou --OrderBy createDate --VersionCode version1 --DomainType PUBLIC --PageSize 20 --PageNumber 1 --UserClientIp '192.0.2.0' --Lang en --Direction DESC

DescribeDohAccountStatistics

命令描述

获取DoH账户请求量统计概览

语法

aliyun alidns DescribeDohAccountStatistics
    --EndDate <string>
    [--Lang <string>]
    --StartDate <string>
    [options]

参数

参数

类型

必填

说明

--EndDate

String

是

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

示例

aliyun alidns DescribeDohAccountStatistics --region cn-hangzhou --StartDate '2019-07-04' --Lang en --EndDate '2019-07-04'

DescribeDohDomainStatistics

命令描述

获取DoH域名请求量统计概览

语法

aliyun alidns DescribeDohDomainStatistics
    --DomainName <string>
    --EndDate <string>
    [--Lang <string>]
    --StartDate <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名

--EndDate

String

是

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

语言

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

示例

aliyun alidns DescribeDohDomainStatistics --region cn-hangzhou --DomainName 'example.com'

DescribeDohDomainStatisticsSummary

命令描述

获取DoH域名的请求量统计列表

语法

aliyun alidns DescribeDohDomainStatisticsSummary
    [--DomainName <string>]
    [--EndDate <string>]
    [--Lang <string>]
    --PageNumber <int>
    [--PageSize <int>]
    --StartDate <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

域名

--EndDate

String

否

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

示例

aliyun alidns DescribeDohDomainStatisticsSummary --region cn-hangzhou --StartDate '2019-07-04' --PageSize 20 --PageNumber 1 --DomainName 'example.com' --Lang en --EndDate '2019-07-04'

DescribeDohSubDomainStatistics

命令描述

获取DoH子域名请求量统计

语法

aliyun alidns DescribeDohSubDomainStatistics
    --EndDate <string>
    [--Lang <string>]
    --StartDate <string>
    --SubDomain <string>
    [options]

参数

参数

类型

必填

说明

--EndDate

String

是

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

--SubDomain

String

是

要查看统计数据的子域名

示例

aliyun alidns DescribeDohSubDomainStatistics --region cn-hangzhou --SubDomain 'www.example.com' --StartDate '2019-07-04' --Lang en --EndDate '2019-07-04'

DescribeDohSubDomainStatisticsSummary

命令描述

获取DoH子域名的请求量统计列表

语法

aliyun alidns DescribeDohSubDomainStatisticsSummary
    --DomainName <string>
    [--EndDate <string>]
    [--Lang <string>]
    --PageNumber <int>
    [--PageSize <int>]
    --StartDate <string>
    [--SubDomain <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名

--EndDate

String

否

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

--SubDomain

String

否

子域名

示例

aliyun alidns DescribeDohSubDomainStatisticsSummary --region cn-hangzhou --StartDate '2019-07-04' --SubDomain 'www.example.com' --PageSize 20 --PageNumber 1 --DomainName 'example.com' --Lang en --EndDate '2019-07-04'

DescribeDohUserInfo

命令描述

获取DoH用户基本信息

语法

aliyun alidns DescribeDohUserInfo
    [--EndDate <string>]
    [--Lang <string>]
    [--StartDate <string>]
    [options]

参数

参数

类型

必填

说明

--EndDate

String

否

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

语言

--StartDate

String

否

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

示例

aliyun alidns DescribeDohUserInfo --region cn-hangzhou --StartDate '2019-07-04' --Lang en --EndDate '2019-07-04'

DescribeDomainDnssecInfo

命令描述

根据传入参数查询指定域名的DNSSEC信息

语法

aliyun alidns DescribeDomainDnssecInfo
    --DomainName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh:中文
en:英文
默认为zh


示例

aliyun alidns DescribeDomainDnssecInfo --region cn-hangzhou --DomainName 'example.com'

DescribeDomainGroups

命令描述

根据传入参数获取域名分组的列表

语法

aliyun alidns DescribeDomainGroups
    [--KeyWord <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--KeyWord

String

否

组名关键字,按照“%KeyWord%”模式搜索,不区分大小写

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:zh


--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:110

示例

aliyun alidns DescribeDomainGroups --region cn-hangzhou --PageSize 20 --PageNumber 1 --KeyWord Group --Lang en

DescribeDomainInfo

命令描述

根据传入参数查询指定域名的信息

语法

aliyun alidns DescribeDomainInfo
    --DomainName <string>
    [--Lang <string>]
    [--NeedDetailAttributes <bool>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用https://help.aliyun.com/document_detail/2357286.html获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认值:en


--NeedDetailAttributes

Boolean

否

是否返回域名详细的属性,取值范围:
true:
false
默认值:false,不需要细节属性。
当值为true时,则返回以下数据:lineType、minTtl、recordLineTreeJson、recordLines、lineCode、lineDisplayName、lineName、regionLines、slaveDns



示例

aliyun alidns DescribeDomainInfo --region cn-hangzhou --DomainName 'example.com'

DescribeDomainLogs

命令描述

根据传入参数获取域名的操作日志

语法

aliyun alidns DescribeDomainLogs
    [--GroupId <string>]
    [--KeyWord <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--StartDate <string>]
    [--Type <string>]
    [--endDate <string>]
    [options]

参数

参数

类型

必填

说明

--GroupId

String

否

域名分组ID。为空时,查询所有分组

--KeyWord

String

否

关键字,按照“%KeyWord%”模式搜索,不区分大小写

--Lang

String

否

请求和接收消息的语言类型。
zh:中文
en:英文
默认为zh


--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--StartDate

String

否

开始时间。格式:YYYY-MM-DD

--Type

String

否

查询内容类型。
domain:域名
slavedns:辅助DNS
为空时,查询所有类型


--endDate

String

否

结束时间。格式:YYYY-MM-DD

示例

aliyun alidns DescribeDomainLogs --region cn-hangzhou --StartDate '2019-07-04' --Type domain --PageSize 20 --PageNumber 1 --endDate '2019-07-04' --KeyWord test --Lang en --GroupId 20000

DescribeDomainNs

命令描述

根据传入域名获取域名当前的NS服务器列表,以及NS是否属于阿里云解析管理

语法

aliyun alidns DescribeDomainNs
    --DomainName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调取DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取

--Lang

String

否

请求和接收消息的语言类型。
取值:
zh:中文
en:英文
默认取值为zh



示例

aliyun alidns DescribeDomainNs --region cn-hangzhou --DomainName 'example.com'

DescribeDomainRecordInfo

命令描述

通过解析记录的ID获取解析记录的详细信息

语法

aliyun alidns DescribeDomainRecordInfo
    [--Lang <string>]
    --RecordId <string>
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--RecordId

String

是

解析记录的ID。可通过调取DescribeDomainRecords (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomainrecords?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取。

--UserClientIp

String

否

用户端IP

示例

aliyun alidns DescribeDomainRecordInfo --region cn-hangzhou --RecordId 9000000000

DescribeDomainRecords

命令描述

根据传入参数获取指定主域名的所有解析记录列表

语法

aliyun alidns DescribeDomainRecords
    [--Direction <string>]
    --DomainName <string>
    [--GroupId <int>]
    [--KeyWord <string>]
    [--Lang <string>]
    [--Line <string>]
    [--OrderBy <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--RRKeyWord <string>]
    [--SearchMode <string>]
    [--Status <string>]
    [--Type <string>]
    [--TypeKeyWord <string>]
    [--ValueKeyWord <string>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向。取值范围:DESC、ASC。默认为:DESC

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--GroupId

Integer

否

指域名分组ID
如不传GroupId,则在全部域名下查询。
如GroupId为0,则返回空数据。
如GroupId为-1,则在默认分组(指未设置分组的域名)下查询。
如GroupId为-2,则在全部域名下查询。
如GroupId不符合上述条件,则按GroupId查询并返回结果。
可通过调用DescribeDomainGroups (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomaingroups?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取






--KeyWord

String

否

关键字

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--Line

String

否

解析线路,默认为default。
参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)。


--OrderBy

String

否

排序方式。按照解析添加的时间从新到旧排序

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值500,默认为20

  • 约束:

    • 最大值:500

    • 最小值:1

--RRKeyWord

String

否

主机记录的关键字,按照 RRKeyWord(前后模糊匹配)模式搜索,不区分大小写

--SearchMode

String

否

搜索模式,取值:LIKE/EXACT/ADVANCED/COMBINATION。
填入LIKE或EXACT时,请使用KeyWord参数。(传入RRKeyWord、TypeKeyWord、ValueKeyWord、Type、Line、Status参数无效)
填入ADVANCED时,请使用RRKeyWord、TypeKeyWord、ValueKeyWord、Type、Line、Status,其中RRKeyWord、ValueKeyWord为模糊匹配
填入COMBINATION,请使用RRKeyWord、TypeKeyWord、ValueKeyWord、Type、Line、Status参数,所有参数均为精确匹配。
不传值:
- keyWord传值,搜索模式取”LIKE“值。
- keyWord不传值,RRKeyWord和ValueKeyWord支持模糊查询,TypeKeyWord和Type、Line、Status支持精确查询





--Status

String

否

解析记录状态。取值:
Enable: 启用解析
Disable: 暂停解析

--Type

String

否

解析记录类型,参见:
解析记录类型格式 (https://help.aliyun.com/document_detail/29805.html)

--TypeKeyWord

String

否

解析类型的关键字,按照全匹配搜索,不区分大小写

--ValueKeyWord

String

否

记录值的关键字,按照 ValueKeyWord(前后模糊匹配)模式搜索,不区分大小写

示例

aliyun alidns DescribeDomainRecords --region cn-hangzhou --DomainName 'example.com'

DescribeDomainResolveStatisticsSummary

命令描述

查询用户账号下所有付费域名的请求量列表

语法

aliyun alidns DescribeDomainResolveStatisticsSummary
    [--Direction <string>]
    [--EndDate <string>]
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--SearchMode <string>]
    --StartDate <string>
    [--Threshold <int>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向。取值:
递减:DESC
递增:ASC

--EndDate

String

否

结束时间,格式yyyy-MM-dd,如:2023-03-13

--Keyword

String

否

关键字,与SearchMode配合使用

--Lang

String

否

lang,语言:zh、en、ja

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值1000,最小值为1

  • 约束:

    • 最小值:1

--SearchMode

String

否

关键词的搜索模式。取值:
模糊搜索(默认):LIKE
精确搜索:EXACT

--StartDate

String

是

开始时间,格式yyyy-MM-dd,如: 2023-03-01

--Threshold

Integer

否

解析量查询条件,可用于查询不同解析量类别的域名列表及域名解析量数据。
不传:查询解析量不为0的数据
传小于0的值:查询所有数据
传0:查询无解析量的数据
传大于0的值:查询解析量不超过该值的域名



示例

aliyun alidns DescribeDomainResolveStatisticsSummary --region cn-hangzhou --StartDate '2023-03-01'

DescribeDomainStatistics

命令描述

查询指定主域名请求量的实时数据

语法

aliyun alidns DescribeDomainStatistics
    --DomainName <string>
    [--DomainType <string>]
    --EndDate <string>
    [--Lang <string>]
    --StartDate <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调取DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取

--DomainType

String

否

域名类型,取值:
PUBLIC:权威托管域名(默认值)
CACHE:权威代理域名

--EndDate

String

是

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

请求和接收消息的语言类型。
zh(默认):中文
en:英文

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

示例

aliyun alidns DescribeDomainStatistics --region cn-hangzhou --StartDate '2019-07-04'

DescribeDomainStatisticsSummary

命令描述

查询用户账号下所有付费域名的请求量列表

语法

aliyun alidns DescribeDomainStatisticsSummary
    [--EndDate <string>]
    [--Keyword <string>]
    [--Lang <string>]
    --PageNumber <int>
    [--PageSize <int>]
    [--SearchMode <string>]
    --StartDate <string>
    [--Threshold <int>]
    [options]

参数

参数

类型

必填

说明

--EndDate

String

否

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Keyword

String

否

关键词,按照“%KeyWord%”模式搜索,不区分大小写

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh(默认):中文
en:英文

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,最小值为1,默认值为20

  • 约束:

    • 最大值:100

    • 最小值:1

--SearchMode

String

否

关键词的搜索模式。取值:
模糊搜索(默认):LIKE
精确搜索:EXACT

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90

--Threshold

Integer

否

查询总量阈值,也可查询相应请求量不大于threshold的数据。例如,如果您将该参数设置为100,可查询出请求量小于100次的域名。为空时查全部的域名

  • 约束:

    • 最小值:0

示例

aliyun alidns DescribeDomainStatisticsSummary --region cn-hangzhou --StartDate '2019-07-04'

DescribeDomains

命令描述

根据传入参数查询该用户的域名列表

语法

aliyun alidns DescribeDomains
    [--GroupId <string>]
    [--KeyWord <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--ResourceGroupId <string>]
    [--SearchMode <string>]
    [--Starmark <bool>]
    [options]

参数

参数

类型

必填

说明

--GroupId

String

否

指域名分组ID。
如不填或传空字符,将在全部域名下查询。
如传defaultGroup,将在默认分组下查询

--KeyWord

String

否

关键字,按照“%KeyWord%”模式搜索,不区分大小写

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:zh


--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--ResourceGroupId

String

否

资源组ID

--SearchMode

String

否

搜索模式。取值:
LIKE:模糊搜索
EXACT:精确搜索
默认:LIKE


--Starmark

Boolean

否

是否查询域名星标。取值:
true:是
false:否
默认:true


示例

aliyun alidns DescribeDomains --region cn-hangzhou --PageSize 20 --ResourceGroupId 'rg-re00000000' --PageNumber 1 --KeyWord com --Lang en --Starmark true --SearchMode LIKE --GroupId defaultGroup

DescribeGtmAccessStrategies

命令描述

获取当前实例的访问策略列表

语法

aliyun alidns DescribeGtmAccessStrategies
    [--InstanceId <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

否

实例ID

--Lang

String

否

语言

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

示例

aliyun alidns DescribeGtmAccessStrategies --region cn-hangzhou --PageSize 20 --InstanceId 'gtm-cn-wwo3a3hbz00' --PageNumber 1 --Lang en

DescribeGtmAccessStrategy

命令描述

根据策略ID获取策略详细信息

语法

aliyun alidns DescribeGtmAccessStrategy
    [--Lang <string>]
    --StrategyId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

语言

--StrategyId

String

是

访问策略ID

示例

aliyun alidns DescribeGtmAccessStrategy --region cn-hangzhou --StrategyId hra0hs

DescribeGtmAccessStrategyAvailableConfig

命令描述

获取当前访问策略可设置的配置

语法

aliyun alidns DescribeGtmAccessStrategyAvailableConfig
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

GTM实例ID

--Lang

String

否

语言

示例

aliyun alidns DescribeGtmAccessStrategyAvailableConfig --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeGtmAvailableAlertGroup

命令描述

获取GTM实例可用的报警组列表

语法

aliyun alidns DescribeGtmAvailableAlertGroup
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

语言

示例

aliyun alidns DescribeGtmAvailableAlertGroup --region cn-hangzhou --Lang en

DescribeGtmInstance

命令描述

获取GTM实例的详情信息

语法

aliyun alidns DescribeGtmInstance
    --InstanceId <string>
    [--Lang <string>]
    [--NeedDetailAttributes <bool>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

GTM实例ID

--Lang

String

否

语言

--NeedDetailAttributes

Boolean

否

是否需要额外信息,默认为false。取值为true时,返回AccessStrategyNum(访问策略个数)、AddressPoolNum(地址池个数)

示例

aliyun alidns DescribeGtmInstance --region cn-hangzhou --InstanceId instance1

DescribeGtmInstanceAddressPool

命令描述

获取地址池详细信息

语法

aliyun alidns DescribeGtmInstanceAddressPool
    --AddrPoolId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--AddrPoolId

String

是

地址池ID

--Lang

String

否

语言

示例

aliyun alidns DescribeGtmInstanceAddressPool --region cn-hangzhou --AddrPoolId hrbpnf

DescribeGtmInstanceAddressPools

命令描述

获取GTM实例地址池列表

语法

aliyun alidns DescribeGtmInstanceAddressPools
    --InstanceId <string>
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

GTM实例ID

--Lang

String

否

语言

--PageNumber

Integer

否

当前页码,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

示例

aliyun alidns DescribeGtmInstanceAddressPools --region cn-hangzhou --InstanceId gtmtest

DescribeGtmInstanceStatus

命令描述

获取实例的当前状态

语法

aliyun alidns DescribeGtmInstanceStatus
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例ID

--Lang

String

否

语言

示例

aliyun alidns DescribeGtmInstanceStatus --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeGtmInstanceSystemCname

命令描述

获取系统分配的cname域名

语法

aliyun alidns DescribeGtmInstanceSystemCname
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例ID

--Lang

String

否

用户语言

示例

aliyun alidns DescribeGtmInstanceSystemCname --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

DescribeGtmInstances

命令描述

获取GTM实例列表

语法

aliyun alidns DescribeGtmInstances
    [--Keyword <string>]
    [--Lang <string>]
    [--NeedDetailAttributes <bool>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--ResourceGroupId <string>]
    [options]

参数

参数

类型

必填

说明

--Keyword

String

否

查询关键字,支持实例Id,实例名称精确搜索

--Lang

String

否

语言

--NeedDetailAttributes

Boolean

否

是否需要额外信息,默认为false

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

--ResourceGroupId

String

否

资源组ID

示例

aliyun alidns DescribeGtmInstances --region cn-hangzhou --NeedDetailAttributes false --PageSize 20 --Keyword test --ResourceGroupId 'rg-xxxxx' --PageNumber 1 --Lang en

DescribeGtmLogs

命令描述

获取日志列表

语法

aliyun alidns DescribeGtmLogs
    [--EndTimestamp <int>]
    [--InstanceId <string>]
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--StartTimestamp <int>]
    [options]

参数

参数

类型

必填

说明

--EndTimestamp

Integer

否

查询的结束时间(时间戳)

--InstanceId

String

否

实例ID

--Keyword

String

否

关键字,按照“%Keyword%”模式搜索,不区分大小写

--Lang

String

否

用户语言

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--StartTimestamp

Integer

否

查询的开始时间(时间戳)

示例

aliyun alidns DescribeGtmLogs --region cn-hangzhou --Keyword test --PageSize 20 --InstanceId 'gtm-cn-xxxxx' --PageNumber 1 --StartTimestamp 1363453340000 --Lang en --EndTimestamp 1363453340000

DescribeGtmMonitorAvailableConfig

命令描述

获取健康检查可设置的配置

语法

aliyun alidns DescribeGtmMonitorAvailableConfig
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

语言

示例

aliyun alidns DescribeGtmMonitorAvailableConfig --region cn-hangzhou --Lang en

DescribeGtmMonitorConfig

命令描述

获取地址池健康检查配置

语法

aliyun alidns DescribeGtmMonitorConfig
    [--Lang <string>]
    --MonitorConfigId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

语言

--MonitorConfigId

String

是

健康检查配置ID

示例

aliyun alidns DescribeGtmMonitorConfig --region cn-hangzhou --MonitorConfigId 100

DescribeGtmRecoveryPlan

命令描述

获取容灾预案详情

语法

aliyun alidns DescribeGtmRecoveryPlan
    [--Lang <string>]
    --RecoveryPlanId <int>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--RecoveryPlanId

Integer

是

容灾预案ID。可通过调用DescribeGtmRecoveryPlans (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describegtmrecoveryplans?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_13_5.6dd83618vW4yD7)获取

示例

aliyun alidns DescribeGtmRecoveryPlan --region cn-hangzhou --RecoveryPlanId 1000000

DescribeGtmRecoveryPlanAvailableConfig

命令描述

获取容灾预案可设置的配置

语法

aliyun alidns DescribeGtmRecoveryPlanAvailableConfig
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


示例

aliyun alidns DescribeGtmRecoveryPlanAvailableConfig --region cn-hangzhou --Lang en

DescribeGtmRecoveryPlans

命令描述

获取容灾预案列表

语法

aliyun alidns DescribeGtmRecoveryPlans
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--Keyword

String

否

查询关键字。支持容灾预案名称模糊匹配

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:zh


--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

示例

aliyun alidns DescribeGtmRecoveryPlans --region cn-hangzhou --Keyword test --PageSize 20 --PageNumber 1 --Lang en

DescribeInstanceDomains

命令描述

获取实例绑定域名列表

语法

aliyun alidns DescribeInstanceDomains
    [--DomainKeywords <string>]
    --InstanceId <string>
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--DomainKeywords

String

否

按域名名称筛选实例下域名的关键词

--InstanceId

String

是

实例ID。可通过调用DescribeDomainInfo (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomaininfo?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取。

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

示例

aliyun alidns DescribeInstanceDomains --region cn-hangzhou --InstanceId 'dns-cn-9lb38ldq900'

DescribeInterAuthStatisticsGlobalOverview

命令描述

公网权威解析统计信息全局总览

语法

aliyun alidns DescribeInterAuthStatisticsGlobalOverview
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--OverviewPeriod <string>]
    [--ServerRegion <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

设置返回后可用区名称的语言,取值:
zh-CN:中文。
en-US(默认值):英文

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--OverviewPeriod

String

否

统计周期

--ServerRegion

String

否

服务区域

示例

aliyun alidns DescribeInterAuthStatisticsGlobalOverview --region cn-hangzhou --AcceptLanguage 'en-US' --ServerRegion 'cn-beijing' --ClientToken '23445411234395894586....' --OverviewPeriod DAY

DescribeInterAuthStatisticsHistory

命令描述

公网权威解析统计信息趋势

语法

aliyun alidns DescribeInterAuthStatisticsHistory
    [--DomainName <string>]
    [--EndTimestamp <int>]
    [--Rcode <string>]
    [--ServerRegion <string>]
    [--StartTimestamp <int>]
    [--StatisticalType <string>]
    [--ZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

域名名称,支持查询子域名解析统计。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--EndTimestamp

Integer

否

查询的结束时间(时间戳,单位:毫秒)。
<warning>如果查询时间段跨度较大,查询域名的解析日志量过多,可能会导致查询超时或者查询结果不准确。></warning>

--Rcode

String

否

dns响应码

--ServerRegion

String

否

解析集群地区

--StartTimestamp

Integer

否

查询的开始时间(时间戳,单位:毫秒)

--StatisticalType

String

否

统计指标类型

--ZoneName

String

否

zone 名称

示例

aliyun alidns DescribeInterAuthStatisticsHistory --region cn-hangzhou --ZoneName 'example.com' --StartTimestamp 1474335170000 --DomainName 'www.example.com' --EndTimestamp 1741526400000 --ServerRegion 'ap-southeast-3' --StatisticalType 'PROTOCOL_其它:_PROTOCOL:DNS请求UDP协议、TCP协议维度统计(仅全局域名统计)_QTYPE:DNS请求记录类型分布,如A、AAAA、CNAME、MX_等_RCODE:DNS否定应答统计_SUCCESS_RATIO:SUCCESS_RATIO:平均解析成功率(解析成功率_=_返回与请求记录类型(QTYPE)匹配的有效应答次数_/_总解析次数)_REQUEST:DNS请求量统计,展示QPS查询趋势' --Rcode 0

DescribeInterAuthStatisticsSummary

命令描述

公网权威解析统计信息摘要列表

语法

aliyun alidns DescribeInterAuthStatisticsSummary
    [--Direction <string>]
    [--DomainName <string>]
    [--EndTimestamp <int>]
    [--GrowType <string>]
    [--OrderBy <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--Period <string>]
    [--Rcode <string>]
    [--ServerRegion <string>]
    [--SourceType <string>]
    [--StartTimestamp <int>]
    [--StatisticalType <string>]
    [--ZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向。取值:
递减(默认):DESC
递增:ASC

--DomainName

String

否

域名名称

--EndTimestamp

Integer

否

查询的结束时间(时间戳,单位:毫秒)。
<warning>如果查询时间段跨度较大,查询域名的解析日志量过多,可能会导致查询超时或者查询结果不准确。></warning>

--GrowType

String

否

请求量突增突降子域名数报表使用

--OrderBy

String

否

排序参数。取值:
createDate:按创建时间排序(为空时默认按创建时间排序)
expireDate:按过期时间排序

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

--Period

String

否

采样周期,枚举如下:
DAY:天
WEEK:周
MONTH:月


--Rcode

String

否

dns响应码

--ServerRegion

String

否

解析集群地区

--SourceType

String

否

路由类型:cloud:云上路由。 local:线下路由

--StartTimestamp

Integer

否

查询的开始时间(时间戳,单位:毫秒)

--StatisticalType

String

否

统计指标类型

--ZoneName

String

否

zone 名称

示例

aliyun alidns DescribeInterAuthStatisticsSummary --region cn-hangzhou --OrderBy default --PageSize 1 --StartTimestamp 1516779348000 --DomainName 'example.com' --SourceType File --Period DAY --EndTimestamp 1741526400000 --ServerRegion 'ap-southeast-3' --StatisticalType 'QTYPE_RATIO_枚举值:_QTYPE_RATIO:DNS请求记录类型占比_RCODE_DOMAIN:否定应答域名TOP排行_RCODE_SOURCE_IP:某否定应答域名的请求源地址TOP排行_REQUEST_ZONE:域名请求量排行(zone级别)_REQUEST_DOMAIN:子域名请求量排行(domain_name级别)_SOURCE_REGION:请求来源地域分布_SOURCE_ISP:请求来源运营商(ISP)分布_SOURCE_IP:请求源IP详情(含地域、运营商、占比)_LINE_HIT:解析线路命中详情_LINE_RATIO:解析线路流量占比' --Direction DESC --Rcode 0 --ZoneName 'example.com' --PageNumber 1 --GrowType up_down

DescribeInterAuthStatisticsZoneOverview

命令描述

公网权威解析统计信息Zone维度总览

语法

aliyun alidns DescribeInterAuthStatisticsZoneOverview
    [--OverviewPeriod <string>]
    [--ServerRegion <string>]
    [--ZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--OverviewPeriod

String

否

统计周期

--ServerRegion

String

否

服务区域

--ZoneName

String

否

域名(Zone)名称

示例

aliyun alidns DescribeInterAuthStatisticsZoneOverview --region cn-hangzhou --ZoneName 'cheng.suow.cc' --ServerRegion DescribeInterAuthStatisticsZoneOverview --OverviewPeriod 'DAY、WEEK、MONTH'

DescribeInternetDnsLogs

命令描述

查询解析日志

语法

aliyun alidns DescribeInternetDnsLogs
    [--AccountId <int>]
    [--DomainName <string>]
    [--EndTimestamp <int>]
    [--Lang <string>]
    [--Module <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--PreciseSort <bool>]
    [--QueryCondition <string>]
    [--RecursionProtocolType <string>]
    [--StartTimestamp <int>]
    [options]

参数

参数

类型

必填

说明

--AccountId

Integer

否

公共DNS专属配置ID

--DomainName

String

否

域名名称

--EndTimestamp

Integer

否

查询的结束时间(时间戳,单位:毫秒)。
<warning>如果查询时间段跨度较大,查询域名的解析日志量过多,可能会导致查询超时或者查询结果不准确。></warning>

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--Module

String

否

模块类型
AUTHORITY(默认值):公网权威DNS
RECURSION:公网递归DNS

--PageNumber

Integer

否

页码,默认值为1

--PageSize

Integer

否

分页查询大小

--PreciseSort

Boolean

否

是否精确排序,不精确排序的性能高于精确排序。缺省值为FALSE
FALSE:不精确排序
TRUE:精确排序

--QueryCondition

String

否

查询参数
sourceIp:源IP地址
queryNameFuzzy:域名(模糊值)
queryType:记录类型
value:解析结果
status:状态
serverIp:解析服务器IP





--RecursionProtocolType

String

否

公网递归解析的接入协议类型,可选 HTTPDNS 或 UDP

--StartTimestamp

Integer

否

查询的开始时间(时间戳,单位:毫秒)

示例

aliyun alidns DescribeInternetDnsLogs --region cn-hangzhou --AccountId 51004 --PageSize 10 --StartTimestamp 1738848000000 --PageNumber 1 --DomainName 'www.example.com' --Lang en --EndTimestamp 1741526400000 --RecursionProtocolType 'example-string' --PreciseSort true --Module AUTHORITY --QueryCondition '{"sourceIp":"59.82.XX.XX","queryType":"A"}'

DescribeIspFlushCacheInstances

命令描述

获取缓存刷新套餐包列表

语法

aliyun alidns DescribeIspFlushCacheInstances
    [--Direction <string>]
    [--Isp <string>]
    [--Keyword <string>]
    [--Lang <string>]
    [--OrderBy <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--Type <string>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向:ASC 为升序,DESC 为降序

--Isp

String

否

要筛选的运营商,当前支持 TELECOM(电信)

--Keyword

String

否

按实例 ID 或名称查询时使用的关键词

--Lang

String

否

返回信息的语言,zh 为中文,en 为英文

--OrderBy

String

否

实例列表排序字段,目前支持 EXPIRE_DATE(到期时间)

--PageNumber

Integer

否

要查询的页码,从 1 开始

  • 约束:

    • 最大值:9999999

    • 最小值:1

--PageSize

Integer

否

每页返回的记录数

  • 约束:

    • 最大值:100

    • 最小值:1

--Type

String

否

关键词类型,INSTANCE_ID 表示实例 ID,INSTANCE_NAME 表示实例名称

示例

aliyun alidns DescribeIspFlushCacheInstances --region cn-hangzhou --OrderBy 'example-string' --Type 'example-string' --PageSize 1 --Keyword 'example-string' --PageNumber 1 --Isp 'example-string' --Lang 'example-string' --Direction 'example-string'

DescribeIspFlushCacheRemainQuota

命令描述

获取剩余可缓存刷新次数

语法

aliyun alidns DescribeIspFlushCacheRemainQuota
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

返回信息的语言,zh 为中文,en 为英文

示例

aliyun alidns DescribeIspFlushCacheRemainQuota --region cn-hangzhou --Lang 'example-string'

DescribeIspFlushCacheTask

命令描述

获取缓存刷新任务详情

语法

aliyun alidns DescribeIspFlushCacheTask
    [--Lang <string>]
    --TaskId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

返回信息的语言,zh 为中文,en 为英文

--TaskId

String

是

要查询的缓存刷新任务 ID

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns DescribeIspFlushCacheTask --region cn-hangzhou --TaskId 'example-string'

DescribeIspFlushCacheTasks

命令描述

获取缓存刷新任务列表

语法

aliyun alidns DescribeIspFlushCacheTasks
    [--Direction <string>]
    [--DomainName <string>]
    [--InstanceId <string>]
    [--Isp <string>]
    [--Lang <string>]
    [--OrderBy <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向:ASC 为升序,DESC 为降序

--DomainName

String

否

按要刷新的域名筛选

--InstanceId

String

否

按缓存刷新实例 ID 筛选

--Isp

String

否

按运营商筛选,当前支持 TELECOM(电信)

--Lang

String

否

返回信息的语言,zh 为中文,en 为英文

--OrderBy

String

否

任务列表排序字段,目前支持 CREATE_DATE(创建时间)

--PageNumber

Integer

否

要查询的页码,从 1 开始

  • 约束:

    • 最大值:9999999

    • 最小值:1

--PageSize

Integer

否

每页返回的记录数

  • 约束:

    • 最大值:100

    • 最小值:1

示例

aliyun alidns DescribeIspFlushCacheTasks --region cn-hangzhou --OrderBy 'example-string' --PageSize 1 --PageNumber 1 --DomainName 'example-string' --InstanceId 'example-string' --Isp 'example-string' --Lang 'example-string' --Direction 'example-string'

DescribePdnsAccountSummary

命令描述

获取公共DNS用户数据概览

语法

aliyun alidns DescribePdnsAccountSummary
    [--EndDate <string>]
    [--Lang <string>]
    [--StartDate <string>]
    [options]

参数

参数

类型

必填

说明

--EndDate

String

否

查询结束日期,格式为 YYYY-MM-DD

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--StartDate

String

否

查询开始日期,格式为 YYYY-MM-DD

示例

aliyun alidns DescribePdnsAccountSummary --region cn-hangzhou --StartDate 'example-string' --Lang 'example-string' --EndDate 'example-string'

DescribePdnsAppKey

命令描述

获取公共DNS AppKey 详情

语法

aliyun alidns DescribePdnsAppKey
    [--AppKeyId <string>]
    [--AuthCode <string>]
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--AppKeyId

String

否

要查询或操作的公共 DNS AppKey 标识

--AuthCode

String

否

用于查询 AppKey 密钥详情的验证码

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

示例

aliyun alidns DescribePdnsAppKey --region cn-hangzhou --AuthCode 'example-string' --Lang 'example-string' --AppKeyId 'example-string'

DescribePdnsAppKeys

命令描述

获取公共DNS AppKey 列表

语法

aliyun alidns DescribePdnsAppKeys
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

示例

aliyun alidns DescribePdnsAppKeys --region cn-hangzhou --Lang 'example-string'

DescribePdnsOperateLogs

命令描述

获取公共DNS 操作日志列表

语法

aliyun alidns DescribePdnsOperateLogs
    [--ActionType <string>]
    [--EndDate <string>]
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--ResourceType <string>]
    [--StartDate <string>]
    [options]

参数

参数

类型

必填

说明

--ActionType

String

否

操作类型,可选 ADD(新增)、UPDATE(更新)或 DELETE(删除)

--EndDate

String

否

查询结束日期,格式为 YYYY-MM-DD

--Keyword

String

否

按操作内容筛选的查询关键词

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--PageNumber

Integer

否

查询页码,从 1 开始

--PageSize

Integer

否

分页查询时每页返回的记录数

--ResourceType

String

否

资源类型,可选 HTTPDNS 或 UDP

--StartDate

String

否

查询开始日期,格式为 YYYY-MM-DD

示例

aliyun alidns DescribePdnsOperateLogs --region cn-hangzhou --StartDate 'example-string' --ActionType 'example-string' --Keyword 'example-string' --PageSize 1 --PageNumber 1 --Lang 'example-string' --ResourceType 'example-string' --EndDate 'example-string'

DescribePdnsRequestStatistic

命令描述

查询公共DNS的请求量列表

语法

aliyun alidns DescribePdnsRequestStatistic
    [--DomainName <string>]
    [--EndDate <string>]
    [--Lang <string>]
    [--StartDate <string>]
    [--SubDomain <string>]
    [--Type <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

要查看统计数据的主域名名称

--EndDate

String

否

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--StartDate

String

否

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录

--SubDomain

String

否

要查看统计数据的子域名名称

--Type

String

否

请求量统计类型:
ACCOUNT:按照账户维度查看请求量统计;
DOMAIN:按照域名维度查看请求量统计;此时,DomainName必填
SUB_DOMAIN:按照子域名维度查看请求量统计;此时,DomainName和SubDomain必填


示例

aliyun alidns DescribePdnsRequestStatistic --region cn-hangzhou --SubDomain 'www.example.com' --StartDate '2024-06-14' --Type ACCOUNT --DomainName 'example.com' --Lang zh --EndDate '2024-07-01'

DescribePdnsRequestStatistics

命令描述

查询指定子域名请求量的统计数据

语法

aliyun alidns DescribePdnsRequestStatistics
    [--DomainName <string>]
    [--EndDate <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--StartDate <string>]
    [--SubDomain <string>]
    [--Type <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

需要查询的主域名名称

--EndDate

String

否

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

--StartDate

String

否

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录

--SubDomain

String

否

要查看统计数据的子域名名称

--Type

String

否

查询请求量统计类型:
DOMAIN:按照域名维度查看请求量统计;
SUB_DOMAIN:按照子域名维度查看请求量统计;

示例

aliyun alidns DescribePdnsRequestStatistics --region cn-hangzhou --SubDomain 'www.example.com' --StartDate '2024-06-14' --Type DOMAIN --PageSize 20 --DomainName 'example.com' --PageNumber 1 --Lang zh --EndDate '2024-07-14'

DescribePdnsThreatLogs

命令描述

获取公共DNS 威胁日志列表

语法

aliyun alidns DescribePdnsThreatLogs
    [--EndDate <string>]
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--StartDate <string>]
    [--ThreatLevel <string>]
    [--ThreatSourceIp <string>]
    [--ThreatType <string>]
    [options]

参数

参数

类型

必填

说明

--EndDate

String

否

查询结束日期,格式为 YYYY-MM-DD

--Keyword

String

否

按威胁日志内容查询的关键词

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--PageNumber

Integer

否

查询页码,从 1 开始

--PageSize

Integer

否

分页查询时每页返回的记录数

--StartDate

String

否

查询开始日期,格式为 YYYY-MM-DD

--ThreatLevel

String

否

按威胁等级筛选

--ThreatSourceIp

String

否

按威胁请求的源 IP 筛选

--ThreatType

String

否

按威胁类型筛选

示例

aliyun alidns DescribePdnsThreatLogs --region cn-hangzhou --StartDate 'example-string' --ThreatSourceIp 'example-string' --ThreatLevel 'example-string' --Keyword 'example-string' --PageSize 1 --PageNumber 1 --ThreatType 'example-string' --Lang 'example-string' --EndDate 'example-string'

DescribePdnsThreatStatistic

命令描述

获取公共DNS 威胁统计

语法

aliyun alidns DescribePdnsThreatStatistic
    [--EndDate <string>]
    [--Lang <string>]
    [--StartDate <string>]
    [--ThreatSourceIp <string>]
    [options]

参数

参数

类型

必填

说明

--EndDate

String

否

查询结束日期,格式为 YYYY-MM-DD

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--StartDate

String

否

查询开始日期,格式为 YYYY-MM-DD

--ThreatSourceIp

String

否

按威胁请求的源 IP 筛选

示例

aliyun alidns DescribePdnsThreatStatistic --region cn-hangzhou --StartDate 'example-string' --ThreatSourceIp 'example-string' --Lang 'example-string' --EndDate 'example-string'

DescribePdnsThreatStatistics

命令描述

获取公共DNS 威胁统计列表

语法

aliyun alidns DescribePdnsThreatStatistics
    [--Direction <string>]
    [--DomainName <string>]
    [--EndDate <string>]
    [--Lang <string>]
    [--OrderBy <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--StartDate <string>]
    [--SubDomain <string>]
    [--ThreatLevel <string>]
    [--ThreatSourceIp <string>]
    [--ThreatType <string>]
    [--Type <string>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向:ASC 为升序,DESC 为降序

--DomainName

String

否

查询的主域名名称

--EndDate

String

否

查询结束日期,格式为 YYYY-MM-DD

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--OrderBy

String

否

排序字段,可选 totalCount、domainCount、latestThreatTime 或 timestamp

--PageNumber

Integer

否

查询页码,从 1 开始

--PageSize

Integer

否

分页查询时每页返回的记录数

--StartDate

String

否

查询开始日期,格式为 YYYY-MM-DD

--SubDomain

String

否

查询的子域名名称

--ThreatLevel

String

否

按威胁等级筛选

--ThreatSourceIp

String

否

按威胁请求的源 IP 筛选

--ThreatType

String

否

按威胁类型筛选

--Type

String

否

威胁统计列表类型:DOMAIN、SUB_DOMAIN、THREAT_EVENT、THREAT_SOURCE 或 THREAT_DETAIL

示例

aliyun alidns DescribePdnsThreatStatistics --region cn-hangzhou --OrderBy 'example-string' --ThreatSourceIp 'example-string' --PageSize 1 --DomainName 'example-string' --ThreatType 'example-string' --Lang 'example-string' --Direction 'example-string' --EndDate 'example-string' --SubDomain 'example-string' --StartDate 'example-string' --Type 'example-string' --ThreatLevel 'example-string' --PageNumber 1

DescribePdnsUdpIpSegments

命令描述

获取企业递归网关绑定IP段列表

语法

aliyun alidns DescribePdnsUdpIpSegments
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

语言

--PageNumber

Integer

否

当前页码

--PageSize

Integer

否

分页大小

示例

aliyun alidns DescribePdnsUdpIpSegments --region cn-hangzhou --PageSize 20 --PageNumber 1 --Lang 'en_curl_hNohbNNY.popscan.xaliyun.com'

DescribePdnsUserInfo

命令描述

获取公共DNS用户信息

语法

aliyun alidns DescribePdnsUserInfo
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

示例

aliyun alidns DescribePdnsUserInfo --region cn-hangzhou --Lang en

DescribeRecordLogs

命令描述

根据传入参数获取域名的解析操作日志

语法

aliyun alidns DescribeRecordLogs
    --DomainName <string>
    [--KeyWord <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--StartDate <string>]
    [--UserClientIp <string>]
    [--endDate <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--KeyWord

String

否

关键字,按照“%KeyWord%”模式搜索,不区分大小写

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--StartDate

String

否

查询的开始时间,格式:YYYY-MM-DD

--UserClientIp

String

否

用户端IP

--endDate

String

否

查询的结束时间,格式:YYYY-MM-DD

示例

aliyun alidns DescribeRecordLogs --region cn-hangzhou --DomainName 'example.com'

DescribeRecordResolveStatisticsSummary

命令描述

查询指定域名下的全部子域名的请求量统计

语法

aliyun alidns DescribeRecordResolveStatisticsSummary
    [--Direction <string>]
    --DomainName <string>
    [--DomainType <string>]
    [--EndDate <string>]
    [--Keyword <string>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--SearchMode <string>]
    --StartDate <string>
    [--Threshold <int>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向。取值:
递减(默认):DESC
递增:ASC

--DomainName

String

是

域名名称

--DomainType

String

否

域名类型,大小写不敏感。取值:
PUBLIC:权威托管域名(默认值)
CACHE:权威代理域名

--EndDate

String

否

结束时间,格式yyyy-MM-dd,如:2023-03-13

--Keyword

String

否

关键字,与SearchMode配合使用

--Lang

String

否

lang,语言:zh、en、ja

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值1000,最小值为1

  • 约束:

    • 最小值:1

--SearchMode

String

否

关键词的搜索模式。取值:
模糊搜索(默认):LIKE
精确搜索:EXACT

--StartDate

String

是

开始时间,格式yyyy-MM-dd,如: 2023-03-01

--Threshold

Integer

否

解析量查询条件,可用于查询不同解析量类别的子域名列表及子域名解析量数据。
不传:查询解析量非0的数据
传小于0的值:查询所有数据
传0:查询无解析量的数据
传大于0的值:查询解析量不超过该值的子域名



示例

aliyun alidns DescribeRecordResolveStatisticsSummary --region cn-hangzhou --StartDate '2023-03-29' --DomainName 'example.com'

DescribeRecordStatistics

命令描述

查询指定子域名请求量的实时数据

语法

aliyun alidns DescribeRecordStatistics
    --DomainName <string>
    [--DomainType <string>]
    [--EndDate <string>]
    [--Lang <string>]
    --Rr <string>
    --StartDate <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

主域名名称。域名名称。可通过调取DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取

--DomainType

String

否

域名类型,大小写不敏感。取值:
PUBLIC:权威域名(默认值)
CACHE:权威代理域名

--EndDate

String

否

查询的结束时间,格式:YYYY-MM-DD。
默认为查询当天的时间

--Lang

String

否

返回值语言,取值:
zh(默认):中文
en:英文

--Rr

String

是

指主机记录,如果要解析www.exmaple.com,主机记录要填写www

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90。
若查询时间小于等于7天,按照维度:小时返回数据,即:StartDate <= Now - 7。
若查询时间大于7天,按照维度:天返回数据,即:StartDate > Now - 7


示例

aliyun alidns DescribeRecordStatistics --region cn-hangzhou --StartDate '2019-07-04' --Rr www --DomainName 'exmaple.com'

DescribeRecordStatisticsSummary

命令描述

查询指定域名下的全部子域名的请求量统计

语法

aliyun alidns DescribeRecordStatisticsSummary
    --DomainName <string>
    [--DomainType <string>]
    [--EndDate <string>]
    [--Keyword <string>]
    [--Lang <string>]
    --PageNumber <int>
    [--PageSize <int>]
    [--SearchMode <string>]
    --StartDate <string>
    [--Threshold <int>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称

--DomainType

String

否

域名类型,大小写不敏感。取值:
PUBLIC:权威托管域名(默认值)
CACHE:权威代理域名

--EndDate

String

否

查询的结束时间。格式:YYYY-MM-DD。
默认为查询当天的时间

--Keyword

String

否

关键词,按照“%KeyWord%”模式搜索,不区分大小写

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--PageNumber

Integer

是

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,最小值为1,默认值为20

  • 约束:

    • 最大值:100

    • 最小值:1

--SearchMode

String

否

关键词的搜索模式。取值:
模糊搜索(默认):LIKE
精确搜索:EXACT

--StartDate

String

是

查询的开始时间,格式:YYYY-MM-DD。
只能查询最近90天的记录,即:StartDate >= Now - 90。

--Threshold

Integer

否

查询解析请求量不大于threshold的域名数据。取值为任意大于等于threshold值的整数。例如:
为100时,查询对应时间段内有解析请求量且小于等于100次的域名。
为空时,查询对应时间段内有解析请求量的全部域名。
为0时,查询对应时间段内无解析请求量的域名,如果是当天添加的域名且没有任何请求量,需要第二天才能查询到


示例

aliyun alidns DescribeRecordStatisticsSummary --region cn-hangzhou --StartDate '2019-07-04' --DomainName 'example.top'

DescribeRecursionRecord

命令描述

查询HTTPDNS内置权威解析记录详情

语法

aliyun alidns DescribeRecursionRecord
    --RecordId <string>
    [options]

参数

参数

类型

必填

说明

--RecordId

String

是

解析记录id,解析记录的唯一标识

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns DescribeRecursionRecord --region cn-hangzhou --RecordId 1917628665627259904

DescribeRecursionZone

命令描述

查询HTTPDNS内置权威域名zone详情

语法

aliyun alidns DescribeRecursionZone
    --ZoneId <string>
    [options]

参数

参数

类型

必填

说明

--ZoneId

String

是

Zone ID,Zone的唯一识别码

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns DescribeRecursionZone --region cn-hangzhou --ZoneId 169783221000012

DescribeSubDomainRecords

命令描述

根据传入参数获取某个固定子域名的所有解析记录列表

语法

aliyun alidns DescribeSubDomainRecords
    [--DomainName <string>]
    [--Lang <string>]
    [--Line <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    --SubDomain <string>
    [--Type <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

域名名称

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--Line

String

否

解析线路

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:500

    • 最小值:1

--SubDomain

String

是

例如参数SubDomain为"a.www.example.com"为例:
如果参数DomainName为空,则查询域名为example.com、主机名为”a.www“的解析记录。
如果参数DomainName为"www.example.com",则查询域名为"www.example.com"、主机名为"a"的解析记录。
如果参数DomainName为"a.www.example.com",则查询域名为"a.www.example.com"、主机名为"@"的解析记录。


--Type

String

否

解析记录类型。若不传值,则返回子域名对应的全部解析记录类型。
解析类型包括(不区分大小写):A、MX、CNAME、TXT、REDIRECT_URL、FORWORD_URL、NS、AAAA、SRV

--UserClientIp

String

否

用户端IP

示例

aliyun alidns DescribeSubDomainRecords --region cn-hangzhou --SubDomain 'a.www.example.com'

DescribeSupportLines

命令描述

查询云解析支持的所有线路列表

语法

aliyun alidns DescribeSupportLines
    [--DomainName <string>]
    [--Lang <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

域名名称

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--UserClientIp

String

否

用户端IP

示例

aliyun alidns DescribeSupportLines --region cn-hangzhou --DomainName 'example.com' --UserClientIp '1.1.0.0' --Lang en

DescribeTags

命令描述

查询已有标签

语法

aliyun alidns DescribeTags
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    --ResourceType <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--PageNumber

Integer

否

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页数,默认值:200

--ResourceType

String

是

资源类型。取值:
DOMAIN:域名

示例

aliyun alidns DescribeTags --region cn-hangzhou --ResourceType DOMAIN

DescribeTransferDomains

命令描述

根据传入参数获取跨账号转移DNS列表

语法

aliyun alidns DescribeTransferDomains
    [--DomainName <string>]
    [--FromUserId <int>]
    [--Lang <string>]
    [--PageNumber <int>]
    [--PageSize <int>]
    [--TargetUserId <int>]
    --TransferType <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

域名名称,查询指定域名的转移记录

--FromUserId

Integer

否

域名来源账号ID,查看从该ID账号转移给本账号的域名列表

--Lang

String

否

请求和接收消息的语言类型。
取值:
zh:中文
en:英文
默认取值为zh



--PageNumber

Integer

否

当前页数,起始值为1,默认为1

  • 约束:

    • 最小值:1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值100,默认为20

  • 约束:

    • 最大值:100

    • 最小值:1

--TargetUserId

Integer

否

域名去处账号ID,查看从本账号转移给该ID账号的域名列表

--TransferType

String

是

转移类型。取值范围:
IN:转入到本账号的列表
OUT:本账号转出的列表

示例

aliyun alidns DescribeTransferDomains --region cn-hangzhou --TransferType IN

ExecuteGtmRecoveryPlan

命令描述

执行容灾预案

语法

aliyun alidns ExecuteGtmRecoveryPlan
    [--Lang <string>]
    --RecoveryPlanId <int>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--RecoveryPlanId

Integer

是

容灾预案ID。可通过调用DescribeGtmRecoveryPlans (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describegtmrecoveryplans?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_13_5.6dd83618vW4yD7)获取

示例

aliyun alidns ExecuteGtmRecoveryPlan --region cn-hangzhou --RecoveryPlanId 1000

GetMainDomainName

命令描述

通过输入的参数,获取主域名名称

语法

aliyun alidns GetMainDomainName
    --InputString <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InputString

String

是

域名名称

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:zh


示例

aliyun alidns GetMainDomainName --region cn-hangzhou --InputString 'www.example.com'

GetTxtRecordForVerify

命令描述

生成txt记录。用于域名、子域名找回、添加子域名验证、批量找回等功能

语法

aliyun alidns GetTxtRecordForVerify
    --DomainName <string>
    [--Lang <string>]
    --Type <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--Type

String

是

txt验证的功能。取值:
添加子域验证 : ADD_SUB_DOMAIN
其他验证:RETRIEVAL

示例

aliyun alidns GetTxtRecordForVerify --region cn-hangzhou --Type ADD_SUB_DOMAIN

ListAtiAgentRegisterInfos

命令描述

查询 Agent 注册信息列表

语法

aliyun alidns ListAtiAgentRegisterInfos
    [--AgentDisplayName <string>]
    [--AgentHost <string>]
    [--AgentId <string>]
    [--AgentVersion <string>]
    [--ClientToken <string>]
    [--MaxResults <int>]
    [--NextToken <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Status <string>]
    [options]

参数

参数

类型

必填

说明

--AgentDisplayName

String

否

Agent显示名称

--AgentHost

String

否

Agent主机地址

--AgentId

String

否

AgentID,经过CNNIC实名认证后,由CNNIC统一分配。AgentID作为Agent与实名认证注册人绑定的唯一标识

--AgentVersion

String

否

Agent版本

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--MaxResults

Integer

否

本次请求所返回的最大记录条数

--NextToken

String

否

下一个查询开始Token

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询大小

--Status

String

否

Agent状态

示例

aliyun alidns ListAtiAgentRegisterInfos --region cn-hangzhou --PageSize 2 --PageNumber 1

ListAtiChangeLogs

命令描述

查询实名注册人列表

语法

aliyun alidns ListAtiChangeLogs
    [--AgentId <string>]
    [--ClientToken <string>]
    [--EndTimestamp <int>]
    [--OperationType <string>]
    [--OperatorAccount <string>]
    --PageNumber <int>
    --PageSize <int>
    [--StartTimestamp <int>]
    [--TimeRange <string>]
    [options]

参数

参数

类型

必填

说明

--AgentId

String

否

AgentID,经过CNNIC实名认证后,由CNNIC统一分配。AgentID作为Agent与实名认证注册人绑定的唯一标识

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

--EndTimestamp

Integer

否

查询的结束时间(时间戳)

--OperationType

String

否

操作日志记录的操作类型,比如修改Agent

--OperatorAccount

String

否

操作人UID账号

--PageNumber

Integer

是

当前页码

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--StartTimestamp

Integer

否

查询的开始时间(时间戳)

--TimeRange

String

否

忽略

示例

aliyun alidns ListAtiChangeLogs --region cn-hangzhou --PageSize 10 --PageNumber 1

ListAtiRegistrants

命令描述

查询实名注册人列表

语法

aliyun alidns ListAtiRegistrants
    [--ClientToken <string>]
    [--MaxResults <int>]
    [--Name <string>]
    [--NextToken <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Status <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

--MaxResults

Integer

否

本次请求所返回的最大记录条数

--Name

String

否

实名认证注册人名称

--NextToken

String

否

下一个查询开始Token

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Status

String

否

实名认证审核状态,包含:
审核通过
审核中
审核拒绝


示例

aliyun alidns ListAtiRegistrants --region cn-hangzhou --PageSize 2 --PageNumber 1

ListCloudGtmAddressPools

命令描述

获取地址池列表

语法

aliyun alidns ListCloudGtmAddressPools
    [--AcceptLanguage <string>]
    [--AddressPoolName <string>]
    [--AddressPoolType <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressPoolName

String

否

地址池名称

--AddressPoolType

String

否

地址池类型:
IPv4:表示要解析的服务地址是IPv4地址。
IPv6:表示要解析的服务地址是IPv6地址。
domain:表示要解析的服务地址是域名


--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

地址池启用状态:
enable:启用状态。
disable:禁用状态

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

地址池备注信息

示例

aliyun alidns ListCloudGtmAddressPools --region cn-hangzhou --PageSize 20 --PageNumber 1

ListCloudGtmAddresses

命令描述

根据传入参数获取地址列表

语法

aliyun alidns ListCloudGtmAddresses
    [--AcceptLanguage <string>]
    [--Address <string>]
    [--AddressId <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [--HealthStatus <string>]
    [--MonitorTemplateId <string>]
    [--Name <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Type <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US:英文

--Address

String

否

IP地址或者域名

--AddressId

String

否

地址ID,地址唯一标识码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

表示地址当前是否可用:
enable:启用状态
disable:禁用状态

--HealthStatus

String

否

地址健康检查探测状态:
ok:地址引用的健康探测模板探测任务全部正常。
ok_alert:地址引用的健康探测模板探测任务部分异常,但地址判定为正常状态。
ok_no_monitor:地址没有引用任何健康探测模板。
exceptional:地址引用的健康探测模板探测任务部分或全部异常,且地址判定为异常状态



--MonitorTemplateId

String

否

健康检查模板ID,健康探测模板的唯一标识码

--Name

String

否

地址名称

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Type

String

否

地址类型:
IPv4
IPv6
domain


示例

aliyun alidns ListCloudGtmAddresses --region cn-hangzhou --PageSize 20 --PageNumber 1

ListCloudGtmAlertLogs

命令描述

获取告警日志列表

语法

aliyun alidns ListCloudGtmAlertLogs
    [--ActionType <string>]
    --EndTimestamp <int>
    [--EntityType <string>]
    [--Keyword <string>]
    [--Lang <string>]
    --PageNumber <int>
    --PageSize <int>
    --StartTimestamp <int>
    [options]

参数

参数

类型

必填

说明

--ActionType

String

否

告警类型:
ALERT:告警
RESUME:恢复

--EndTimestamp

Integer

是

查询的结束时间(时间戳)

--EntityType

String

否

告警对象:
GTM_ADDRESS:地址
GTM_ADDRESS_POOL:地址池
GTM_INSTANCE:实例
GTM_MONITOR_TEMPLATE:健康探测模板



--Keyword

String

否

搜索关键词,一般为地址 ID、地址池 ID、域名信息等

--Lang

String

否

返回信息的语言类型:
zh-CN:中文
en-US:英文

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--StartTimestamp

Integer

是

查询的开始时间(时间戳)

示例

aliyun alidns ListCloudGtmAlertLogs --region cn-hangzhou --PageSize 20 --StartTimestamp 1611328826977 --PageNumber 1 --EndTimestamp 1711328826977

ListCloudGtmAvailableAlertGroups

命令描述

获取用户可用的告警组列表

语法

aliyun alidns ListCloudGtmAvailableAlertGroups
    [--AcceptLanguage <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文
en-US:英文

示例

aliyun alidns ListCloudGtmAvailableAlertGroups --region cn-hangzhou --AcceptLanguage 'en-US'

ListCloudGtmInstanceConfigs

命令描述

获取实例配置列表,包括接入域名、地址池信息等

语法

aliyun alidns ListCloudGtmInstanceConfigs
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [--InstanceId <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [--ScheduleDomainName <string>]
    [--ScheduleZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

域名实例的启用状态:
enable:启用状态,GTM实例智能调度策略生效。
disable:禁用状态,GTM实例智能调度策略不可用

--InstanceId

String

否

全局流量管理3.0实例ID

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

备注

--ScheduleDomainName

String

否

GTM接入域名。格式为接入域名主机记录(ScheduleHostname参数值)+主域或子域(ScheduleZoneName参数值)

--ScheduleZoneName

String

否

GTM接入域名的主域(example.com)或子域(a.example.com)。一般为GTM实例所在账号下,在云解析DNS控制台权威解析中托管的域名

示例

aliyun alidns ListCloudGtmInstanceConfigs --region cn-hangzhou --PageSize 20 --PageNumber 1

ListCloudGtmInstances

命令描述

根据传入参数获取GTM 3.0实例列表

语法

aliyun alidns ListCloudGtmInstances
    [--AcceptLanguage <string>]
    [--ChargeType <string>]
    [--ClientToken <string>]
    [--InstanceId <string>]
    [--InstanceName <string>]
    --PageNumber <int>
    --PageSize <int>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US:英文

--ChargeType

String

否

指定实例的付费类型

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--InstanceId

String

否

GTM实例ID

--InstanceName

String

否

实例名称,方便区分实例的业务用途

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

示例

aliyun alidns ListCloudGtmInstances --region cn-hangzhou --PageSize 20 --PageNumber 1

ListCloudGtmMonitorNodes

命令描述

根据传入参数获取健康探测检查探点列表

语法

aliyun alidns ListCloudGtmMonitorNodes
    [--AcceptLanguage <string>]
    [--ShowDisabledNodes <bool>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文
en-US(默认值):英文

--ShowDisabledNodes

Boolean

否

结果列表是否需要包含不可用的节点

示例

aliyun alidns ListCloudGtmMonitorNodes --region cn-hangzhou --AcceptLanguage 'zh-CN' --ShowDisabledNodes true

ListCloudGtmMonitorTemplates

命令描述

根据传入参数获取健康探测模板列表

语法

aliyun alidns ListCloudGtmMonitorTemplates
    [--AcceptLanguage <string>]
    [--IpVersion <string>]
    [--Name <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Protocol <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--IpVersion

String

否

探测节点IP地址的类型:
IPv4:当探测的目标地址类型为IPv4地址时适用。
IPv6:当探测的目标地址类型为IPv6地址时适用

--Name

String

否

健康检查探测模板的名称,一般为了方便配置人员区分和记忆,建议名称可以区分健康检查协议

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Protocol

String

否

对目标IP地址发起探测的协议类型:
ping
tcp
http
https



示例

aliyun alidns ListCloudGtmMonitorTemplates --region cn-hangzhou --PageSize 20 --PageNumber 1

ListRecursionRecords

命令描述

查询HTTPDNS内置权威解析记录

语法

aliyun alidns ListRecursionRecords
    [--Enable <string>]
    [--MaxResults <int>]
    [--NextToken <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [--RequestSource <string>]
    [--Rr <string>]
    [--Ttl <int>]
    [--Type <string>]
    [--Weight <int>]
    --ZoneId <string>
    [options]

参数

参数

类型

必填

说明

--Enable

String

否

解析记录启用状态,enable:启用 disable:禁用

--MaxResults

Integer

否

本次请求所返回的最大记录条数

--NextToken

String

否

下一个查询开始Token

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

备注

--RequestSource

String

否

解析线路,默认为default。参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)

--Rr

String

否

主机记录

--Ttl

Integer

否

本地缓存时间。目前取值仅支持5、30、60、3600(1小时)、43200(12小时)、86400(24小时),单位秒(s),默认60

--Type

String

否

解析记录类型,目前支持如下: A:IPV4记录,支持将域名映射到IPv4地址使用 AAAA:IPV6记录,支持将域名映射到IPv6地址使用 CNAME:别名记录,支持将域名指向另外一个域名 MX:电邮交互记录,支持将域名指向邮件服务器地址 TXT:文本记录,是任意可读的文本DNS记录 SRV:服务器资源记录,用来标识某台服务器使用了某个服务,常见于微软系统的目录管理

--Weight

Integer

否

解析记录权重 0-100

--ZoneId

String

是

解析记录对应的ZoneId

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns ListRecursionRecords --region cn-hangzhou --ZoneId 17832322323 --PageSize 20 --PageNumber 1

ListRecursionZones

命令描述

查询HTTPDNS内置权威域名zone内置权威域名zone

语法

aliyun alidns ListRecursionZones
    [--MaxResults <int>]
    [--NextToken <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [--ZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--MaxResults

Integer

否

本次请求所返回的最大记录条数

--NextToken

String

否

下一个查询开始Token

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

备注信息

--ZoneName

String

否

域名Zone名称

示例

aliyun alidns ListRecursionZones --region cn-hangzhou --PageSize 10 --PageNumber 1

ListTagResources

命令描述

按照标签查询资源

语法

aliyun alidns ListTagResources
    [--Lang <string>]
    [--NextToken <string>]
    [--ResourceId <array>]
    --ResourceType <string>
    [--Tag.#.Key <string>]
    [--Tag.#.Value <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--NextToken

String

否

下一个查询开始Token

--ResourceId

List

否

资源id

--ResourceType

String

是

资源类型。取值:
DOMAIN:域名

--Tag

List

否

标签键值对数组

  • 列表项:

    • 类型:object

--Tag.#.Key

String

否

标签键

--Tag.#.Value

String

否

标签值

示例

aliyun alidns ListTagResources --region cn-hangzhou --ResourceType DOMAIN

ModifyHichinaDomainDNS

命令描述

变更域名绑定的DNS服务器名称,从其他服务商的DNS服务器名称,修改为阿里云解析DNS提供的DNS服务器名称

语法

aliyun alidns ModifyHichinaDomainDNS
    --DomainName <string>
    [--Lang <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--UserClientIp

String

否

用户端IP

示例

aliyun alidns ModifyHichinaDomainDNS --region cn-hangzhou --DomainName 'dns-example.top'

MoveDomainResourceGroup

命令描述

更换资源组

语法

aliyun alidns MoveDomainResourceGroup
    [--Lang <string>]
    --NewResourceGroupId <string>
    --ResourceId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--NewResourceGroupId

String

是

新资源组ID。
您可以通过资源管理控制台 (https://resourcemanager.console.aliyun.com/resource-groups?)查看资源组ID

--ResourceId

String

是

域名

示例

aliyun alidns MoveDomainResourceGroup --region cn-hangzhou --NewResourceGroupId 'rg-aek0000000' --ResourceId 'example.com'

MoveGtmResourceGroup

命令描述

根据传入参数修改GTM实例的资源组ID

语法

aliyun alidns MoveGtmResourceGroup
    [--Lang <string>]
    --NewResourceGroupId <string>
    --ResourceId <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--NewResourceGroupId

String

是

资源组ID

--ResourceId

String

是

资源id

示例

aliyun alidns MoveGtmResourceGroup --region cn-hangzhou --NewResourceGroupId AgIDE1MA_XXX --ResourceId 'rg-aekzzk7hx300000'

OperateBatchDomain

命令描述

进行批量操作以添加或删除域名和解析记录

语法

aliyun alidns OperateBatchDomain
    --DomainRecordInfo.#.Domain <string>
    [--DomainRecordInfo.#.Line <string>]
    [--DomainRecordInfo.#.NewRr <string>]
    [--DomainRecordInfo.#.NewType <string>]
    [--DomainRecordInfo.#.NewValue <string>]
    [--DomainRecordInfo.#.Priority <int>]
    [--DomainRecordInfo.#.Rr <string>]
    [--DomainRecordInfo.#.Ttl <int>]
    [--DomainRecordInfo.#.Type <string>]
    [--DomainRecordInfo.#.Value <string>]
    [--Lang <string>]
    --Type <string>
    [options]

参数

参数

类型

必填

说明

--DomainRecordInfo

List

是

用户提交的数据(POPAPI确认size,最大200条数据)

  • 列表项:

    • 类型:object

--DomainRecordInfo.#.Domain

String

是

域名名称。
用户提交的数据, N 从 1 开始,最多 200 条数据。由于HTTP请求头限制,请勿超过 200 条数据

--DomainRecordInfo.#.Line

String

否

解析请求来源。默认:default

--DomainRecordInfo.#.NewRr

String

否

新的主机记录(仅修改操作时使用,外部用户不支持)

--DomainRecordInfo.#.NewType

String

否

新的记录类型代码(仅修改操作时使用,外部用户不支持)

--DomainRecordInfo.#.NewValue

String

否

新的记录值(仅修改操作时使用,外部用户不支持)

--DomainRecordInfo.#.Priority

Integer

否

MX优先级。
记录类型为MX时必需。默认:10

--DomainRecordInfo.#.Rr

String

否

主机记录。
批量操作类型为RR_ADD、RR_DEL时必需

--DomainRecordInfo.#.Ttl

Integer

否

生效时间(单位:秒),默认*600*

--DomainRecordInfo.#.Type

String

否

记录类型。例如:A、AAAA、TXT、MX、CNAME等。
批量操作类型为RR_ADD、RR_DEL时必需

--DomainRecordInfo.#.Value

String

否

记录值。
批量操作类型为RR_ADD、RR_DEL时必需

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:zh


--Type

String

是

批量操作类型,取值:
DOMAIN_ADD:批量添加域名
DOMAIN_DEL:批量删除域名
RR_ADD:批量添加解析
RR_DEL:批量删除解析(删除满足N.RR、N.VALUE、N.RR&amp;N.VALUE条件的解析记录。如果无N.RR&&N.VALUE则清空参数DomainRecordInfo.N.Domain下的解析记录)



示例

aliyun alidns OperateBatchDomain --region cn-hangzhou --Type RR_ADD --DomainRecordInfo.1.NewType AAAA --DomainRecordInfo.1.NewValue '114.92.XX.XX' --DomainRecordInfo.1.Line default --DomainRecordInfo.1.Priority 5 --DomainRecordInfo.1.Value fd87da3c4528844d45af39200155a905 --DomainRecordInfo.1.NewRr mail --DomainRecordInfo.1.Ttl 600 --DomainRecordInfo.1.Rr zhaohui --DomainRecordInfo.1.Domain 'example.com' --DomainRecordInfo.1.Type MX

PausePdnsService

命令描述

暂停公共DNS服务

语法

aliyun alidns PausePdnsService
    [--Lang <string>]
    [--ServiceType <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--ServiceType

String

否

公共 DNS 服务类型,可选 UDP_TCP、HTTP、HTTPS 或 DOH_DOT

示例

aliyun alidns PausePdnsService --region cn-hangzhou --ServiceType 'example-string' --Lang 'example-string'

PreviewGtmRecoveryPlan

命令描述

预览容灾预案

语法

aliyun alidns PreviewGtmRecoveryPlan
    [--Lang <string>]
    --PageNumber <int>
    [--PageSize <int>]
    --RecoveryPlanId <int>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

否

分页查询时设置的每页行数,最大值20,默认为5

--RecoveryPlanId

Integer

是

容灾预案ID。可通过调用DescribeGtmRecoveryPlans (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describegtmrecoveryplans?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_13_5.6dd83618vW4yD7)获取

示例

aliyun alidns PreviewGtmRecoveryPlan --region cn-hangzhou --RecoveryPlanId 1000

RemovePdnsAppKey

命令描述

删除公共DNS AppKey

语法

aliyun alidns RemovePdnsAppKey
    [--AppKeyId <string>]
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--AppKeyId

String

否

要查询或操作的公共 DNS AppKey 标识

--Lang

String

否

指定返回信息使用的语言

示例

aliyun alidns RemovePdnsAppKey --region cn-hangzhou --Lang 'example-string' --AppKeyId 'example-string'

RemovePdnsUdpIpSegment

命令描述

删除公共DNS Udp Ip地址段

语法

aliyun alidns RemovePdnsUdpIpSegment
    [--Ip <string>]
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Ip

String

否

公共 DNS 企业递归网关的 IP 地址

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

示例

aliyun alidns RemovePdnsUdpIpSegment --region cn-hangzhou --Ip 'example-string' --Lang 'example-string'

RemoveRspDomainServerHoldStatusForGateway

命令描述

用于删除特定域名的serverHold状态信息

语法

aliyun alidns RemoveRspDomainServerHoldStatusForGateway
    --ClientToken <string>
    --DomainName <string>
    [--StatusMsg <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

是

幂等参数

--DomainName

String

是

域名名称

--StatusMsg

String

否

状态描述信息

示例

aliyun alidns RemoveRspDomainServerHoldStatusForGateway --region cn-hangzhou --DomainName 'example.com' --ClientToken asdf

RemoveRspDomainServerHoldStatusForGatewayOte

命令描述

用于删除指定域名的serverHold状态信息

语法

aliyun alidns RemoveRspDomainServerHoldStatusForGatewayOte
    --ClientToken <string>
    --DomainName <string>
    [--StatusMsg <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

是

幂等参数

--DomainName

String

是

域名名称

--StatusMsg

String

否

状态描述信息

示例

aliyun alidns RemoveRspDomainServerHoldStatusForGatewayOte --region cn-hangzhou --DomainName 'example.com' --ClientToken qwoefasdf

ReplaceCloudGtmAddressPoolAddress

命令描述

根据传入参数替换地址池引用的地址

语法

aliyun alidns ReplaceCloudGtmAddressPoolAddress
    [--AcceptLanguage <string>]
    [--AddressPoolId <string>]
    [--Addresses <array>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressPoolId

String

否

需要更新地址的目标地址池ID,地址池的唯一标识码

--Addresses

List

否

地址列表

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns ReplaceCloudGtmAddressPoolAddress --region cn-hangzhou --Addresses '[{"SerialNumber":1,"WeightValue":1,"RequestSource":["default"],"AddressId":"addr-896365169328030000"}]' --AddressPoolId 'pool-896189211673390000' --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

ReplaceCloudGtmInstanceConfigAddressPool

命令描述

根据传入参数替换实例关联的地址池

语法

aliyun alidns ReplaceCloudGtmInstanceConfigAddressPool
    [--AcceptLanguage <string>]
    [--AddressPools <array>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressPools

List

否

地址池列表

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置ID,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置。
调用 https://help.aliyun.com/document_detail/2797349.html 接口可查询域名实例对应的 ConfigId 值

--InstanceId

String

否

需要替换地址池的GTM 3.0实例ID

示例

aliyun alidns ReplaceCloudGtmInstanceConfigAddressPool --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hb0000' --AddressPools '[{"AddressPoolId":"pool-895645421057370000","SerialNumber":1,"WeightValue":1,"RequestSource":["default"]}]' --AcceptLanguage 'en-US' --ConfigId 'Config-0000000' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

ResumePdnsService

命令描述

恢复公共DNS服务

语法

aliyun alidns ResumePdnsService
    [--Lang <string>]
    [--ServiceType <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--ServiceType

String

否

公共 DNS 服务类型,可选 UDP_TCP、HTTP、HTTPS 或 DOH_DOT

示例

aliyun alidns ResumePdnsService --region cn-hangzhou --ServiceType 'example-string' --Lang 'example-string'

RetrieveDomain

命令描述

执行找回域名操作

语法

aliyun alidns RetrieveDomain
    --DomainName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:zh


示例

aliyun alidns RetrieveDomain --region cn-hangzhou --DomainName 'example.com'

RevokeAtiAgentRegisterInfo

命令描述

吊销 Agent 注册信息

语法

aliyun alidns RevokeAtiAgentRegisterInfo
    --AgentRegisterInfoId <string>
    [--ClientToken <string>]
    [--Reason <string>]
    --ReasonCode <string>
    [options]

参数

参数

类型

必填

说明

--AgentRegisterInfoId

String

是

AgentRegisterInfoId Agent注册ID。由阿里云 ATS 平台自动生成,在阿里云 ATS 平台具有全局唯一性。在 Agent 注册过程中自动生成,通过API注册、查询流程中,该 ID 必须全程携带,需调用接口 ListAtiAgentRegisterInfos 查询目标Agent后从应答内容获取AgentRegisterInfoId

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

--Reason

String

否

注销原因,可选:
秘钥泄露
CA密钥失陷
从属关系变更
证书被替换
停止运营
证书暂时挂起
从CRL中移除
权限被撤销
属性授权机构失陷
未指定原因









--ReasonCode

String

是

遵循RFC 5280 吊销原因码:
unspecified:未指定。默认值。如果 CA 没有提供具体原因,或原因不明时使用。这是最常见的代码。
keyCompromise:密钥泄露。私钥可能被未经授权的一方获取。这是最严重的原因,通常意味着必须立即吊销,且不可恢复。
cACompromise:CA 密钥泄露。签发该证书的 CA 的私钥泄露。这会影响该 CA 签发的所有证书,通常会导致整个子树被吊销。
affiliationChanged:隶属关系变更。证书持有者的身份信息(如姓名、组织名称)发生变更,但公钥仍然有效。例如:员工离职、公司改名。
superseded:证书被替代。证书持有者申请了新的证书(例如密钥轮换、升级算法),旧证书因此被吊销。旧密钥并未泄露。
cessationOfOperation:停止运营。证书持有者不再使用该密钥进行相关操作(例如服务器下线、服务终止)。密钥未泄露。
certificateHold:证书挂起。临时吊销。通常用于调查可疑活动或行政原因。后续可以解除挂起(Unhold),使证书重新有效。注意:此代码不能用于最终吊销。
removeFromCRL:从 CRL 中移除。仅用于 delta CRL(增量吊销列表)。表示之前被 certificateHold 挂起的证书现在已解除挂起,应从吊销列表中移除。这不是一个吊销原因,而是一个状态更新指令。
privilegeWithdrawn:权限收回。证书中授予的特权或属性已被撤销(主要用于属性证书 Attribute Certificates,较少用于普通 SSL/TLS 证书)。
aACompromise:授权机构泄露。签发属性证书的 AA(Attribute Authority)密钥泄露。同样主要用于属性证书体系









示例

aliyun alidns RevokeAtiAgentRegisterInfo --region cn-hangzhou --AgentRegisterInfoId 2074753647748672512 --ReasonCode unspecified

RevokeAtiRegistrant

命令描述

撤销实名注册人

语法

aliyun alidns RevokeAtiRegistrant
    [--ClientToken <string>]
    [--RegistrantId <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

--RegistrantId

String

否

实名认证注册人 ID

示例

aliyun alidns RevokeAtiRegistrant --region cn-hangzhou --RegistrantId 2072277378616354816 --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....'

RollbackGtmRecoveryPlan

命令描述

回滚容灾预案

语法

aliyun alidns RollbackGtmRecoveryPlan
    [--Lang <string>]
    --RecoveryPlanId <int>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--RecoveryPlanId

Integer

是

容灾预案ID。可通过调用DescribeGtmRecoveryPlans (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describegtmrecoveryplans?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_13_5.6dd83618vW4yD7)获取

示例

aliyun alidns RollbackGtmRecoveryPlan --region cn-hangzhou --RecoveryPlanId 1000

SearchAtiAgentRegisterInfoMarket

命令描述

Agent广场搜索功能

语法

aliyun alidns SearchAtiAgentRegisterInfoMarket
    [--ClientToken <string>]
    [--Keyword <string>]
    [--MaxResults <int>]
    [--NextToken <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Protocol <string>]
    [--Status <string>]
    [--TrustLevel <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

--Keyword

String

否

关键词搜索,匹配 Agent 名称、域名、描述

--MaxResults

Integer

否

分批次查询时每次显示的条目数

--NextToken

String

否

下一个查询开始Token

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Protocol

String

否

查询 Agent 端点遵循的通信协议标准,决定调用方如何与该 Agent 交互: 协议 说明
MCP:Model Context Protocol,Anthropic 推出的 Agent 工具调用协议
A2A:Agent-to-Agent Protocol,Google 推出的跨 Agent 通信协议
OpenAPI:标准 RESTful API 规范(Swagger/OpenAPI)
作用:其他 Agent 或客户端看到这个协议标识后,就知道该用什么方式与它对话。比如 MCP 协议走 MCP SDK,A2A 走 A2A SDK,OpenAPI 走标准 HTTP 请求



--Status

String

否

基于Agent状态查询agent

--TrustLevel

String

否

基于信任级别查询agent

示例

aliyun alidns SearchAtiAgentRegisterInfoMarket --region cn-hangzhou --PageSize 10 --PageNumber 1

SearchCloudGtmAddressPools

命令描述

根据传入参数搜索地址池列表

语法

aliyun alidns SearchCloudGtmAddressPools
    [--AcceptLanguage <string>]
    [--AddressPoolName <string>]
    [--AddressPoolType <string>]
    [--AvailableStatus <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [--HealthStatus <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressPoolName

String

否

地址池名称,支持对输入的地址池名称进行模糊搜索

--AddressPoolType

String

否

地址池类型,支持对地址池类型进行精确查询:
IPv4
IPv6
domain


--AvailableStatus

String

否

地址池可用状态,支持对地址池可用状态进行精确查询:
available:可用
unavailable:不可用

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--EnableStatus

String

否

地址池启用状态,支持对地址池启用状态进行精确查询:
enable:启用状态
disable:禁用状态

--HealthStatus

String

否

地址池健康状态,支持对地址池健康状态精确查询:
ok:正常,地址池引用的所有地址全部可用。
ok_alert:警告,地址池引用的地址部分不可用,但是地址池状态判定为正常。警告状态下,可用的地址池正常解析,不可用的地址池停止解析。
exceptional:异常,地址池引用的地址部分或全部不可用,地址池状态判定为异常


--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

地址池备注,支持对输入的备注进行模糊搜索

示例

aliyun alidns SearchCloudGtmAddressPools --region cn-hangzhou --PageSize 20 --PageNumber 1

SearchCloudGtmAddresses

命令描述

按照地址名称、备注信息、地址引用的探测模板或地址DI等信息搜索地址列表

语法

aliyun alidns SearchCloudGtmAddresses
    [--AcceptLanguage <string>]
    [--Address <string>]
    [--AddressId <string>]
    [--AvailableStatus <string>]
    [--EnableStatus <string>]
    [--HealthStatus <string>]
    [--MonitorTemplateName <string>]
    [--NameSearchCondition <string>]
    [--Names <array>]
    --PageNumber <int>
    --PageSize <int>
    [--RemarkSearchCondition <string>]
    [--Remarks <array>]
    [--Type <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--Address

String

否

按照服务地址条件精确查询,支持IP地址或者域名

--AddressId

String

否

地址ID,地址唯一标识码

--AvailableStatus

String

否

按照地址可用状态条件精确搜索:
available:可用
unavailable:不可用

--EnableStatus

String

否

按照地址启用状态进行精确查询:
enable:启用状态
disable:禁用状态

--HealthStatus

String

否

按照地址健康状态进行精确查询:
ok:地址引用的健康探测模板探测任务全部正常。
ok_alert:地址引用的健康探测模板探测任务部分异常,地址判定为正常状态。
ok_no_monitor:地址没有引用任何健康探测模板。
exceptional:地址引用的健康探测模板探测任务部分或全部异常,但地址判定为异常状态



--MonitorTemplateName

String

否

健康探测模板名称

--NameSearchCondition

String

否

按地址名称查询时的搜索逻辑(选择地址名称查询时必选参数):
and:展示输入的搜索条件全部命中的查询结果。
or:展示输入的搜索条件部分或全部命中的查询结果

--Names

List

否

地址名称,一般为方便用户区分的名称

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--RemarkSearchCondition

String

否

按地址备注查询时的搜索逻辑(选择地址备注查询时必选参数):
and:展示输入的搜索条件全部命中的查询结果。
or:展示输入的搜索条件部分或全部命中的查询结果

--Remarks

List

否

地址的备注

--Type

String

否

按照地址类型条件精确搜索:
IPv4
IPv6
domain


示例

aliyun alidns SearchCloudGtmAddresses --region cn-hangzhou --PageSize 20 --PageNumber 1

SearchCloudGtmInstanceConfigs

命令描述

根据传入参数搜索实例配置列表

语法

aliyun alidns SearchCloudGtmInstanceConfigs
    [--AcceptLanguage <string>]
    [--AvailableStatus <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [--HealthStatus <string>]
    [--InstanceId <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [--ScheduleDomainName <string>]
    [--ScheduleZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AvailableStatus

String

否

域名实例服务可用状态:
available:可用,域名启用且健康状态为正常,接入域名的服务可用状态为可用。
unavailable:不可用,域名禁用或健康状态为异常,接入域名的服务可用状态为不可用

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

域名实例的启用状态:
enable:启用状态,GTM实例智能调度策略生效。
disable:禁用状态,GTM实例智能调度策略不可用

--HealthStatus

String

否

域名实例健康状态:
ok:正常,接入域名引用的所有地址池全部可用。
ok_alert:警告,接入域名引用的所有地址池部分不可用。警告状态下,可用的地址池正常解析,不可用的地址池停止解析。
exceptional:异常,接入域名引用的所有地址池全部不可用。此时,使用实例所引用的顺序号较小的非空地址池中的地址进行兜底解析,尽可能帮助客户端获得解析结果


--InstanceId

String

否

全局流量管理GTM 3.0实例ID

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

域名实例的备注

--ScheduleDomainName

String

否

GTM接入域名。格式为接入域名主机记录(ScheduleHostname参数值)+主域或子域(ScheduleZoneName参数值)

--ScheduleZoneName

String

否

GTM接入域名的主域(example.com)或子域(a.example.com)。一般为GTM实例所在账号下,在云解析DNS控制台权威解析中托管的域名

示例

aliyun alidns SearchCloudGtmInstanceConfigs --region cn-hangzhou --PageSize 20 --PageNumber 1

SearchCloudGtmInstances

命令描述

根据传入参数搜索实例列表

语法

aliyun alidns SearchCloudGtmInstances
    [--AcceptLanguage <string>]
    [--ChargeType <string>]
    [--ClientToken <string>]
    [--InstanceId <string>]
    [--InstanceName <string>]
    --PageNumber <int>
    --PageSize <int>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值的语言,取值:
zh-CN:中文。
en-US:英文

--ChargeType

String

否

付费类型

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。只支持ASCII字符,且不能超过64个字符。更多信息,请参见如何保证幂等性

--InstanceId

String

否

全局流量管理3.0实例ID

--InstanceName

String

否

调度实例名称,支持模糊搜索

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

示例

aliyun alidns SearchCloudGtmInstances --region cn-hangzhou --PageSize 20 --PageNumber 1

SearchCloudGtmMonitorTemplates

命令描述

查询健康检查模板列表信息

语法

aliyun alidns SearchCloudGtmMonitorTemplates
    [--AcceptLanguage <string>]
    [--IpVersion <string>]
    [--Name <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Protocol <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--IpVersion

String

否

按照探测节点IP地址的类型进行精确搜索:
IPv4:当探测的目标地址类型为IPv4地址时适用。
IPv6:当探测的目标地址类型为IPv6地址时适用

--Name

String

否

健康探测模板的名称,按照输入的关键字进行模糊搜索

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Protocol

String

否

按照探测协议类型进行精确搜索:
ping
tcp
http
https



示例

aliyun alidns SearchCloudGtmMonitorTemplates --region cn-hangzhou --PageSize 20 --PageNumber 1

SearchRecursionRecords

命令描述

搜索HTTPDNS内置权威解析记录

语法

aliyun alidns SearchRecursionRecords
    [--Direction <string>]
    [--EnableStatus <string>]
    [--MaxResults <int>]
    [--NextToken <string>]
    [--OrderBy <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [--RequestSource <string>]
    [--Rr <string>]
    [--Ttl <int>]
    [--Type <string>]
    [--Value <string>]
    [--Weight <int>]
    --ZoneId <string>
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向,asc为生序,dsc为降序

--EnableStatus

String

否

解析记录启用状态,enable:启用,disable:禁用

--MaxResults

Integer

否

本次请求所返回的最大记录条数

--NextToken

String

否

下一个查询开始Token

--OrderBy

String

否

排序方式:
支持rr/type/value/requestSource/weight/ttl/enableStatus

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

备注

--RequestSource

String

否

解析线路,默认为default。参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)

--Rr

String

否

主机记录

--Ttl

Integer

否

本地缓存时间。目前取值仅支持5、30、60、3600(1小时)、43200(12小时)、86400(一天),单位秒(s),默认60

--Type

String

否

解析记录类型,目前支持如下: A:IPV4记录,支持将域名映射到IPv4地址使用 AAAA:IPV6记录,支持将域名映射到IPv6地址使用 CNAME:别名记录,支持将域名指向另外一个域名 MX:电邮交互记录,支持将域名指向邮件服务器地址 TXT:文本记录,是任意可读的文本DNS记录 SRV:服务器资源记录,用来标识某台服务器使用了某个服务,常见于微软系统的目录管理

--Value

String

否

记录值

--Weight

Integer

否

解析记录权重 0-100

--ZoneId

String

是

解析记录对应的ZoneId

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns SearchRecursionRecords --region cn-hangzhou --ZoneId 169438909000011 --PageSize 1 --PageNumber 1

SearchRecursionZones

命令描述

搜索HTTPDNS内置权威域名zone

语法

aliyun alidns SearchRecursionZones
    [--Direction <string>]
    [--EffectiveScopes <array>]
    [--MaxResults <int>]
    [--NextToken <string>]
    [--OrderBy <string>]
    --PageNumber <int>
    --PageSize <int>
    [--Remark <string>]
    [--ZoneName <string>]
    [options]

参数

参数

类型

必填

说明

--Direction

String

否

排序方向
asc:升序
desc:降序

--EffectiveScopes

List

否

生效范围列表

--MaxResults

Integer

否

分批次查询时每次显示的条目数。取值范围:1~100,默认值为20

--NextToken

String

否

下一个查询开始Token

--OrderBy

String

否

排序字段,结果按哪个字段进行排序
UpdateTime:修改时间
RecordCount:解析记录条数

--PageNumber

Integer

是

当前页数,起始值为1,默认为1

--PageSize

Integer

是

分页查询时设置的每页行数,最大值100,默认为20

--Remark

String

否

地址池备注,支持对输入的备注进行模糊搜索

--ZoneName

String

否

域名(Zone)名称

示例

aliyun alidns SearchRecursionZones --region cn-hangzhou --PageSize 5 --PageNumber 1

SetCloudGtmInstanceConfigLogSwitch

命令描述

按需启用或停用全局流量管理(GTM)实例的流量分析功能。
启用后,即可查看该接入域名的解析日志、统计报表,并享受基于异常指标(如解析成功率、QPS 突变等)的智能告警服务,全面提升 GTM 解析的可观测性与运维效率

语法

aliyun alidns SetCloudGtmInstanceConfigLogSwitch
    [--ClientToken <string>]
    --ConfigId <string>
    [--InstanceId <string>]
    --Status <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符。
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样

--ConfigId

String

是

域名实例配置ID,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置。
调用https://help.aliyun.com/document_detail/2797349.html 接口可查询域名实例对应的 ConfigId 值

--InstanceId

String

否

全局流量管理GTM 3.0实例ID

--Status

String

是

实例启用流量分析的状态:
enable:开启,设置启用当前接入域名的流量分析;
disable:关闭,设置关闭当前接入域名的流量分析;

示例

aliyun alidns SetCloudGtmInstanceConfigLogSwitch --region cn-hangzhou --Status enable_disable --ConfigId 'Config-0000000'

SetDNSSLBStatus

命令描述

根据传入参数开启关闭权重配置

语法

aliyun alidns SetDNSSLBStatus
    [--DomainName <string>]
    [--Lang <string>]
    [--Line <string>]
    [--Open <bool>]
    --SubDomain <string>
    [--Type <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

否

域名名称

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--Line

String

否

解析线路:例如默认、电信、移动等

--Open

Boolean

否

是否开启权重配置。取值:
true(默认):开启
false:关闭

--SubDomain

String

是

需要权重配置的子域名,其中example.com为主域名是错误参数,请使用@.example.com

--Type

String

否

记录类型,取值范围:A、AAAA,默认为A

--UserClientIp

String

否

用户IP

示例

aliyun alidns SetDNSSLBStatus --region cn-hangzhou --SubDomain 'www.example.com'

SetDnsGtmAccessMode

命令描述

调整生效地址池访问策略

语法

aliyun alidns SetDnsGtmAccessMode
    --AccessMode <string>
    [--Lang <string>]
    --StrategyId <string>
    [options]

参数

参数

类型

必填

说明

--AccessMode

String

是

地址池集合切换策略:
AUTO: 自动切换
DEFAULT:主地址池集合
FAILOVER: 备地址池集合


--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--StrategyId

String

是

策略Id。可通过调用https://help.aliyun.com/document_detail/2357191.html获取

示例

aliyun alidns SetDnsGtmAccessMode --region cn-hangzhou --StrategyId hr00zb --AccessMode AUTO

SetDnsGtmMonitorStatus

命令描述

设置地址池健康检查状态

语法

aliyun alidns SetDnsGtmMonitorStatus
    [--Lang <string>]
    --MonitorConfigId <string>
    --Status <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--MonitorConfigId

String

是

健康检查配置id。可通过调用DescribeDnsGtmInstanceAddressPool (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstanceaddresspool?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_9_6.7db77000nMCPI1)获取

--Status

String

是

开启状态:
OPEN:开启
CLOSE:关闭

示例

aliyun alidns SetDnsGtmMonitorStatus --region cn-hangzhou --Status OPEN --MonitorConfigId Monito00000

SetDomainDnssecStatus

命令描述

开启/关闭域名的DNSSEC服务,仅支持付费版DNS用户

语法

aliyun alidns SetDomainDnssecStatus
    --DomainName <string>
    [--Lang <string>]
    --Status <string>
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

要开启DNSSEC服务的DNS域名,仅支持付费版DNS用户

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--Status

String

是

Dnssec状态:
ON 开启
OFF 关闭

示例

aliyun alidns SetDomainDnssecStatus --region cn-hangzhou --Status ON --DomainName 'example.com'

SetDomainRecordStatus

命令描述

根据传入参数设置解析记录状态

语法

aliyun alidns SetDomainRecordStatus
    [--Lang <string>]
    --RecordId <string>
    --Status <string>
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--RecordId

String

是

解析记录的ID。可通过调取DescribeDomainRecords (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomainrecords?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取。

--Status

String

是

解析记录状态。取值:
Enable: 启用解析
Disable: 暂停解析

--UserClientIp

String

否

用户端IP

示例

aliyun alidns SetDomainRecordStatus --region cn-hangzhou --Status Disable --RecordId 900000000

SetGtmAccessMode

命令描述

根据传入参数修改生效地址池切换策略

语法

aliyun alidns SetGtmAccessMode
    --AccessMode <string>
    [--Lang <string>]
    --StrategyId <string>
    [options]

参数

参数

类型

必填

说明

--AccessMode

String

是

目标访问策略。取值:
AUTO: 自动切换
DEFAULT:主地址池集合
FAILOVER: 备地址池集合


--Lang

String

否

语言

--StrategyId

String

是

访问策略ID

示例

aliyun alidns SetGtmAccessMode --region cn-hangzhou --StrategyId hra0hx --AccessMode AUTO

SetGtmMonitorStatus

命令描述

设置地址池健康检查状态

语法

aliyun alidns SetGtmMonitorStatus
    [--Lang <string>]
    --MonitorConfigId <string>
    --Status <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

语言

--MonitorConfigId

String

是

健康检查配置ID

--Status

String

是

开启状态。取值:
OPEN:开启
CLOSE:关闭

示例

aliyun alidns SetGtmMonitorStatus --region cn-hangzhou --Status OPEN --MonitorConfigId abc1234

SubmitAtiAgentRegisterInfo

命令描述

提交Agent注册信息

语法

aliyun alidns SubmitAtiAgentRegisterInfo
    --AgentRegisterInfoId <string>
    [--ClientToken <string>]
    --IdentityCsr <string>
    --ServerCertPem <string>
    [options]

参数

参数

类型

必填

说明

--AgentRegisterInfoId

String

是

Agent注册ID。由阿里云 ATS 平台自动生成,在阿里云 ATS 平台具有全局唯一性。在 Agent 注册过程中自动生成,通过API注册、查询流程中,该 ID 必须全程携带,需调用接口 ListAtiAgentRegisterInfos 查询目标Agent后从应答内容获取AgentRegisterInfoId

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

--IdentityCsr

String

是

身份证书CSR请求。可以参考ATS控制台 注册agent 第三步 提供的身份证书CSR请求指导命令生成

--ServerCertPem

String

是

服务器证书,即注册Agent使用域名(主机地址)对应的证书

示例

aliyun alidns SubmitAtiAgentRegisterInfo --region cn-hangzhou --ServerCertPem 'example-string' --AgentRegisterInfoId 2074753647748672512 --IdentityCsr 'example-string'

SubmitIspFlushCacheTask

命令描述

提交缓存刷新任务

语法

aliyun alidns SubmitIspFlushCacheTask
    --ClientToken <string>
    --DomainName <string>
    --Isp <array>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

是

用于防止重复提交的幂等标识

--DomainName

String

是

需要刷新缓存的域名

--Isp

List

是

要刷新的运营商列表,当前支持 TELECOM(电信)

--Lang

String

否

返回信息的语言,zh 为中文,en 为英文

示例

aliyun alidns SubmitIspFlushCacheTask --region cn-hangzhou --Isp.1 'example-string' --DomainName 'example-string' --ClientToken 'example-string'

SwitchDnsGtmInstanceStrategyMode

命令描述

通过实例ID切换访问策略类型

语法

aliyun alidns SwitchDnsGtmInstanceStrategyMode
    --InstanceId <string>
    [--Lang <string>]
    --StrategyMode <string>
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

实例id。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--StrategyMode

String

是

访问策略模式:
GEO:基于地理位置
LATENCY:基于延时

示例

aliyun alidns SwitchDnsGtmInstanceStrategyMode --region cn-hangzhou --InstanceId 'gtm-cn-cs02xyk4a00' --StrategyMode GEO

TagResources

命令描述

通过进行添加、修改资源的标签

语法

aliyun alidns TagResources
    [--Lang <string>]
    --ResourceId <array>
    --ResourceType <string>
    --Tag <array>
    [--Tag.#.Key <string>]
    [--Tag.#.Value <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--ResourceId

List

是

资源id

--ResourceType

String

是

资源类型。取值:
DOMAIN:域名

--Tag

List

是

标签键值对数组

  • 列表项:

    • 类型:object

--Tag.#.Key

String

否

标签键。不能以acs:或aliyun开头,长度不能超过20字节

--Tag.#.Value

String

否

标签值。长度不能超过20字节

示例

aliyun alidns TagResources --region cn-hangzhou --ResourceId.1 'example.com' --Tag.1.Key abcd --Tag.1.Value abcd --ResourceType DOMAIN

TransferDomain

命令描述

根据传入参数批量跨账号转移DNS权限至目标账户

语法

aliyun alidns TransferDomain
    --DomainNames <string>
    [--Lang <string>]
    [--Remark <string>]
    --TargetUserId <int>
    [options]

参数

参数

类型

必填

说明

--DomainNames

String

是

域名列表,英文逗号隔开;仅支持阿里云注册的域名。域名名称可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

请求值,返回值语言,取值:
zh:中文
en:英文
默认:zh


--Remark

String

否

备注

--TargetUserId

Integer

是

将云解析列表中的域名和解析记录转移到目标用户ID下

示例

aliyun alidns TransferDomain --region cn-hangzhou --DomainNames 'example.com,example.net' --TargetUserId 120000000

UnbindInstanceDomains

命令描述

根据实例ID解绑付费版DNS的域名

语法

aliyun alidns UnbindInstanceDomains
    --DomainNames <string>
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--DomainNames

String

是

域名列表。
使用英文“ , ”号隔开多个域名,最多100个域名。域名名称可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--InstanceId

String

是

权威域名产品实例ID。可通过调用ListCloudGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-listcloudgtminstances?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

示例

aliyun alidns UnbindInstanceDomains --region cn-hangzhou --InstanceId 'dns-cn-9lb38ldq900' --DomainNames 'example.com,example.net'

UntagResources

命令描述

进行删除资源的标签

语法

aliyun alidns UntagResources
    [--All <bool>]
    [--Lang <string>]
    --ResourceId <array>
    --ResourceType <string>
    [--TagKey <array>]
    [options]

参数

参数

类型

必填

说明

--All

Boolean

否

是否全部删除,默认是false。只针对tagkey数组为空时有效。取值范围:-true-false

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--ResourceId

List

是

资源id

--ResourceType

String

是

资源类型。取值:
DOMAIN:域名

--TagKey

List

否

标签数组

示例

aliyun alidns UntagResources --region cn-hangzhou --ResourceId.1 'example.com' --ResourceType DOMAIN

UpdateAppKeyState

命令描述

修改 AppKey 状态

语法

aliyun alidns UpdateAppKeyState
    [--AppKeyId <string>]
    [--Lang <string>]
    [--State <string>]
    [options]

参数

参数

类型

必填

说明

--AppKeyId

String

否

要查询或操作的公共 DNS AppKey 标识

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

--State

String

否

AppKey 目标状态:OPENED 表示开启,CLOSED 表示关闭

示例

aliyun alidns UpdateAppKeyState --region cn-hangzhou --State 'example-string' --Lang 'example-string' --AppKeyId 'example-string'

UpdateAtiAgentRegisterInfo

命令描述

更新Agent注册信息

语法

aliyun alidns UpdateAtiAgentRegisterInfo
    [--AgentDescription <string>]
    [--AgentDisplayName <string>]
    [--AgentHost <string>]
    [--AgentRegisterInfoId <string>]
    [--AgentSubHost <string>]
    [--AgentVersion <string>]
    [--ClientToken <string>]
    [--DomainMode <string>]
    [--Endpoints <array>]
    [--RegistrantId <string>]
    [options]

参数

参数

类型

必填

说明

--AgentDescription

String

否

Agent 能力描述

--AgentDisplayName

String

否

Agent显示名称

--AgentHost

String

否

Agent主机地址

--AgentRegisterInfoId

String

否

AgentRegisterInfoId Agent注册ID。由阿里云 ATS 平台自动生成,在阿里云 ATS 平台具有全局唯一性。在 Agent 注册过程中自动生成,通过API注册、查询流程中,该 ID 必须全程携带,需调用接口 ListAtiAgentRegisterInfos 查询目标Agent后从应答内容获取AgentRegisterInfoId

--AgentSubHost

String

否

Agent 端点子域名。仅共享域名模式需要,用于在共享的父域名下唯一标识 Agent

--AgentVersion

String

否

Agent版本

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

--DomainMode

String

否

Agent 域名模式,用于确定访问主机名与身份主机名的关系。独立域名模式下两者相同;共享域名模式下需使用额外的子域名作为身份主机名

--Endpoints

List

否

各个协议的接入点

--RegistrantId

String

否

实名认证注册人 ID

示例

aliyun alidns UpdateAtiAgentRegisterInfo --region cn-hangzhou --Endpoints '[{"AgentUrl":"https://my-agent.example.com/mcp","Transports":["STREAMABLE-HTTP"],"Protocol":"mcp","MetadataUrl":"//_https://my-agent.example.com/.well-known/agent.json_name_:_智能客服助手_,_version_:_1.2.0_,_protocol_:_MCP_,_description_:_提供产品咨询、订单查询、售后服务的智能客服Agent_,_capabilities_:_tools_:_name_:_order_query_,_description_:_查询订单状态_,_name_:_product_search_,_description_:_搜索产品信息_,_name_:_refund_request_,_description_:_发起退款申请_,_resources_:_uri_:_faq://knowledge-base_,_description_:_FAQ知识库_,_endpoint_:_url_:_https://my-agent.example.com/mcp_,_transport_:_STREAMABLE-HTTP_,_SSE_,_policy_:_authentication_:_mTLS_,_rateLimit_:_100/min"}]' --AgentRegisterInfoId 2074753647748672512 --AgentHost 'example.com' --AgentVersion '1.0.0' --AgentDisplayName '测试Agent' --RegistrantId 2072277378616354816 --AgentDescription '支付服务' --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....' --DomainMode 'example-string' --AgentSubHost 'example-string'

UpdateAtiAlertSettings

命令描述

更新告警设置

语法

aliyun alidns UpdateAtiAlertSettings
    [--AlertConfig <string>]
    [--AlertGroup <string>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AlertConfig

String

否

报警配置列表

--AlertGroup

String

否

告警通知组列表

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

示例

aliyun alidns UpdateAtiAlertSettings --region cn-hangzhou --AlertGroup '云账号报警联系人' --AlertConfig 'NoticeType_:_identity_cert_expiring_,_SmsNotice_:true,_EmailNotice_:true,_DingtalkNotice_:true_,_NoticeType_:_server_cert_expiring_,_SmsNotice_:true,_EmailNotice_:true,_DingtalkNotice_:true' --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....'

UpdateAtiRegistrant

命令描述

修改实名注册人

语法

aliyun alidns UpdateAtiRegistrant
    [--Cc <string>]
    [--City <string>]
    [--ClientToken <string>]
    [--DocumentCode <string>]
    [--DocumentImage <string>]
    [--DocumentType <string>]
    [--Email <string>]
    [--Name <string>]
    [--Phone <string>]
    [--RegistrantId <string>]
    [--State <string>]
    [--Street <string>]
    [options]

参数

参数

类型

必填

说明

--Cc

String

否

国家

--City

String

否

市

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

--DocumentCode

String

否

注册者证件号码。长度不超过50字符

--DocumentImage

String

否

注册者证件图片(base64)。原文件大小为 50KB-3MB

--DocumentType

String

否

注册者证件类型。详见附录证件类型

--Email

String

否

电子邮箱。长度不超过 300 字符

--Name

String

否

注册者名称。长度不超过 255 字符

--Phone

String

否

注册者联系电话。长度不超过 128 字符。所属国家是中国的,非手机号码区号需与所在市匹配

--RegistrantId

String

否

实名认证注册人 ID

--State

String

否

城市

--Street

String

否

街道

示例

aliyun alidns UpdateAtiRegistrant --region cn-hangzhou --Cc '中国' --Email 'example@example.com' --State '浙江省' --Phone 13112345678 --DocumentImage '证件图片' --DocumentType SFZ --Street 'xx区xx街道' --RegistrantId 2072277378616354816 --City '杭州市' --ClientToken 'eyJhbGciOiJIUzI1NiIsInR5cC.....' --DocumentCode 11011239900307663x --Name '张xx'

UpdateCloudGtmAddress

命令描述

调用 UpdateCloudGtmAddress 修改指定地址基础配置

语法

aliyun alidns UpdateCloudGtmAddress
    [--AcceptLanguage <string>]
    [--Address <string>]
    --AddressId <string>
    [--AttributeInfo <string>]
    [--ClientToken <string>]
    [--HealthJudgement <string>]
    [--HealthTasks <array>]
    [--Name <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认):英文

--Address

String

否

修改后的IP地址或者域名

--AddressId

String

是

地址的ID,地址唯一标识码

--AttributeInfo

String

否

地址归属信息

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--HealthJudgement

String

否

修改后的地址健康状态判定条件:
any_ok:所有探测模板至少一个探测正常。
p30_ok:所有探测模板至少30%探测正常。
p50_ok:所有探测模板至少50%探测正常。
p70_ok:所有探测模板至少70%探测正常。
all_ok:所有探测模板全部探测正常




--HealthTasks

List

否

健康探测任务列表

--Name

String

否

修改后的地址名称

示例

aliyun alidns UpdateCloudGtmAddress --region cn-hangzhou --AddressId 'addr-895182181143680000'

UpdateCloudGtmAddressEnableStatus

命令描述

根据传入参数修改地址启用状态

语法

aliyun alidns UpdateCloudGtmAddressEnableStatus
    [--AcceptLanguage <string>]
    --AddressId <string>
    [--ClientToken <string>]
    --EnableStatus <string>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US:英文

--AddressId

String

是

地址的ID,地址唯一标识码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

是

地址启用状态:
enable:启用,当前地址健康检查正常的情况下可参与解析。
disable: 禁用,当前地址不管健康检查是否正常,均不可参与解析

示例

aliyun alidns UpdateCloudGtmAddressEnableStatus --region cn-hangzhou --EnableStatus enable --AddressId 'addr-895182181143680000'

UpdateCloudGtmAddressManualAvailableStatus

命令描述

根据传入参数修改地址探测异常切换方式

语法

aliyun alidns UpdateCloudGtmAddressManualAvailableStatus
    [--AcceptLanguage <string>]
    --AddressId <string>
    [--AvailableMode <string>]
    [--ClientToken <string>]
    [--ManualAvailableStatus <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressId

String

是

地址的ID,地址唯一标识码

--AvailableMode

String

否

地址探测异常切换方式:
auto:自动模式(根据健康检查探测结果确定,探测异常停止解析,探测正常恢复解析)。
manual:手动模式(异常状态下停止解析,健康检查正常也不会恢复解析;正常状态下恢复解析,健康检查异常也只是告警,但不会停止解析)

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ManualAvailableStatus

String

否

当地址探测异常切换模式为manual时,地址设置的可用状态:
available:正常,此状态下该地址正常解析,健康检查异常也只是告警,但不会停止解析。
unavailable:异常,此状态下停止解析,健康检查正常也不会恢复解析

示例

aliyun alidns UpdateCloudGtmAddressManualAvailableStatus --region cn-hangzhou --AddressId 'addr-895182181143680000'

UpdateCloudGtmAddressPoolBasicConfig

命令描述

根据传入参数修改地址池基础配置

语法

aliyun alidns UpdateCloudGtmAddressPoolBasicConfig
    [--AcceptLanguage <string>]
    [--AddressPoolId <string>]
    [--AddressPoolName <string>]
    [--ClientToken <string>]
    [--HealthJudgement <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressPoolId

String

否

地址池ID,地址池的唯一识别码

--AddressPoolName

String

否

地址池名称,方便用户区分地址池的用途

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--HealthJudgement

String

否

地址池健康状态判定条件:
any_ok:地址池内至少1个地址是可用地址。
p30_ok:地址池内至少30%地址是可用地址。
p50_ok:地址池内至少50%地址是可用地址。
p70_ok:地址池内至少70%地址是可用地址。
all_ok:地址池内地址全部可用




示例

aliyun alidns UpdateCloudGtmAddressPoolBasicConfig --region cn-hangzhou --AddressPoolName app --AddressPoolId 'pool-895280232254420000' --HealthJudgement any_ok --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

UpdateCloudGtmAddressPoolEnableStatus

命令描述

根据传入参数修改地址池启用状态

语法

aliyun alidns UpdateCloudGtmAddressPoolEnableStatus
    [--AcceptLanguage <string>]
    [--AddressPoolId <string>]
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressPoolId

String

否

地址池的ID,地址池的唯一识别码

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--EnableStatus

String

否

地址池的启用状态:
enable:启用,当前地址池在健康检查正常的情况下可参与解析。
disable: 禁用,当前地址池不管健康检查是否正常,均不可参与解析

示例

aliyun alidns UpdateCloudGtmAddressPoolEnableStatus --region cn-hangzhou --AddressPoolId 'pool-895280232254420000' --EnableStatus enable --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

UpdateCloudGtmAddressPoolLbStrategy

命令描述

根据传入参数修改地址池负载均衡策略

语法

aliyun alidns UpdateCloudGtmAddressPoolLbStrategy
    [--AcceptLanguage <string>]
    [--AddressLbStrategy <string>]
    [--AddressPoolId <string>]
    [--ClientToken <string>]
    [--SequenceLbStrategyMode <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressLbStrategy

String

否

地址池中地址间负载均衡策略:
round_robin:轮询,对于任何来源的解析请求,返回所有地址。并且每次对于所有地址进行轮转排序。
sequence:顺序,对于任何来源的解析请求,返回顺序号较小的地址(顺序号标识地址返回的优先级,越小优先级越高)。若顺序号较小的地址不可用时,返回下一个序号较小的地址。
weight:权重,支持对每个地址设置不同的权重值,实现解析查询按照权重比例返回地址。
source_nearest:来源就近,即智能解析功能,GTM可以根据不同的解析请求来源返回不同的地址,实现用户就近访问的效果



--AddressPoolId

String

否

地址池ID,地址池的唯一识别码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--SequenceLbStrategyMode

String

否

地址间负载均衡策略取值为sequence(顺序模式)时,前序资源异常恢复服务模式:
preemptive:抢占模式,前序资源恢复,优先使用顺序号较小的地址。
non_preemptive:非抢占模式,前序资源恢复,仍然使用当前地址

示例

aliyun alidns UpdateCloudGtmAddressPoolLbStrategy --region cn-hangzhou --AddressPoolId 'pool-895280232254420000' --AddressLbStrategy sequence --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000' --SequenceLbStrategyMode preemptive

UpdateCloudGtmAddressPoolRemark

命令描述

根据传入参数修改地址池备注信息

语法

aliyun alidns UpdateCloudGtmAddressPoolRemark
    [--AcceptLanguage <string>]
    [--AddressPoolId <string>]
    [--ClientToken <string>]
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--AddressPoolId

String

否

地址池的ID,地址池的唯一识别码

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--Remark

String

否

传入的参数作为更新后的备注,传空值则删除备注

示例

aliyun alidns UpdateCloudGtmAddressPoolRemark --region cn-hangzhou --AddressPoolId 'pool-895280232254420000' --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000' --Remark test

UpdateCloudGtmAddressRemark

命令描述

通过地址的 ID修改地址备注信息

语法

aliyun alidns UpdateCloudGtmAddressRemark
    [--AcceptLanguage <string>]
    --AddressId <string>
    [--ClientToken <string>]
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认):英文

--AddressId

String

是

地址的ID,地址唯一标识码

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--Remark

String

否

传入的参数作为更新后的备注,传空值则删除备注

示例

aliyun alidns UpdateCloudGtmAddressRemark --region cn-hangzhou --AddressId 'addr-895182181143680000'

UpdateCloudGtmGlobalAlert

命令描述

更新全局流量管理告警设置

语法

aliyun alidns UpdateCloudGtmGlobalAlert
    [--AcceptLanguage <string>]
    [--AlertConfig <array>]
    [--AlertGroup <array>]
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US:英文

--AlertConfig

List

否

报警配置列表

--AlertGroup

List

否

告警通知组列表

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

示例

aliyun alidns UpdateCloudGtmGlobalAlert --region cn-hangzhou --AlertGroup '["云账号报警联系人"]' --AlertConfig '[{"QpsThreshold":10,"EmailNotice":true,"NoticeType":"addr_alert","SmsNotice":true,"DingtalkNotice":false,"Threshold":100}]' --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240022'

UpdateCloudGtmInstanceConfigAlert

命令描述

更新实例的告警配置

语法

aliyun alidns UpdateCloudGtmInstanceConfigAlert
    [--AcceptLanguage <string>]
    [--AlertConfig <array>]
    [--AlertGroup <array>]
    [--AlertMode <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回信息的语言类型:
zh-CN:中文
en-US:英文

--AlertConfig

List

否

报警配置列表

--AlertGroup

List

否

告警通知组列表

--AlertMode

String

否

实例告警配置模式:
global:继承全局报警配置,即实例采用全局告警配置
instance_config:自定义报警配置

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置id,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置

--InstanceId

String

否

全局流量管理3.0实例id

示例

aliyun alidns UpdateCloudGtmInstanceConfigAlert --region cn-hangzhou --AlertGroup '["云账号报警联系人"]' --AlertConfig '[{"EmailNotice":true,"NoticeType":"addr_alert","SmsNotice":true,"DingtalkNotice":true}]' --InstanceId 'gtm-cn-zz11t58000s' --AcceptLanguage 'zh-CN' --ConfigId 'Config-0000011' --AlertMode global --ClientToken '1ae05db4-10e7-11ef-b126-00163e240022'

UpdateCloudGtmInstanceConfigBasic

命令描述

根据传入参数更新GTM3.0 实例全局TTL配置

语法

aliyun alidns UpdateCloudGtmInstanceConfigBasic
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [--ScheduleHostname <string>]
    [--ScheduleZoneName <string>]
    [--Ttl <int>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置ID,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置。标识本次修改的配置对象。
调用[ListCloudGtmInstanceConfigs](~~ListCloudGtmInstanceConfigs~~)接口可查询域名实例对应的ConfigId值

--InstanceId

String

否

需要修改的GTM 3.0实例ID

--ScheduleHostname

String

否

GTM接入域名的主机记录

--ScheduleZoneName

String

否

GTM接入域名的主域(example.com)或子域(a.example.com)。一般为GTM实例所在账号下,在云解析DNS控制台权威解析中托管的域名

--Ttl

Integer

否

全局TTL(单位:秒),接入域名解析到地址池中地址的TTL值,影响解析记录在运营商LocalDNS中的缓存时间

示例

aliyun alidns UpdateCloudGtmInstanceConfigBasic --region cn-hangzhou --ScheduleZoneName 'example.com' --InstanceId 'gtm-cn-wwo3a3h0000' --ScheduleHostname www --AcceptLanguage 'en-US' --ConfigId 'Config-0000000' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000' --Ttl 60

UpdateCloudGtmInstanceConfigEnableStatus

命令描述

根据传入参数更新实例启动状态

语法

aliyun alidns UpdateCloudGtmInstanceConfigEnableStatus
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--EnableStatus <string>]
    [--InstanceId <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置ID,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识域名实例配置。
调用[ListCloudGtmInstanceConfigs]( ~~2797349~~)接口可查询域名实例对应的 ConfigId 值

--EnableStatus

String

否

域名实例的启用状态:
enable:启用。
disable:禁用

--InstanceId

String

否

需要修改的GTM 3.0实例 ID

示例

aliyun alidns UpdateCloudGtmInstanceConfigEnableStatus --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3h0000' --EnableStatus enable --AcceptLanguage 'zh-CN' --ConfigId 'Config-0000000' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000'

UpdateCloudGtmInstanceConfigLbStrategy

命令描述

根据传入参数更新实例负载均衡策略

语法

aliyun alidns UpdateCloudGtmInstanceConfigLbStrategy
    [--AcceptLanguage <string>]
    [--AddressPoolLbStrategy <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [--SequenceLbStrategyMode <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--AddressPoolLbStrategy

String

否

修改后的地址池之间的负载均衡策略:
round_robin:轮询,对于任何来源的解析请求,返回所有地址池。并且每次对于所有地址池进行轮转排序。
sequence:顺序,对于任何来源的解析请求,返回顺序号较小的地址池(顺序号标识地址池返回的优先级,越小优先级越高)。若顺序号较小的地址池不可用时,返回下一个序号较小的地址池。
weight:权重,支持对每个地址池设置不同的权重值,实现解析查询按照权重比例返回地址池。
source_nearest:来源就近,即智能解析功能,GTM可以根据不同的解析请求来源返回不同的地址池,实现用户就近访问的效果



--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置ID,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识本次需要修改的域名实例配置。
调用 https://help.aliyun.com/document_detail/2797349.html 接口可查询域名实例对应的 ConfigId 值

--InstanceId

String

否

需要修改的GTM 3.0实例 ID

--SequenceLbStrategyMode

String

否

地址池间负载均衡策略为顺序模式时,前序资源异常恢复服务模式:
preemptive:抢占模式,前序资源恢复,优先使用顺序号较小的地址池。
non_preemptive:非抢占模式,前序资源恢复,仍然使用当前地址池

示例

aliyun alidns UpdateCloudGtmInstanceConfigLbStrategy --region cn-hangzhou --AddressPoolLbStrategy sequence --InstanceId 'gtm-cn-wwo3a3h000' --AcceptLanguage 'en-US' --ConfigId 'Config-0000000' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000' --SequenceLbStrategyMode preemptive

UpdateCloudGtmInstanceConfigRemark

命令描述

根据传入的参数更新实例备注信息

语法

aliyun alidns UpdateCloudGtmInstanceConfigRemark
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--ConfigId <string>]
    [--InstanceId <string>]
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回值语言,取值:
zh-CN:中文。
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ConfigId

String

否

域名实例配置ID,相同接入域名、相同的GTM实例可以同时配置A和AAAA记录,此情况下相同的GTM实例会出现2个域名实例配置,ConfigId可以唯一标识本次需要修改的域名实例配置。
调用https://help.aliyun.com/document_detail/2797349.html 接口可查询域名实例对应的 ConfigId 值

--InstanceId

String

否

需要修改备注信息的全局流量管理GTM3.0实例ID

--Remark

String

否

备注,传入参数即为更新后的目标备注内容

示例

aliyun alidns UpdateCloudGtmInstanceConfigRemark --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3h0000' --AcceptLanguage 'en-US' --ConfigId 'Config-0000000' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240000' --Remark API

UpdateCloudGtmInstanceName

命令描述

修改实例名称

语法

aliyun alidns UpdateCloudGtmInstanceName
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--InstanceId <string>]
    [--InstanceName <string>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US:英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。该参数值可自定义,但是要保证在不同请求间唯一,最大值不超过64个ASCII字符

--InstanceId

String

否

GTM实例ID

--InstanceName

String

否

实例名称,不可传入空值

示例

aliyun alidns UpdateCloudGtmInstanceName --region cn-hangzhou --InstanceName test --InstanceId 'gtm-cn-jmp3qnw0003' --AcceptLanguage 'en-US' --ClientToken '1ae05db4-10e7-11ef-b126-00163e240022'

UpdateCloudGtmMonitorTemplate

命令描述

根据传入参数修改探测模板信息

语法

aliyun alidns UpdateCloudGtmMonitorTemplate
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--EvaluationCount <int>]
    [--ExtendInfo <string>]
    [--FailureRate <int>]
    [--Interval <int>]
    [--IspCityNodes <array>]
    [--Name <string>]
    --TemplateId <string>
    [--Timeout <int>]
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US(默认值):英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EvaluationCount

Integer

否

重试次数,连续多次监控出现异常,系统才将应用服务判断为异常,以防止因为一些网络瞬间抖动等其他原因影响监控准确率。重试次数可选值为:
1
2
3


--ExtendInfo

String

否

Json 字符串扩展信息,各协议检查所需参数:
http(s):
host:执行HTTP(S)监控时,指定HTTP(S)请求头部信息中携带的Host字段,用于标识需要访问的具体HTTP网站,默认为主域名,如果目标网站的host有特殊要求,请自行修改;
path:HTTP路径,用户HTTP(S)健康检查的URL路径配置,系统默认填写“/”;
code:当执行HTTP(S)监控时,根据Web服务器的返回码判断Web服务器是否正常工作,大于返回码报警阈值时,系统认为应用服务出现异常:
400:Bad Request,即如果HTTP(S)请求携带了错误的请求参数,Web服务器将返回大于400的返回码,如果校验内容设置为“异常码大于400”,请务必在URL路径中填写精确的URL访问路径参数;
500:Server Error,即如果Web服务器出现了某些异常,将返回大于500的异常码,系统默认使用大于500的异常码作为报警阈值;
sni:是否开启sni,仅在HTTPS协议时使用。SNI(Server Name Indication)是TLS协议的一个扩展,它允许客户端在发起TLS握手时指定想要连接的主机名。由于TLS握手发生在HTTP请求的任何数据被发送之前,SNI允许服务器在发送证书之前知道客户端试图访问的服务,这使得服务器可以选择正确的证书来呈现给客户端。
- true-开启
false-未开启
followRedirect:是否跟随3XX重定向
true:监控点获取的状态码为3XX (301,302,303, 307,308) 时,跟随跳转;
false:不跳转;
ping:
packetNum:每次Ping监控,同时发出多少个ICMP数据包,可选20、50、100
packetLossRate:异常时丢包率,每次ping监控,对发出的ICMP数据包,计算丢包率(%)。丢包率=(丢失数据包/发送的总ICMP数据包数目)* 100%,达到丢包率阈值时,异常报警。丢包率可选值为:10、30、40、80、90、100














--FailureRate

Integer

否

所选节点探测失败比例(%),即健康检查异常的探测点占探测点总数的百分比,当失败比例超过设置的阈值时,将服务地址判断为异常。可设置的失败比例阈值为:
20
50
80
100



--Interval

Integer

否

每次健康探测的时间间隔(秒),默认每间隔1分钟探测一次,健康检查间隔最小支持15秒(面向旗舰版实例开放)

--IspCityNodes

List

否

探测节点列表,具体信息可通过调用 https://help.aliyun.com/document_detail/2797327.html获取

--Name

String

否

健康检查探测模板的名称,一般为了方便配置人员区分和记忆,建议名称可以区分健康检查协议

--TemplateId

String

是

需要修改的健康探测模板ID,唯一标识健康探测模板

--Timeout

Integer

否

探测超时时间(毫秒),大于超时时间未返回的数据包即判断为健康检查超时:
2000
3000
5000
10000



示例

aliyun alidns UpdateCloudGtmMonitorTemplate --region cn-hangzhou --TemplateId 'mtp-895180524251000000'

UpdateCloudGtmMonitorTemplateRemark

命令描述

修改健康探测模板备注

语法

aliyun alidns UpdateCloudGtmMonitorTemplateRemark
    [--AcceptLanguage <string>]
    [--ClientToken <string>]
    [--Remark <string>]
    --TemplateId <string>
    [options]

参数

参数

类型

必填

说明

--AcceptLanguage

String

否

返回结果显示的语言。取值:
zh-CN:中文
en-US:英文

--ClientToken

String

否

用户生成的请求token。用于保证请求的幂等性。注意 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--Remark

String

否

填写更新后的备注,传空值则删除备注

--TemplateId

String

是

健康探测模板ID,唯一标识健康探测模板

示例

aliyun alidns UpdateCloudGtmMonitorTemplateRemark --region cn-hangzhou --TemplateId 'mtp-895180524559280000'

UpdateCustomLine

命令描述

通过自定义线路唯一ID编辑自定义线路

语法

aliyun alidns UpdateCustomLine
    [--IpSegment.#.EndIp <string>]
    [--IpSegment.#.StartIp <string>]
    [--Lang <string>]
    --LineId <int>
    --LineName <string>
    [options]

参数

参数

类型

必填

说明

--IpSegment

List

否

IP段列表。IP与IP之间用中横线“-”间隔; 每行一个IP段,最少1行最多50行;只有一个IP填写IP1-IP1,不同IP段不能交叉

  • 列表项:

    • 类型:object

--IpSegment.#.EndIp

String

否

IP段的结束IP

--IpSegment.#.StartIp

String

否

IP段的开始IP

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--LineId

Integer

是

自定义线路唯一ID。可通过调用https://help.aliyun.com/document_detail/2355671.html获取

--LineName

String

是

自定义线路名称,长度限制为1-20个字符,允许包含中文、字母、数字、'-'、'_'这些字符

示例

aliyun alidns UpdateCustomLine --region cn-hangzhou --LineId 10000000

UpdateDNSSLBWeight

命令描述

根据传入参数修改解析记录的权重

语法

aliyun alidns UpdateDNSSLBWeight
    [--Lang <string>]
    --RecordId <string>
    [--UserClientIp <string>]
    --Weight <int>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--RecordId

String

是

解析记录ID。可通过调取DescribeDomainRecords (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomainrecords?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取。

--UserClientIp

String

否

用户IP

--Weight

Integer

是

要修改的权重值[1-100]

示例

aliyun alidns UpdateDNSSLBWeight --region cn-hangzhou --RecordId 900000000 --Weight 2

UpdateDnsCacheDomain

命令描述

根据传入参数更新 DNS 权威代理域名

语法

aliyun alidns UpdateDnsCacheDomain
    --CacheTtlMax <int>
    --CacheTtlMin <int>
    --DomainName <string>
    --InstanceId <string>
    [--Lang <string>]
    [--SourceDnsServer.#.Host <string>]
    [--SourceDnsServer.#.Port <string>]
    --SourceEdns <string>
    --SourceProtocol <string>
    [options]

参数

参数

类型

必填

说明

--CacheTtlMax

Integer

是

回源缓存数据TTL(最大值),取值范围为30 - 86400

  • 约束:

    • 最大值:86400

    • 最小值:30

--CacheTtlMin

Integer

是

回源缓存数据TTL(最小值),取值范围为30 - 86400

  • 约束:

    • 最大值:86400

    • 最小值:30

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--InstanceId

String

是

权威代理域名实例ID。可通过调用ListCloudGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-listcloudgtminstances?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh:中文
en:英文
默认为zh


--SourceDnsServer

List

否

源站DNS服务器列表,最多支持添加10条记录

  • 列表项:

    • 类型:object

--SourceDnsServer.#.Host

String

否

源站服务器的域名或IP地址

--SourceDnsServer.#.Port

String

否

源站DNS服务器端口

--SourceEdns

String

是

源站是否支持edns。
NOT_SUPPORT:不支持,SUPPORT:支持

--SourceProtocol

String

是

回源协议,TCP、UDP,默认值为UDP

示例

aliyun alidns UpdateDnsCacheDomain --region cn-hangzhou --DomainName 'example.com'

UpdateDnsCacheDomainRemark

命令描述

更新目标域名的DNS 权威代理域名备注

语法

aliyun alidns UpdateDnsCacheDomainRemark
    --DomainName <string>
    [--Lang <string>]
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

域名名称。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

设置请求和接收消息的语言类型,取值:
zh:中文
en:英文
默认为zh


--Remark

String

否

备注,长度限制50个字符,只可包含中英文数字以及 . 、_、-
为空时删除原有备注

示例

aliyun alidns UpdateDnsCacheDomainRemark --region cn-hangzhou --DomainName 'example.com'

UpdateDnsGtmAccessStrategy

命令描述

修改访问策略

语法

aliyun alidns UpdateDnsGtmAccessStrategy
    [--AccessMode <string>]
    --DefaultAddrPool <array>
    [--DefaultAddrPool.#.Id <string>]
    [--DefaultAddrPool.#.LbaWeight <int>]
    --DefaultAddrPoolType <string>
    [--DefaultLatencyOptimization <string>]
    [--DefaultLbaStrategy <string>]
    [--DefaultMaxReturnAddrNum <int>]
    --DefaultMinAvailableAddrNum <int>
    [--FailoverAddrPool.#.Id <string>]
    [--FailoverAddrPool.#.LbaWeight <int>]
    [--FailoverAddrPoolType <string>]
    [--FailoverLatencyOptimization <string>]
    [--FailoverLbaStrategy <string>]
    [--FailoverMaxReturnAddrNum <int>]
    [--FailoverMinAvailableAddrNum <int>]
    [--Lang <string>]
    --Lines <string>
    --StrategyId <string>
    --StrategyName <string>
    [options]

参数

参数

类型

必填

说明

--AccessMode

String

否

地址池集合切换策略:
AUTO: 自动切换
DEFAULT:主地址池集合
FAILOVER: 备地址池集合


--DefaultAddrPool

List

是

主地址池集合

  • 列表项:

    • 类型:object

--DefaultAddrPool.#.Id

String

否

主地址池集合列表中地址池id

--DefaultAddrPool.#.LbaWeight

Integer

否

主地址池集合列表中权重

--DefaultAddrPoolType

String

是

主地址池类型:
IPV4
IPV6
DOMAIN(域名)


--DefaultLatencyOptimization

String

否

主地址池集合延时解析调度优化:
OPEN:开启
CLOSE:关闭

--DefaultLbaStrategy

String

否

主地址池集合均衡策略:
ALL_RR: 返回全部地址
RATIO:按权重返回地址

--DefaultMaxReturnAddrNum

Integer

否

主地址池集合最多返回地址数量

  • 约束:

    • 最大值:8

    • 最小值:1

--DefaultMinAvailableAddrNum

Integer

是

主地址池集合最小可用地址数量

  • 约束:

    • 最大值:400

    • 最小值:1

--FailoverAddrPool

List

否

备地址池集合,若未设置备地址池集合,输入"EMPTY"

  • 列表项:

    • 类型:object

--FailoverAddrPool.#.Id

String

否

备地址池集合列表中地址池id

--FailoverAddrPool.#.LbaWeight

Integer

否

备地址池集合列表中权重

--FailoverAddrPoolType

String

否

备地址池类型:
IPV4
IPV6
DOMAIN


--FailoverLatencyOptimization

String

否

备地址池集合延时解析调度优化:
OPEN:开启
CLOSE:关闭

--FailoverLbaStrategy

String

否

备地址池集合均衡策略:
ALL_RR: 返回全部地址
RATIO:按权重返回地址

--FailoverMaxReturnAddrNum

Integer

否

备地址池集合最多返回地址数量

  • 约束:

    • 最大值:8

    • 最小值:1

--FailoverMinAvailableAddrNum

Integer

否

备地址池集合最小可用地址数量

  • 约束:

    • 最大值:400

    • 最小值:1

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--Lines

String

是

访问区域LineCode列表。例如:["default", "drpeng"],即全局策略和鹏博士

--StrategyId

String

是

策略id。可通过调用https://help.aliyun.com/document_detail/2357191.html获取

--StrategyName

String

是

策略名称

示例

aliyun alidns UpdateDnsGtmAccessStrategy --region cn-hangzhou --DefaultMinAvailableAddrNum 1 --DefaultAddrPoolType IPV4 --StrategyName test --StrategyId hrb00 --DefaultAddrPool.1.LbaWeight 1 --DefaultAddrPool.1.Id po000

UpdateDnsGtmAddressPool

命令描述

根据填写的参数修改地址池

语法

aliyun alidns UpdateDnsGtmAddressPool
    --Addr.#.Addr <string>
    [--Addr.#.AttributeInfo <string>]
    [--Addr.#.LbaWeight <int>]
    --Addr.#.Mode <string>
    [--Addr.#.Remark <string>]
    --AddrPoolId <string>
    [--Lang <string>]
    --LbaStrategy <string>
    [--Name <string>]
    [options]

参数

参数

类型

必填

说明

--Addr

List

是

地址池列表

  • 列表项:

    • 类型:object

--Addr.#.Addr

String

是

地址

--Addr.#.AttributeInfo

String

否

地址归属信息,JSON化字符串格式。
LineCode:归属线路Code(已废弃,以lineCodes数据为准)
lineCodes:归属线路Code列表
lineCodeRectifyType:归属线路订正类型,默认:自动订正
- NO_NEED 不订正
- RECTIFIED 已订正
- AUTO 自动订正





--Addr.#.LbaWeight

Integer

否

权重

--Addr.#.Mode

String

是

模式:
SMART:智能返回
ONLINE:永远在线
OFFLINE:永远离线


--Addr.#.Remark

String

否

备注

--AddrPoolId

String

是

地址池id。可通过调用DescribeDnsGtmInstanceAddressPools (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstanceaddresspools?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_9_7.1cee430dbd1I3y)获取

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--LbaStrategy

String

是

负载均衡策略:
ALL_RR: 返回全部地址
RATIO:按权重返回地址

--Name

String

否

地址池名称

示例

aliyun alidns UpdateDnsGtmAddressPool --region cn-hangzhou --Addr.1.AttributeInfo 'Linecode:_default_lineCodes:_default_lineCodeRectifyType:_AUTO' --LbaStrategy ALL_RR --Addr.1.Mode SMART --AddrPoolId testp000000 --Addr.1.LbaWeight 1 --Addr.1.Addr '1.1.XX.XX' --Addr.1.Remark test

UpdateDnsGtmInstanceGlobalConfig

命令描述

通过GTM实例ID修改实例配置

语法

aliyun alidns UpdateDnsGtmInstanceGlobalConfig
    [--AlertConfig.#.DingtalkNotice <bool>]
    [--AlertConfig.#.EmailNotice <bool>]
    [--AlertConfig.#.NoticeType <string>]
    [--AlertConfig.#.SmsNotice <bool>]
    [--AlertGroup <string>]
    [--CnameType <string>]
    [--ForceUpdate <bool>]
    --InstanceId <string>
    [--InstanceName <string>]
    [--Lang <string>]
    [--PublicCnameMode <string>]
    [--PublicRr <string>]
    [--PublicUserDomainName <string>]
    [--PublicZoneName <string>]
    [--Ttl <int>]
    [options]

参数

参数

类型

必填

说明

--AlertConfig

List

否

报警配置列表

  • 列表项:

    • 类型:object

--AlertConfig.#.DingtalkNotice

Boolean

否

是否需要钉钉报警:
true-需要
false-不需要

--AlertConfig.#.EmailNotice

Boolean

否

是否配置邮件通知:
true:已配置
false|null : 未配置

--AlertConfig.#.NoticeType

String

否

报警事件类型:
ADDR_ALERT:地址不可用
ADDR_RESUME:地址恢复可用
ADDR_POOL_GROUP_UNAVAILABLE:地址池集合不可用
ADDR_POOL_GROUP_AVAILABLE:地址池集合恢复可用
ACCESS_STRATEGY_POOL_GROUP_SWITCH:主备地址池切换
MONITOR_NODE_IP_CHANGE:监控节点IP地址变更





--AlertConfig.#.SmsNotice

Boolean

否

是否配置短信通知:
true:已配置
false|null : 未配置

--AlertGroup

String

否

报警组(List<String>的JSON格式)

--CnameType

String

否

CNAME接入域名类型:
PUBLIC: 公网型

--ForceUpdate

Boolean

否

是否强制更新。
true-强制更新,不进行冲突提示。
false|null-不强制更新,若遇冲突则提示

--InstanceId

String

是

GTM实例ID。可通过调用DescribeDnsGtmInstances (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstances?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_8_8.2aea3618RlSR9K)获取

--InstanceName

String

否

实例名称:首次更新必填,再次更新则非必填

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--PublicCnameMode

String

否

公网域名接入方式:
SYSTEM_ASSIGN:系统分配(此选项功能关闭)
CUSTOM:自定义

--PublicRr

String

否

CNAME接入域名(公网):主机名

--PublicUserDomainName

String

否

业务域名(公网)

--PublicZoneName

String

否

CNAME接入域名(公网):主域名,且当为自定义接入时为必填。
此处应填入主域名,不包含PublicRr参数内容

--Ttl

Integer

否

全局TTL

  • 约束:

    • 最大值:9999999

    • 最小值:1

示例

aliyun alidns UpdateDnsGtmInstanceGlobalConfig --region cn-hangzhou --InstanceId 'gtm-cn-wwo3a3hbz00'

UpdateDnsGtmMonitor

命令描述

修改健康检查

语法

aliyun alidns UpdateDnsGtmMonitor
    [--EvaluationCount <int>]
    [--Interval <int>]
    --IspCityNode <array>
    [--IspCityNode.#.CityCode <string>]
    [--IspCityNode.#.IspCode <string>]
    [--Lang <string>]
    --MonitorConfigId <string>
    --MonitorExtendInfo <string>
    --ProtocolType <string>
    [--Timeout <int>]
    [options]

参数

参数

类型

必填

说明

--EvaluationCount

Integer

否

连续次数

  • 约束:

    • 最大值:3

    • 最小值:1

--Interval

Integer

否

检查间隔,单位秒

  • 约束:

    • 最大值:60

    • 最小值:15

--IspCityNode

List

是

监控城市节点列表

  • 列表项:

    • 类型:object

--IspCityNode.#.CityCode

String

否

监控节点-城市Code

--IspCityNode.#.IspCode

String

否

监控节点-运营商code

--Lang

String

否

部分返回参数语言。默认值:en。取值范围:en、zh、ja

--MonitorConfigId

String

是

健康检查配置id。可通过调用DescribeDnsGtmInstanceAddressPool (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describednsgtminstanceaddresspool?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_9_6.7db77000nMCPI1)获取

--MonitorExtendInfo

String

是

扩展信息,各协议检查所需参数:
HTTP(S):
port:检查端口
host:Host设置
path:URL路径
code:返回码大于设定值时则认为健康检查异常,例如设置为400,当返回码为404时,判定健康检查结果异常。
failureRate:失败率
sni:是否开启sni,仅在HTTPS协议时使用。
- true-开启
- false-未开启
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
PING:
failureRate:失败率
packetNum:ping包数
packetLossRate:ping丢包率
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
TCP:
port:检查端口
failureRate:失败率
nodeType:地址池类型为DOMAIN时,健康检查监控节点类型:
- IPV4
- IPV6
























--ProtocolType

String

是

检查协议:
HTTP
HTTPS
PING
TCP



--Timeout

Integer

否

超时时间,单位毫秒

  • 约束:

    • 最大值:10000

    • 最小值:1000

示例

aliyun alidns UpdateDnsGtmMonitor --region cn-hangzhou --IspCityNode.1.CityCode 123 --ProtocolType http --MonitorExtendInfo 'code_:200,_path_:_index.htm_,_host_:_aliyun.com' --MonitorConfigId Monito000000 --IspCityNode.1.IspCode 123

UpdateDomainGroup

命令描述

根据传入参数修改域名分组名称

语法

aliyun alidns UpdateDomainGroup
    --GroupId <string>
    --GroupName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--GroupId

String

是

要修改名称的域名分组ID。可通过调用DescribeDomainGroups (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomaingroups?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--GroupName

String

是

域名分组修改后的新名称

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


示例

aliyun alidns UpdateDomainGroup --region cn-hangzhou --GroupName NewName --GroupId 60bb3ef15ace449082cf914ed3ea0000

UpdateDomainRecord

命令描述

根据传入参数修改解析记录

语法

aliyun alidns UpdateDomainRecord
    [--Lang <string>]
    [--Line <string>]
    [--Priority <int>]
    --RR <string>
    --RecordId <string>
    [--TTL <int>]
    --Type <string>
    [--UserClientIp <string>]
    --Value <string>
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--Line

String

否

解析线路,默认为default。
参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)。


--Priority

Integer

否

MX记录的优先级,取值范围:[1,50]。
记录类型为MX记录时,此参数必填

  • 约束:

    • 最大值:65535

    • 最小值:0

--RR

String

是

主机记录。
当设置主域名解析(如example.com)时,主机记录应填写"@"符号

--RecordId

String

是

解析记录的ID。可通过调取https://help.aliyun.com/document_detail/2357159.html接口获取

--TTL

Integer

否

解析生效时间,默认为600秒(10分钟)。
参见:
TTL定义说明 (https://help.aliyun.com/document_detail/29806.html)。


  • 约束:

    • 最大值:86400

    • 最小值:1

--Type

String

是

解析记录类型,参见:
解析记录类型格式 (https://help.aliyun.com/document_detail/29805.html)。

--UserClientIp

String

否

用户端IP

--Value

String

是

记录值

示例

aliyun alidns UpdateDomainRecord --region cn-hangzhou --RR '@' --Type A --Value '192.0.2.1' --RecordId 990000000

UpdateDomainRecordRemark

命令描述

根据传入参数修改解析记录的备注

语法

aliyun alidns UpdateDomainRecordRemark
    [--Lang <string>]
    --RecordId <string>
    [--Remark <string>]
    [--UserClientIp <string>]
    [options]

参数

参数

类型

必填

说明

--Lang

String

否

设置请求和接收消息的语言类型,默认为zh。取值:
zh:中文
en:英文

--RecordId

String

是

解析记录的ID。可通过调取DescribeDomainRecords (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomainrecords?spm=a2c4g.11186623.help-menu-search-29697.d_0)接口获取。

--Remark

String

否

您的解析记录的备注信息。默认为空,为空时删除原备注信息

--UserClientIp

String

否

用户端IP

示例

aliyun alidns UpdateDomainRecordRemark --region cn-hangzhou --RecordId 1200000

UpdateDomainRemark

命令描述

根据传入参数修改域名的备注

语法

aliyun alidns UpdateDomainRemark
    --DomainName <string>
    [--Lang <string>]
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--DomainName

String

是

云解析中已存在的域名。可通过调用DescribeDomains (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c4g.11186623.help-menu-search-29697.d_0)获取

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--Remark

String

否

域名的备注信息。
不超过50个字符,可以包含数字、中文、英文和特殊字符:_ - , . ,

示例

aliyun alidns UpdateDomainRemark --region cn-hangzhou --DomainName 'example.com'

UpdateGtmAccessStrategy

命令描述

根据传入参数修改访问策略

语法

aliyun alidns UpdateGtmAccessStrategy
    [--AccessLines <string>]
    [--DefaultAddrPoolId <string>]
    [--FailoverAddrPoolId <string>]
    [--Lang <string>]
    --StrategyId <string>
    [--StrategyName <string>]
    [options]

参数

参数

类型

必填

说明

--AccessLines

String

否

解析请求来源

--DefaultAddrPoolId

String

否

主地址池集合ID

--FailoverAddrPoolId

String

否

备地址池集合ID

--Lang

String

否

语言

--StrategyId

String

是

策略ID

--StrategyName

String

否

策略名称

示例

aliyun alidns UpdateGtmAccessStrategy --region cn-hangzhou --StrategyId hrmxc

UpdateGtmAddressPool

命令描述

修改地址池

语法

aliyun alidns UpdateGtmAddressPool
    --Addr <array>
    [--Addr.#.LbaWeight <int>]
    [--Addr.#.Mode <string>]
    [--Addr.#.Value <string>]
    --AddrPoolId <string>
    [--Lang <string>]
    [--MinAvailableAddrNum <int>]
    [--Name <string>]
    --Type <string>
    [options]

参数

参数

类型

必填

说明

--Addr

List

是

地址池列表

  • 列表项:

    • 类型:object

--Addr.#.LbaWeight

Integer

否

地址池权重

--Addr.#.Mode

String

否

模式。
SMART:智能返回
ONLINE:永远在线
OFFLINE:永远离线


--Addr.#.Value

String

否

地址池地址

--AddrPoolId

String

是

地址池ID

--Lang

String

否

语言

--MinAvailableAddrNum

Integer

否

最小可用地址数量

--Name

String

否

地址池名称

--Type

String

是

地址池类型:
IP:ipv4地址
DOMAIN:域名

示例

aliyun alidns UpdateGtmAddressPool --region cn-hangzhou --Type IP --Addr.1.Mode SMART --AddrPoolId 1234abc --Addr.1.LbaWeight 1 --Addr.1.Value '1.1.XX.XX'

UpdateGtmInstanceGlobalConfig

命令描述

根据传入参数修改GTM实例配置

语法

aliyun alidns UpdateGtmInstanceGlobalConfig
    [--AlertGroup <string>]
    [--CnameCustomDomainName <string>]
    [--CnameMode <string>]
    --InstanceId <string>
    [--InstanceName <string>]
    [--Lang <string>]
    [--LbaStrategy <string>]
    [--Ttl <int>]
    [--UserDomainName <string>]
    [options]

参数

参数

类型

必填

说明

--AlertGroup

String

否

报警组。目前仅支持一个报警组。
首次更新必填,再次更新非必填

--CnameCustomDomainName

String

否

CnameMode为CUSTOM接入时必传,必须是主域名

--CnameMode

String

否

接入方式。取值:
SYSTEM_ASSIGN:系统分配
CUSTOM:自定义

--InstanceId

String

是

GTM实例ID

--InstanceName

String

否

实例名称。
首次更新必填,再次更新则非必填

--Lang

String

否

语言

--LbaStrategy

String

否

均衡策略。取值:
ALL_RR: 负载均摊
RATIO:加权轮询
首次更新必填,再次更新非必填


--Ttl

Integer

否

全局TTL

--UserDomainName

String

否

主域名。
首次更新必填,再次更新非必填

示例

aliyun alidns UpdateGtmInstanceGlobalConfig --region cn-hangzhou --InstanceId 'gtm-cn-cs02xyk4a00'

UpdateGtmMonitor

命令描述

修改健康检查

语法

aliyun alidns UpdateGtmMonitor
    [--EvaluationCount <int>]
    [--Interval <int>]
    --IspCityNode <array>
    [--IspCityNode.#.CityCode <string>]
    [--IspCityNode.#.IspCode <string>]
    [--Lang <string>]
    --MonitorConfigId <string>
    --MonitorExtendInfo <string>
    --ProtocolType <string>
    [--Timeout <int>]
    [options]

参数

参数

类型

必填

说明

--EvaluationCount

Integer

否

连续次数

--Interval

Integer

否

检查间隔,单位:秒,取值范围:60

--IspCityNode

List

是

监控城市节点列表

  • 列表项:

    • 类型:object

--IspCityNode.#.CityCode

String

否

城市Code

--IspCityNode.#.IspCode

String

否

具体取值可参考:DescribeGtmMonitorAvailableConfig接口返回数据。
GroupType为BGP或Overseas时,IspCityNode.N.IspCode为非必传值,默认为465。
GroupType为非BGP或Overseas时,IspCityNode.N.IspCode为必传值。并与IspCityNode.N.CityCode匹配使用

--Lang

String

否

用户语言

--MonitorConfigId

String

是

健康检查配置ID

--MonitorExtendInfo

String

是

扩展信息。根据不同协议,进行传参:
HTTP、HTTPS:
port:检查端口
failureRate:失败率
code:返回码(大于此值会被判定为异常)。取值:400、500。
host:Host设置
path:URL路径
PING:
packetNum:ping包数
packetLossRate:ping丢包率
failureRate:失败率
TCP:
port:检查端口
failureRate:失败率












--ProtocolType

String

是

检查协议

--Timeout

Integer

否

超时时间,单位:毫秒,取值范围:2000、3000、5000、10000

示例

aliyun alidns UpdateGtmMonitor --region cn-hangzhou --IspCityNode.1.CityCode 572 --ProtocolType HTTP --MonitorExtendInfo 'code_:200,_path_:_index.htm_,_host_:_aliyun.com' --MonitorConfigId 1234abc --IspCityNode.1.IspCode 465

UpdateGtmRecoveryPlan

命令描述

修改容灾预案

语法

aliyun alidns UpdateGtmRecoveryPlan
    [--FaultAddrPool <string>]
    [--Lang <string>]
    [--Name <string>]
    --RecoveryPlanId <int>
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--FaultAddrPool

String

否

故障地址池 ID 列表

--Lang

String

否

返回值语言,取值:
zh:中文
en:英文
默认:en


--Name

String

否

容灾预案名称

--RecoveryPlanId

Integer

是

容灾预案ID。可通过调用DescribeGtmRecoveryPlans (https://help.aliyun.com/zh/dns/api-alidns-2015-01-09-describegtmrecoveryplans?spm=a2c4g.11186623.help-menu-29697.d_0_5_1_3_13_5.6dd83618vW4yD7)获取

--Remark

String

否

备注信息

示例

aliyun alidns UpdateGtmRecoveryPlan --region cn-hangzhou --RecoveryPlanId 100000000

UpdateIspFlushCacheInstanceConfig

命令描述

修改缓存刷新套餐包配置

语法

aliyun alidns UpdateIspFlushCacheInstanceConfig
    --InstanceId <string>
    --InstanceName <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--InstanceId

String

是

要修改的缓存刷新实例 ID

--InstanceName

String

是

修改后的实例名称

--Lang

String

否

返回信息的语言,zh 为中文,en 为英文

示例

aliyun alidns UpdateIspFlushCacheInstanceConfig --region cn-hangzhou --InstanceName 'example-string' --InstanceId 'example-string'

UpdateRecursionRecord

命令描述

修改递归解析内置权威解析记录

语法

aliyun alidns UpdateRecursionRecord
    [--ClientToken <string>]
    [--Priority <int>]
    --RecordId <string>
    [--RequestSource <string>]
    [--Rr <string>]
    [--Ttl <int>]
    [--Type <string>]
    [--Value <string>]
    [--Weight <int>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--Priority

Integer

否

MX记录的优先级。取值越小,优先级越高,取值范围:[1,99]

--RecordId

String

是

解析记录的ID

  • 约束:

    • 匹配模式:^\d+$

--RequestSource

String

否

解析线路,默认为default。参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)

--Rr

String

否

主机记录。主机记录就是域名前缀,常见用法有www、@、*(泛解析)、mail(常用于邮箱)。
例如要解析@.exmaple.com,主机记录要填写"@”,而不是空

--Ttl

Integer

否

本地缓存时间。目前取值仅支持5、30、60、3600(1小时)、43200(12小时)、86400(24小时),单位秒(s),默认60

--Type

String

否

解析记录类型,目前支持如下: A:IPV4记录,支持将域名映射到IPv4地址使用 AAAA:IPV6记录,支持将域名映射到IPv6地址使用 CNAME:别名记录,支持将域名指向另外一个域名 MX:电邮交互记录,支持将域名指向邮件服务器地址 TXT:文本记录,是任意可读的文本DNS记录 SRV:服务器资源记录,用来标识某台服务器使用了某个服务,常见于微软系统的目录管理

--Value

String

否

记录值。根据不同解析记录类型,填写相应的记录值

--Weight

Integer

否

权重值(1-100 内的整数,包括 1 和 100,默认为1),支持对每个地址设置不同的权重值,实现解析查询按照权重比例返回地址

示例

aliyun alidns UpdateRecursionRecord --region cn-hangzhou --RecordId 90000000

UpdateRecursionRecordEnableStatus

命令描述

修改内置权威解析记录启用状态

语法

aliyun alidns UpdateRecursionRecordEnableStatus
    [--ClientToken <string>]
    [--EnableStatus <string>]
    --RecordId <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

启用状态,enable:启用 disable:禁用

--RecordId

String

是

解析记录id,解析记录的唯一标识

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns UpdateRecursionRecordEnableStatus --region cn-hangzhou --RecordId 1781234321

UpdateRecursionRecordRemark

命令描述

修改HTTPDNS内置权威解析记录备注

语法

aliyun alidns UpdateRecursionRecordRemark
    [--ClientToken <string>]
    --RecordId <string>
    [--Remark <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--RecordId

String

是

record id

  • 约束:

    • 匹配模式:^\d+$

--Remark

String

否

备注

示例

aliyun alidns UpdateRecursionRecordRemark --region cn-hangzhou --RecordId 173671468000010

UpdateRecursionRecordWeight

命令描述

修改递归解析内置权威解析记录权重

语法

aliyun alidns UpdateRecursionRecordWeight
    [--ClientToken <string>]
    --RecordId <string>
    [--Weight <int>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--RecordId

String

是

解析记录id,解析记录的唯一标识

  • 约束:

    • 匹配模式:^\d+$

--Weight

Integer

否

权重 支持0-100

示例

aliyun alidns UpdateRecursionRecordWeight --region cn-hangzhou --RecordId 17363242424

UpdateRecursionRecordWeightEnableStatus

命令描述

修改递归解析内置权威解析记录权重算法启用状态

语法

aliyun alidns UpdateRecursionRecordWeightEnableStatus
    [--ClientToken <string>]
    [--EnableStatus <string>]
    [--RequestSource <string>]
    [--Rr <string>]
    [--Type <string>]
    --ZoneId <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EnableStatus

String

否

是否开启权重,enable:开启,disable:关闭

--RequestSource

String

否

解析线路,默认为default。参见:
解析线路枚举 (https://help.aliyun.com/document_detail/29807.html)

--Rr

String

否

主机记录

--Type

String

否

解析记录类型,目前支持如下: A:IPV4记录,支持将域名映射到IPv4地址使用 AAAA:IPV6记录,支持将域名映射到IPv6地址使用 CNAME:别名记录,支持将域名指向另外一个域名 MX:电邮交互记录,支持将域名指向邮件服务器地址 TXT:文本记录,是任意可读的文本DNS记录 SRV:服务器资源记录,用来标识某台服务器使用了某个服务,常见于微软系统的目录管理

--ZoneId

String

是

zone id,解析记录对应的域名ZoneId

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns UpdateRecursionRecordWeightEnableStatus --region cn-hangzhou --ZoneId 176432424234

UpdateRecursionZoneEffectiveScope

命令描述

修改HTTPDNS内置权威域名zone生效范围

语法

aliyun alidns UpdateRecursionZoneEffectiveScope
    [--ClientToken <string>]
    [--EffectiveScopes <array>]
    --ZoneId <string>
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--EffectiveScopes

List

否

生效范围列表

--ZoneId

String

是

Zone ID,Zone的唯一识别码

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns UpdateRecursionZoneEffectiveScope --region cn-hangzhou --ZoneId 173671468000011

UpdateRecursionZoneProxyPattern

命令描述

修改递归解析内置权威域名zone递归代理模式

语法

aliyun alidns UpdateRecursionZoneProxyPattern
    [--ClientToken <string>]
    [--ProxyPattern <string>]
    [--ZoneId <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

客户端Token,用于保证请求的幂等性。由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符

--ProxyPattern

String

否

是否开启子域名递归代理。取值:
zone: 关闭(当解析本域名下不存在的子域名时,直接返回NXDOMAIN,表示子域名不存在)
record: 开启(当解析本域名下不存在的子域名时,会依次查询“转发”和“递归”模块,并以最终查询到的解析结果来应答解析请求)

--ZoneId

String

否

Zone ID,Zone的唯一识别码

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns UpdateRecursionZoneProxyPattern --region cn-hangzhou --ZoneId 173671468000011 --ProxyPattern record --ClientToken 21079fa016944979537637959d09bc

UpdateRecursionZoneRemark

命令描述

修改递归解析内置权威域名zone备注

语法

aliyun alidns UpdateRecursionZoneRemark
    [--ClientToken <string>]
    [--Remark <string>]
    [--ZoneId <string>]
    [options]

参数

参数

类型

必填

说明

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符,且不能超过64个字符

--Remark

String

否

备注

--ZoneId

String

否

Zone ID,Zone的唯一识别码

  • 约束:

    • 匹配模式:^\d+$

示例

aliyun alidns UpdateRecursionZoneRemark --region cn-hangzhou --ZoneId 173671468000011 --ClientToken 21079fa016944979537637959d09bc --Remark '备注'

UpdateRspDomainServerProhibitStatusForGateway

命令描述

用于更新特定域名的状态信息

语法

aliyun alidns UpdateRspDomainServerProhibitStatusForGateway
    [--AddStatusList.#.Status <string>]
    [--AddStatusList.#.StatusMsg <string>]
    --ClientToken <string>
    [--DeleteStatusList.#.Status <string>]
    [--DeleteStatusList.#.StatusMsg <string>]
    --DomainName <string>
    [options]

参数

参数

类型

必填

说明

--AddStatusList

List

否

添加域名状态集合

  • 列表项:

    • 类型:object

--AddStatusList.#.Status

String

否

域名状态

  • 约束:

    • 允许值:["serverDeleteProhibited", "serverRenewProhibited", "serverTransferProhibited", "serverUpdateProhibited"]

--AddStatusList.#.StatusMsg

String

否

状态描述信息

--ClientToken

String

是

幂等参数

--DeleteStatusList

List

否

删除域名状态集合

  • 列表项:

    • 类型:object

--DeleteStatusList.#.Status

String

否

域名状态

  • 约束:

    • 允许值:["serverDeleteProhibited", "serverRenewProhibited", "serverTransferProhibited", "serverUpdateProhibited"]

--DeleteStatusList.#.StatusMsg

String

否

状态描述信息

--DomainName

String

是

需要修改serverHold状态的域名

示例

aliyun alidns UpdateRspDomainServerProhibitStatusForGateway --region cn-hangzhou --DomainName 'example.com' --ClientToken asdf

UpdateRspDomainServerProhibitStatusForGatewayOte

命令描述

用于更新特定域名的状态信息

语法

aliyun alidns UpdateRspDomainServerProhibitStatusForGatewayOte
    [--AddStatusList.#.Status <string>]
    [--AddStatusList.#.StatusMsg <string>]
    --ClientToken <string>
    [--DeleteStatusList.#.Status <string>]
    [--DeleteStatusList.#.StatusMsg <string>]
    --DomainName <string>
    [options]

参数

参数

类型

必填

说明

--AddStatusList

List

否

添加域名状态集合

  • 列表项:

    • 类型:object

--AddStatusList.#.Status

String

否

域名状态

  • 约束:

    • 允许值:["serverDeleteProhibited", "serverRenewProhibited", "serverTransferProhibited", "serverUpdateProhibited"]

--AddStatusList.#.StatusMsg

String

否

状态描述信息

--ClientToken

String

是

幂等参数

--DeleteStatusList

List

否

删除域名状态集合

  • 列表项:

    • 类型:object

--DeleteStatusList.#.Status

String

否

域名状态

  • 约束:

    • 允许值:["serverDeleteProhibited", "serverRenewProhibited", "serverTransferProhibited", "serverUpdateProhibited"]

--DeleteStatusList.#.StatusMsg

String

否

状态描述信息

--DomainName

String

是

域名名称

示例

aliyun alidns UpdateRspDomainServerProhibitStatusForGatewayOte --region cn-hangzhou --DomainName 'example.com' --ClientToken qwoefasdf

ValidateDnsGtmCnameRrCanUse

命令描述

检查实例主机名是否可添加

语法

aliyun alidns ValidateDnsGtmCnameRrCanUse
    --CnameMode <string>
    --CnameRr <string>
    --CnameType <string>
    --CnameZone <string>
    --InstanceId <string>
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--CnameMode

String

是

CNAME 接入模式:CUSTOM 为自定义,SYSTEM_ASSIGN 为系统分配

--CnameRr

String

是

待检查的自定义 CNAME 主机记录

--CnameType

String

是

CNAME 接入类型,目前支持 PUBLIC(公网型)

--CnameZone

String

是

CNAME 接入使用的主域名

--InstanceId

String

是

要检查主机名的 GTM 实例 ID

--Lang

String

否

返回信息的语言,zh 为中文,en 为英文

示例

aliyun alidns ValidateDnsGtmCnameRrCanUse --region cn-hangzhou --InstanceId 'example-string' --CnameType 'example-string' --CnameZone 'example-string' --CnameMode 'example-string' --CnameRr 'example-string'

ValidatePdnsUdpIpSegment

命令描述

验证公共DNS Udp Ip地址段

语法

aliyun alidns ValidatePdnsUdpIpSegment
    [--Ip <string>]
    [--IpToken <string>]
    [--Lang <string>]
    [options]

参数

参数

类型

必填

说明

--Ip

String

否

公共 DNS 企业递归网关的 IP 地址

--IpToken

String

否

客户端 IP 校验令牌。服务使用该令牌查找已缓存的客户端 IP;未命中时使用请求中的客户端 IP

--Lang

String

否

设置请求和接收消息的语言类型。zh 表示中文,en 表示英文;默认为 zh

示例

aliyun alidns ValidatePdnsUdpIpSegment --region cn-hangzhou --Ip 'example-string' --Lang 'example-string' --IpToken 'example-string'

VerifyAtiAgentDnsRecords

命令描述

验证DNS记录

语法

aliyun alidns VerifyAtiAgentDnsRecords
    --AgentRegisterInfoId <string>
    [--ClientToken <string>]
    [--TrustLevel <string>]
    [options]

参数

参数

类型

必填

说明

--AgentRegisterInfoId

String

是

AgentRegisterInfoId Agent注册ID。由阿里云 ATS 平台自动生成,在阿里云 ATS 平台具有全局唯一性。在 Agent 注册过程中自动生成,通过API注册、查询流程中,该 ID 必须全程携带,需调用接口 ListAtiAgentRegisterInfos 查询目标Agent后从应答内容获取AgentRegisterInfoId

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

--TrustLevel

String

否

Agent 信任认证级别,可选 BASIC(基础认证)、ENHANCED(增强认证)或 HIGHEST(最高认证)

示例

aliyun alidns VerifyAtiAgentDnsRecords --region cn-hangzhou --AgentRegisterInfoId 2074753647748672512

VerifyAtiAgentRegisterInfoAcmeChallengeRecord

命令描述

触发 ACME 预检

语法

aliyun alidns VerifyAtiAgentRegisterInfoAcmeChallengeRecord
    --AgentRegisterInfoId <string>
    [--ClientToken <string>]
    [options]

参数

参数

类型

必填

说明

--AgentRegisterInfoId

String

是

AgentRegisterInfoId Agent注册ID。由阿里云 ATS 平台自动生成,在阿里云 ATS 平台具有全局唯一性。在 Agent 注册过程中自动生成,通过API注册的多步流程中,该 ID 必须全程携带,以确保各步骤关联至同一 Agent,完成完整的注册闭环

--ClientToken

String

否

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样

示例

aliyun alidns VerifyAtiAgentRegisterInfoAcmeChallengeRecord --region cn-hangzhou --AgentRegisterInfoId 2074753647748672512

全局选项

以下为 CLI 通用选项,各选项的适用范围以说明为准。

选项

说明

--cli-dry-run

使用 --cli-dry-run 在执行校验后以人类可读格式输出请求详情,跳过实际运行

--cli-input-json

使用 --cli-input-json foo.json 从 JSON 对象读取产品 API 参数,命令行显式参数覆盖文件值

--cli-output

设置宿主 CLI Help、本地错误和更新检查的输出格式(json)

--cli-query

使用 --cli-query <jmespath> 通过 JMESPath 表达式过滤输出结果

--cli-sign-version

短横线命令的 OpenAPI 签名版本:当前仅支持 v4;设为空值可清空并恢复默认签名(aliyun configure set 可写入 Profile)

--language

使用 --language [en|zh] 来指定语言

--output -o

使用 --output cols=Field1,Field1 [rows=jmesPath] 使用表格方式打印输出

--profile -p

使用 --profile <profileName> 指定操作的配置集

--region

使用 --region <regionId> 来指定访问大区

--version --api-version

使用 --version <YYYY-MM-DD> 来指定访问的API版本

--yes -y

跳过安全策略的确认提示(用于非交互式/Agent 场景)