Documentation ¶
Index ¶
- type ClouddnsserviceClient
- func (c *ClouddnsserviceClient) AddDomain(request *clouddnsservice.AddDomainRequest) (*clouddnsservice.AddDomainResponse, error)
- func (c *ClouddnsserviceClient) AddMonitor(request *clouddnsservice.AddMonitorRequest) (*clouddnsservice.AddMonitorResponse, error)
- func (c *ClouddnsserviceClient) AddMonitorTarget(request *clouddnsservice.AddMonitorTargetRequest) (*clouddnsservice.AddMonitorTargetResponse, error)
- func (c *ClouddnsserviceClient) AddRR(request *clouddnsservice.AddRRRequest) (*clouddnsservice.AddRRResponse, error)
- func (c *ClouddnsserviceClient) AddUserView(request *clouddnsservice.AddUserViewRequest) (*clouddnsservice.AddUserViewResponse, error)
- func (c *ClouddnsserviceClient) AddUserViewIP(request *clouddnsservice.AddUserViewIPRequest) (*clouddnsservice.AddUserViewIPResponse, error)
- func (c *ClouddnsserviceClient) BatchSetDnsResolve(request *clouddnsservice.BatchSetDnsResolveRequest) (*clouddnsservice.BatchSetDnsResolveResponse, error)
- func (c *ClouddnsserviceClient) DelDomain(request *clouddnsservice.DelDomainRequest) (*clouddnsservice.DelDomainResponse, error)
- func (c *ClouddnsserviceClient) DelUserView(request *clouddnsservice.DelUserViewRequest) (*clouddnsservice.DelUserViewResponse, error)
- func (c *ClouddnsserviceClient) DelUserViewIP(request *clouddnsservice.DelUserViewIPRequest) (*clouddnsservice.DelUserViewIPResponse, error)
- func (c *ClouddnsserviceClient) GetActionLog(request *clouddnsservice.GetActionLogRequest) (*clouddnsservice.GetActionLogResponse, error)
- func (c *ClouddnsserviceClient) GetDomainQueryCount(request *clouddnsservice.GetDomainQueryCountRequest) (*clouddnsservice.GetDomainQueryCountResponse, error)
- func (c *ClouddnsserviceClient) GetDomainQueryTraffic(request *clouddnsservice.GetDomainQueryTrafficRequest) (*clouddnsservice.GetDomainQueryTrafficResponse, error)
- func (c *ClouddnsserviceClient) GetDomains(request *clouddnsservice.GetDomainsRequest) (*clouddnsservice.GetDomainsResponse, error)
- func (c *ClouddnsserviceClient) GetMonitor(request *clouddnsservice.GetMonitorRequest) (*clouddnsservice.GetMonitorResponse, error)
- func (c *ClouddnsserviceClient) GetMonitorAlarmInfo(request *clouddnsservice.GetMonitorAlarmInfoRequest) (*clouddnsservice.GetMonitorAlarmInfoResponse, error)
- func (c *ClouddnsserviceClient) GetTargets(request *clouddnsservice.GetTargetsRequest) (*clouddnsservice.GetTargetsResponse, error)
- func (c *ClouddnsserviceClient) GetUserView(request *clouddnsservice.GetUserViewRequest) (*clouddnsservice.GetUserViewResponse, error)
- func (c *ClouddnsserviceClient) GetUserViewIP(request *clouddnsservice.GetUserViewIPRequest) (*clouddnsservice.GetUserViewIPResponse, error)
- func (c *ClouddnsserviceClient) GetViewTree(request *clouddnsservice.GetViewTreeRequest) (*clouddnsservice.GetViewTreeResponse, error)
- func (c *ClouddnsserviceClient) OperateMonitor(request *clouddnsservice.OperateMonitorRequest) (*clouddnsservice.OperateMonitorResponse, error)
- func (c *ClouddnsserviceClient) OperateRR(request *clouddnsservice.OperateRRRequest) (*clouddnsservice.OperateRRResponse, error)
- func (c *ClouddnsserviceClient) SearchRR(request *clouddnsservice.SearchRRRequest) (*clouddnsservice.SearchRRResponse, error)
- func (c *ClouddnsserviceClient) SetConfig(config *core.Config)
- func (c *ClouddnsserviceClient) SetLogger(logger core.Logger)
- func (c *ClouddnsserviceClient) UpdateDomain(request *clouddnsservice.UpdateDomainRequest) (*clouddnsservice.UpdateDomainResponse, error)
- func (c *ClouddnsserviceClient) UpdateMonitor(request *clouddnsservice.UpdateMonitorRequest) (*clouddnsservice.UpdateMonitorResponse, error)
- func (c *ClouddnsserviceClient) UpdateRR(request *clouddnsservice.UpdateRRRequest) (*clouddnsservice.UpdateRRResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClouddnsserviceClient ¶
type ClouddnsserviceClient struct {
core.JDCloudClient
}
func NewClouddnsserviceClient ¶
func NewClouddnsserviceClient(credential *core.Credential) *ClouddnsserviceClient
func (*ClouddnsserviceClient) AddDomain ¶
func (c *ClouddnsserviceClient) AddDomain(request *clouddnsservice.AddDomainRequest) (*clouddnsservice.AddDomainResponse, error)
添加主域名
如何添加免费域名,详细情况请查阅<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/domainadd">文档</a> 添加收费域名,请查阅<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/purchase-process">文档</a>, 添加收费域名前,请确保用户的京东云账户有足够的资金支付,Openapi接口回返回订单号,可以用此订单号向计费系统查阅详情。
func (*ClouddnsserviceClient) AddMonitor ¶
func (c *ClouddnsserviceClient) AddMonitor(request *clouddnsservice.AddMonitorRequest) (*clouddnsservice.AddMonitorResponse, error)
添加子域名的监控项,默认把子域名的所有监控项都添加上监控
func (*ClouddnsserviceClient) AddMonitorTarget ¶
func (c *ClouddnsserviceClient) AddMonitorTarget(request *clouddnsservice.AddMonitorTargetRequest) (*clouddnsservice.AddMonitorTargetResponse, error)
添加子域名的某些特定监控对象为监控项
func (*ClouddnsserviceClient) AddRR ¶
func (c *ClouddnsserviceClient) AddRR(request *clouddnsservice.AddRRRequest) (*clouddnsservice.AddRRResponse, error)
添加主域名的解析记录
func (*ClouddnsserviceClient) AddUserView ¶ added in v1.1.2
func (c *ClouddnsserviceClient) AddUserView(request *clouddnsservice.AddUserViewRequest) (*clouddnsservice.AddUserViewResponse, error)
添加主域名的自定义解析线路
func (*ClouddnsserviceClient) AddUserViewIP ¶ added in v1.1.2
func (c *ClouddnsserviceClient) AddUserViewIP(request *clouddnsservice.AddUserViewIPRequest) (*clouddnsservice.AddUserViewIPResponse, error)
添加主域名的自定义解析线路的IP段
func (*ClouddnsserviceClient) BatchSetDnsResolve ¶ added in v1.2.2
func (c *ClouddnsserviceClient) BatchSetDnsResolve(request *clouddnsservice.BatchSetDnsResolveRequest) (*clouddnsservice.BatchSetDnsResolveResponse, error)
同一个主域名下,批量新增或者批量更新导入解析记录。
如果解析记录的ID为0,是新增解析记录,如果不为0,则是更新解析记录。
func (*ClouddnsserviceClient) DelDomain ¶
func (c *ClouddnsserviceClient) DelDomain(request *clouddnsservice.DelDomainRequest) (*clouddnsservice.DelDomainResponse, error)
删除主域名
func (*ClouddnsserviceClient) DelUserView ¶ added in v1.1.2
func (c *ClouddnsserviceClient) DelUserView(request *clouddnsservice.DelUserViewRequest) (*clouddnsservice.DelUserViewResponse, error)
删除主域名的自定义解析线路
func (*ClouddnsserviceClient) DelUserViewIP ¶ added in v1.1.2
func (c *ClouddnsserviceClient) DelUserViewIP(request *clouddnsservice.DelUserViewIPRequest) (*clouddnsservice.DelUserViewIPResponse, error)
删除主域名的自定义解析线路的IP段
func (*ClouddnsserviceClient) GetActionLog ¶ added in v1.1.2
func (c *ClouddnsserviceClient) GetActionLog(request *clouddnsservice.GetActionLogRequest) (*clouddnsservice.GetActionLogResponse, error)
查看用户在云解析服务下的操作记录
func (*ClouddnsserviceClient) GetDomainQueryCount ¶ added in v1.0.7
func (c *ClouddnsserviceClient) GetDomainQueryCount(request *clouddnsservice.GetDomainQueryCountRequest) (*clouddnsservice.GetDomainQueryCountResponse, error)
查看主域名的解析次数
func (*ClouddnsserviceClient) GetDomainQueryTraffic ¶ added in v1.0.7
func (c *ClouddnsserviceClient) GetDomainQueryTraffic(request *clouddnsservice.GetDomainQueryTrafficRequest) (*clouddnsservice.GetDomainQueryTrafficResponse, error)
查看域名的查询流量
func (*ClouddnsserviceClient) GetDomains ¶
func (c *ClouddnsserviceClient) GetDomains(request *clouddnsservice.GetDomainsRequest) (*clouddnsservice.GetDomainsResponse, error)
获取用户所属的主域名列表。
请在调用域名相关的接口之前,调用此接口获取相关的domainId和domainName。 主域名的相关概念,请查阅<a href="https://docs.jdcloud.com/cn/jd-cloud-dns/product-overview">云解析文档</a>
func (*ClouddnsserviceClient) GetMonitor ¶
func (c *ClouddnsserviceClient) GetMonitor(request *clouddnsservice.GetMonitorRequest) (*clouddnsservice.GetMonitorResponse, error)
查看主域名的监控项的配置以及状态
func (*ClouddnsserviceClient) GetMonitorAlarmInfo ¶
func (c *ClouddnsserviceClient) GetMonitorAlarmInfo(request *clouddnsservice.GetMonitorAlarmInfoRequest) (*clouddnsservice.GetMonitorAlarmInfoResponse, error)
主域名的监控项的报警信息
func (*ClouddnsserviceClient) GetTargets ¶
func (c *ClouddnsserviceClient) GetTargets(request *clouddnsservice.GetTargetsRequest) (*clouddnsservice.GetTargetsResponse, error)
查询子域名的可用监控对象
func (*ClouddnsserviceClient) GetUserView ¶ added in v1.1.2
func (c *ClouddnsserviceClient) GetUserView(request *clouddnsservice.GetUserViewRequest) (*clouddnsservice.GetUserViewResponse, error)
查询主域名的自定义解析线路
func (*ClouddnsserviceClient) GetUserViewIP ¶ added in v1.1.2
func (c *ClouddnsserviceClient) GetUserViewIP(request *clouddnsservice.GetUserViewIPRequest) (*clouddnsservice.GetUserViewIPResponse, error)
查询主域名的自定义解析线路的IP段
func (*ClouddnsserviceClient) GetViewTree ¶
func (c *ClouddnsserviceClient) GetViewTree(request *clouddnsservice.GetViewTreeRequest) (*clouddnsservice.GetViewTreeResponse, error)
查询云解析所有的基础解析线路。
在使用解析线路的参数之前,请调用此接口获取解析线路的ID。
func (*ClouddnsserviceClient) OperateMonitor ¶
func (c *ClouddnsserviceClient) OperateMonitor(request *clouddnsservice.OperateMonitorRequest) (*clouddnsservice.OperateMonitorResponse, error)
监控项的操作集合,包括:删除,暂停,启动, 手动恢复, 手动切换
func (*ClouddnsserviceClient) OperateRR ¶
func (c *ClouddnsserviceClient) OperateRR(request *clouddnsservice.OperateRRRequest) (*clouddnsservice.OperateRRResponse, error)
启用、停用、删除主域名下的解析记录
func (*ClouddnsserviceClient) SearchRR ¶
func (c *ClouddnsserviceClient) SearchRR(request *clouddnsservice.SearchRRRequest) (*clouddnsservice.SearchRRResponse, error)
查询主域名的解析记录。
在使用解析记录相关的接口之前,请调用此接口获取解析记录的列表。
func (*ClouddnsserviceClient) SetConfig ¶
func (c *ClouddnsserviceClient) SetConfig(config *core.Config)
func (*ClouddnsserviceClient) SetLogger ¶
func (c *ClouddnsserviceClient) SetLogger(logger core.Logger)
func (*ClouddnsserviceClient) UpdateDomain ¶
func (c *ClouddnsserviceClient) UpdateDomain(request *clouddnsservice.UpdateDomainRequest) (*clouddnsservice.UpdateDomainResponse, error)
修改主域名
func (*ClouddnsserviceClient) UpdateMonitor ¶
func (c *ClouddnsserviceClient) UpdateMonitor(request *clouddnsservice.UpdateMonitorRequest) (*clouddnsservice.UpdateMonitorResponse, error)
域名的监控项修改
func (*ClouddnsserviceClient) UpdateRR ¶
func (c *ClouddnsserviceClient) UpdateRR(request *clouddnsservice.UpdateRRRequest) (*clouddnsservice.UpdateRRResponse, error)
修改主域名的某个解析记录