Documentation
¶
Index ¶
- type A
- type Actionlog
- type AddRR
- type AddView
- type AddViewIP
- type BatchSetDNS
- type DelView
- type DelViewIP
- type Domain
- type DomainAdded
- type DomainInfo
- type Getalb
- type Getlb
- type HostRRlb
- type ImportDNS
- type Jdvpc
- type Monitor
- type MonitorAlarmInfo
- type NS
- type Notice
- type RR
- type RRInfo
- type Result
- type Setalb
- type Setlb
- 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 ¶ added in v1.1.2
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"`
/* 解析的类型 */
Type string `json:"type"`
/* 解析记录的权重 (Optional) */
Weight *int `json:"weight"`
/* 解析线路的ID */
ViewValue int `json:"viewValue"`
}
type BatchSetDNS ¶ added in v1.1.3
type BatchSetDNS struct {
/* 解析记录对应的域名的ID。一次请求里面应该是相同的domainId。 */
DomainId int `json:"domainId"`
/* 主机记录 */
HostRecord string `json:"hostRecord"`
/* 解析记录的值 */
HostValue string `json:"hostValue"`
/* 解析记录的ID, 如果是新增请填0,如果是更新,请使用searchRR接口查询解析记录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"`
/* 解析的类型 */
Type string `json:"type"`
/* 解析记录的权重 (Optional) */
Weight *int `json:"weight"`
/* 解析线路的ID */
ViewValue int `json:"viewValue"`
}
type Domain ¶
type Domain 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"`
/* 域名的锁定状态,0:未锁定, 1:已锁定 (Optional) */
LockStatus int `json:"lockStatus"`
}
type DomainAdded ¶ added in v1.2.2
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 ¶ added in v1.1.2
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"`
/* 解析的状态 (Optional) */
ResolvingStatus string `json:"resolvingStatus"`
/* 创建者 (Optional) */
Creator string `json:"creator"`
/* 是否是京东云资源 (Optional) */
JcloudNs bool `json:"jcloudNs"`
/* 域名的锁定状态,0:未锁定, 1:已锁定 (Optional) */
LockStatus int `json:"lockStatus"`
}
type Getalb ¶ added in v1.1.2
type Getalb struct {
/* 负载均衡的解析记录的列表中解析记录是否是相同的权重<br>
true: 按权重分配负载<br>
false: 均等负载
(Optional) */
IsBalance bool `json:"isBalance"`
/* 主机记录 (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 Getlb ¶ added in v1.2.2
type Getlb struct {
/* 负载均衡的解析记录的列表中解析记录是否是相同的权重<br>
true: 按权重分配负载<br>
false: 均等负载
(Optional) */
IsBalance bool `json:"isBalance"`
/* 主机记录 (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 ImportDNS ¶ added in v1.1.2
type ImportDNS struct {
/* 解析记录对应的域名的ID */
DomainId int `json:"domainId"`
/* 主机记录 */
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"`
/* 解析的类型 */
Type string `json:"type"`
/* 解析记录的权重 (Optional) */
Weight int `json:"weight"`
/* 解析线路的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"`
/* https 0,https 1 (Optional) */
Protocol int `json:"protocol"`
/* 0自动恢复 1手动恢复 (Optional) */
StopRecoverRule int `json:"stopRecoverRule"`
/* 子域名 (Optional) */
SubDomainName string `json:"subDomainName"`
/* 0自动恢复至主host 1手动恢复至主host (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"`
}
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"`
/* 优先级,只存在于某些解析记录类型 (Optional) */
MxPriority int `json:"mxPriority"`
/* 端口,只存在于某些解析记录类型 (Optional) */
Port int `json:"port"`
/* 解析记录的生存时间 (Optional) */
Ttl int `json:"ttl"`
/* 解析记录的类型 (Optional) */
Type string `json:"type"`
/* 解析记录的权重 (Optional) */
Weight int `json:"weight"`
/* 解析线路的ID (Optional) */
ViewValue []int `json:"viewValue"`
}
type RRInfo ¶ added in v1.1.2
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"`
/* 优先级,只存在于某些解析记录类型 (Optional) */
MxPriority int `json:"mxPriority"`
/* 端口,只存在于某些解析记录类型 (Optional) */
Port int `json:"port"`
/* 解析记录的生存时间 (Optional) */
Ttl int `json:"ttl"`
/* 解析记录的类型 (Optional) */
Type string `json:"type"`
/* 解析记录的权重 (Optional) */
Weight int `json:"weight"`
/* 解析线路的ID (Optional) */
ViewValue []int `json:"viewValue"`
/* 解析记录的状态 (Optional) */
ResolvingStatus string `json:"resolvingStatus"`
/* 解析记录更新的时间 (Optional) */
UpdateTime int64 `json:"updateTime"`
}
type UpdateMonitor ¶
type UpdateMonitor struct {
/* 连续几次触发报警 */
AlarmLimit int `json:"alarmLimit"`
/* 监控项ID */
Id int `json:"id"`
/* 备用地址1 */
IpBackup01 string `json:"ipBackup01"`
/* 备用地址2 */
IpBackup02 string `json:"ipBackup02"`
/* 监控状况 开启监控 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"`
}
type UpdateRR ¶
type UpdateRR struct {
/* 主域名 */
DomainName string `json:"domainName"`
/* 域名解析的唯一ID */
Id int `json:"id"`
/* 主机记录 */
HostRecord string `json:"hostRecord"`
/* 解析记录的值 */
HostValue string `json:"hostValue"`
/* 是否是京东云资源 (Optional) */
JcloudRes *bool `json:"jcloudRes"`
/* 优先级,只存在于某些解析记录类型 (Optional) */
MxPriority *int `json:"mxPriority"`
/* 端口,只存在于某些解析记录类型 (Optional) */
Port *int `json:"port"`
/* 解析记录的生存时间 */
Ttl int `json:"ttl"`
/* 解析的类型 */
Type string `json:"type"`
/* 解析记录的权重 (Optional) */
Weight *int `json:"weight"`
/* 解析线路的ID */
ViewValue int `json:"viewValue"`
}
type UserViewInput ¶ added in v1.1.2
type UserViewInput struct {
/* 自定义线路ID (Optional) */
ViewId int `json:"viewId"`
/* 自定义线路名称, 最多64个字符 (Optional) */
ViewName string `json:"viewName"`
/* 域名ID (Optional) */
DomainId int `json:"domainId"`
/* 用户输入的IP段 (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 ¶ added in v1.1.2
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"`
}
Source Files
¶
- A.go
- Actionlog.go
- AddRR.go
- AddView.go
- AddViewIP.go
- BatchSetDNS.go
- DelView.go
- DelViewIP.go
- Domain.go
- DomainAdded.go
- DomainInfo.go
- Getalb.go
- Getlb.go
- HostRRlb.go
- ImportDNS.go
- Jdvpc.go
- Monitor.go
- MonitorAlarmInfo.go
- NS.go
- Notice.go
- RR.go
- RRInfo.go
- Result.go
- Setalb.go
- Setlb.go
- UpdateMonitor.go
- UpdateRR.go
- UserViewInput.go
- Userview.go
- ViewTree.go
Click to show internal directories.
Click to hide internal directories.