1. Packages
  2. Gcore Provider
  3. API Docs
  4. WaapAdvancedRule
gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core

gcore.WaapAdvancedRule

Explore with Pulumi AI

gcore logo
gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core

    Represent Advanced Rules for a specific WAAP domain

    Create WaapAdvancedRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new WaapAdvancedRule(name: string, args: WaapAdvancedRuleArgs, opts?: CustomResourceOptions);
    @overload
    def WaapAdvancedRule(resource_name: str,
                         args: WaapAdvancedRuleArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def WaapAdvancedRule(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         action: Optional[WaapAdvancedRuleActionArgs] = None,
                         domain_id: Optional[float] = None,
                         enabled: Optional[bool] = None,
                         source: Optional[str] = None,
                         description: Optional[str] = None,
                         name: Optional[str] = None,
                         phase: Optional[str] = None,
                         waap_advanced_rule_id: Optional[str] = None)
    func NewWaapAdvancedRule(ctx *Context, name string, args WaapAdvancedRuleArgs, opts ...ResourceOption) (*WaapAdvancedRule, error)
    public WaapAdvancedRule(string name, WaapAdvancedRuleArgs args, CustomResourceOptions? opts = null)
    public WaapAdvancedRule(String name, WaapAdvancedRuleArgs args)
    public WaapAdvancedRule(String name, WaapAdvancedRuleArgs args, CustomResourceOptions options)
    
    type: gcore:WaapAdvancedRule
    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 WaapAdvancedRuleArgs
    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 WaapAdvancedRuleArgs
    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 WaapAdvancedRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WaapAdvancedRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WaapAdvancedRuleArgs
    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 waapAdvancedRuleResource = new Gcore.WaapAdvancedRule("waapAdvancedRuleResource", new()
    {
        Action = new Gcore.Inputs.WaapAdvancedRuleActionArgs
        {
            Allow = false,
            Block = new Gcore.Inputs.WaapAdvancedRuleActionBlockArgs
            {
                ActionDuration = "string",
                StatusCode = 0,
            },
            Captcha = false,
            Handshake = false,
            Monitor = false,
            Tag = new Gcore.Inputs.WaapAdvancedRuleActionTagArgs
            {
                Tags = new[]
                {
                    "string",
                },
            },
        },
        DomainId = 0,
        Enabled = false,
        Source = "string",
        Description = "string",
        Name = "string",
        Phase = "string",
        WaapAdvancedRuleId = "string",
    });
    
    example, err := gcore.NewWaapAdvancedRule(ctx, "waapAdvancedRuleResource", &gcore.WaapAdvancedRuleArgs{
    	Action: &gcore.WaapAdvancedRuleActionArgs{
    		Allow: pulumi.Bool(false),
    		Block: &gcore.WaapAdvancedRuleActionBlockArgs{
    			ActionDuration: pulumi.String("string"),
    			StatusCode:     pulumi.Float64(0),
    		},
    		Captcha:   pulumi.Bool(false),
    		Handshake: pulumi.Bool(false),
    		Monitor:   pulumi.Bool(false),
    		Tag: &gcore.WaapAdvancedRuleActionTagArgs{
    			Tags: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	DomainId:           pulumi.Float64(0),
    	Enabled:            pulumi.Bool(false),
    	Source:             pulumi.String("string"),
    	Description:        pulumi.String("string"),
    	Name:               pulumi.String("string"),
    	Phase:              pulumi.String("string"),
    	WaapAdvancedRuleId: pulumi.String("string"),
    })
    
    var waapAdvancedRuleResource = new WaapAdvancedRule("waapAdvancedRuleResource", WaapAdvancedRuleArgs.builder()
        .action(WaapAdvancedRuleActionArgs.builder()
            .allow(false)
            .block(WaapAdvancedRuleActionBlockArgs.builder()
                .actionDuration("string")
                .statusCode(0.0)
                .build())
            .captcha(false)
            .handshake(false)
            .monitor(false)
            .tag(WaapAdvancedRuleActionTagArgs.builder()
                .tags("string")
                .build())
            .build())
        .domainId(0.0)
        .enabled(false)
        .source("string")
        .description("string")
        .name("string")
        .phase("string")
        .waapAdvancedRuleId("string")
        .build());
    
    waap_advanced_rule_resource = gcore.WaapAdvancedRule("waapAdvancedRuleResource",
        action={
            "allow": False,
            "block": {
                "action_duration": "string",
                "status_code": 0,
            },
            "captcha": False,
            "handshake": False,
            "monitor": False,
            "tag": {
                "tags": ["string"],
            },
        },
        domain_id=0,
        enabled=False,
        source="string",
        description="string",
        name="string",
        phase="string",
        waap_advanced_rule_id="string")
    
    const waapAdvancedRuleResource = new gcore.WaapAdvancedRule("waapAdvancedRuleResource", {
        action: {
            allow: false,
            block: {
                actionDuration: "string",
                statusCode: 0,
            },
            captcha: false,
            handshake: false,
            monitor: false,
            tag: {
                tags: ["string"],
            },
        },
        domainId: 0,
        enabled: false,
        source: "string",
        description: "string",
        name: "string",
        phase: "string",
        waapAdvancedRuleId: "string",
    });
    
    type: gcore:WaapAdvancedRule
    properties:
        action:
            allow: false
            block:
                actionDuration: string
                statusCode: 0
            captcha: false
            handshake: false
            monitor: false
            tag:
                tags:
                    - string
        description: string
        domainId: 0
        enabled: false
        name: string
        phase: string
        source: string
        waapAdvancedRuleId: string
    

    WaapAdvancedRule 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 WaapAdvancedRule resource accepts the following input properties:

    Action WaapAdvancedRuleAction
    The action that the rule takes when triggered.
    DomainId double
    The WAAP domain ID for which the Advanced Rule is configured.
    Enabled bool
    Whether the rule is enabled.
    Source string
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    Description string
    The description assigned to the rule.
    Name string
    The name assigned to the rule.
    Phase string
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    WaapAdvancedRuleId string
    The ID of this resource.
    Action WaapAdvancedRuleActionArgs
    The action that the rule takes when triggered.
    DomainId float64
    The WAAP domain ID for which the Advanced Rule is configured.
    Enabled bool
    Whether the rule is enabled.
    Source string
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    Description string
    The description assigned to the rule.
    Name string
    The name assigned to the rule.
    Phase string
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    WaapAdvancedRuleId string
    The ID of this resource.
    action WaapAdvancedRuleAction
    The action that the rule takes when triggered.
    domainId Double
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled Boolean
    Whether the rule is enabled.
    source String
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    description String
    The description assigned to the rule.
    name String
    The name assigned to the rule.
    phase String
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    waapAdvancedRuleId String
    The ID of this resource.
    action WaapAdvancedRuleAction
    The action that the rule takes when triggered.
    domainId number
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled boolean
    Whether the rule is enabled.
    source string
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    description string
    The description assigned to the rule.
    name string
    The name assigned to the rule.
    phase string
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    waapAdvancedRuleId string
    The ID of this resource.
    action WaapAdvancedRuleActionArgs
    The action that the rule takes when triggered.
    domain_id float
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled bool
    Whether the rule is enabled.
    source str
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    description str
    The description assigned to the rule.
    name str
    The name assigned to the rule.
    phase str
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    waap_advanced_rule_id str
    The ID of this resource.
    action Property Map
    The action that the rule takes when triggered.
    domainId Number
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled Boolean
    Whether the rule is enabled.
    source String
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    description String
    The description assigned to the rule.
    name String
    The name assigned to the rule.
    phase String
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    waapAdvancedRuleId String
    The ID of this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WaapAdvancedRule 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 WaapAdvancedRule Resource

    Get an existing WaapAdvancedRule 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?: WaapAdvancedRuleState, opts?: CustomResourceOptions): WaapAdvancedRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[WaapAdvancedRuleActionArgs] = None,
            description: Optional[str] = None,
            domain_id: Optional[float] = None,
            enabled: Optional[bool] = None,
            name: Optional[str] = None,
            phase: Optional[str] = None,
            source: Optional[str] = None,
            waap_advanced_rule_id: Optional[str] = None) -> WaapAdvancedRule
    func GetWaapAdvancedRule(ctx *Context, name string, id IDInput, state *WaapAdvancedRuleState, opts ...ResourceOption) (*WaapAdvancedRule, error)
    public static WaapAdvancedRule Get(string name, Input<string> id, WaapAdvancedRuleState? state, CustomResourceOptions? opts = null)
    public static WaapAdvancedRule get(String name, Output<String> id, WaapAdvancedRuleState state, CustomResourceOptions options)
    resources:  _:    type: gcore:WaapAdvancedRule    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.
    The following state arguments are supported:
    Action WaapAdvancedRuleAction
    The action that the rule takes when triggered.
    Description string
    The description assigned to the rule.
    DomainId double
    The WAAP domain ID for which the Advanced Rule is configured.
    Enabled bool
    Whether the rule is enabled.
    Name string
    The name assigned to the rule.
    Phase string
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    Source string
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    WaapAdvancedRuleId string
    The ID of this resource.
    Action WaapAdvancedRuleActionArgs
    The action that the rule takes when triggered.
    Description string
    The description assigned to the rule.
    DomainId float64
    The WAAP domain ID for which the Advanced Rule is configured.
    Enabled bool
    Whether the rule is enabled.
    Name string
    The name assigned to the rule.
    Phase string
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    Source string
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    WaapAdvancedRuleId string
    The ID of this resource.
    action WaapAdvancedRuleAction
    The action that the rule takes when triggered.
    description String
    The description assigned to the rule.
    domainId Double
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled Boolean
    Whether the rule is enabled.
    name String
    The name assigned to the rule.
    phase String
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    source String
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    waapAdvancedRuleId String
    The ID of this resource.
    action WaapAdvancedRuleAction
    The action that the rule takes when triggered.
    description string
    The description assigned to the rule.
    domainId number
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled boolean
    Whether the rule is enabled.
    name string
    The name assigned to the rule.
    phase string
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    source string
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    waapAdvancedRuleId string
    The ID of this resource.
    action WaapAdvancedRuleActionArgs
    The action that the rule takes when triggered.
    description str
    The description assigned to the rule.
    domain_id float
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled bool
    Whether the rule is enabled.
    name str
    The name assigned to the rule.
    phase str
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    source str
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    waap_advanced_rule_id str
    The ID of this resource.
    action Property Map
    The action that the rule takes when triggered.
    description String
    The description assigned to the rule.
    domainId Number
    The WAAP domain ID for which the Advanced Rule is configured.
    enabled Boolean
    Whether the rule is enabled.
    name String
    The name assigned to the rule.
    phase String
    The WAAP request/response phase for applying the rule. The 'access' phase is responsible for modifying the request before it is sent to the origin server. The 'headerfilter' phase is responsible for modifying the HTTP headers of a response before they are sent back to the client.The 'bodyfilter' phase is responsible for modifying the body of a response before it is sent back to the client. Default is 'access'.
    source String
    A CEL syntax expression that contains the rule's conditions. Allowed objects are: request, whois, session, response, tags, userdefinedtags, useragent, clientdata. More info can be found here: https://gcore.com/docs/waap/waap-rules/advanced-rules
    waapAdvancedRuleId String
    The ID of this resource.

    Supporting Types

    WaapAdvancedRuleAction, WaapAdvancedRuleActionArgs

    Allow bool
    The WAAP allows the request.
    Block WaapAdvancedRuleActionBlock
    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 WaapAdvancedRuleActionTag
    The WAAP tags the request.
    Allow bool
    The WAAP allows the request.
    Block WaapAdvancedRuleActionBlock
    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 WaapAdvancedRuleActionTag
    The WAAP tags the request.
    allow Boolean
    The WAAP allows the request.
    block WaapAdvancedRuleActionBlock
    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 WaapAdvancedRuleActionTag
    The WAAP tags the request.
    allow boolean
    The WAAP allows the request.
    block WaapAdvancedRuleActionBlock
    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 WaapAdvancedRuleActionTag
    The WAAP tags the request.
    allow bool
    The WAAP allows the request.
    block WaapAdvancedRuleActionBlock
    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 WaapAdvancedRuleActionTag
    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.

    WaapAdvancedRuleActionBlock, WaapAdvancedRuleActionBlockArgs

    ActionDuration 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]?$
    StatusCode 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.
    ActionDuration 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]?$
    StatusCode 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.
    actionDuration 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]?$
    statusCode 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.
    actionDuration 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]?$
    statusCode 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.
    actionDuration 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]?$
    statusCode 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.

    WaapAdvancedRuleActionTag, WaapAdvancedRuleActionTagArgs

    Tags List<string>
    The list of user defined tags to tag the request with.
    Tags []string
    The list of user defined tags to tag the request with.
    tags List<String>
    The list of user defined tags to tag the request with.
    tags string[]
    The list of user defined tags to tag the request with.
    tags Sequence[str]
    The list of user defined tags to tag the request with.
    tags List<String>
    The list of user defined tags to tag the request with.

    Import

    import using <domain_id>:<rule_id>

    $ pulumi import gcore:index/waapAdvancedRule:WaapAdvancedRule advanced_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.
    gcore logo
    gcore 0.24.1 published on Wednesday, Jun 4, 2025 by g-core