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