waf

package
v1.65.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 39 Imported by: 3

Documentation

Overview

Generated by PMS #143

Generated by PMS #123

Generated by PMS #136

Generated by PMS #156

Generated by PMS #121

Generated by PMS #139

Generated by PMS #158

Generated by PMS #160

Generated by PMS #112

Generated by PMS #161

Index

Constants

View Source
const (
	// ExpStatusNotExpired not expired
	ExpStatusNotExpired = 0
	// ExpStatusExpired has expired
	ExpStatusExpired = 1
	// ExpStatusExpiredSoon will expire soon
	ExpStatusExpiredSoon = 2

	DefaultPageNum  = 1
	DefaultPageSize = 5
)
View Source
const (
	ChargingModePrePaid  ChargingMode = "prePaid"
	ChargingModePostPaid ChargingMode = "postPaid"

	SpecCodeIntroduction SpecCode = "detection"    // Introduction edition.
	SpecCodeStandard     SpecCode = "professional" // Standard edition (The old is professional edition).
	SpecCodeProfessional SpecCode = "enterprise"   // Professional edition (The old is enterprise edition).
	SpecCodePlatinum     SpecCode = "ultimate"     // Platinum edition (The old is ultimate edition).

	ResourceTypeInstance        ResourceType = "hws.resource.type.waf"                 // prepaid resource type
	ResourceTypeBandwidth       ResourceType = "hws.resource.type.waf.bandwidth"       // prepaid resource type
	ResourceTypeDomain          ResourceType = "hws.resource.type.waf.domain"          // prepaid resource type
	ResourceTypeRule            ResourceType = "hws.resource.type.waf.rule"            // prepaid resource type
	ResourceTypePayPerUseDomain ResourceType = "hws.resource.type.waf.payperusedomain" // postpaid resource type
)

Variables

View Source
var PaidType = "prePaid"

Functions

func DataSourceWafAddressGroups added in v1.59.0

func DataSourceWafAddressGroups() *schema.Resource

@API WAF GET /v1/{project_id}/waf/ip-groups

func DataSourceWafCertificateV1

func DataSourceWafCertificateV1() *schema.Resource

@API WAF GET /v1/{project_id}/waf/certificate

func DataSourceWafDedicatedDomains added in v1.59.0

func DataSourceWafDedicatedDomains() *schema.Resource

@API WAF GET /v1/{project_id}/premium-waf/host

func DataSourceWafDedicatedInstancesV1 added in v1.28.0

func DataSourceWafDedicatedInstancesV1() *schema.Resource

@API WAF GET /v1/{project_id}/premium-waf/instance/{instance_id} @API WAF GET /v1/{project_id}/premium-waf/instance

func DataSourceWafDomains added in v1.61.0

func DataSourceWafDomains() *schema.Resource

@API WAF GET /v1/{project_id}/waf/instance

func DataSourceWafInstanceGroups added in v1.30.0

func DataSourceWafInstanceGroups() *schema.Resource

func DataSourceWafInstanceGroupsRead added in v1.30.0

func DataSourceWafInstanceGroupsRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics

func DataSourceWafPoliciesV1 added in v1.27.2

func DataSourceWafPoliciesV1() *schema.Resource

DataSourceWafPoliciesV1 the function is used for data source 'huaweicloud_waf_policies'. @API WAF GET /v1/{project_id}/waf/policy

func DataSourceWafReferenceTablesV1 added in v1.28.0

func DataSourceWafReferenceTablesV1() *schema.Resource

DataSourceWafReferenceTablesV1 the function is used for data source 'huaweicloud_waf_reference_tables'. @API WAF GET /v1/{project_id}/waf/valuelist

func DataSourceWafRulesAntiCrawler added in v1.64.2

func DataSourceWafRulesAntiCrawler() *schema.Resource

func DataSourceWafRulesBlacklist added in v1.63.2

func DataSourceWafRulesBlacklist() *schema.Resource

func DataSourceWafRulesCcProtection added in v1.64.2

func DataSourceWafRulesCcProtection() *schema.Resource

func DataSourceWafRulesDataMasking added in v1.64.3

func DataSourceWafRulesDataMasking() *schema.Resource

func DataSourceWafRulesGeolocationAccessControl added in v1.63.2

func DataSourceWafRulesGeolocationAccessControl() *schema.Resource

func DataSourceWafRulesGlobalProtectionWhitelist added in v1.64.2

func DataSourceWafRulesGlobalProtectionWhitelist() *schema.Resource

func DataSourceWafRulesInformationLeakagePrevention added in v1.64.3

func DataSourceWafRulesInformationLeakagePrevention() *schema.Resource

func DataSourceWafRulesKnownAttackSource added in v1.64.3

func DataSourceWafRulesKnownAttackSource() *schema.Resource

func DataSourceWafRulesPreciseProtection added in v1.63.2

func DataSourceWafRulesPreciseProtection() *schema.Resource

func DataSourceWafRulesWebTamperProtection added in v1.64.3

func DataSourceWafRulesWebTamperProtection() *schema.Resource

func ResourceCloudInstance added in v1.44.0

func ResourceCloudInstance() *schema.Resource

@API WAF DELETE /v1/{project_id}/waf/postpaid @API WAF POST /v1/{project_id}/waf/postpaid @API WAF POST /v1/{project_id}/waf/subscription/batchalter/prepaid-cloud-waf @API WAF POST /v1/{project_id}/waf/subscription/purchase/prepaid-cloud-waf @API WAF GET /v1/{project_id}/waf/subscription @API BSS GET /v2/orders/customer-orders/details/{order_id} @API BSS POST /v2/orders/suscriptions/resources/query @API BSS POST /v2/orders/subscriptions/resources/autorenew/{instance_id} @API BSS DELETE /v2/orders/subscriptions/resources/autorenew/{instance_id} @API BSS POST /v2/orders/subscriptions/resources/unsubscribe

func ResourceRuleAntiCrawler added in v1.54.0

func ResourceRuleAntiCrawler() *schema.Resource

@API WAF POST /v1/{project_id}/waf/policy/{policy_id}/anticrawler @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/anticrawler @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/anticrawler/{rule_id}

func ResourceRuleCCProtection added in v1.49.0

func ResourceRuleCCProtection() *schema.Resource

@API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id} @API WAF POST /v1/{project_id}/waf/policy/{policy_id}/cc @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/{rule_type}/{rule_id}/status

func ResourceRuleGeolocation added in v1.53.0

func ResourceRuleGeolocation() *schema.Resource

@API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/{rule_type}/{rule_id}/status @API WAF POST /v1/{project_id}/waf/policy/{policy_id}/geoip @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id} @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id}

func ResourceRuleGlobalProtectionWhitelist added in v1.49.0

func ResourceRuleGlobalProtectionWhitelist() *schema.Resource

@API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/{rule_type}/{rule_id}/status @API WAF POST /v1/{project_id}/waf/policy/{policy_id}/ignore @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/ignore/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/ignore/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/ignore/{rule_id}

func ResourceRuleKnownAttack added in v1.53.0

func ResourceRuleKnownAttack() *schema.Resource

@API WAF POST /v1/{project_id}/waf/policy/{policy_id}/punishment @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/punishment/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/punishment/{rule_id} @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/punishment/{rule_id}

func ResourceRuleLeakagePrevention added in v1.54.0

func ResourceRuleLeakagePrevention() *schema.Resource

@API WAF POST /v1/{project_id}/waf/policy/{policy_id}/antileakage @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id}

func ResourceRulePreciseProtection added in v1.49.0

func ResourceRulePreciseProtection() *schema.Resource

@API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/{rule_type}/{rule_id}/status @API WAF POST /v1/{project_id}/waf/policy/{policy_id}/custom @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id}

func ResourceWafAddressGroup added in v1.48.0

func ResourceWafAddressGroup() *schema.Resource

@API WAF GET /v1/{project_id}/waf/ip-group/{id} @API WAF PUT /v1/{project_id}/waf/ip-group/{id} @API WAF DELETE /v1/{project_id}/waf/ip-group/{id} @API WAF POST /v1/{project_id}/waf/ip-groups

func ResourceWafCertificateV1

func ResourceWafCertificateV1() *schema.Resource

@API WAF GET /v1/{project_id}/waf/certificate/{certificate_id} @API WAF PUT /v1/{project_id}/waf/certificate/{certificate_id} @API WAF DELETE /v1/{project_id}/waf/certificate/{certificate_id} @API WAF POST /v1/{project_id}/waf/certificate

func ResourceWafDedicatedDomain added in v1.58.0

func ResourceWafDedicatedDomain() *schema.Resource

@API WAF DELETE /v1/{project_id}/waf/policy/{policy_id} @API WAF PATCH /v1/{project_id}/waf/policy/{policy_id} @API WAF GET /v1/{project_id}/waf/certificate/{certificate_id} @API WAF PUT /v1/{project_id}/premium-waf/host/{host_id}/protect-status @API WAF GET /v1/{project_id}/premium-waf/host/{host_id} @API WAF PUT /v1/{project_id}/premium-waf/host/{host_id} @API WAF DELETE /v1/{project_id}/premium-waf/host/{host_id} @API WAF POST /v1/{project_id}/premium-waf/host

func ResourceWafDedicatedInstance added in v1.30.0

func ResourceWafDedicatedInstance() *schema.Resource

ResourceWafDedicatedInstance the resource of managing a dedicated mode instance within HuaweiCloud. @API WAF DELETE /v1/{project_id}/premium-waf/instance/{instance_id} @API WAF GET /v1/{project_id}/premium-waf/instance/{instance_id} @API WAF PUT /v1/{project_id}/premium-waf/instance/{instance_id} @API WAF POST /v1/{project_id}/premium-waf/instance @API EPS POST /v1.0/enterprise-projects/{enterprise_project_id}/resources-migrate

func ResourceWafDomain added in v1.58.0

func ResourceWafDomain() *schema.Resource

@API WAF GET /v1/{project_id}/waf/instance/{instance_id} @API WAF PUT /v1/{project_id}/waf/instance/{instance_id} @API WAF DELETE /v1/{project_id}/waf/instance/{instance_id} @API WAF POST /v1/{project_id}/waf/instance @API WAF PUT /v1/{project_id}/waf/instance/{instance_id}/protect-status @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id} @API WAF PATCH /v1/{project_id}/waf/policy/{policy_id}

func ResourceWafInstGroupAssociate added in v1.31.1

func ResourceWafInstGroupAssociate() *schema.Resource

func ResourceWafInstanceGroup added in v1.30.0

func ResourceWafInstanceGroup() *schema.Resource

func ResourceWafPolicyV1

func ResourceWafPolicyV1() *schema.Resource

@API WAF DELETE /v1/{project_id}/waf/policy/{policy_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id} @API WAF PATCH /v1/{project_id}/waf/policy/{policy_id} @API WAF POST /v1/{project_id}/waf/policy

func ResourceWafReferenceTableV1 added in v1.28.0

func ResourceWafReferenceTableV1() *schema.Resource

ResourceWafReferenceTableV1 the resource of managing a reference table within HuaweiCloud. @API WAF DELETE /v1/{project_id}/waf/valuelist/{valuelistid} @API WAF GET /v1/{project_id}/waf/valuelist/{valuelistid} @API WAF PUT /v1/{project_id}/waf/valuelist/{valuelistid} @API WAF POST /v1/{project_id}/waf/valuelist

func ResourceWafRuleBlackListV1

func ResourceWafRuleBlackListV1() *schema.Resource

@API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id} @API WAF POST /v1/{project_id}/waf/policy/{policy_id}/whiteblackip @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/{rule_type}/{rule_id}/status

func ResourceWafRuleDataMaskingV1

func ResourceWafRuleDataMaskingV1() *schema.Resource

@API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id} @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id} @API WAF POST /v1/{project_id}/waf/policy/{policy_id}/privacy @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/{rule_type}/{rule_id}/status

func ResourceWafRuleWebTamperProtectionV1

func ResourceWafRuleWebTamperProtectionV1() *schema.Resource

@API WAF POST /v1/{project_id}/waf/policy/{policy_id}/antitamper @API WAF GET /v1/{project_id}/waf/policy/{policy_id}/antitamper/{rule_id} @API WAF DELETE /v1/{project_id}/waf/policy/{policy_id}/antitamper/{rule_id} @API WAF PUT /v1/{project_id}/waf/policy/{policy_id}/{rule_type}/{rule_id}/status

Types

type ChargingMode added in v1.44.0

type ChargingMode string

func QueryCloudInstance added in v1.44.0

func QueryCloudInstance(client *golangsdk.ServiceClient, instanceId, epsId string) (*clouds.Instance,
	ChargingMode, error)

type ResourceType added in v1.44.0

type ResourceType string

type RulesAntiCrawlerDSWrapper added in v1.64.2

type RulesAntiCrawlerDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesAntiCrawlerDSWrapper) ListAnticrawlerRules added in v1.64.2

func (w *RulesAntiCrawlerDSWrapper) ListAnticrawlerRules() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/anticrawler

type RulesBlacklistDSWrapper added in v1.63.2

type RulesBlacklistDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesBlacklistDSWrapper) ListWhiteblackipRule added in v1.63.2

func (w *RulesBlacklistDSWrapper) ListWhiteblackipRule() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/whiteblackip

type RulesCcProtectionDSWrapper added in v1.64.2

type RulesCcProtectionDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesCcProtectionDSWrapper) ListCcRules added in v1.64.2

func (w *RulesCcProtectionDSWrapper) ListCcRules() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/cc

type RulesDataMaskingDSWrapper added in v1.64.3

type RulesDataMaskingDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesDataMaskingDSWrapper) ListPrivacyRule added in v1.64.3

func (w *RulesDataMaskingDSWrapper) ListPrivacyRule() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/privacy

type RulesGeolocationAccessControlDSWrapper added in v1.63.2

type RulesGeolocationAccessControlDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesGeolocationAccessControlDSWrapper) ListGeoipRule added in v1.63.2

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/geoip

type RulesGlobalProtectionWhitelistDSWrapper added in v1.64.2

type RulesGlobalProtectionWhitelistDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesGlobalProtectionWhitelistDSWrapper) ListIgnoreRule added in v1.64.2

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/ignore

type RulesInformationLeakagePreventionDSWrapper added in v1.64.3

type RulesInformationLeakagePreventionDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesInformationLeakagePreventionDSWrapper) ListAntileakageRules added in v1.64.3

func (w *RulesInformationLeakagePreventionDSWrapper) ListAntileakageRules() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/antileakage

type RulesKnownAttackSourceDSWrapper added in v1.64.3

type RulesKnownAttackSourceDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesKnownAttackSourceDSWrapper) ListPunishmentRules added in v1.64.3

func (w *RulesKnownAttackSourceDSWrapper) ListPunishmentRules() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/punishment

type RulesPreciseProtectionDSWrapper added in v1.63.2

type RulesPreciseProtectionDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesPreciseProtectionDSWrapper) ListCustomRules added in v1.63.2

func (w *RulesPreciseProtectionDSWrapper) ListCustomRules() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/custom

type RulesWebTamperProtectionDSWrapper added in v1.64.3

type RulesWebTamperProtectionDSWrapper struct {
	*schemas.ResourceDataWrapper
	Config *config.Config
}

func (*RulesWebTamperProtectionDSWrapper) ListAntitamperRule added in v1.64.3

func (w *RulesWebTamperProtectionDSWrapper) ListAntitamperRule() (*gjson.Result, error)

@API WAF GET /v1/{project_id}/waf/policy/{policy_id}/antitamper

type SpecCode added in v1.44.0

type SpecCode string

Source Files

Jump to

Keyboard shortcuts

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