gcore.WaapCustomRule
Explore with Pulumi AI
Represent Custom Rules for a specific WAAP domain
Create WaapCustomRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new WaapCustomRule(name: string, args: WaapCustomRuleArgs, opts?: CustomResourceOptions);
@overload
def WaapCustomRule(resource_name: str,
args: WaapCustomRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def WaapCustomRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[WaapCustomRuleActionArgs] = None,
conditions: Optional[WaapCustomRuleConditionsArgs] = None,
domain_id: Optional[float] = None,
enabled: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
waap_custom_rule_id: Optional[str] = None)
func NewWaapCustomRule(ctx *Context, name string, args WaapCustomRuleArgs, opts ...ResourceOption) (*WaapCustomRule, error)
public WaapCustomRule(string name, WaapCustomRuleArgs args, CustomResourceOptions? opts = null)
public WaapCustomRule(String name, WaapCustomRuleArgs args)
public WaapCustomRule(String name, WaapCustomRuleArgs args, CustomResourceOptions options)
type: gcore:WaapCustomRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WaapCustomRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WaapCustomRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WaapCustomRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WaapCustomRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WaapCustomRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var waapCustomRuleResource = new Gcore.WaapCustomRule("waapCustomRuleResource", new()
{
Action = new Gcore.Inputs.WaapCustomRuleActionArgs
{
Allow = false,
Block = new Gcore.Inputs.WaapCustomRuleActionBlockArgs
{
ActionDuration = "string",
StatusCode = 0,
},
Captcha = false,
Handshake = false,
Monitor = false,
Tag = new Gcore.Inputs.WaapCustomRuleActionTagArgs
{
Tags = new[]
{
"string",
},
},
},
Conditions = new Gcore.Inputs.WaapCustomRuleConditionsArgs
{
ContentTypes = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsContentTypeArgs
{
ContentTypes = new[]
{
"string",
},
Negation = false,
},
},
Countries = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsCountryArgs
{
CountryCodes = new[]
{
"string",
},
Negation = false,
},
},
FileExtensions = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsFileExtensionArgs
{
FileExtensions = new[]
{
"string",
},
Negation = false,
},
},
HeaderExists = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsHeaderExistArgs
{
Header = "string",
Negation = false,
},
},
Headers = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsHeaderArgs
{
Header = "string",
Value = "string",
MatchType = "string",
Negation = false,
},
},
HttpMethods = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsHttpMethodArgs
{
HttpMethod = "string",
Negation = false,
},
},
IpRanges = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsIpRangeArgs
{
LowerBound = "string",
UpperBound = "string",
Negation = false,
},
},
Ips = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsIpArgs
{
IpAddress = "string",
Negation = false,
},
},
Organizations = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsOrganizationArgs
{
Organization = "string",
Negation = false,
},
},
OwnerTypes = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsOwnerTypeArgs
{
OwnerTypes = new[]
{
"string",
},
Negation = false,
},
},
RequestRates = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsRequestRateArgs
{
PathPattern = "string",
Requests = 0,
Time = 0,
HttpMethods = new[]
{
"string",
},
Ips = new[]
{
"string",
},
UserDefinedTag = "string",
},
},
ResponseHeaderExists = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsResponseHeaderExistArgs
{
Header = "string",
Negation = false,
},
},
ResponseHeaders = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsResponseHeaderArgs
{
Header = "string",
Value = "string",
MatchType = "string",
Negation = false,
},
},
SessionRequestCounts = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsSessionRequestCountArgs
{
RequestCount = 0,
Negation = false,
},
},
Tags = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsTagArgs
{
Tags = new[]
{
"string",
},
Negation = false,
},
},
Urls = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsUrlArgs
{
Url = "string",
MatchType = "string",
Negation = false,
},
},
UserAgents = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsUserAgentArgs
{
UserAgent = "string",
MatchType = "string",
Negation = false,
},
},
UserDefinedTags = new[]
{
new Gcore.Inputs.WaapCustomRuleConditionsUserDefinedTagArgs
{
Tags = new[]
{
"string",
},
Negation = false,
},
},
},
DomainId = 0,
Enabled = false,
Description = "string",
Name = "string",
WaapCustomRuleId = "string",
});
example, err := gcore.NewWaapCustomRule(ctx, "waapCustomRuleResource", &gcore.WaapCustomRuleArgs{
Action: &gcore.WaapCustomRuleActionArgs{
Allow: pulumi.Bool(false),
Block: &gcore.WaapCustomRuleActionBlockArgs{
ActionDuration: pulumi.String("string"),
StatusCode: pulumi.Float64(0),
},
Captcha: pulumi.Bool(false),
Handshake: pulumi.Bool(false),
Monitor: pulumi.Bool(false),
Tag: &gcore.WaapCustomRuleActionTagArgs{
Tags: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Conditions: &gcore.WaapCustomRuleConditionsArgs{
ContentTypes: gcore.WaapCustomRuleConditionsContentTypeArray{
&gcore.WaapCustomRuleConditionsContentTypeArgs{
ContentTypes: pulumi.StringArray{
pulumi.String("string"),
},
Negation: pulumi.Bool(false),
},
},
Countries: gcore.WaapCustomRuleConditionsCountryArray{
&gcore.WaapCustomRuleConditionsCountryArgs{
CountryCodes: pulumi.StringArray{
pulumi.String("string"),
},
Negation: pulumi.Bool(false),
},
},
FileExtensions: gcore.WaapCustomRuleConditionsFileExtensionArray{
&gcore.WaapCustomRuleConditionsFileExtensionArgs{
FileExtensions: pulumi.StringArray{
pulumi.String("string"),
},
Negation: pulumi.Bool(false),
},
},
HeaderExists: gcore.WaapCustomRuleConditionsHeaderExistArray{
&gcore.WaapCustomRuleConditionsHeaderExistArgs{
Header: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
Headers: gcore.WaapCustomRuleConditionsHeaderArray{
&gcore.WaapCustomRuleConditionsHeaderArgs{
Header: pulumi.String("string"),
Value: pulumi.String("string"),
MatchType: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
HttpMethods: gcore.WaapCustomRuleConditionsHttpMethodArray{
&gcore.WaapCustomRuleConditionsHttpMethodArgs{
HttpMethod: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
IpRanges: gcore.WaapCustomRuleConditionsIpRangeArray{
&gcore.WaapCustomRuleConditionsIpRangeArgs{
LowerBound: pulumi.String("string"),
UpperBound: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
Ips: gcore.WaapCustomRuleConditionsIpArray{
&gcore.WaapCustomRuleConditionsIpArgs{
IpAddress: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
Organizations: gcore.WaapCustomRuleConditionsOrganizationArray{
&gcore.WaapCustomRuleConditionsOrganizationArgs{
Organization: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
OwnerTypes: gcore.WaapCustomRuleConditionsOwnerTypeArray{
&gcore.WaapCustomRuleConditionsOwnerTypeArgs{
OwnerTypes: pulumi.StringArray{
pulumi.String("string"),
},
Negation: pulumi.Bool(false),
},
},
RequestRates: gcore.WaapCustomRuleConditionsRequestRateArray{
&gcore.WaapCustomRuleConditionsRequestRateArgs{
PathPattern: pulumi.String("string"),
Requests: pulumi.Float64(0),
Time: pulumi.Float64(0),
HttpMethods: pulumi.StringArray{
pulumi.String("string"),
},
Ips: pulumi.StringArray{
pulumi.String("string"),
},
UserDefinedTag: pulumi.String("string"),
},
},
ResponseHeaderExists: gcore.WaapCustomRuleConditionsResponseHeaderExistArray{
&gcore.WaapCustomRuleConditionsResponseHeaderExistArgs{
Header: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
ResponseHeaders: gcore.WaapCustomRuleConditionsResponseHeaderArray{
&gcore.WaapCustomRuleConditionsResponseHeaderArgs{
Header: pulumi.String("string"),
Value: pulumi.String("string"),
MatchType: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
SessionRequestCounts: gcore.WaapCustomRuleConditionsSessionRequestCountArray{
&gcore.WaapCustomRuleConditionsSessionRequestCountArgs{
RequestCount: pulumi.Float64(0),
Negation: pulumi.Bool(false),
},
},
Tags: gcore.WaapCustomRuleConditionsTagArray{
&gcore.WaapCustomRuleConditionsTagArgs{
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Negation: pulumi.Bool(false),
},
},
Urls: gcore.WaapCustomRuleConditionsUrlArray{
&gcore.WaapCustomRuleConditionsUrlArgs{
Url: pulumi.String("string"),
MatchType: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
UserAgents: gcore.WaapCustomRuleConditionsUserAgentArray{
&gcore.WaapCustomRuleConditionsUserAgentArgs{
UserAgent: pulumi.String("string"),
MatchType: pulumi.String("string"),
Negation: pulumi.Bool(false),
},
},
UserDefinedTags: gcore.WaapCustomRuleConditionsUserDefinedTagArray{
&gcore.WaapCustomRuleConditionsUserDefinedTagArgs{
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Negation: pulumi.Bool(false),
},
},
},
DomainId: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
WaapCustomRuleId: pulumi.String("string"),
})
var waapCustomRuleResource = new WaapCustomRule("waapCustomRuleResource", WaapCustomRuleArgs.builder()
.action(WaapCustomRuleActionArgs.builder()
.allow(false)
.block(WaapCustomRuleActionBlockArgs.builder()
.actionDuration("string")
.statusCode(0.0)
.build())
.captcha(false)
.handshake(false)
.monitor(false)
.tag(WaapCustomRuleActionTagArgs.builder()
.tags("string")
.build())
.build())
.conditions(WaapCustomRuleConditionsArgs.builder()
.contentTypes(WaapCustomRuleConditionsContentTypeArgs.builder()
.contentTypes("string")
.negation(false)
.build())
.countries(WaapCustomRuleConditionsCountryArgs.builder()
.countryCodes("string")
.negation(false)
.build())
.fileExtensions(WaapCustomRuleConditionsFileExtensionArgs.builder()
.fileExtensions("string")
.negation(false)
.build())
.headerExists(WaapCustomRuleConditionsHeaderExistArgs.builder()
.header("string")
.negation(false)
.build())
.headers(WaapCustomRuleConditionsHeaderArgs.builder()
.header("string")
.value("string")
.matchType("string")
.negation(false)
.build())
.httpMethods(WaapCustomRuleConditionsHttpMethodArgs.builder()
.httpMethod("string")
.negation(false)
.build())
.ipRanges(WaapCustomRuleConditionsIpRangeArgs.builder()
.lowerBound("string")
.upperBound("string")
.negation(false)
.build())
.ips(WaapCustomRuleConditionsIpArgs.builder()
.ipAddress("string")
.negation(false)
.build())
.organizations(WaapCustomRuleConditionsOrganizationArgs.builder()
.organization("string")
.negation(false)
.build())
.ownerTypes(WaapCustomRuleConditionsOwnerTypeArgs.builder()
.ownerTypes("string")
.negation(false)
.build())
.requestRates(WaapCustomRuleConditionsRequestRateArgs.builder()
.pathPattern("string")
.requests(0.0)
.time(0.0)
.httpMethods("string")
.ips("string")
.userDefinedTag("string")
.build())
.responseHeaderExists(WaapCustomRuleConditionsResponseHeaderExistArgs.builder()
.header("string")
.negation(false)
.build())
.responseHeaders(WaapCustomRuleConditionsResponseHeaderArgs.builder()
.header("string")
.value("string")
.matchType("string")
.negation(false)
.build())
.sessionRequestCounts(WaapCustomRuleConditionsSessionRequestCountArgs.builder()
.requestCount(0.0)
.negation(false)
.build())
.tags(WaapCustomRuleConditionsTagArgs.builder()
.tags("string")
.negation(false)
.build())
.urls(WaapCustomRuleConditionsUrlArgs.builder()
.url("string")
.matchType("string")
.negation(false)
.build())
.userAgents(WaapCustomRuleConditionsUserAgentArgs.builder()
.userAgent("string")
.matchType("string")
.negation(false)
.build())
.userDefinedTags(WaapCustomRuleConditionsUserDefinedTagArgs.builder()
.tags("string")
.negation(false)
.build())
.build())
.domainId(0.0)
.enabled(false)
.description("string")
.name("string")
.waapCustomRuleId("string")
.build());
waap_custom_rule_resource = gcore.WaapCustomRule("waapCustomRuleResource",
action={
"allow": False,
"block": {
"action_duration": "string",
"status_code": 0,
},
"captcha": False,
"handshake": False,
"monitor": False,
"tag": {
"tags": ["string"],
},
},
conditions={
"content_types": [{
"content_types": ["string"],
"negation": False,
}],
"countries": [{
"country_codes": ["string"],
"negation": False,
}],
"file_extensions": [{
"file_extensions": ["string"],
"negation": False,
}],
"header_exists": [{
"header": "string",
"negation": False,
}],
"headers": [{
"header": "string",
"value": "string",
"match_type": "string",
"negation": False,
}],
"http_methods": [{
"http_method": "string",
"negation": False,
}],
"ip_ranges": [{
"lower_bound": "string",
"upper_bound": "string",
"negation": False,
}],
"ips": [{
"ip_address": "string",
"negation": False,
}],
"organizations": [{
"organization": "string",
"negation": False,
}],
"owner_types": [{
"owner_types": ["string"],
"negation": False,
}],
"request_rates": [{
"path_pattern": "string",
"requests": 0,
"time": 0,
"http_methods": ["string"],
"ips": ["string"],
"user_defined_tag": "string",
}],
"response_header_exists": [{
"header": "string",
"negation": False,
}],
"response_headers": [{
"header": "string",
"value": "string",
"match_type": "string",
"negation": False,
}],
"session_request_counts": [{
"request_count": 0,
"negation": False,
}],
"tags": [{
"tags": ["string"],
"negation": False,
}],
"urls": [{
"url": "string",
"match_type": "string",
"negation": False,
}],
"user_agents": [{
"user_agent": "string",
"match_type": "string",
"negation": False,
}],
"user_defined_tags": [{
"tags": ["string"],
"negation": False,
}],
},
domain_id=0,
enabled=False,
description="string",
name="string",
waap_custom_rule_id="string")
const waapCustomRuleResource = new gcore.WaapCustomRule("waapCustomRuleResource", {
action: {
allow: false,
block: {
actionDuration: "string",
statusCode: 0,
},
captcha: false,
handshake: false,
monitor: false,
tag: {
tags: ["string"],
},
},
conditions: {
contentTypes: [{
contentTypes: ["string"],
negation: false,
}],
countries: [{
countryCodes: ["string"],
negation: false,
}],
fileExtensions: [{
fileExtensions: ["string"],
negation: false,
}],
headerExists: [{
header: "string",
negation: false,
}],
headers: [{
header: "string",
value: "string",
matchType: "string",
negation: false,
}],
httpMethods: [{
httpMethod: "string",
negation: false,
}],
ipRanges: [{
lowerBound: "string",
upperBound: "string",
negation: false,
}],
ips: [{
ipAddress: "string",
negation: false,
}],
organizations: [{
organization: "string",
negation: false,
}],
ownerTypes: [{
ownerTypes: ["string"],
negation: false,
}],
requestRates: [{
pathPattern: "string",
requests: 0,
time: 0,
httpMethods: ["string"],
ips: ["string"],
userDefinedTag: "string",
}],
responseHeaderExists: [{
header: "string",
negation: false,
}],
responseHeaders: [{
header: "string",
value: "string",
matchType: "string",
negation: false,
}],
sessionRequestCounts: [{
requestCount: 0,
negation: false,
}],
tags: [{
tags: ["string"],
negation: false,
}],
urls: [{
url: "string",
matchType: "string",
negation: false,
}],
userAgents: [{
userAgent: "string",
matchType: "string",
negation: false,
}],
userDefinedTags: [{
tags: ["string"],
negation: false,
}],
},
domainId: 0,
enabled: false,
description: "string",
name: "string",
waapCustomRuleId: "string",
});
type: gcore:WaapCustomRule
properties:
action:
allow: false
block:
actionDuration: string
statusCode: 0
captcha: false
handshake: false
monitor: false
tag:
tags:
- string
conditions:
contentTypes:
- contentTypes:
- string
negation: false
countries:
- countryCodes:
- string
negation: false
fileExtensions:
- fileExtensions:
- string
negation: false
headerExists:
- header: string
negation: false
headers:
- header: string
matchType: string
negation: false
value: string
httpMethods:
- httpMethod: string
negation: false
ipRanges:
- lowerBound: string
negation: false
upperBound: string
ips:
- ipAddress: string
negation: false
organizations:
- negation: false
organization: string
ownerTypes:
- negation: false
ownerTypes:
- string
requestRates:
- httpMethods:
- string
ips:
- string
pathPattern: string
requests: 0
time: 0
userDefinedTag: string
responseHeaderExists:
- header: string
negation: false
responseHeaders:
- header: string
matchType: string
negation: false
value: string
sessionRequestCounts:
- negation: false
requestCount: 0
tags:
- negation: false
tags:
- string
urls:
- matchType: string
negation: false
url: string
userAgents:
- matchType: string
negation: false
userAgent: string
userDefinedTags:
- negation: false
tags:
- string
description: string
domainId: 0
enabled: false
name: string
waapCustomRuleId: string
WaapCustomRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The WaapCustomRule resource accepts the following input properties:
- Action
Waap
Custom Rule Action - The action that the rule takes when triggered.
- Conditions
Waap
Custom Rule Conditions - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- Domain
Id double - The WAAP domain ID for which the Custom Rule is configured.
- Enabled bool
- Whether the rule is enabled.
- Description string
- The description assigned to the rule.
- Name string
- The name assigned to the rule.
- Waap
Custom stringRule Id - The ID of this resource.
- Action
Waap
Custom Rule Action Args - The action that the rule takes when triggered.
- Conditions
Waap
Custom Rule Conditions Args - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- Domain
Id float64 - The WAAP domain ID for which the Custom Rule is configured.
- Enabled bool
- Whether the rule is enabled.
- Description string
- The description assigned to the rule.
- Name string
- The name assigned to the rule.
- Waap
Custom stringRule Id - The ID of this resource.
- action
Waap
Custom Rule Action - The action that the rule takes when triggered.
- conditions
Waap
Custom Rule Conditions - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- domain
Id Double - The WAAP domain ID for which the Custom Rule is configured.
- enabled Boolean
- Whether the rule is enabled.
- description String
- The description assigned to the rule.
- name String
- The name assigned to the rule.
- waap
Custom StringRule Id - The ID of this resource.
- action
Waap
Custom Rule Action - The action that the rule takes when triggered.
- conditions
Waap
Custom Rule Conditions - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- domain
Id number - The WAAP domain ID for which the Custom Rule is configured.
- enabled boolean
- Whether the rule is enabled.
- description string
- The description assigned to the rule.
- name string
- The name assigned to the rule.
- waap
Custom stringRule Id - The ID of this resource.
- action
Waap
Custom Rule Action Args - The action that the rule takes when triggered.
- conditions
Waap
Custom Rule Conditions Args - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- domain_
id float - The WAAP domain ID for which the Custom Rule is configured.
- enabled bool
- Whether the rule is enabled.
- description str
- The description assigned to the rule.
- name str
- The name assigned to the rule.
- waap_
custom_ strrule_ id - The ID of this resource.
- action Property Map
- The action that the rule takes when triggered.
- conditions Property Map
- The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- domain
Id Number - The WAAP domain ID for which the Custom Rule is configured.
- enabled Boolean
- Whether the rule is enabled.
- description String
- The description assigned to the rule.
- name String
- The name assigned to the rule.
- waap
Custom StringRule Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the WaapCustomRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing WaapCustomRule Resource
Get an existing WaapCustomRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WaapCustomRuleState, opts?: CustomResourceOptions): WaapCustomRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[WaapCustomRuleActionArgs] = None,
conditions: Optional[WaapCustomRuleConditionsArgs] = None,
description: Optional[str] = None,
domain_id: Optional[float] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
waap_custom_rule_id: Optional[str] = None) -> WaapCustomRule
func GetWaapCustomRule(ctx *Context, name string, id IDInput, state *WaapCustomRuleState, opts ...ResourceOption) (*WaapCustomRule, error)
public static WaapCustomRule Get(string name, Input<string> id, WaapCustomRuleState? state, CustomResourceOptions? opts = null)
public static WaapCustomRule get(String name, Output<String> id, WaapCustomRuleState state, CustomResourceOptions options)
resources: _: type: gcore:WaapCustomRule get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action
Waap
Custom Rule Action - The action that the rule takes when triggered.
- Conditions
Waap
Custom Rule Conditions - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- Description string
- The description assigned to the rule.
- Domain
Id double - The WAAP domain ID for which the Custom Rule is configured.
- Enabled bool
- Whether the rule is enabled.
- Name string
- The name assigned to the rule.
- Waap
Custom stringRule Id - The ID of this resource.
- Action
Waap
Custom Rule Action Args - The action that the rule takes when triggered.
- Conditions
Waap
Custom Rule Conditions Args - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- Description string
- The description assigned to the rule.
- Domain
Id float64 - The WAAP domain ID for which the Custom Rule is configured.
- Enabled bool
- Whether the rule is enabled.
- Name string
- The name assigned to the rule.
- Waap
Custom stringRule Id - The ID of this resource.
- action
Waap
Custom Rule Action - The action that the rule takes when triggered.
- conditions
Waap
Custom Rule Conditions - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- description String
- The description assigned to the rule.
- domain
Id Double - The WAAP domain ID for which the Custom Rule is configured.
- enabled Boolean
- Whether the rule is enabled.
- name String
- The name assigned to the rule.
- waap
Custom StringRule Id - The ID of this resource.
- action
Waap
Custom Rule Action - The action that the rule takes when triggered.
- conditions
Waap
Custom Rule Conditions - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- description string
- The description assigned to the rule.
- domain
Id number - The WAAP domain ID for which the Custom Rule is configured.
- enabled boolean
- Whether the rule is enabled.
- name string
- The name assigned to the rule.
- waap
Custom stringRule Id - The ID of this resource.
- action
Waap
Custom Rule Action Args - The action that the rule takes when triggered.
- conditions
Waap
Custom Rule Conditions Args - The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- description str
- The description assigned to the rule.
- domain_
id float - The WAAP domain ID for which the Custom Rule is configured.
- enabled bool
- Whether the rule is enabled.
- name str
- The name assigned to the rule.
- waap_
custom_ strrule_ id - The ID of this resource.
- action Property Map
- The action that the rule takes when triggered.
- conditions Property Map
- The conditions required for the WAAP engine to trigger the rule. Rules may have between 1 and 5 conditions. All conditions must pass for the rule to trigger.
- description String
- The description assigned to the rule.
- domain
Id Number - The WAAP domain ID for which the Custom Rule is configured.
- enabled Boolean
- Whether the rule is enabled.
- name String
- The name assigned to the rule.
- waap
Custom StringRule Id - The ID of this resource.
Supporting Types
WaapCustomRuleAction, WaapCustomRuleActionArgs
- Allow bool
- The WAAP allows the request.
- Block
Waap
Custom Rule Action Block - The WAAP blocks the request.
- Captcha bool
- The WAAP requires the user to solve a CAPTCHA challenge.
- Handshake bool
- The WAAP performs automatic browser validation.
- Monitor bool
- The WAAP monitors the request but took no action.
- Tag
Waap
Custom Rule Action Tag - The WAAP tags the request.
- Allow bool
- The WAAP allows the request.
- Block
Waap
Custom Rule Action Block - The WAAP blocks the request.
- Captcha bool
- The WAAP requires the user to solve a CAPTCHA challenge.
- Handshake bool
- The WAAP performs automatic browser validation.
- Monitor bool
- The WAAP monitors the request but took no action.
- Tag
Waap
Custom Rule Action Tag - The WAAP tags the request.
- allow Boolean
- The WAAP allows the request.
- block
Waap
Custom Rule Action Block - The WAAP blocks the request.
- captcha Boolean
- The WAAP requires the user to solve a CAPTCHA challenge.
- handshake Boolean
- The WAAP performs automatic browser validation.
- monitor Boolean
- The WAAP monitors the request but took no action.
- tag
Waap
Custom Rule Action Tag - The WAAP tags the request.
- allow boolean
- The WAAP allows the request.
- block
Waap
Custom Rule Action Block - The WAAP blocks the request.
- captcha boolean
- The WAAP requires the user to solve a CAPTCHA challenge.
- handshake boolean
- The WAAP performs automatic browser validation.
- monitor boolean
- The WAAP monitors the request but took no action.
- tag
Waap
Custom Rule Action Tag - The WAAP tags the request.
- allow bool
- The WAAP allows the request.
- block
Waap
Custom Rule Action Block - The WAAP blocks the request.
- captcha bool
- The WAAP requires the user to solve a CAPTCHA challenge.
- handshake bool
- The WAAP performs automatic browser validation.
- monitor bool
- The WAAP monitors the request but took no action.
- tag
Waap
Custom Rule Action Tag - The WAAP tags the request.
- allow Boolean
- The WAAP allows the request.
- block Property Map
- The WAAP blocks the request.
- captcha Boolean
- The WAAP requires the user to solve a CAPTCHA challenge.
- handshake Boolean
- The WAAP performs automatic browser validation.
- monitor Boolean
- The WAAP monitors the request but took no action.
- tag Property Map
- The WAAP tags the request.
WaapCustomRuleActionBlock, WaapCustomRuleActionBlockArgs
- Action
Duration string - How long a rule's block action will apply to subsequent requests. Can be specified in seconds or by using a numeral followed by 's', 'm', 'h', or 'd' to represent time format (seconds, minutes, hours, or days). Example: 12h. Must match the pattern ^[0-9]*[smhd]?$
- Status
Code double - A custom HTTP status code that the WAAP returns if a rule blocks a request. It must be one of these values {403, 405, 418, 429}. Default is 403.
- Action
Duration string - How long a rule's block action will apply to subsequent requests. Can be specified in seconds or by using a numeral followed by 's', 'm', 'h', or 'd' to represent time format (seconds, minutes, hours, or days). Example: 12h. Must match the pattern ^[0-9]*[smhd]?$
- Status
Code float64 - A custom HTTP status code that the WAAP returns if a rule blocks a request. It must be one of these values {403, 405, 418, 429}. Default is 403.
- action
Duration String - How long a rule's block action will apply to subsequent requests. Can be specified in seconds or by using a numeral followed by 's', 'm', 'h', or 'd' to represent time format (seconds, minutes, hours, or days). Example: 12h. Must match the pattern ^[0-9]*[smhd]?$
- status
Code Double - A custom HTTP status code that the WAAP returns if a rule blocks a request. It must be one of these values {403, 405, 418, 429}. Default is 403.
- action
Duration string - How long a rule's block action will apply to subsequent requests. Can be specified in seconds or by using a numeral followed by 's', 'm', 'h', or 'd' to represent time format (seconds, minutes, hours, or days). Example: 12h. Must match the pattern ^[0-9]*[smhd]?$
- status
Code number - A custom HTTP status code that the WAAP returns if a rule blocks a request. It must be one of these values {403, 405, 418, 429}. Default is 403.
- action_
duration str - How long a rule's block action will apply to subsequent requests. Can be specified in seconds or by using a numeral followed by 's', 'm', 'h', or 'd' to represent time format (seconds, minutes, hours, or days). Example: 12h. Must match the pattern ^[0-9]*[smhd]?$
- status_
code float - A custom HTTP status code that the WAAP returns if a rule blocks a request. It must be one of these values {403, 405, 418, 429}. Default is 403.
- action
Duration String - How long a rule's block action will apply to subsequent requests. Can be specified in seconds or by using a numeral followed by 's', 'm', 'h', or 'd' to represent time format (seconds, minutes, hours, or days). Example: 12h. Must match the pattern ^[0-9]*[smhd]?$
- status
Code Number - A custom HTTP status code that the WAAP returns if a rule blocks a request. It must be one of these values {403, 405, 418, 429}. Default is 403.
WaapCustomRuleActionTag, WaapCustomRuleActionTagArgs
- List<string>
- The list of user defined tags to tag the request with.
- []string
- The list of user defined tags to tag the request with.
- List<String>
- The list of user defined tags to tag the request with.
- string[]
- The list of user defined tags to tag the request with.
- Sequence[str]
- The list of user defined tags to tag the request with.
- List<String>
- The list of user defined tags to tag the request with.
WaapCustomRuleConditions, WaapCustomRuleConditionsArgs
- Content
Types List<WaapCustom Rule Conditions Content Type> - Content type condition. This condition matches the content type of the request.
- Countries
List<Waap
Custom Rule Conditions Country> - Country condition. This condition matches the country of the request based on the source IP address.
- File
Extensions List<WaapCustom Rule Conditions File Extension> - File extension condition. This condition matches the file extension of the request.
- Header
Exists List<WaapCustom Rule Conditions Header Exist> - Request header exists condition. This condition checks if a request header exists.
- Headers
List<Waap
Custom Rule Conditions Header> - Request header condition. This condition matches a request header and its value.
- Http
Methods List<WaapCustom Rule Conditions Http Method> - HTTP method condition. This condition matches the HTTP method of the request.
- Ip
Ranges List<WaapCustom Rule Conditions Ip Range> - IP range condition. This condition matches a range of IP addresses.
- Ips
List<Waap
Custom Rule Conditions Ip> - IP address condition. This condition matches a single IP address.
- Organizations
List<Waap
Custom Rule Conditions Organization> - Organization condition. This condition matches the organization of the request based on the source IP address.
- Owner
Types List<WaapCustom Rule Conditions Owner Type> - Request
Rates List<WaapCustom Rule Conditions Request Rate> - Request rate condition. This condition matches the request rate.
- Response
Header List<WaapExists Custom Rule Conditions Response Header Exist> - Response header exists condition. This condition checks if a response header exists.
- Response
Headers List<WaapCustom Rule Conditions Response Header> - Session
Request List<WaapCounts Custom Rule Conditions Session Request Count> - Session request count condition. This condition matches the number of dynamic requests in the session.
- List<Waap
Custom Rule Conditions Tag> - Tags condition. This condition matches the request tags.
- Urls
List<Waap
Custom Rule Conditions Url> - URL condition. This condition matches a URL path.
- User
Agents List<WaapCustom Rule Conditions User Agent> - User agent condition. This condition matches the user agent of the request.
- List<Waap
Custom Rule Conditions User Defined Tag>
- Content
Types []WaapCustom Rule Conditions Content Type - Content type condition. This condition matches the content type of the request.
- Countries
[]Waap
Custom Rule Conditions Country - Country condition. This condition matches the country of the request based on the source IP address.
- File
Extensions []WaapCustom Rule Conditions File Extension - File extension condition. This condition matches the file extension of the request.
- Header
Exists []WaapCustom Rule Conditions Header Exist - Request header exists condition. This condition checks if a request header exists.
- Headers
[]Waap
Custom Rule Conditions Header - Request header condition. This condition matches a request header and its value.
- Http
Methods []WaapCustom Rule Conditions Http Method - HTTP method condition. This condition matches the HTTP method of the request.
- Ip
Ranges []WaapCustom Rule Conditions Ip Range - IP range condition. This condition matches a range of IP addresses.
- Ips
[]Waap
Custom Rule Conditions Ip - IP address condition. This condition matches a single IP address.
- Organizations
[]Waap
Custom Rule Conditions Organization - Organization condition. This condition matches the organization of the request based on the source IP address.
- Owner
Types []WaapCustom Rule Conditions Owner Type - Request
Rates []WaapCustom Rule Conditions Request Rate - Request rate condition. This condition matches the request rate.
- Response
Header []WaapExists Custom Rule Conditions Response Header Exist - Response header exists condition. This condition checks if a response header exists.
- Response
Headers []WaapCustom Rule Conditions Response Header - Session
Request []WaapCounts Custom Rule Conditions Session Request Count - Session request count condition. This condition matches the number of dynamic requests in the session.
- []Waap
Custom Rule Conditions Tag - Tags condition. This condition matches the request tags.
- Urls
[]Waap
Custom Rule Conditions Url - URL condition. This condition matches a URL path.
- User
Agents []WaapCustom Rule Conditions User Agent - User agent condition. This condition matches the user agent of the request.
- []Waap
Custom Rule Conditions User Defined Tag
- content
Types List<WaapCustom Rule Conditions Content Type> - Content type condition. This condition matches the content type of the request.
- countries
List<Waap
Custom Rule Conditions Country> - Country condition. This condition matches the country of the request based on the source IP address.
- file
Extensions List<WaapCustom Rule Conditions File Extension> - File extension condition. This condition matches the file extension of the request.
- header
Exists List<WaapCustom Rule Conditions Header Exist> - Request header exists condition. This condition checks if a request header exists.
- headers
List<Waap
Custom Rule Conditions Header> - Request header condition. This condition matches a request header and its value.
- http
Methods List<WaapCustom Rule Conditions Http Method> - HTTP method condition. This condition matches the HTTP method of the request.
- ip
Ranges List<WaapCustom Rule Conditions Ip Range> - IP range condition. This condition matches a range of IP addresses.
- ips
List<Waap
Custom Rule Conditions Ip> - IP address condition. This condition matches a single IP address.
- organizations
List<Waap
Custom Rule Conditions Organization> - Organization condition. This condition matches the organization of the request based on the source IP address.
- owner
Types List<WaapCustom Rule Conditions Owner Type> - request
Rates List<WaapCustom Rule Conditions Request Rate> - Request rate condition. This condition matches the request rate.
- response
Header List<WaapExists Custom Rule Conditions Response Header Exist> - Response header exists condition. This condition checks if a response header exists.
- response
Headers List<WaapCustom Rule Conditions Response Header> - session
Request List<WaapCounts Custom Rule Conditions Session Request Count> - Session request count condition. This condition matches the number of dynamic requests in the session.
- List<Waap
Custom Rule Conditions Tag> - Tags condition. This condition matches the request tags.
- urls
List<Waap
Custom Rule Conditions Url> - URL condition. This condition matches a URL path.
- user
Agents List<WaapCustom Rule Conditions User Agent> - User agent condition. This condition matches the user agent of the request.
- List<Waap
Custom Rule Conditions User Defined Tag>
- content
Types WaapCustom Rule Conditions Content Type[] - Content type condition. This condition matches the content type of the request.
- countries
Waap
Custom Rule Conditions Country[] - Country condition. This condition matches the country of the request based on the source IP address.
- file
Extensions WaapCustom Rule Conditions File Extension[] - File extension condition. This condition matches the file extension of the request.
- header
Exists WaapCustom Rule Conditions Header Exist[] - Request header exists condition. This condition checks if a request header exists.
- headers
Waap
Custom Rule Conditions Header[] - Request header condition. This condition matches a request header and its value.
- http
Methods WaapCustom Rule Conditions Http Method[] - HTTP method condition. This condition matches the HTTP method of the request.
- ip
Ranges WaapCustom Rule Conditions Ip Range[] - IP range condition. This condition matches a range of IP addresses.
- ips
Waap
Custom Rule Conditions Ip[] - IP address condition. This condition matches a single IP address.
- organizations
Waap
Custom Rule Conditions Organization[] - Organization condition. This condition matches the organization of the request based on the source IP address.
- owner
Types WaapCustom Rule Conditions Owner Type[] - request
Rates WaapCustom Rule Conditions Request Rate[] - Request rate condition. This condition matches the request rate.
- response
Header WaapExists Custom Rule Conditions Response Header Exist[] - Response header exists condition. This condition checks if a response header exists.
- response
Headers WaapCustom Rule Conditions Response Header[] - session
Request WaapCounts Custom Rule Conditions Session Request Count[] - Session request count condition. This condition matches the number of dynamic requests in the session.
- Waap
Custom Rule Conditions Tag[] - Tags condition. This condition matches the request tags.
- urls
Waap
Custom Rule Conditions Url[] - URL condition. This condition matches a URL path.
- user
Agents WaapCustom Rule Conditions User Agent[] - User agent condition. This condition matches the user agent of the request.
- Waap
Custom Rule Conditions User Defined Tag[]
- content_
types Sequence[WaapCustom Rule Conditions Content Type] - Content type condition. This condition matches the content type of the request.
- countries
Sequence[Waap
Custom Rule Conditions Country] - Country condition. This condition matches the country of the request based on the source IP address.
- file_
extensions Sequence[WaapCustom Rule Conditions File Extension] - File extension condition. This condition matches the file extension of the request.
- header_
exists Sequence[WaapCustom Rule Conditions Header Exist] - Request header exists condition. This condition checks if a request header exists.
- headers
Sequence[Waap
Custom Rule Conditions Header] - Request header condition. This condition matches a request header and its value.
- http_
methods Sequence[WaapCustom Rule Conditions Http Method] - HTTP method condition. This condition matches the HTTP method of the request.
- ip_
ranges Sequence[WaapCustom Rule Conditions Ip Range] - IP range condition. This condition matches a range of IP addresses.
- ips
Sequence[Waap
Custom Rule Conditions Ip] - IP address condition. This condition matches a single IP address.
- organizations
Sequence[Waap
Custom Rule Conditions Organization] - Organization condition. This condition matches the organization of the request based on the source IP address.
- owner_
types Sequence[WaapCustom Rule Conditions Owner Type] - request_
rates Sequence[WaapCustom Rule Conditions Request Rate] - Request rate condition. This condition matches the request rate.
- response_
header_ Sequence[Waapexists Custom Rule Conditions Response Header Exist] - Response header exists condition. This condition checks if a response header exists.
- response_
headers Sequence[WaapCustom Rule Conditions Response Header] - session_
request_ Sequence[Waapcounts Custom Rule Conditions Session Request Count] - Session request count condition. This condition matches the number of dynamic requests in the session.
- Sequence[Waap
Custom Rule Conditions Tag] - Tags condition. This condition matches the request tags.
- urls
Sequence[Waap
Custom Rule Conditions Url] - URL condition. This condition matches a URL path.
- user_
agents Sequence[WaapCustom Rule Conditions User Agent] - User agent condition. This condition matches the user agent of the request.
- Sequence[Waap
Custom Rule Conditions User Defined Tag]
- content
Types List<Property Map> - Content type condition. This condition matches the content type of the request.
- countries List<Property Map>
- Country condition. This condition matches the country of the request based on the source IP address.
- file
Extensions List<Property Map> - File extension condition. This condition matches the file extension of the request.
- header
Exists List<Property Map> - Request header exists condition. This condition checks if a request header exists.
- headers List<Property Map>
- Request header condition. This condition matches a request header and its value.
- http
Methods List<Property Map> - HTTP method condition. This condition matches the HTTP method of the request.
- ip
Ranges List<Property Map> - IP range condition. This condition matches a range of IP addresses.
- ips List<Property Map>
- IP address condition. This condition matches a single IP address.
- organizations List<Property Map>
- Organization condition. This condition matches the organization of the request based on the source IP address.
- owner
Types List<Property Map> - request
Rates List<Property Map> - Request rate condition. This condition matches the request rate.
- response
Header List<Property Map>Exists - Response header exists condition. This condition checks if a response header exists.
- response
Headers List<Property Map> - session
Request List<Property Map>Counts - Session request count condition. This condition matches the number of dynamic requests in the session.
- List<Property Map>
- Tags condition. This condition matches the request tags.
- urls List<Property Map>
- URL condition. This condition matches a URL path.
- user
Agents List<Property Map> - User agent condition. This condition matches the user agent of the request.
- List<Property Map>
WaapCustomRuleConditionsContentType, WaapCustomRuleConditionsContentTypeArgs
- Content
Types List<string> - The list of content types to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Content
Types []string - The list of content types to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- content
Types List<String> - The list of content types to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- content
Types string[] - The list of content types to match against.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- content_
types Sequence[str] - The list of content types to match against.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- content
Types List<String> - The list of content types to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsCountry, WaapCustomRuleConditionsCountryArgs
- Country
Codes List<string> - A list of ISO 3166-1 alpha-2 formatted strings representing the countries to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Country
Codes []string - A list of ISO 3166-1 alpha-2 formatted strings representing the countries to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- country
Codes List<String> - A list of ISO 3166-1 alpha-2 formatted strings representing the countries to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- country
Codes string[] - A list of ISO 3166-1 alpha-2 formatted strings representing the countries to match against.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- country_
codes Sequence[str] - A list of ISO 3166-1 alpha-2 formatted strings representing the countries to match against.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- country
Codes List<String> - A list of ISO 3166-1 alpha-2 formatted strings representing the countries to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsFileExtension, WaapCustomRuleConditionsFileExtensionArgs
- File
Extensions List<string> - The list of file extensions to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- File
Extensions []string - The list of file extensions to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- file
Extensions List<String> - The list of file extensions to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- file
Extensions string[] - The list of file extensions to match against.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- file_
extensions Sequence[str] - The list of file extensions to match against.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- file
Extensions List<String> - The list of file extensions to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsHeader, WaapCustomRuleConditionsHeaderArgs
- header str
- The request header name.
- value str
- The request header value.
- match_
type str - The type of matching condition. Valid values are 'Exact', 'Contains'. Default is 'Contains'.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsHeaderExist, WaapCustomRuleConditionsHeaderExistArgs
WaapCustomRuleConditionsHttpMethod, WaapCustomRuleConditionsHttpMethodArgs
- Http
Method string - The HTTP method to match against. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Http
Method string - The HTTP method to match against. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- http
Method String - The HTTP method to match against. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- http
Method string - The HTTP method to match against. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- http_
method str - The HTTP method to match against. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- http
Method String - The HTTP method to match against. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsIp, WaapCustomRuleConditionsIpArgs
- ip_
address str - A single IPv4 or IPv6 address
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsIpRange, WaapCustomRuleConditionsIpRangeArgs
- Lower
Bound string - The lower bound IPv4 or IPv6 address to match against.
- Upper
Bound string - The upper bound IPv4 or IPv6 address to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Lower
Bound string - The lower bound IPv4 or IPv6 address to match against.
- Upper
Bound string - The upper bound IPv4 or IPv6 address to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- lower
Bound String - The lower bound IPv4 or IPv6 address to match against.
- upper
Bound String - The upper bound IPv4 or IPv6 address to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- lower
Bound string - The lower bound IPv4 or IPv6 address to match against.
- upper
Bound string - The upper bound IPv4 or IPv6 address to match against.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- lower_
bound str - The lower bound IPv4 or IPv6 address to match against.
- upper_
bound str - The upper bound IPv4 or IPv6 address to match against.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- lower
Bound String - The lower bound IPv4 or IPv6 address to match against.
- upper
Bound String - The upper bound IPv4 or IPv6 address to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsOrganization, WaapCustomRuleConditionsOrganizationArgs
- Organization string
- The organization to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Organization string
- The organization to match against.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- organization String
- The organization to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- organization string
- The organization to match against.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- organization str
- The organization to match against.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- organization String
- The organization to match against.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsOwnerType, WaapCustomRuleConditionsOwnerTypeArgs
- Owner
Types List<string> - Match the type of organization that owns the IP address making an incoming request. Valid values are 'COMMERCIAL', 'EDUCATIONAL', 'GOVERNMENT', 'HOSTINGSERVICES', 'ISP', 'MOBILENETWORK', 'NETWORK', and 'RESERVED'.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Owner
Types []string - Match the type of organization that owns the IP address making an incoming request. Valid values are 'COMMERCIAL', 'EDUCATIONAL', 'GOVERNMENT', 'HOSTINGSERVICES', 'ISP', 'MOBILENETWORK', 'NETWORK', and 'RESERVED'.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- owner
Types List<String> - Match the type of organization that owns the IP address making an incoming request. Valid values are 'COMMERCIAL', 'EDUCATIONAL', 'GOVERNMENT', 'HOSTINGSERVICES', 'ISP', 'MOBILENETWORK', 'NETWORK', and 'RESERVED'.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- owner
Types string[] - Match the type of organization that owns the IP address making an incoming request. Valid values are 'COMMERCIAL', 'EDUCATIONAL', 'GOVERNMENT', 'HOSTINGSERVICES', 'ISP', 'MOBILENETWORK', 'NETWORK', and 'RESERVED'.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- owner_
types Sequence[str] - Match the type of organization that owns the IP address making an incoming request. Valid values are 'COMMERCIAL', 'EDUCATIONAL', 'GOVERNMENT', 'HOSTINGSERVICES', 'ISP', 'MOBILENETWORK', 'NETWORK', and 'RESERVED'.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- owner
Types List<String> - Match the type of organization that owns the IP address making an incoming request. Valid values are 'COMMERCIAL', 'EDUCATIONAL', 'GOVERNMENT', 'HOSTINGSERVICES', 'ISP', 'MOBILENETWORK', 'NETWORK', and 'RESERVED'.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsRequestRate, WaapCustomRuleConditionsRequestRateArgs
- Path
Pattern string - A regular expression matching the URL path of the incoming request.
- Requests double
- The number of incoming requests over the given time that can trigger a request rate condition.
- Time double
- The number of seconds that the WAAP measures incoming requests over before triggering a request rate condition.
- Http
Methods List<string> - Possible HTTP request methods that can trigger a request rate condition. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- Ips List<string>
- A list of source IPs that can trigger a request rate condition.
- User
Defined stringTag - A user-defined tag that can be included in incoming requests and used to trigger a request rate condition.
- Path
Pattern string - A regular expression matching the URL path of the incoming request.
- Requests float64
- The number of incoming requests over the given time that can trigger a request rate condition.
- Time float64
- The number of seconds that the WAAP measures incoming requests over before triggering a request rate condition.
- Http
Methods []string - Possible HTTP request methods that can trigger a request rate condition. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- Ips []string
- A list of source IPs that can trigger a request rate condition.
- User
Defined stringTag - A user-defined tag that can be included in incoming requests and used to trigger a request rate condition.
- path
Pattern String - A regular expression matching the URL path of the incoming request.
- requests Double
- The number of incoming requests over the given time that can trigger a request rate condition.
- time Double
- The number of seconds that the WAAP measures incoming requests over before triggering a request rate condition.
- http
Methods List<String> - Possible HTTP request methods that can trigger a request rate condition. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- ips List<String>
- A list of source IPs that can trigger a request rate condition.
- user
Defined StringTag - A user-defined tag that can be included in incoming requests and used to trigger a request rate condition.
- path
Pattern string - A regular expression matching the URL path of the incoming request.
- requests number
- The number of incoming requests over the given time that can trigger a request rate condition.
- time number
- The number of seconds that the WAAP measures incoming requests over before triggering a request rate condition.
- http
Methods string[] - Possible HTTP request methods that can trigger a request rate condition. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- ips string[]
- A list of source IPs that can trigger a request rate condition.
- user
Defined stringTag - A user-defined tag that can be included in incoming requests and used to trigger a request rate condition.
- path_
pattern str - A regular expression matching the URL path of the incoming request.
- requests float
- The number of incoming requests over the given time that can trigger a request rate condition.
- time float
- The number of seconds that the WAAP measures incoming requests over before triggering a request rate condition.
- http_
methods Sequence[str] - Possible HTTP request methods that can trigger a request rate condition. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- ips Sequence[str]
- A list of source IPs that can trigger a request rate condition.
- user_
defined_ strtag - A user-defined tag that can be included in incoming requests and used to trigger a request rate condition.
- path
Pattern String - A regular expression matching the URL path of the incoming request.
- requests Number
- The number of incoming requests over the given time that can trigger a request rate condition.
- time Number
- The number of seconds that the WAAP measures incoming requests over before triggering a request rate condition.
- http
Methods List<String> - Possible HTTP request methods that can trigger a request rate condition. Valid values are 'CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', and 'TRACE'.
- ips List<String>
- A list of source IPs that can trigger a request rate condition.
- user
Defined StringTag - A user-defined tag that can be included in incoming requests and used to trigger a request rate condition.
WaapCustomRuleConditionsResponseHeader, WaapCustomRuleConditionsResponseHeaderArgs
- header str
- The request header name.
- value str
- The request header value.
- match_
type str - The type of matching condition. Valid values are 'Exact', 'Contains'. Default is 'Contains'.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsResponseHeaderExist, WaapCustomRuleConditionsResponseHeaderExistArgs
WaapCustomRuleConditionsSessionRequestCount, WaapCustomRuleConditionsSessionRequestCountArgs
- Request
Count double - The number of dynamic requests in the session.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Request
Count float64 - The number of dynamic requests in the session.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- request
Count Double - The number of dynamic requests in the session.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- request
Count number - The number of dynamic requests in the session.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- request_
count float - The number of dynamic requests in the session.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- request
Count Number - The number of dynamic requests in the session.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsTag, WaapCustomRuleConditionsTagArgs
- List<string>
- A list of tags to match against the request tags. Tags can be obtained from the API endpoint /v1/tags or you can use the gcorewaaptag data source.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- []string
- A list of tags to match against the request tags. Tags can be obtained from the API endpoint /v1/tags or you can use the gcorewaaptag data source.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- List<String>
- A list of tags to match against the request tags. Tags can be obtained from the API endpoint /v1/tags or you can use the gcorewaaptag data source.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- string[]
- A list of tags to match against the request tags. Tags can be obtained from the API endpoint /v1/tags or you can use the gcorewaaptag data source.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Sequence[str]
- A list of tags to match against the request tags. Tags can be obtained from the API endpoint /v1/tags or you can use the gcorewaaptag data source.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- List<String>
- A list of tags to match against the request tags. Tags can be obtained from the API endpoint /v1/tags or you can use the gcorewaaptag data source.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsUrl, WaapCustomRuleConditionsUrlArgs
- url str
- The URL to match.
- match_
type str - The type of matching condition. Valid values are 'Exact', 'Contains', and 'Regex'. Default is 'Contains'.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsUserAgent, WaapCustomRuleConditionsUserAgentArgs
- user_
agent str - The user agent value to match.
- match_
type str - The type of matching condition. Valid values are 'Exact', 'Contains'. Default is 'Contains'.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
WaapCustomRuleConditionsUserDefinedTag, WaapCustomRuleConditionsUserDefinedTagArgs
- List<string>
- A list of user-defined tags to match against the request tags.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- []string
- A list of user-defined tags to match against the request tags.
- Negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- List<String>
- A list of user-defined tags to match against the request tags.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- string[]
- A list of user-defined tags to match against the request tags.
- negation boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
- Sequence[str]
- A list of user-defined tags to match against the request tags.
- negation bool
- Whether or not to apply a boolean NOT operation to the rule's condition.
- List<String>
- A list of user-defined tags to match against the request tags.
- negation Boolean
- Whether or not to apply a boolean NOT operation to the rule's condition.
Import
import using <domain_id>:<rule_id>
$ pulumi import gcore:index/waapCustomRule:WaapCustomRule custom_rule 10029:98347
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcore
Terraform Provider.