v1

package
v0.0.89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForApplyCertificateToHost

func GenReqDefForApplyCertificateToHost() *def.HttpRequestDef

func GenReqDefForCreateAntiTamperRule

func GenReqDefForCreateAntiTamperRule() *def.HttpRequestDef

func GenReqDefForCreateCertificate

func GenReqDefForCreateCertificate() *def.HttpRequestDef

func GenReqDefForCreateGeoipRule

func GenReqDefForCreateGeoipRule() *def.HttpRequestDef

func GenReqDefForCreateHost

func GenReqDefForCreateHost() *def.HttpRequestDef

func GenReqDefForCreateIgnoreRule added in v0.0.86

func GenReqDefForCreateIgnoreRule() *def.HttpRequestDef

func GenReqDefForCreatePolicy

func GenReqDefForCreatePolicy() *def.HttpRequestDef

func GenReqDefForCreatePremiumHost

func GenReqDefForCreatePremiumHost() *def.HttpRequestDef

func GenReqDefForCreatePrivacyRule

func GenReqDefForCreatePrivacyRule() *def.HttpRequestDef

func GenReqDefForCreateValueList

func GenReqDefForCreateValueList() *def.HttpRequestDef

func GenReqDefForCreateWhiteblackipRule

func GenReqDefForCreateWhiteblackipRule() *def.HttpRequestDef

func GenReqDefForDeleteAntitamperRule

func GenReqDefForDeleteAntitamperRule() *def.HttpRequestDef

func GenReqDefForDeleteCertificate

func GenReqDefForDeleteCertificate() *def.HttpRequestDef

func GenReqDefForDeleteGeoipRule

func GenReqDefForDeleteGeoipRule() *def.HttpRequestDef

func GenReqDefForDeleteHost

func GenReqDefForDeleteHost() *def.HttpRequestDef

func GenReqDefForDeleteIgnoreRule added in v0.0.86

func GenReqDefForDeleteIgnoreRule() *def.HttpRequestDef

func GenReqDefForDeletePolicy

func GenReqDefForDeletePolicy() *def.HttpRequestDef

func GenReqDefForDeletePremiumHost

func GenReqDefForDeletePremiumHost() *def.HttpRequestDef

func GenReqDefForDeletePrivacyRule

func GenReqDefForDeletePrivacyRule() *def.HttpRequestDef

func GenReqDefForDeleteValueList

func GenReqDefForDeleteValueList() *def.HttpRequestDef

func GenReqDefForDeleteWhiteBlackIpRule

func GenReqDefForDeleteWhiteBlackIpRule() *def.HttpRequestDef

func GenReqDefForListAntitamperRule

func GenReqDefForListAntitamperRule() *def.HttpRequestDef

func GenReqDefForListBandwidthTimeline added in v0.0.63

func GenReqDefForListBandwidthTimeline() *def.HttpRequestDef

func GenReqDefForListCertificates

func GenReqDefForListCertificates() *def.HttpRequestDef

func GenReqDefForListCompositeHosts

func GenReqDefForListCompositeHosts() *def.HttpRequestDef

func GenReqDefForListEvent

func GenReqDefForListEvent() *def.HttpRequestDef

func GenReqDefForListGeoipRule

func GenReqDefForListGeoipRule() *def.HttpRequestDef

func GenReqDefForListHost

func GenReqDefForListHost() *def.HttpRequestDef

func GenReqDefForListHostRoute

func GenReqDefForListHostRoute() *def.HttpRequestDef

func GenReqDefForListIgnoreRule added in v0.0.63

func GenReqDefForListIgnoreRule() *def.HttpRequestDef

func GenReqDefForListPolicy

func GenReqDefForListPolicy() *def.HttpRequestDef

func GenReqDefForListPremiumHost

func GenReqDefForListPremiumHost() *def.HttpRequestDef

func GenReqDefForListPrivacyRule

func GenReqDefForListPrivacyRule() *def.HttpRequestDef

func GenReqDefForListQpsTimeline added in v0.0.63

func GenReqDefForListQpsTimeline() *def.HttpRequestDef

func GenReqDefForListStatistics added in v0.0.63

func GenReqDefForListStatistics() *def.HttpRequestDef

func GenReqDefForListTopAbnormal added in v0.0.63

func GenReqDefForListTopAbnormal() *def.HttpRequestDef

func GenReqDefForListValueList

func GenReqDefForListValueList() *def.HttpRequestDef

func GenReqDefForListWhiteblackipRule

func GenReqDefForListWhiteblackipRule() *def.HttpRequestDef

func GenReqDefForShowCertificate

func GenReqDefForShowCertificate() *def.HttpRequestDef

func GenReqDefForShowCompositeHost

func GenReqDefForShowCompositeHost() *def.HttpRequestDef

func GenReqDefForShowConsoleConfig added in v0.0.63

func GenReqDefForShowConsoleConfig() *def.HttpRequestDef

func GenReqDefForShowEvent

func GenReqDefForShowEvent() *def.HttpRequestDef

func GenReqDefForShowHost

func GenReqDefForShowHost() *def.HttpRequestDef

func GenReqDefForShowPolicy

func GenReqDefForShowPolicy() *def.HttpRequestDef

func GenReqDefForShowPremiumHost

func GenReqDefForShowPremiumHost() *def.HttpRequestDef

func GenReqDefForUpdateCertificate

func GenReqDefForUpdateCertificate() *def.HttpRequestDef

func GenReqDefForUpdateGeoipRule

func GenReqDefForUpdateGeoipRule() *def.HttpRequestDef

func GenReqDefForUpdateHost

func GenReqDefForUpdateHost() *def.HttpRequestDef

func GenReqDefForUpdateHostProtectStatus

func GenReqDefForUpdateHostProtectStatus() *def.HttpRequestDef

func GenReqDefForUpdatePolicy

func GenReqDefForUpdatePolicy() *def.HttpRequestDef

func GenReqDefForUpdatePolicyProtectHost

func GenReqDefForUpdatePolicyProtectHost() *def.HttpRequestDef

func GenReqDefForUpdatePolicyRuleStatus

func GenReqDefForUpdatePolicyRuleStatus() *def.HttpRequestDef

func GenReqDefForUpdatePremiumHost

func GenReqDefForUpdatePremiumHost() *def.HttpRequestDef

func GenReqDefForUpdatePremiumHostProtectStatus

func GenReqDefForUpdatePremiumHostProtectStatus() *def.HttpRequestDef

func GenReqDefForUpdatePrivacyRule

func GenReqDefForUpdatePrivacyRule() *def.HttpRequestDef

func GenReqDefForUpdateValueList

func GenReqDefForUpdateValueList() *def.HttpRequestDef

func GenReqDefForUpdateWhiteblackipRule

func GenReqDefForUpdateWhiteblackipRule() *def.HttpRequestDef

func WafClientBuilder

func WafClientBuilder() *http_client.HcHttpClientBuilder

Types

type WafClient

type WafClient struct {
	HcClient *http_client.HcHttpClient
}

func NewWafClient

func NewWafClient(hcClient *http_client.HcHttpClient) *WafClient

func (*WafClient) ApplyCertificateToHost

绑定证书到域名

绑定证书到域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreateAntiTamperRule

创建防篡改规则

创建防篡改规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreateCertificate

func (c *WafClient) CreateCertificate(request *model.CreateCertificateRequest) (*model.CreateCertificateResponse, error)

创建证书

创建证书

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreateGeoipRule

func (c *WafClient) CreateGeoipRule(request *model.CreateGeoipRuleRequest) (*model.CreateGeoipRuleResponse, error)

创建地理位置规则

创建地理位置规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreateHost

func (c *WafClient) CreateHost(request *model.CreateHostRequest) (*model.CreateHostResponse, error)

创建云模式防护域名

创建云模式防护域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreateIgnoreRule added in v0.0.86

func (c *WafClient) CreateIgnoreRule(request *model.CreateIgnoreRuleRequest) (*model.CreateIgnoreRuleResponse, error)

创建误报屏蔽规则

创建误报屏蔽规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreatePolicy

func (c *WafClient) CreatePolicy(request *model.CreatePolicyRequest) (*model.CreatePolicyResponse, error)

创建防护策略

创建防护策略

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreatePremiumHost

func (c *WafClient) CreatePremiumHost(request *model.CreatePremiumHostRequest) (*model.CreatePremiumHostResponse, error)

创建独享模式域名

创建独享模式域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreatePrivacyRule

func (c *WafClient) CreatePrivacyRule(request *model.CreatePrivacyRuleRequest) (*model.CreatePrivacyRuleResponse, error)

创建隐私屏蔽防护规则

创建隐私屏蔽防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreateValueList

func (c *WafClient) CreateValueList(request *model.CreateValueListRequest) (*model.CreateValueListResponse, error)

创建引用表

创建引用表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) CreateWhiteblackipRule

创建黑白名单规则

创建黑白名单规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeleteAntitamperRule

删除防篡改防护规则

删除防篡改防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeleteCertificate

func (c *WafClient) DeleteCertificate(request *model.DeleteCertificateRequest) (*model.DeleteCertificateResponse, error)

删除证书

删除证书

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeleteGeoipRule

func (c *WafClient) DeleteGeoipRule(request *model.DeleteGeoipRuleRequest) (*model.DeleteGeoipRuleResponse, error)

删除地理位置防护规则

删除地理位置防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeleteHost

func (c *WafClient) DeleteHost(request *model.DeleteHostRequest) (*model.DeleteHostResponse, error)

删除云模式防护域名

删除云模式防护域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeleteIgnoreRule added in v0.0.86

func (c *WafClient) DeleteIgnoreRule(request *model.DeleteIgnoreRuleRequest) (*model.DeleteIgnoreRuleResponse, error)

删除误报屏蔽防护规则

删除误报屏蔽防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeletePolicy

func (c *WafClient) DeletePolicy(request *model.DeletePolicyRequest) (*model.DeletePolicyResponse, error)

删除防护策略

删除防护策略

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeletePremiumHost

func (c *WafClient) DeletePremiumHost(request *model.DeletePremiumHostRequest) (*model.DeletePremiumHostResponse, error)

删除独享模式域名

删除独享模式域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeletePrivacyRule

func (c *WafClient) DeletePrivacyRule(request *model.DeletePrivacyRuleRequest) (*model.DeletePrivacyRuleResponse, error)

删除隐私屏蔽防护规则

删除隐私屏蔽防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeleteValueList

func (c *WafClient) DeleteValueList(request *model.DeleteValueListRequest) (*model.DeleteValueListResponse, error)

删除引用表

删除引用表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) DeleteWhiteBlackIpRule

删除黑白名单防护规则

删除黑白名单防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListAntitamperRule

func (c *WafClient) ListAntitamperRule(request *model.ListAntitamperRuleRequest) (*model.ListAntitamperRuleResponse, error)

查询防篡改规则列表

查询防篡改规则列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListBandwidthTimeline added in v0.0.63

查询安全统计带宽数据

查询安全统计带宽数据

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListCertificates

func (c *WafClient) ListCertificates(request *model.ListCertificatesRequest) (*model.ListCertificatesResponse, error)

查询证书列表

查询证书列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListCompositeHosts

func (c *WafClient) ListCompositeHosts(request *model.ListCompositeHostsRequest) (*model.ListCompositeHostsResponse, error)

查询全部防护域名列表

查询全部防护域名列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListEvent

func (c *WafClient) ListEvent(request *model.ListEventRequest) (*model.ListEventResponse, error)

查询攻击事件列表

查询攻击事件列表,该API暂时不支持查询全部防护事件,pagesize参数不可设为-1,由于性能原因,数据量越大消耗的内存越大,后端最多限制查询10000条数据,例如:自定义时间段内的数据超过了10000条,就无法查出page为101,pagesize为100之后的数据,需要调整时间区间,再进行查询

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListGeoipRule

func (c *WafClient) ListGeoipRule(request *model.ListGeoipRuleRequest) (*model.ListGeoipRuleResponse, error)

查询地理位置规则列表

查询地理位置规则列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListHost

func (c *WafClient) ListHost(request *model.ListHostRequest) (*model.ListHostResponse, error)

查询云模式防护域名列表

查询云模式防护域名列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListHostRoute

func (c *WafClient) ListHostRoute(request *model.ListHostRouteRequest) (*model.ListHostRouteResponse, error)

获取云模式域名路由信息

返回路由信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListIgnoreRule added in v0.0.63

func (c *WafClient) ListIgnoreRule(request *model.ListIgnoreRuleRequest) (*model.ListIgnoreRuleResponse, error)

查询误报屏蔽规则列表

查询误报屏蔽规则列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListPolicy

func (c *WafClient) ListPolicy(request *model.ListPolicyRequest) (*model.ListPolicyResponse, error)

查询防护策略列表

查询防护策略列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListPremiumHost

func (c *WafClient) ListPremiumHost(request *model.ListPremiumHostRequest) (*model.ListPremiumHostResponse, error)

独享模式域名列表

独享模式域名列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListPrivacyRule

func (c *WafClient) ListPrivacyRule(request *model.ListPrivacyRuleRequest) (*model.ListPrivacyRuleResponse, error)

查询隐私屏蔽防护规则

查询隐私屏蔽防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListQpsTimeline added in v0.0.63

func (c *WafClient) ListQpsTimeline(request *model.ListQpsTimelineRequest) (*model.ListQpsTimelineResponse, error)

查询安全统计qps次数

查询安全统计qps次数

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListStatistics added in v0.0.63

func (c *WafClient) ListStatistics(request *model.ListStatisticsRequest) (*model.ListStatisticsResponse, error)

查询安全总览请求数据

查询安全总览请求数据

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListTopAbnormal added in v0.0.63

func (c *WafClient) ListTopAbnormal(request *model.ListTopAbnormalRequest) (*model.ListTopAbnormalResponse, error)

查询业务异常数量

查询业务异常数量

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListValueList

func (c *WafClient) ListValueList(request *model.ListValueListRequest) (*model.ListValueListResponse, error)

查询引用表列表

查询引用表列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ListWhiteblackipRule

查询黑白名单规则列表

查询黑白名单规则列表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ShowCertificate

func (c *WafClient) ShowCertificate(request *model.ShowCertificateRequest) (*model.ShowCertificateResponse, error)

查询证书

查询证书

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ShowCompositeHost

func (c *WafClient) ShowCompositeHost(request *model.ShowCompositeHostRequest) (*model.ShowCompositeHostResponse, error)

根据Id查询防护域名

根据Id查询防护域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ShowConsoleConfig added in v0.0.63

func (c *WafClient) ShowConsoleConfig(request *model.ShowConsoleConfigRequest) (*model.ShowConsoleConfigResponse, error)

局点支持特性查询

局点支持特性查询

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ShowEvent

func (c *WafClient) ShowEvent(request *model.ShowEventRequest) (*model.ShowEventResponse, error)

查询攻击事件详情

查询攻击事件详情

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ShowHost

func (c *WafClient) ShowHost(request *model.ShowHostRequest) (*model.ShowHostResponse, error)

根据Id查询云模式防护域名

根据Id查询云模式防护域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ShowPolicy

func (c *WafClient) ShowPolicy(request *model.ShowPolicyRequest) (*model.ShowPolicyResponse, error)

根据Id查询防护策略

根据Id查询防护策略

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) ShowPremiumHost

func (c *WafClient) ShowPremiumHost(request *model.ShowPremiumHostRequest) (*model.ShowPremiumHostResponse, error)

查看独享模式域名配置

查看独享模式域名配置

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdateCertificate

func (c *WafClient) UpdateCertificate(request *model.UpdateCertificateRequest) (*model.UpdateCertificateResponse, error)

修改证书

修改证书

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdateGeoipRule

func (c *WafClient) UpdateGeoipRule(request *model.UpdateGeoipRuleRequest) (*model.UpdateGeoipRuleResponse, error)

更新地理位置防护规则

更新地理位置防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdateHost

func (c *WafClient) UpdateHost(request *model.UpdateHostRequest) (*model.UpdateHostResponse, error)

更新云模式防护域名

更新云模式防护域名配置,在没有填入源站信息server的原始数据的情况下,则新的源站信息server会覆盖源站信息,而不是新增源站

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdateHostProtectStatus

修改域名防护状态

返回路由信息

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdatePolicy

func (c *WafClient) UpdatePolicy(request *model.UpdatePolicyRequest) (*model.UpdatePolicyResponse, error)

更新防护策略

更新防护策略,请求体可只传需要更新的部分

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdatePolicyProtectHost

更新防护策略的域名

更新防护策略的防护域名

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdatePolicyRuleStatus

修改单条规则的状态

修改单条规则的状态

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdatePremiumHost

func (c *WafClient) UpdatePremiumHost(request *model.UpdatePremiumHostRequest) (*model.UpdatePremiumHostResponse, error)

修改独享模式域名配置

修改独享模式域名配置

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdatePremiumHostProtectStatus

修改独享模式域名防护状态

修改独享模式域名防护状态

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdatePrivacyRule

func (c *WafClient) UpdatePrivacyRule(request *model.UpdatePrivacyRuleRequest) (*model.UpdatePrivacyRuleResponse, error)

更新隐私屏蔽防护规则

更新隐私屏蔽防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdateValueList

func (c *WafClient) UpdateValueList(request *model.UpdateValueListRequest) (*model.UpdateValueListResponse, error)

修改引用表

修改引用表

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

func (*WafClient) UpdateWhiteblackipRule

更新黑白名单防护规则

更新黑白名单防护规则

详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL