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
- Variables
- func DataSourceWafAddressGroups() *schema.Resource
- func DataSourceWafCertificateV1() *schema.Resource
- func DataSourceWafDedicatedDomains() *schema.Resource
- func DataSourceWafDedicatedInstancesV1() *schema.Resource
- func DataSourceWafDomains() *schema.Resource
- func DataSourceWafInstanceGroups() *schema.Resource
- func DataSourceWafInstanceGroupsRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func DataSourceWafPoliciesV1() *schema.Resource
- func DataSourceWafReferenceTablesV1() *schema.Resource
- func DataSourceWafRulesAntiCrawler() *schema.Resource
- func DataSourceWafRulesBlacklist() *schema.Resource
- func DataSourceWafRulesCcProtection() *schema.Resource
- func DataSourceWafRulesDataMasking() *schema.Resource
- func DataSourceWafRulesGeolocationAccessControl() *schema.Resource
- func DataSourceWafRulesGlobalProtectionWhitelist() *schema.Resource
- func DataSourceWafRulesInformationLeakagePrevention() *schema.Resource
- func DataSourceWafRulesKnownAttackSource() *schema.Resource
- func DataSourceWafRulesPreciseProtection() *schema.Resource
- func DataSourceWafRulesWebTamperProtection() *schema.Resource
- func ResourceCloudInstance() *schema.Resource
- func ResourceRuleAntiCrawler() *schema.Resource
- func ResourceRuleCCProtection() *schema.Resource
- func ResourceRuleGeolocation() *schema.Resource
- func ResourceRuleGlobalProtectionWhitelist() *schema.Resource
- func ResourceRuleKnownAttack() *schema.Resource
- func ResourceRuleLeakagePrevention() *schema.Resource
- func ResourceRulePreciseProtection() *schema.Resource
- func ResourceWafAddressGroup() *schema.Resource
- func ResourceWafCertificateV1() *schema.Resource
- func ResourceWafDedicatedDomain() *schema.Resource
- func ResourceWafDedicatedInstance() *schema.Resource
- func ResourceWafDomain() *schema.Resource
- func ResourceWafInstGroupAssociate() *schema.Resource
- func ResourceWafInstanceGroup() *schema.Resource
- func ResourceWafPolicyV1() *schema.Resource
- func ResourceWafReferenceTableV1() *schema.Resource
- func ResourceWafRuleBlackListV1() *schema.Resource
- func ResourceWafRuleDataMaskingV1() *schema.Resource
- func ResourceWafRuleWebTamperProtectionV1() *schema.Resource
- type ChargingMode
- type ResourceType
- type RulesAntiCrawlerDSWrapper
- type RulesBlacklistDSWrapper
- type RulesCcProtectionDSWrapper
- type RulesDataMaskingDSWrapper
- type RulesGeolocationAccessControlDSWrapper
- type RulesGlobalProtectionWhitelistDSWrapper
- type RulesInformationLeakagePreventionDSWrapper
- type RulesKnownAttackSourceDSWrapper
- type RulesPreciseProtectionDSWrapper
- type RulesWebTamperProtectionDSWrapper
- type SpecCode
Constants ¶
const ( // ExpStatusNotExpired not expired ExpStatusNotExpired = 0 // ExpStatusExpired has expired ExpStatusExpired = 1 // ExpStatusExpiredSoon will expire soon ExpStatusExpiredSoon = 2 DefaultPageNum = 1 DefaultPageSize = 5 )
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 ¶
var PaidType = "prePaid"
Functions ¶
func DataSourceWafAddressGroups ¶ added in v1.59.0
@API WAF GET /v1/{project_id}/waf/ip-groups
func DataSourceWafCertificateV1 ¶
@API WAF GET /v1/{project_id}/waf/certificate
func DataSourceWafDedicatedDomains ¶ added in v1.59.0
@API WAF GET /v1/{project_id}/premium-waf/host
func DataSourceWafDedicatedInstancesV1 ¶ added in v1.28.0
@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
@API WAF GET /v1/{project_id}/waf/instance
func DataSourceWafInstanceGroups ¶ added in v1.30.0
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
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
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 DataSourceWafRulesBlacklist ¶ added in v1.63.2
func DataSourceWafRulesCcProtection ¶ added in v1.64.2
func DataSourceWafRulesDataMasking ¶ added in v1.64.3
func DataSourceWafRulesGeolocationAccessControl ¶ added in v1.63.2
func DataSourceWafRulesGlobalProtectionWhitelist ¶ added in v1.64.2
func DataSourceWafRulesInformationLeakagePrevention ¶ added in v1.64.3
func DataSourceWafRulesKnownAttackSource ¶ added in v1.64.3
func DataSourceWafRulesPreciseProtection ¶ added in v1.63.2
func DataSourceWafRulesWebTamperProtection ¶ added in v1.64.3
func ResourceCloudInstance ¶ added in v1.44.0
@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
@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
@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
@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
@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
@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
@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
@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
@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 ¶
@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
@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
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
@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 ResourceWafInstanceGroup ¶ added in v1.30.0
func ResourceWafPolicyV1 ¶
@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
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 ¶
@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 ¶
@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 ¶
@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
func (w *RulesGeolocationAccessControlDSWrapper) ListGeoipRule() (*gjson.Result, error)
@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
func (w *RulesGlobalProtectionWhitelistDSWrapper) ListIgnoreRule() (*gjson.Result, error)
@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
Source Files ¶
- data_source_huaweicloud_waf_address_groups.go
- data_source_huaweicloud_waf_certificate.go
- data_source_huaweicloud_waf_dedicated_domains.go
- data_source_huaweicloud_waf_dedicated_instances.go
- data_source_huaweicloud_waf_domains.go
- data_source_huaweicloud_waf_instance_groups.go
- data_source_huaweicloud_waf_policies.go
- data_source_huaweicloud_waf_reference_tables.go
- data_source_huaweicloud_waf_rules_anti_crawler.go
- data_source_huaweicloud_waf_rules_blacklist.go
- data_source_huaweicloud_waf_rules_cc_protection.go
- data_source_huaweicloud_waf_rules_data_masking.go
- data_source_huaweicloud_waf_rules_geolocation_access_control.go
- data_source_huaweicloud_waf_rules_global_protection_whitelist.go
- data_source_huaweicloud_waf_rules_information_leakage_prevention.go
- data_source_huaweicloud_waf_rules_known_attack_source.go
- data_source_huaweicloud_waf_rules_precise_protection.go
- data_source_huaweicloud_waf_rules_web_tamper_protection.go
- resource_huaweicloud_waf_address_group.go
- resource_huaweicloud_waf_certificate.go
- resource_huaweicloud_waf_cloud_instance.go
- resource_huaweicloud_waf_dedicated_domain.go
- resource_huaweicloud_waf_dedicated_instance.go
- resource_huaweicloud_waf_domain.go
- resource_huaweicloud_waf_instance_group.go
- resource_huaweicloud_waf_instance_group_associate.go
- resource_huaweicloud_waf_policy.go
- resource_huaweicloud_waf_reference_table.go
- resource_huaweicloud_waf_rule_anti_crawler.go
- resource_huaweicloud_waf_rule_blacklist.go
- resource_huaweicloud_waf_rule_cc_protection.go
- resource_huaweicloud_waf_rule_data_masking.go
- resource_huaweicloud_waf_rule_geolocation_access_control.go
- resource_huaweicloud_waf_rule_global_protection_whitelist.go
- resource_huaweicloud_waf_rule_information_leakage_prevention.go
- resource_huaweicloud_waf_rule_known_attack_source.go
- resource_huaweicloud_waf_rule_precise_protection.go
- resource_huaweicloud_waf_rule_web_tamper_protection.go