Documentation ¶
Index ¶
- func AntiDDoSClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForCreateDefaultConfig() *def.HttpRequestDef
- func GenReqDefForDeleteDefaultConfig() *def.HttpRequestDef
- func GenReqDefForListDDosStatus() *def.HttpRequestDef
- func GenReqDefForListDailyLog() *def.HttpRequestDef
- func GenReqDefForListDailyReport() *def.HttpRequestDef
- func GenReqDefForListNewConfigs() *def.HttpRequestDef
- func GenReqDefForListWeeklyReports() *def.HttpRequestDef
- func GenReqDefForShowAlertConfig() *def.HttpRequestDef
- func GenReqDefForShowDDos() *def.HttpRequestDef
- func GenReqDefForShowDDosStatus() *def.HttpRequestDef
- func GenReqDefForShowDefaultConfig() *def.HttpRequestDef
- func GenReqDefForShowNewTaskStatus() *def.HttpRequestDef
- func GenReqDefForUpdateAlertConfig() *def.HttpRequestDef
- func GenReqDefForUpdateDDos() *def.HttpRequestDef
- type AntiDDoSClient
- func (c *AntiDDoSClient) CreateDefaultConfig(request *model.CreateDefaultConfigRequest) (*model.CreateDefaultConfigResponse, error)
- func (c *AntiDDoSClient) DeleteDefaultConfig(request *model.DeleteDefaultConfigRequest) (*model.DeleteDefaultConfigResponse, error)
- func (c *AntiDDoSClient) ListDDosStatus(request *model.ListDDosStatusRequest) (*model.ListDDosStatusResponse, error)
- func (c *AntiDDoSClient) ListDailyLog(request *model.ListDailyLogRequest) (*model.ListDailyLogResponse, error)
- func (c *AntiDDoSClient) ListDailyReport(request *model.ListDailyReportRequest) (*model.ListDailyReportResponse, error)
- func (c *AntiDDoSClient) ListNewConfigs(request *model.ListNewConfigsRequest) (*model.ListNewConfigsResponse, error)
- func (c *AntiDDoSClient) ListWeeklyReports(request *model.ListWeeklyReportsRequest) (*model.ListWeeklyReportsResponse, error)
- func (c *AntiDDoSClient) ShowAlertConfig(request *model.ShowAlertConfigRequest) (*model.ShowAlertConfigResponse, error)
- func (c *AntiDDoSClient) ShowDDos(request *model.ShowDDosRequest) (*model.ShowDDosResponse, error)
- func (c *AntiDDoSClient) ShowDDosStatus(request *model.ShowDDosStatusRequest) (*model.ShowDDosStatusResponse, error)
- func (c *AntiDDoSClient) ShowDefaultConfig(request *model.ShowDefaultConfigRequest) (*model.ShowDefaultConfigResponse, error)
- func (c *AntiDDoSClient) ShowNewTaskStatus(request *model.ShowNewTaskStatusRequest) (*model.ShowNewTaskStatusResponse, error)
- func (c *AntiDDoSClient) UpdateAlertConfig(request *model.UpdateAlertConfigRequest) (*model.UpdateAlertConfigResponse, error)
- func (c *AntiDDoSClient) UpdateDDos(request *model.UpdateDDosRequest) (*model.UpdateDDosResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AntiDDoSClientBuilder ¶
func AntiDDoSClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForCreateDefaultConfig ¶
func GenReqDefForCreateDefaultConfig() *def.HttpRequestDef
func GenReqDefForDeleteDefaultConfig ¶
func GenReqDefForDeleteDefaultConfig() *def.HttpRequestDef
func GenReqDefForListDDosStatus ¶
func GenReqDefForListDDosStatus() *def.HttpRequestDef
func GenReqDefForListDailyLog ¶
func GenReqDefForListDailyLog() *def.HttpRequestDef
func GenReqDefForListDailyReport ¶
func GenReqDefForListDailyReport() *def.HttpRequestDef
func GenReqDefForListNewConfigs ¶
func GenReqDefForListNewConfigs() *def.HttpRequestDef
func GenReqDefForListWeeklyReports ¶
func GenReqDefForListWeeklyReports() *def.HttpRequestDef
func GenReqDefForShowAlertConfig ¶
func GenReqDefForShowAlertConfig() *def.HttpRequestDef
func GenReqDefForShowDDos ¶
func GenReqDefForShowDDos() *def.HttpRequestDef
func GenReqDefForShowDDosStatus ¶
func GenReqDefForShowDDosStatus() *def.HttpRequestDef
func GenReqDefForShowDefaultConfig ¶
func GenReqDefForShowDefaultConfig() *def.HttpRequestDef
func GenReqDefForShowNewTaskStatus ¶
func GenReqDefForShowNewTaskStatus() *def.HttpRequestDef
func GenReqDefForUpdateAlertConfig ¶
func GenReqDefForUpdateAlertConfig() *def.HttpRequestDef
func GenReqDefForUpdateDDos ¶
func GenReqDefForUpdateDDos() *def.HttpRequestDef
Types ¶
type AntiDDoSClient ¶
type AntiDDoSClient struct {
HcClient *http_client.HcHttpClient
}
func NewAntiDDoSClient ¶
func NewAntiDDoSClient(hcClient *http_client.HcHttpClient) *AntiDDoSClient
func (*AntiDDoSClient) CreateDefaultConfig ¶
func (c *AntiDDoSClient) CreateDefaultConfig(request *model.CreateDefaultConfigRequest) (*model.CreateDefaultConfigResponse, error)
配置Anti-DDoS默认防护策略
配置用户的默认防护策略。配置防护策略后,新购买的资源在自动开启防护时,会按照该默认防护策略进行配置。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) DeleteDefaultConfig ¶
func (c *AntiDDoSClient) DeleteDefaultConfig(request *model.DeleteDefaultConfigRequest) (*model.DeleteDefaultConfigResponse, error)
删除Ani-DDoS默认防护策略
删除用户配置的默认防护策略。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ListDDosStatus ¶
func (c *AntiDDoSClient) ListDDosStatus(request *model.ListDDosStatusRequest) (*model.ListDDosStatusResponse, error)
查询EIP防护状态列表
查询用户所有EIP的Anti-DDoS防护状态信息,用户的EIP无论是否绑定到云服务器,都可以进行查询。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ListDailyLog ¶
func (c *AntiDDoSClient) ListDailyLog(request *model.ListDailyLogRequest) (*model.ListDailyLogResponse, error)
查询指定EIP异常事件
查询指定EIP在过去24小时之内的异常事件信息,异常事件包括清洗事件和黑洞事件,查询延迟在5分钟之内。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ListDailyReport ¶
func (c *AntiDDoSClient) ListDailyReport(request *model.ListDailyReportRequest) (*model.ListDailyReportResponse, error)
查询指定EIP防护流量
查询指定EIP在过去24小时之内的防护流量信息,流量的间隔时间单位为5分钟。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ListNewConfigs ¶
func (c *AntiDDoSClient) ListNewConfigs(request *model.ListNewConfigsRequest) (*model.ListNewConfigsResponse, error)
查询Anti-DDoS配置可选范围
查询系统支持的Anti-DDoS防护策略配置的可选范围,用户根据范围列表选择适合自已业务的防护策略进行Anti-DDoS流量清洗。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ListWeeklyReports ¶
func (c *AntiDDoSClient) ListWeeklyReports(request *model.ListWeeklyReportsRequest) (*model.ListWeeklyReportsResponse, error)
查询周防护统计情况
查询用户所有Anti-DDoS防护周统计情况,包括一周内DDoS拦截次数和攻击次数、以及按照被攻击次数进行的排名信息等统计数据。系统支持当前时间之前四周的周统计数据查询,超过这个时间的请求是查询不到统计数据的。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ShowAlertConfig ¶
func (c *AntiDDoSClient) ShowAlertConfig(request *model.ShowAlertConfigRequest) (*model.ShowAlertConfigResponse, error)
查询告警配置信息
查询用户配置信息,用户可以通过此接口查询是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ShowDDos ¶
func (c *AntiDDoSClient) ShowDDos(request *model.ShowDDosRequest) (*model.ShowDDosResponse, error)
查询Anti-DDoS服务
查询配置的Anti-DDoS防护策略,用户可以查询指定EIP的Anti-DDoS防护策略。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ShowDDosStatus ¶
func (c *AntiDDoSClient) ShowDDosStatus(request *model.ShowDDosStatusRequest) (*model.ShowDDosStatusResponse, error)
查询指定EIP防护状态
查询指定EIP的Anti-DDoS防护状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ShowDefaultConfig ¶
func (c *AntiDDoSClient) ShowDefaultConfig(request *model.ShowDefaultConfigRequest) (*model.ShowDefaultConfigResponse, error)
查询Ani-DDoS默认防护策略
查询用户配置的默认防护策略。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) ShowNewTaskStatus ¶
func (c *AntiDDoSClient) ShowNewTaskStatus(request *model.ShowNewTaskStatusRequest) (*model.ShowNewTaskStatusResponse, error)
查询Anti-DDoS任务
用户查询指定的Anti-DDoS防护配置任务,得到任务当前执行的状态。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) UpdateAlertConfig ¶
func (c *AntiDDoSClient) UpdateAlertConfig(request *model.UpdateAlertConfigRequest) (*model.UpdateAlertConfigResponse, error)
更新告警配置信息
更新用户配置信息,用户可以通过此接口更新是否接收某类告警,同时可以配置是手机短信还是电子邮件接收告警信息。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*AntiDDoSClient) UpdateDDos ¶
func (c *AntiDDoSClient) UpdateDDos(request *model.UpdateDDosRequest) (*model.UpdateDDosResponse, error)
更新Anti-DDoS服务
更新指定EIP的Anti-DDoS防护策略配置。调用成功,只是说明服务节点收到了关闭更新配置请求,操作是否成功需要通过任务查询接口查询该任务的执行状态,具体请参考查询Anti-DDoS任务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.