cfw

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 27 Imported by: 1

Documentation

Overview

Generated by PMS #44

Generated by PMS #31

Index

Constants

View Source
const (
	FirewallNotExistsCode = "CFW.00200005"
)

Variables

This section is empty.

Functions

func DataSourceCfwAddressGroups added in v1.63.0

func DataSourceCfwAddressGroups() *schema.Resource

func DataSourceCfwAttackLogs added in v1.64.0

func DataSourceCfwAttackLogs() *schema.Resource

@API CFW GET /v1/{project_id}/cfw/logs/attack

func DataSourceCfwServiceGroups added in v1.63.0

func DataSourceCfwServiceGroups() *schema.Resource

func DataSourceFirewalls

func DataSourceFirewalls() *schema.Resource

@API CFW GET /v1/{project_id}/firewall/exist

func FilterRules

func FilterRules(rules []interface{}, id string) (interface{}, error)

func FilterServiceGroupMembers added in v1.47.0

func FilterServiceGroupMembers(members []interface{}, id string) (interface{}, error)

func ProtectedEipExist added in v1.54.0

func ProtectedEipExist(eips []interface{}) bool

ProtectedEipExist method will return true if a protected public IP exists under the object.

func ProtectionRuleIpRegionDtoSchema added in v1.62.0

func ProtectionRuleIpRegionDtoSchema() *schema.Resource

func ProtectionRuleOrderRuleAclDtoSchema

func ProtectionRuleOrderRuleAclDtoSchema() *schema.Resource

func ProtectionRuleRuleAddressDtoSchema

func ProtectionRuleRuleAddressDtoSchema() *schema.Resource

func ProtectionRuleRuleServiceDtoSchema

func ProtectionRuleRuleServiceDtoSchema() *schema.Resource

func ProtectionRuleRuleServiceItemSchema added in v1.63.0

func ProtectionRuleRuleServiceItemSchema() *schema.Resource

func QuerySyncedEips added in v1.54.0

func QuerySyncedEips(client *golangsdk.ServiceClient, url, objectId string) ([]interface{}, error)

QuerySyncedEips is the method used to query synced EIPs for CFW service.

func ReadAddressGroupMembers added in v1.63.1

func ReadAddressGroupMembers(setID string, client *golangsdk.ServiceClient) ([]interface{}, interface{}, error)

func ResourceAddressGroup added in v1.47.0

func ResourceAddressGroup() *schema.Resource

@API CFW POST /v1/{project_id}/address-set @API CFW DELETE /v1/{project_id}/address-sets/{id} @API CFW GET /v1/{project_id}/address-sets/{id} @API CFW PUT /v1/{project_id}/address-sets/{id}

func ResourceAddressGroupMember added in v1.47.0

func ResourceAddressGroupMember() *schema.Resource

@API CFW POST /v1/{project_id}/address-items @API CFW GET /v1/{project_id}/address-items @API CFW DELETE /v1/{project_id}/address-items/{id}

func ResourceBlackWhiteList added in v1.47.0

func ResourceBlackWhiteList() *schema.Resource

@API CFW POST /v1/{project_id}/black-white-list @API CFW DELETE /v1/{project_id}/black-white-list/{id} @API CFW PUT /v1/{project_id}/black-white-list/{id} @API CFW GET /v1/{project_id}/black-white-lists

func ResourceDNSResolution added in v1.63.0

func ResourceDNSResolution() *schema.Resource

@API CFW GET /v1/{project_id}/dns/servers @API CFW PUT /v1/{project_id}/dns/servers

func ResourceDomainNameGroup added in v1.61.0

func ResourceDomainNameGroup() *schema.Resource

func ResourceEipProtection added in v1.54.0

func ResourceEipProtection() *schema.Resource

@API CFW POST /v1/{project_id}/eip/protect @API CFW GET /v1/{project_id}/eips/protect

func ResourceFirewall added in v1.59.0

func ResourceFirewall() *schema.Resource

func ResourceLtsLog added in v1.63.0

func ResourceLtsLog() *schema.Resource

@API CFW POST /v1/{project_id}/cfw/logs/configuration @API CFW GET /v1/{project_id}/cfw/logs/configuration @API CFW PUT /v1/{project_id}/cfw/logs/configuration

func ResourceProtectionRule

func ResourceProtectionRule() *schema.Resource

@API CFW POST /v1/{project_id}/acl-rule @API CFW DELETE /v1/{project_id}/acl-rule/{id} @API CFW PUT /v1/{project_id}/acl-rule/{id} @API CFW GET /v1/{project_id}/acl-rules @API CFW PUT /v1/{project_id}/acl-rule/order/{id} @API CFW POST /v1/{project_id}/acl-rule/count @API CFW DELETE /v1/{project_id}/acl-rule/count

func ResourceServiceGroup added in v1.47.0

func ResourceServiceGroup() *schema.Resource

@API CFW POST /v1/{project_id}/service-set @API CFW DELETE /v1/{project_id}/service-sets/{id} @API CFW GET /v1/{project_id}/service-sets/{id} @API CFW PUT /v1/{project_id}/service-sets/{id}

func ResourceServiceGroupMember added in v1.47.0

func ResourceServiceGroupMember() *schema.Resource

@API CFW GET /v1/{project_id}/service-items @API CFW POST /v1/{project_id}/service-items @API CFW DELETE /v1/{project_id}/service-items/{id}

Types

type AddressGroupsDSWrapper added in v1.63.0

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

func (*AddressGroupsDSWrapper) ListAddressSets added in v1.63.0

func (w *AddressGroupsDSWrapper) ListAddressSets() (*gjson.Result, error)

@API CFW GET /v1/{project_id}/address-sets

type ServiceGroupsDSWrapper added in v1.63.0

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

func (*ServiceGroupsDSWrapper) ListServiceSets added in v1.63.0

func (w *ServiceGroupsDSWrapper) ListServiceSets() (*gjson.Result, error)

@API CFW GET /v1/{project_id}/service-sets

Jump to

Keyboard shortcuts

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