Documentation ¶
Index ¶
- type AntiproClient
- func (c *AntiproClient) AddProtectedIp(request *antipro.AddProtectedIpRequest) (*antipro.AddProtectedIpResponse, error)
- func (c *AntiproClient) CheckInstanceName(request *antipro.CheckInstanceNameRequest) (*antipro.CheckInstanceNameResponse, error)
- func (c *AntiproClient) CreateInstance(request *antipro.CreateInstanceRequest) (*antipro.CreateInstanceResponse, error)
- func (c *AntiproClient) DeleteProtectedIp(request *antipro.DeleteProtectedIpRequest) (*antipro.DeleteProtectedIpResponse, error)
- func (c *AntiproClient) DescribeAttackLogs(request *antipro.DescribeAttackLogsRequest) (*antipro.DescribeAttackLogsResponse, error)
- func (c *AntiproClient) DescribeAttackSource(request *antipro.DescribeAttackSourceRequest) (*antipro.DescribeAttackSourceResponse, error)
- func (c *AntiproClient) DescribeAttackStatistics(request *antipro.DescribeAttackStatisticsRequest) (*antipro.DescribeAttackStatisticsResponse, error)
- func (c *AntiproClient) DescribeAttackTypeCount(request *antipro.DescribeAttackTypeCountRequest) (*antipro.DescribeAttackTypeCountResponse, error)
- func (c *AntiproClient) DescribeCcsIpResources(request *antipro.DescribeCcsIpResourcesRequest) (*antipro.DescribeCcsIpResourcesResponse, error)
- func (c *AntiproClient) DescribeCpsIpResources(request *antipro.DescribeCpsIpResourcesRequest) (*antipro.DescribeCpsIpResourcesResponse, error)
- func (c *AntiproClient) DescribeElasticIpResources(request *antipro.DescribeElasticIpResourcesRequest) (*antipro.DescribeElasticIpResourcesResponse, error)
- func (c *AntiproClient) DescribeGeoAreas(request *antipro.DescribeGeoAreasRequest) (*antipro.DescribeGeoAreasResponse, error)
- func (c *AntiproClient) DescribeInstance(request *antipro.DescribeInstanceRequest) (*antipro.DescribeInstanceResponse, error)
- func (c *AntiproClient) DescribeInstances(request *antipro.DescribeInstancesRequest) (*antipro.DescribeInstancesResponse, error)
- func (c *AntiproClient) DescribeIpMonitorFlow(request *antipro.DescribeIpMonitorFlowRequest) (*antipro.DescribeIpMonitorFlowResponse, error)
- func (c *AntiproClient) DescribeOperationRecords(request *antipro.DescribeOperationRecordsRequest) (*antipro.DescribeOperationRecordsResponse, error)
- func (c *AntiproClient) DescribeProtectedIpList(request *antipro.DescribeProtectedIpListRequest) (*antipro.DescribeProtectedIpListResponse, error)
- func (c *AntiproClient) DescribeProtectionOutline(request *antipro.DescribeProtectionOutlineRequest) (*antipro.DescribeProtectionOutlineResponse, error)
- func (c *AntiproClient) DescribeProtectionRule(request *antipro.DescribeProtectionRuleRequest) (*antipro.DescribeProtectionRuleResponse, error)
- func (c *AntiproClient) ModifyInstance(request *antipro.ModifyInstanceRequest) (*antipro.ModifyInstanceResponse, error)
- func (c *AntiproClient) ModifyInstanceName(request *antipro.ModifyInstanceNameRequest) (*antipro.ModifyInstanceNameResponse, error)
- func (c *AntiproClient) ModifyProtectionRule(request *antipro.ModifyProtectionRuleRequest) (*antipro.ModifyProtectionRuleResponse, error)
- func (c *AntiproClient) SetConfig(config *core.Config)
- func (c *AntiproClient) SetLogger(logger core.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AntiproClient ¶
type AntiproClient struct {
core.JDCloudClient
}
func NewAntiproClient ¶
func NewAntiproClient(credential *core.Credential) *AntiproClient
func (*AntiproClient) AddProtectedIp ¶
func (c *AntiproClient) AddProtectedIp(request *antipro.AddProtectedIpRequest) (*antipro.AddProtectedIpResponse, error)
添加防护包防护 IP.
- 防护包仅能防护防护包实例所在区域的公网 IP, 且该公网 IP 未被其他防护包防护, 如果已经被其他防护包防护, 请先调用删除防护包防护 IP 接口删除防护 IP - 防护包可添加的防护 IP 个数小于等于防护包的可防护 IP 数量减去已防护的 IP 数量 - 使用 <a href="http://docs.jdcloud.com/anti-ddos-protection-package/api/describeelasticipresources">describeElasticIpResources</a> 接口查询防护包可防护的弹性公网 IP - 使用 <a href="http://docs.jdcloud.com/anti-ddos-protection-package/api/describecpsipresources">describeCpsIpResources</a> 接口查询防护包可防护的云物理服务器公网 IP
func (*AntiproClient) CheckInstanceName ¶
func (c *AntiproClient) CheckInstanceName(request *antipro.CheckInstanceNameRequest) (*antipro.CheckInstanceNameResponse, error)
检测实例名称是否可用, 防护包实例名称不可重复
func (*AntiproClient) CreateInstance ¶
func (c *AntiproClient) CreateInstance(request *antipro.CreateInstanceRequest) (*antipro.CreateInstanceResponse, error)
创建防护包实例, 当前支持区域: 华北-北京, 华东-宿迁, 华东-上海
func (*AntiproClient) DeleteProtectedIp ¶
func (c *AntiproClient) DeleteProtectedIp(request *antipro.DeleteProtectedIpRequest) (*antipro.DeleteProtectedIpResponse, error)
删除防护包防护 IP
func (*AntiproClient) DescribeAttackLogs ¶
func (c *AntiproClient) DescribeAttackLogs(request *antipro.DescribeAttackLogsRequest) (*antipro.DescribeAttackLogsResponse, error)
查询攻击记录, 参数 ip 优先级大于 instanceId
- 指定 ip 参数时, 忽略 instanceId 参数, 查询 ip 相关攻击记录
- 未指定 ip 时, 查询 instanceId 指定实例相关攻击记录
- ip 和 instanceId 均未指定时, 查询用户所有公网 IP 攻击记录
func (*AntiproClient) DescribeAttackSource ¶
func (c *AntiproClient) DescribeAttackSource(request *antipro.DescribeAttackSourceRequest) (*antipro.DescribeAttackSourceResponse, error)
查询攻击来源
func (*AntiproClient) DescribeAttackStatistics ¶
func (c *AntiproClient) DescribeAttackStatistics(request *antipro.DescribeAttackStatisticsRequest) (*antipro.DescribeAttackStatisticsResponse, error)
攻击记录统计, 参数 ip 优先级大于 instanceId
- 指定 ip 参数时, 忽略 instanceId 参数, 统计 ip 的攻击情况
- 未指定 ip 时, 统计 instanceId 指定实例相关攻击情况
- ip 和 instanceId 均未指定时, 查询用户所有公网 IP 攻击情况
func (*AntiproClient) DescribeAttackTypeCount ¶
func (c *AntiproClient) DescribeAttackTypeCount(request *antipro.DescribeAttackTypeCountRequest) (*antipro.DescribeAttackTypeCountResponse, error)
查询各类型攻击次数, 参数 ip 优先级大于 instanceId
- 指定 ip 参数时, 忽略 instanceId 参数, 查询 ip 相关攻击记录的各类型攻击次数
- 未指定 ip 时, 查询 instanceId 指定实例相关攻击记录的各类型攻击次数
- ip 和 instanceId 均未指定时, 查询用户所有公网 IP 攻击记录的各类型攻击次数
func (*AntiproClient) DescribeCcsIpResources ¶ added in v1.10.0
func (c *AntiproClient) DescribeCcsIpResources(request *antipro.DescribeCcsIpResourcesRequest) (*antipro.DescribeCcsIpResourcesResponse, error)
查询 DDoS 防护包可防护的托管区公网 IP
func (*AntiproClient) DescribeCpsIpResources ¶
func (c *AntiproClient) DescribeCpsIpResources(request *antipro.DescribeCpsIpResourcesRequest) (*antipro.DescribeCpsIpResourcesResponse, error)
查询 DDoS 防护包可防护的云物理服务器公网 IP(包括云物理服务器弹性公网 IP 及云物理服务器基础网络实例的公网 IP)
func (*AntiproClient) DescribeElasticIpResources ¶
func (c *AntiproClient) DescribeElasticIpResources(request *antipro.DescribeElasticIpResourcesRequest) (*antipro.DescribeElasticIpResourcesResponse, error)
查询 DDoS 防护包可防护的私有网络弹性公网 IP(不包括运营商级 NAT 保留地址和 IPv6)
func (*AntiproClient) DescribeGeoAreas ¶
func (c *AntiproClient) DescribeGeoAreas(request *antipro.DescribeGeoAreasRequest) (*antipro.DescribeGeoAreasResponse, error)
查询防护规则 Geo 拦截可设置区域
func (*AntiproClient) DescribeInstance ¶
func (c *AntiproClient) DescribeInstance(request *antipro.DescribeInstanceRequest) (*antipro.DescribeInstanceResponse, error)
查询防护包实例
func (*AntiproClient) DescribeInstances ¶
func (c *AntiproClient) DescribeInstances(request *antipro.DescribeInstancesRequest) (*antipro.DescribeInstancesResponse, error)
查询防护包实例列表
func (*AntiproClient) DescribeIpMonitorFlow ¶
func (c *AntiproClient) DescribeIpMonitorFlow(request *antipro.DescribeIpMonitorFlowRequest) (*antipro.DescribeIpMonitorFlowResponse, error)
查询公网 IP 的监控流量
func (*AntiproClient) DescribeOperationRecords ¶
func (c *AntiproClient) DescribeOperationRecords(request *antipro.DescribeOperationRecordsRequest) (*antipro.DescribeOperationRecordsResponse, error)
查询操作日志
func (*AntiproClient) DescribeProtectedIpList ¶
func (c *AntiproClient) DescribeProtectedIpList(request *antipro.DescribeProtectedIpListRequest) (*antipro.DescribeProtectedIpListResponse, error)
查询已防护 IP 列表
func (*AntiproClient) DescribeProtectionOutline ¶
func (c *AntiproClient) DescribeProtectionOutline(request *antipro.DescribeProtectionOutlineRequest) (*antipro.DescribeProtectionOutlineResponse, error)
防护包防护信息概要
func (*AntiproClient) DescribeProtectionRule ¶
func (c *AntiproClient) DescribeProtectionRule(request *antipro.DescribeProtectionRuleRequest) (*antipro.DescribeProtectionRuleResponse, error)
获取防护包实例或 IP 的防护规则
func (*AntiproClient) ModifyInstance ¶
func (c *AntiproClient) ModifyInstance(request *antipro.ModifyInstanceRequest) (*antipro.ModifyInstanceResponse, error)
升级防护包实例
func (*AntiproClient) ModifyInstanceName ¶
func (c *AntiproClient) ModifyInstanceName(request *antipro.ModifyInstanceNameRequest) (*antipro.ModifyInstanceNameResponse, error)
修改防护包实例名称
func (*AntiproClient) ModifyProtectionRule ¶
func (c *AntiproClient) ModifyProtectionRule(request *antipro.ModifyProtectionRuleRequest) (*antipro.ModifyProtectionRuleResponse, error)
修改防护包实例或 IP 的防护规则
func (*AntiproClient) SetConfig ¶
func (c *AntiproClient) SetConfig(config *core.Config)
func (*AntiproClient) SetLogger ¶
func (c *AntiproClient) SetLogger(logger core.Logger)