Documentation ¶
Index ¶
- type A
- type Actionlog
- type AddRR
- type AddView
- type AddViewIP
- type BackupAddressesInfo
- type BatchSetDNS
- type DelView
- type DelViewIP
- type DomainAdded
- type DomainInfo
- type Getlb
- type HostRRlb
- type HttpHeader
- type HttpResponseCodeRange
- type ImportDNS
- type Jdvpc
- type Monitor
- type MonitorAlarmInfo
- type NS
- type Notice
- type RR
- type RRInfo
- type Records
- type RecordsReqs
- type ResourceInfo
- type ResourceRecordSetReqs
- type ResourceRemarkInfo
- type Result
- type SetRR
- type SetRecords
- type Setlb
- type SubDomainExist
- type UpdateMonitor
- type UpdateRR
- type UserViewInput
- type Userview
- type ViewTree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actionlog ¶
type Actionlog struct { /* 操作记录的ID (Optional) */ Id int `json:"id"` /* 用户名 (Optional) */ UserPin string `json:"userPin"` /* 操作的域名 (Optional) */ Domain string `json:"domain"` /* 操作类型:1新增 2修改 3删除 (Optional) */ Type int `json:"type"` /* 操作的详细情况 (Optional) */ Detail string `json:"detail"` /* 操作发生的时间 (Optional) */ Time int64 `json:"time"` /* 操作的结果,成功true, 失败false (Optional) */ Success bool `json:"success"` /* 操作失败的原因 (Optional) */ FailReason string `json:"failReason"` /* 操作者的IP (Optional) */ ClientIp string `json:"clientIp"` }
type AddRR ¶
type AddRR struct { /* 主机记录 */ HostRecord string `json:"hostRecord"` /* 解析记录的值 */ HostValue string `json:"hostValue"` /* 是否是京东云资源 (Optional) */ JcloudRes *bool `json:"jcloudRes"` /* 优先级,只存在于MX, SRV解析记录类型 (Optional) */ MxPriority *int `json:"mxPriority"` /* 端口,只存在于SRV解析记录类型 (Optional) */ Port *int `json:"port"` /* 解析记录的生存时间,单位:秒 */ Ttl int `json:"ttl"` /* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a> */ Type string `json:"type"` /* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */ Weight *int `json:"weight"` /* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。 */ ViewValue int `json:"viewValue"` }
type BackupAddressesInfo ¶ added in v1.13.0
type BatchSetDNS ¶
type BatchSetDNS struct { /* 主机记录 */ HostRecord string `json:"hostRecord"` /* 解析记录的值 */ HostValue string `json:"hostValue"` /* 解析记录的ID, 如果是新增请填0,如果是更新,请使用describeResourceRecord接口查询解析记录ID。 */ Id int `json:"id"` /* 是否是京东云资源 (Optional) */ JcloudRes *bool `json:"jcloudRes"` /* 优先级,只存在于MX, SRV解析记录类型 (Optional) */ MxPriority *int `json:"mxPriority"` /* 端口,只存在于SRV解析记录类型 (Optional) */ Port *int `json:"port"` /* 解析记录的生存时间,单位:秒 */ Ttl int `json:"ttl"` /* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a> */ Type string `json:"type"` /* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */ Weight *int `json:"weight"` /* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。 */ ViewValue int `json:"viewValue"` }
type DomainAdded ¶
type DomainAdded struct { /* 域名的唯一ID (Optional) */ Id int `json:"id"` /* 域名字符串 (Optional) */ DomainName string `json:"domainName"` /* 创建时间,格式Unix timestamp,时间单位:毫秒 (Optional) */ CreateTime int64 `json:"createTime"` /* 过期时间,格式Unix timestamp,时间单位:毫秒 (Optional) */ ExpirationDate int64 `json:"expirationDate"` /* 套餐类型,免费:0 企业版:1 企业高级版:2 (Optional) */ PackId int `json:"packId"` }
type DomainInfo ¶
type DomainInfo struct { /* 域名的唯一ID (Optional) */ Id int `json:"id"` /* 域名字符串 (Optional) */ DomainName string `json:"domainName"` /* 创建时间,格式Unix timestamp,时间单位:毫秒 (Optional) */ CreateTime int64 `json:"createTime"` /* 过期时间,格式Unix timestamp,时间单位:毫秒 (Optional) */ ExpirationDate int64 `json:"expirationDate"` /* 套餐类型,免费:0 企业版:1 企业高级版:2 (Optional) */ PackId int `json:"packId"` /* 套餐的名字 (Optional) */ PackName string `json:"packName"` /* 解析的状态, 暂无解析:1,正常解析:2, 部分解析:3, 暂停解析:4 NS未修改:5,域名探测错误:7,域名未注册:8,注册局暂停解析:9 (Optional) */ ResolvingStatus string `json:"resolvingStatus"` /* 创建者 (Optional) */ Creator string `json:"creator"` /* 是否是京东云资源 (Optional) */ JcloudNs bool `json:"jcloudNs"` /* 域名的锁定状态,0:未锁定, 1:已锁定 (Optional) */ LockStatus int `json:"lockStatus"` /* 主域名当前的Nameserver列表 (Optional) */ ProbeNsList []string `json:"probeNsList"` /* 主域名应该设置的Nameserver列表 (Optional) */ DefNsList []string `json:"defNsList"` }
type Getlb ¶
type Getlb struct { /* 负载均衡的解析记录的列表中解析记录是否是相同的权重 true: 均等负载 false: 按权重分配负载 (Optional) */ Balance bool `json:"balance"` /* 主机记录 (Optional) */ Record string `json:"record"` /* 解析的类型 (Optional) */ Type string `json:"type"` /* 解析线路的名称 (Optional) */ ViewName string `json:"viewName"` /* 解析线路的ID (Optional) */ ViewValue int `json:"viewValue"` /* 负载均衡的解析记录的列表 (Optional) */ Items []HostRRlb `json:"items"` }
type HttpHeader ¶ added in v1.13.0
type HttpResponseCodeRange ¶ added in v1.13.0
type ImportDNS ¶
type ImportDNS struct { /* 主机记录 */ HostRecord string `json:"hostRecord"` /* 解析记录的值 */ HostValue string `json:"hostValue"` /* 解析记录的ID (Optional) */ Id int `json:"id"` /* 是否是京东云资源 (Optional) */ JcloudRes bool `json:"jcloudRes"` /* 优先级,只存在于MX, SRV解析记录类型 (Optional) */ MxPriority int `json:"mxPriority"` /* 端口,只存在于SRV解析记录类型 (Optional) */ Port int `json:"port"` /* 解析记录的生存时间,单位:秒 */ Ttl int `json:"ttl"` /* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a> */ Type string `json:"type"` /* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */ Weight int `json:"weight"` /* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。 */ ViewValue int `json:"viewValue"` }
type Monitor ¶
type Monitor struct { /* 连续几次触发报警 (Optional) */ AlarmLimit int `json:"alarmLimit"` /* 现在是否可以恢复 (Optional) */ CanRecover bool `json:"canRecover"` /* 现在是否可以切换 (Optional) */ CanSwitch bool `json:"canSwitch"` /* 机房探测点的集合 (Optional) */ Clusters string `json:"clusters"` /* 主域名 (Optional) */ DomainName string `json:"domainName"` /* 主机状态,0正常,1异常 (Optional) */ HostStatus int `json:"hostStatus"` /* 监控对象 (Optional) */ HostValue string `json:"hostValue"` /* 监控项ID (Optional) */ Id int `json:"id"` /* 备用地址1 (Optional) */ IpBackup01 string `json:"ipBackup01"` /* 备用地址1的状态,0正常,1异常 (Optional) */ IpBackup01Status int `json:"ipBackup01Status"` /* 备用地址1的类型,1为ip 2为域名 (Optional) */ IpBackup01Type int `json:"ipBackup01Type"` /* 备用地址2 (Optional) */ IpBackup02 string `json:"ipBackup02"` /* 备用地址2的状态,0正常,1异常 (Optional) */ IpBackup02Status int `json:"ipBackup02Status"` /* 备用地址1的类型,1为ip 2为域名 (Optional) */ IpBackup02Type int `json:"ipBackup02Type"` /* 手动切换的地址 (Optional) */ ManualBackup string `json:"manualBackup"` /* 手动切换的地址的状态,0正常,1异常 (Optional) */ ManualBackupStatus int `json:"manualBackupStatus"` /* 手动切换的地址的类型,1为ip 2为域名 (Optional) */ ManualBackupType int `json:"manualBackupType"` /* 监控状况 开启监控 2,暂停监控 4 (Optional) */ MonitorEnable int `json:"monitorEnable"` /* 监控频率,单位秒 (Optional) */ MonitorFreq int `json:"monitorFreq"` /* 监控端口 (Optional) */ MonitorPort int `json:"monitorPort"` /* 不做任何修改0,强制暂停解析记录1,自动切换到备用地址2 (Optional) */ MonitorRule int `json:"monitorRule"` /* 监控路径 (Optional) */ MonitorUri string `json:"monitorUri"` /* 邮箱地址 (Optional) */ NotifyEmail string `json:"notifyEmail"` /* 不发送邮件0, 发送邮件1 (Optional) */ NotifyEmailEnable int `json:"notifyEmailEnable"` /* 不发送通知栏 0, 发送通知栏 1 (Optional) */ NotifyMsgBarEnable int `json:"notifyMsgBarEnable"` /* 手机号码 (Optional) */ NotifySms string `json:"notifySms"` /* 不发送短信 0, 发送短信 1 (Optional) */ NotifySmsEnable int `json:"notifySmsEnable"` /* http协议:0,https协议:1 (Optional) */ Protocol int `json:"protocol"` /* 自动恢复:0 手动恢复:1 (Optional) */ StopRecoverRule int `json:"stopRecoverRule"` /* 子域名 (Optional) */ SubDomainName string `json:"subDomainName"` /* 自动恢复至主host:0 手动恢复至主host:1 (Optional) */ SwitchRecoverRule int `json:"switchRecoverRule"` /* 1为A记录,2为CNAME (Optional) */ Type int `json:"type"` /* 使用记录,host_value 0,ip_backup_01 1,ip_backup_02 2,cname_backup 3 (Optional) */ UsedType int `json:"usedType"` /* 备用地址及其状态列表 (Optional) */ BackupAddressList []BackupAddressesInfo `json:"backupAddressList"` /* 探测请求携带自定义头域及其域值列表 (Optional) */ RequestHeaders []HttpHeader `json:"requestHeaders"` /* 探测响应Body体中包含的字符串 (Optional) */ ResponseBodyMatch string `json:"responseBodyMatch"` /* 探测响应码范围列表 (Optional) */ ResponseCodeRanges []HttpResponseCodeRange `json:"responseCodeRanges"` /* 正在使用的有效解析地址 (Optional) */ EffectAddr string `json:"effectAddr"` }
type MonitorAlarmInfo ¶
type MonitorAlarmInfo struct { /* 域名ID (Optional) */ DomainId int `json:"domainId"` /* 子域名 (Optional) */ SubDomainName string `json:"subDomainName"` /* 故障IP/域名 (Optional) */ Host string `json:"host"` /* null (Optional) */ Id int `json:"id"` /* 故障开始时间,格式Unix timestamp,时间单位:毫秒 (Optional) */ StartTime int64 `json:"startTime"` /* 故障结束时间,格式Unix timestamp,时间单位:毫秒 (Optional) */ EndTime int64 `json:"endTime"` }
type RR ¶
type RR struct { /* 域名解析的唯一ID (Optional) */ Id int `json:"id"` /* 主机记录 (Optional) */ HostRecord string `json:"hostRecord"` /* 解析记录的值 (Optional) */ HostValue string `json:"hostValue"` /* 是否是京东云资源 (Optional) */ JcloudRes bool `json:"jcloudRes"` /* 优先级,只存在于MX, SRV解析记录类型 (Optional) */ MxPriority int `json:"mxPriority"` /* 端口,只存在于SRV解析记录类型 (Optional) */ Port int `json:"port"` /* 解析记录的生存时间,单位:秒 (Optional) */ Ttl int `json:"ttl"` /* 解析记录的类型,有A, AAAA, CNAME, JNAME, TXT, MX, CAA, NS, SRV, IMPLICIT_URL,EXPLICIT_URL几种记录类型 (Optional) */ Type string `json:"type"` /* 解析记录的权重 (Optional) */ Weight int `json:"weight"` /* 解析线路的ID (Optional) */ ViewValue []int `json:"viewValue"` }
type RRInfo ¶
type RRInfo struct { /* 创建者 (Optional) */ Creator string `json:"creator"` /* 线路名称 (Optional) */ ViewName string `json:"viewName"` /* 域名解析的唯一ID (Optional) */ Id int `json:"id"` /* 主机记录 (Optional) */ HostRecord string `json:"hostRecord"` /* 解析记录的值 (Optional) */ HostValue string `json:"hostValue"` /* 是否是京东云资源 (Optional) */ JcloudRes bool `json:"jcloudRes"` /* 优先级,只存在于MX, SRV解析记录类型 (Optional) */ MxPriority int `json:"mxPriority"` /* 端口,只存在于SRV解析记录类型 (Optional) */ Port int `json:"port"` /* 解析记录的生存时间,单位:秒 (Optional) */ Ttl int `json:"ttl"` /* 解析记录的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a> (Optional) */ Type string `json:"type"` /* 解析记录的权重 (Optional) */ Weight int `json:"weight"` /* 解析线路的ID (Optional) */ ViewValue []int `json:"viewValue"` /* 解析记录的状态,正常解析:2,暂停解析:4 (Optional) */ ResolvingStatus string `json:"resolvingStatus"` /* 解析记录更新的时间 (Optional) */ UpdateTime int64 `json:"updateTime"` }
type Records ¶ added in v1.13.0
type Records struct { /* 解析记录值 */ Record string `json:"record"` /* 权重,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */ Weight int `json:"weight"` /* 这条解析记录的TTL (Optional) */ Ttl int `json:"ttl"` /* 优先级,只存在于MX类型的解析记录 (Optional) */ Prior int `json:"prior"` /* 端口,只存在于SRV类型解析记录 (Optional) */ Port int `json:"port"` }
type RecordsReqs ¶ added in v1.13.0
type ResourceInfo ¶
type ResourceRecordSetReqs ¶ added in v1.13.0
type ResourceRecordSetReqs struct { /* 子域名 */ Domain string `json:"domain"` /* 要设置的解析记录数组 */ Data []RecordsReqs `json:"data"` }
type ResourceRemarkInfo ¶
type SetRR ¶
type SetRR struct { /* 子域名 */ Domain string `json:"domain"` /* 要设置的解析记录数组 */ Data []SetRecords `json:"data"` }
type SetRecords ¶
type SubDomainExist ¶
type UpdateMonitor ¶
type UpdateMonitor struct { /* 连续几次触发报警 */ AlarmLimit int `json:"alarmLimit"` /* 监控项ID */ Id int `json:"id"` /* 备用地址1 */ IpBackup01 string `json:"ipBackup01"` /* 备用地址2 */ IpBackup02 string `json:"ipBackup02"` /* 备用地址列表,存在该参数时,可不填写参数备用地址1、备用地址2 (Optional) */ BackupAddressList []string `json:"backupAddressList"` /* 监控状况 开启监控:2,暂停监控:4 */ MonitorEnable int `json:"monitorEnable"` /* 监控频率,单位秒 */ MonitorFreq int `json:"monitorFreq"` /* 监控端口 */ MonitorPort int `json:"monitorPort"` /* 不做任何修改0,强制暂停解析记录1,自动切换到备用地址2 */ MonitorRule int `json:"monitorRule"` /* 监控路径 */ MonitorUri string `json:"monitorUri"` /* 不发送邮件:0, 发送邮件:1 */ NotifyEmailEnable int `json:"notifyEmailEnable"` /* 不发送通知栏:0, 发送通知栏:1 */ NotifyMsgBarEnable int `json:"notifyMsgBarEnable"` /* 不发送短信:0, 发送短信:1 (Optional) */ NotifySmsEnable *int `json:"notifySmsEnable"` /* https 0,https 1 */ Protocol int `json:"protocol"` /* 0自动恢复 1手动恢复 */ StopRecoverRule int `json:"stopRecoverRule"` /* 0自动恢复至主host 1手动恢复至主host */ SwitchRecoverRule int `json:"switchRecoverRule"` /* 探测请求携带自定义头域及其域值列表 (Optional) */ RequestHeaders []HttpHeader `json:"requestHeaders"` /* 探测响应Body体中包含的字符串 (Optional) */ ResponseBodyMatch *string `json:"responseBodyMatch"` /* 探测响应码范围列表 (Optional) */ ResponseCodeRanges []HttpResponseCodeRange `json:"responseCodeRanges"` }
type UpdateRR ¶
type UpdateRR struct { /* 主域名 */ DomainName string `json:"domainName"` /* 主机记录 */ HostRecord string `json:"hostRecord"` /* 解析记录的值 */ HostValue string `json:"hostValue"` /* 是否是京东云资源 (Optional) */ JcloudRes *bool `json:"jcloudRes"` /* 优先级,只存在于MX, SRV解析记录类型 (Optional) */ MxPriority *int `json:"mxPriority"` /* 端口,只存在于SRV解析记录类型 (Optional) */ Port *int `json:"port"` /* 解析记录的生存时间,单位:秒 */ Ttl int `json:"ttl"` /* 解析的类型,请参考<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/detailed-interpretation-of-parsed-records">解析记录类型详解</a> */ Type string `json:"type"` /* 解析记录的权重,目前支持权重的有:A/AAAA/CNAME/JNAME,A/AAAA权重范围:0-100、CNAME/JNAME权重范围:1-100。 (Optional) */ Weight *int `json:"weight"` /* 解析线路的ID,请调用describeViewTree接口获取基础解析线路的ID,使用describeUserView接口获取自定义线路的ID。 */ ViewValue int `json:"viewValue"` }
type UserViewInput ¶
type UserViewInput struct { /* 自定义线路ID (Optional) */ ViewId int `json:"viewId"` /* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文 (Optional) */ ViewName string `json:"viewName"` /* 主域名ID (Optional) */ DomainId int `json:"domainId"` /* 用户输入的IP段,IPV4支持1.1.1.1-2.2.2.2和CIDR格式,IPV6仅支持CIDR格式 (Optional) */ IpRanges []string `json:"ipRanges"` /* 是否删除,0:没有删除,1:已删除 (Optional) */ IsDelete int `json:"isDelete"` /* 创建者 (Optional) */ Creator string `json:"creator"` /* 创建时间,格式Unix timestamp,时间单位:秒 (Optional) */ CreateTime int `json:"createTime"` /* 更新者 (Optional) */ Updator string `json:"updator"` /* 更新时间,格式Unix timestamp,时间单位:秒 (Optional) */ UpdateTime int `json:"updateTime"` }
type Userview ¶
type Userview struct { /* 自定义线路ID (Optional) */ ViewId int `json:"viewId"` /* 自定义线路名称, 最多64个字节,允许:数字、字母、下划线,-,中文 (Optional) */ ViewName string `json:"viewName"` /* 主域名ID (Optional) */ DomainId int `json:"domainId"` /* 域名 (Optional) */ DomainName string `json:"domainName"` /* 是否删除,0:没有删除,1:已删除 (Optional) */ IsDelete int `json:"isDelete"` /* 创建者 (Optional) */ Creator string `json:"creator"` /* 创建时间,格式Unix timestamp,时间单位:秒 (Optional) */ CreateTime int `json:"createTime"` /* 更新者 (Optional) */ Updator string `json:"updator"` /* 更新时间,格式Unix timestamp,时间单位:秒 (Optional) */ UpdateTime int `json:"updateTime"` }
type ViewTree ¶
type ViewTree struct { /* 此解析线路是否禁用 (Optional) */ Disabled bool `json:"disabled"` /* 解析线路的描述 (Optional) */ Label string `json:"label"` /* 此数据是否是叶子节点 (Optional) */ Leaf bool `json:"leaf"` /* 解析线路ID (Optional) */ Value int `json:"value"` /* 解析线路的名称,在使用viewName的参数处使用,如果为空表明此解析线路不能直接使用,请使用它的子线路。 (Optional) */ ViewName string `json:"viewName"` /* (Optional) */ Children []ViewTree `json:"children"` }
Source Files ¶
- A.go
- Actionlog.go
- AddRR.go
- AddView.go
- AddViewIP.go
- BackupAddressesInfo.go
- BatchSetDNS.go
- DelView.go
- DelViewIP.go
- DomainAdded.go
- DomainInfo.go
- Getlb.go
- HostRRlb.go
- HttpHeader.go
- HttpResponseCodeRange.go
- ImportDNS.go
- Jdvpc.go
- Monitor.go
- MonitorAlarmInfo.go
- NS.go
- Notice.go
- RR.go
- RRInfo.go
- Records.go
- RecordsReqs.go
- ResourceInfo.go
- ResourceRecordSetReqs.go
- ResourceRemarkInfo.go
- Result.go
- SetRR.go
- SetRecords.go
- Setlb.go
- SubDomainExist.go
- UpdateMonitor.go
- UpdateRR.go
- UserViewInput.go
- Userview.go
- ViewTree.go
Click to show internal directories.
Click to hide internal directories.