Documentation ¶
Index ¶
- type ActionType
- type CustomRule
- type CustomRuleEnabledState
- type CustomRuleList
- type FrontDoorWebApplicationFirewallPoliciesId
- func NewFrontDoorWebApplicationFirewallPoliciesID(...) FrontDoorWebApplicationFirewallPoliciesId
- func ParseFrontDoorWebApplicationFirewallPoliciesID(input string) (*FrontDoorWebApplicationFirewallPoliciesId, error)
- func ParseFrontDoorWebApplicationFirewallPoliciesIDInsensitively(input string) (*FrontDoorWebApplicationFirewallPoliciesId, error)
- type FrontendEndpointLink
- type ManagedRuleEnabledState
- type ManagedRuleExclusion
- type ManagedRuleExclusionMatchVariable
- type ManagedRuleExclusionSelectorMatchOperator
- type ManagedRuleGroupOverride
- type ManagedRuleOverride
- type ManagedRuleSet
- type ManagedRuleSetList
- type MatchCondition
- type MatchVariable
- type Operator
- type PoliciesCreateOrUpdateResponse
- type PoliciesDeleteResponse
- type PoliciesGetResponse
- type PoliciesListCompleteResult
- type PoliciesListResponse
- type PolicyEnabledState
- type PolicyMode
- type PolicyResourceState
- type PolicySettings
- type ResourceGroupId
- type RoutingRuleLink
- type RuleType
- type TransformType
- type WebApplicationFirewallPoliciesClient
- func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdate(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId, ...) (result PoliciesCreateOrUpdateResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdateThenPoll(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId, ...) error
- func (c WebApplicationFirewallPoliciesClient) PoliciesDelete(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId) (result PoliciesDeleteResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesDeleteThenPoll(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId) error
- func (c WebApplicationFirewallPoliciesClient) PoliciesGet(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId) (result PoliciesGetResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesList(ctx context.Context, id ResourceGroupId) (resp PoliciesListResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesListComplete(ctx context.Context, id ResourceGroupId) (PoliciesListCompleteResult, error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesListCompleteMatchingPredicate(ctx context.Context, id ResourceGroupId, ...) (resp PoliciesListCompleteResult, err error)
- type WebApplicationFirewallPolicy
- type WebApplicationFirewallPolicyPredicate
- type WebApplicationFirewallPolicyProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
const ( ActionTypeAllow ActionType = "Allow" ActionTypeBlock ActionType = "Block" ActionTypeLog ActionType = "Log" ActionTypeRedirect ActionType = "Redirect" )
type CustomRule ¶
type CustomRule struct { Action ActionType `json:"action"` EnabledState *CustomRuleEnabledState `json:"enabledState,omitempty"` MatchConditions []MatchCondition `json:"matchConditions"` Name *string `json:"name,omitempty"` Priority int64 `json:"priority"` RateLimitDurationInMinutes *int64 `json:"rateLimitDurationInMinutes,omitempty"` RateLimitThreshold *int64 `json:"rateLimitThreshold,omitempty"` RuleType RuleType `json:"ruleType"` }
type CustomRuleEnabledState ¶
type CustomRuleEnabledState string
const ( CustomRuleEnabledStateDisabled CustomRuleEnabledState = "Disabled" CustomRuleEnabledStateEnabled CustomRuleEnabledState = "Enabled" )
type CustomRuleList ¶
type CustomRuleList struct {
Rules *[]CustomRule `json:"rules,omitempty"`
}
type FrontDoorWebApplicationFirewallPoliciesId ¶
type FrontDoorWebApplicationFirewallPoliciesId struct { SubscriptionId string ResourceGroup string FrontDoorWebApplicationFirewallPolicyName string }
func NewFrontDoorWebApplicationFirewallPoliciesID ¶
func NewFrontDoorWebApplicationFirewallPoliciesID(subscriptionId, resourceGroup, frontDoorWebApplicationFirewallPolicyName string) FrontDoorWebApplicationFirewallPoliciesId
func ParseFrontDoorWebApplicationFirewallPoliciesID ¶
func ParseFrontDoorWebApplicationFirewallPoliciesID(input string) (*FrontDoorWebApplicationFirewallPoliciesId, error)
ParseFrontDoorWebApplicationFirewallPoliciesID parses a FrontDoorWebApplicationFirewallPolicies ID into an FrontDoorWebApplicationFirewallPoliciesId struct
func ParseFrontDoorWebApplicationFirewallPoliciesIDInsensitively ¶
func ParseFrontDoorWebApplicationFirewallPoliciesIDInsensitively(input string) (*FrontDoorWebApplicationFirewallPoliciesId, error)
ParseFrontDoorWebApplicationFirewallPoliciesIDInsensitively parses an FrontDoorWebApplicationFirewallPolicies ID into an FrontDoorWebApplicationFirewallPoliciesId struct, insensitively This should only be used to parse an ID for rewriting to a consistent casing, the ParseFrontDoorWebApplicationFirewallPoliciesID method should be used instead for validation etc.
func (FrontDoorWebApplicationFirewallPoliciesId) ID ¶
func (id FrontDoorWebApplicationFirewallPoliciesId) ID() string
func (FrontDoorWebApplicationFirewallPoliciesId) String ¶
func (id FrontDoorWebApplicationFirewallPoliciesId) String() string
type FrontendEndpointLink ¶
type FrontendEndpointLink struct {
Id *string `json:"id,omitempty"`
}
type ManagedRuleEnabledState ¶
type ManagedRuleEnabledState string
const ( ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" )
type ManagedRuleExclusion ¶
type ManagedRuleExclusion struct { MatchVariable ManagedRuleExclusionMatchVariable `json:"matchVariable"` Selector string `json:"selector"` SelectorMatchOperator ManagedRuleExclusionSelectorMatchOperator `json:"selectorMatchOperator"` }
type ManagedRuleExclusionMatchVariable ¶
type ManagedRuleExclusionMatchVariable string
const ( ManagedRuleExclusionMatchVariableQueryStringArgNames ManagedRuleExclusionMatchVariable = "QueryStringArgNames" ManagedRuleExclusionMatchVariableRequestBodyPostArgNames ManagedRuleExclusionMatchVariable = "RequestBodyPostArgNames" ManagedRuleExclusionMatchVariableRequestCookieNames ManagedRuleExclusionMatchVariable = "RequestCookieNames" ManagedRuleExclusionMatchVariableRequestHeaderNames ManagedRuleExclusionMatchVariable = "RequestHeaderNames" )
type ManagedRuleExclusionSelectorMatchOperator ¶
type ManagedRuleExclusionSelectorMatchOperator string
const ( ManagedRuleExclusionSelectorMatchOperatorContains ManagedRuleExclusionSelectorMatchOperator = "Contains" ManagedRuleExclusionSelectorMatchOperatorEndsWith ManagedRuleExclusionSelectorMatchOperator = "EndsWith" ManagedRuleExclusionSelectorMatchOperatorEquals ManagedRuleExclusionSelectorMatchOperator = "Equals" ManagedRuleExclusionSelectorMatchOperatorEqualsAny ManagedRuleExclusionSelectorMatchOperator = "EqualsAny" ManagedRuleExclusionSelectorMatchOperatorStartsWith ManagedRuleExclusionSelectorMatchOperator = "StartsWith" )
type ManagedRuleGroupOverride ¶
type ManagedRuleGroupOverride struct { Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` RuleGroupName string `json:"ruleGroupName"` Rules *[]ManagedRuleOverride `json:"rules,omitempty"` }
type ManagedRuleOverride ¶
type ManagedRuleOverride struct { Action *ActionType `json:"action,omitempty"` EnabledState *ManagedRuleEnabledState `json:"enabledState,omitempty"` Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` RuleId string `json:"ruleId"` }
type ManagedRuleSet ¶
type ManagedRuleSet struct { Exclusions *[]ManagedRuleExclusion `json:"exclusions,omitempty"` RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` RuleSetType string `json:"ruleSetType"` RuleSetVersion string `json:"ruleSetVersion"` }
type ManagedRuleSetList ¶
type ManagedRuleSetList struct {
ManagedRuleSets *[]ManagedRuleSet `json:"managedRuleSets,omitempty"`
}
type MatchCondition ¶
type MatchCondition struct { MatchValue []string `json:"matchValue"` MatchVariable MatchVariable `json:"matchVariable"` NegateCondition *bool `json:"negateCondition,omitempty"` Operator Operator `json:"operator"` Selector *string `json:"selector,omitempty"` Transforms *[]TransformType `json:"transforms,omitempty"` }
type MatchVariable ¶
type MatchVariable string
const ( MatchVariableCookies MatchVariable = "Cookies" MatchVariablePostArgs MatchVariable = "PostArgs" MatchVariableQueryString MatchVariable = "QueryString" MatchVariableRemoteAddr MatchVariable = "RemoteAddr" MatchVariableRequestBody MatchVariable = "RequestBody" MatchVariableRequestHeader MatchVariable = "RequestHeader" MatchVariableRequestMethod MatchVariable = "RequestMethod" MatchVariableRequestUri MatchVariable = "RequestUri" MatchVariableSocketAddr MatchVariable = "SocketAddr" )
type Operator ¶
type Operator string
const ( OperatorAny Operator = "Any" OperatorBeginsWith Operator = "BeginsWith" OperatorContains Operator = "Contains" OperatorEndsWith Operator = "EndsWith" OperatorEqual Operator = "Equal" OperatorGeoMatch Operator = "GeoMatch" OperatorGreaterThan Operator = "GreaterThan" OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" OperatorIPMatch Operator = "IPMatch" OperatorLessThan Operator = "LessThan" OperatorLessThanOrEqual Operator = "LessThanOrEqual" OperatorRegEx Operator = "RegEx" )
type PoliciesCreateOrUpdateResponse ¶
type PoliciesCreateOrUpdateResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type PoliciesDeleteResponse ¶
type PoliciesDeleteResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type PoliciesGetResponse ¶
type PoliciesGetResponse struct { HttpResponse *http.Response Model *WebApplicationFirewallPolicy }
type PoliciesListCompleteResult ¶
type PoliciesListCompleteResult struct {
Items []WebApplicationFirewallPolicy
}
type PoliciesListResponse ¶
type PoliciesListResponse struct { HttpResponse *http.Response Model *[]WebApplicationFirewallPolicy // contains filtered or unexported fields }
func (PoliciesListResponse) HasMore ¶
func (r PoliciesListResponse) HasMore() bool
func (PoliciesListResponse) LoadMore ¶
func (r PoliciesListResponse) LoadMore(ctx context.Context) (resp PoliciesListResponse, err error)
type PolicyEnabledState ¶
type PolicyEnabledState string
const ( PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" )
type PolicyMode ¶
type PolicyMode string
const ( PolicyModeDetection PolicyMode = "Detection" PolicyModePrevention PolicyMode = "Prevention" )
type PolicyResourceState ¶
type PolicyResourceState string
const ( PolicyResourceStateCreating PolicyResourceState = "Creating" PolicyResourceStateDeleting PolicyResourceState = "Deleting" PolicyResourceStateDisabled PolicyResourceState = "Disabled" PolicyResourceStateDisabling PolicyResourceState = "Disabling" PolicyResourceStateEnabled PolicyResourceState = "Enabled" PolicyResourceStateEnabling PolicyResourceState = "Enabling" )
type PolicySettings ¶
type PolicySettings struct { CustomBlockResponseBody *string `json:"customBlockResponseBody,omitempty"` CustomBlockResponseStatusCode *int64 `json:"customBlockResponseStatusCode,omitempty"` EnabledState *PolicyEnabledState `json:"enabledState,omitempty"` Mode *PolicyMode `json:"mode,omitempty"` RedirectUrl *string `json:"redirectUrl,omitempty"` }
type ResourceGroupId ¶
func NewResourceGroupID ¶
func NewResourceGroupID(subscriptionId, resourceGroup string) ResourceGroupId
func ParseResourceGroupID ¶
func ParseResourceGroupID(input string) (*ResourceGroupId, error)
ParseResourceGroupID parses a ResourceGroup ID into an ResourceGroupId struct
func ParseResourceGroupIDInsensitively ¶
func ParseResourceGroupIDInsensitively(input string) (*ResourceGroupId, error)
ParseResourceGroupIDInsensitively parses an ResourceGroup ID into an ResourceGroupId struct, insensitively This should only be used to parse an ID for rewriting to a consistent casing, the ParseResourceGroupID method should be used instead for validation etc.
func (ResourceGroupId) ID ¶
func (id ResourceGroupId) ID() string
func (ResourceGroupId) String ¶
func (id ResourceGroupId) String() string
type RoutingRuleLink ¶
type RoutingRuleLink struct {
Id *string `json:"id,omitempty"`
}
type TransformType ¶
type TransformType string
const ( TransformTypeLowercase TransformType = "Lowercase" TransformTypeRemoveNulls TransformType = "RemoveNulls" TransformTypeTrim TransformType = "Trim" TransformTypeUppercase TransformType = "Uppercase" TransformTypeUrlDecode TransformType = "UrlDecode" TransformTypeUrlEncode TransformType = "UrlEncode" )
type WebApplicationFirewallPoliciesClient ¶
type WebApplicationFirewallPoliciesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewWebApplicationFirewallPoliciesClientWithBaseURI ¶
func NewWebApplicationFirewallPoliciesClientWithBaseURI(endpoint string) WebApplicationFirewallPoliciesClient
func (WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdate ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdate(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId, input WebApplicationFirewallPolicy) (result PoliciesCreateOrUpdateResponse, err error)
PoliciesCreateOrUpdate ...
func (WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdateThenPoll ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdateThenPoll(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId, input WebApplicationFirewallPolicy) error
PoliciesCreateOrUpdateThenPoll performs PoliciesCreateOrUpdate then polls until it's completed
func (WebApplicationFirewallPoliciesClient) PoliciesDelete ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesDelete(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId) (result PoliciesDeleteResponse, err error)
PoliciesDelete ...
func (WebApplicationFirewallPoliciesClient) PoliciesDeleteThenPoll ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesDeleteThenPoll(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId) error
PoliciesDeleteThenPoll performs PoliciesDelete then polls until it's completed
func (WebApplicationFirewallPoliciesClient) PoliciesGet ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesGet(ctx context.Context, id FrontDoorWebApplicationFirewallPoliciesId) (result PoliciesGetResponse, err error)
PoliciesGet ...
func (WebApplicationFirewallPoliciesClient) PoliciesList ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesList(ctx context.Context, id ResourceGroupId) (resp PoliciesListResponse, err error)
PoliciesList ...
func (WebApplicationFirewallPoliciesClient) PoliciesListComplete ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesListComplete(ctx context.Context, id ResourceGroupId) (PoliciesListCompleteResult, error)
PoliciesListComplete retrieves all of the results into a single object
func (WebApplicationFirewallPoliciesClient) PoliciesListCompleteMatchingPredicate ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesListCompleteMatchingPredicate(ctx context.Context, id ResourceGroupId, predicate WebApplicationFirewallPolicyPredicate) (resp PoliciesListCompleteResult, err error)
PoliciesListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type WebApplicationFirewallPolicy ¶
type WebApplicationFirewallPolicy struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *WebApplicationFirewallPolicyProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type WebApplicationFirewallPolicyPredicate ¶
type WebApplicationFirewallPolicyPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (WebApplicationFirewallPolicyPredicate) Matches ¶
func (p WebApplicationFirewallPolicyPredicate) Matches(input WebApplicationFirewallPolicy) bool
type WebApplicationFirewallPolicyProperties ¶
type WebApplicationFirewallPolicyProperties struct { CustomRules *CustomRuleList `json:"customRules,omitempty"` FrontendEndpointLinks *[]FrontendEndpointLink `json:"frontendEndpointLinks,omitempty"` ManagedRules *ManagedRuleSetList `json:"managedRules,omitempty"` PolicySettings *PolicySettings `json:"policySettings,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ResourceState *PolicyResourceState `json:"resourceState,omitempty"` RoutingRuleLinks *[]RoutingRuleLink `json:"routingRuleLinks,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_frontdoorwebapplicationfirewallpolicies.go
- id_resourcegroup.go
- method_policiescreateorupdate_autorest.go
- method_policiesdelete_autorest.go
- method_policiesget_autorest.go
- method_policieslist_autorest.go
- model_customrule.go
- model_customrulelist.go
- model_frontendendpointlink.go
- model_managedruleexclusion.go
- model_managedrulegroupoverride.go
- model_managedruleoverride.go
- model_managedruleset.go
- model_managedrulesetlist.go
- model_matchcondition.go
- model_policysettings.go
- model_routingrulelink.go
- model_webapplicationfirewallpolicy.go
- model_webapplicationfirewallpolicyproperties.go
- predicates.go
- version.go