编辑DNS监视器API


该API允许您编辑DNS监视器中使用的值。

用于编辑DNS监视器的API

通过 Resource ID:

http://[Host]:[Port]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=DNSMonitor&resourceid=[RESOURCEID]&newdisplayname=[NEWDISPLAYNAME]&pollInterval=[pollInterval]&domain=[DOMAIN]&isProxyNeeded=[ISPROXYNEEDED]&timeout=[TIMEOUT]

通过Display Name:

http://[Host]:[Port]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=DNSMonitor&displayname=[DISPLAYNAME]&newdisplayname=[DISPLAYNAME]&pollInterval=[pollInterval]&LookupAddress=[LOOKUPADDRESS]&RecordType=[RECORDTYPE]&SearchField=[SEARCHFIELD]&SearchValue=[SEARCHVALUE]&TargetAddress=[TARGETADDRESS]&timeout=[TIMEOUT]

请求参数

字段 描述
LookupAddress 您要在DNS服务器中检查的地址。
RecordType 返回查询地址的预期记录类型。选项包括-None-,A,AAAA,CNAME,MX,NS,PTR,SOA,SPF,SRV,TXT。
SearchField 搜索字段的值。选项包括-无-,记录名称,地址,附加名称,目标,管理员,主机,别名,端口,优先级。
SearchField 您要在指定字段中搜索的值。
SearchValue DNS服务器的主机名/ IP地址。
timeout 超时值(以秒为单位)。
其他常规API

示例请求

  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=DNSMonitor&resourceid=10000657&LookupAddress=sample
  • http://app-windows:9090/AppManager/xml/ EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=DNSMonitor&resourceid=10000657&RecordType=AAAA
  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=DNSMonitor&resourceid=10000657&SearchField=Host
  • http://app-windows:9090/AppManager/xml/ EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=DNSMonitor&resourceid=10000657&SearchValue=zoho
  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=DNSMonitor&resourceid=10000657&TargetAddress=192.168.5.11
  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=DNSMonitor&resourceid=10000657&LookupAddress=sample&RecordType=AAAA&SearchField=Host&SearchValue=zoho&TargetAddress=192.168.5.11&timeout=45