1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. WafDedicatedGeoIpRuleV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.WafDedicatedGeoIpRuleV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for WAF dedicated Geolocation Access Control rule you can get at documentation portal.

    Manages a WAF Dedicated Geolocation Access Control Rule resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const policy1 = new opentelekomcloud.WafDedicatedPolicyV1("policy1", {});
    const rule1 = new opentelekomcloud.WafDedicatedGeoIpRuleV1("rule1", {
        policyId: policy1.wafDedicatedPolicyV1Id,
        regionCode: "BR",
        action: 0,
        description: "test description",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    policy1 = opentelekomcloud.WafDedicatedPolicyV1("policy1")
    rule1 = opentelekomcloud.WafDedicatedGeoIpRuleV1("rule1",
        policy_id=policy1.waf_dedicated_policy_v1_id,
        region_code="BR",
        action=0,
        description="test description")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		policy1, err := opentelekomcloud.NewWafDedicatedPolicyV1(ctx, "policy1", nil)
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewWafDedicatedGeoIpRuleV1(ctx, "rule1", &opentelekomcloud.WafDedicatedGeoIpRuleV1Args{
    			PolicyId:    policy1.WafDedicatedPolicyV1Id,
    			RegionCode:  pulumi.String("BR"),
    			Action:      pulumi.Float64(0),
    			Description: pulumi.String("test description"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var policy1 = new Opentelekomcloud.WafDedicatedPolicyV1("policy1");
    
        var rule1 = new Opentelekomcloud.WafDedicatedGeoIpRuleV1("rule1", new()
        {
            PolicyId = policy1.WafDedicatedPolicyV1Id,
            RegionCode = "BR",
            Action = 0,
            Description = "test description",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.WafDedicatedPolicyV1;
    import com.pulumi.opentelekomcloud.WafDedicatedGeoIpRuleV1;
    import com.pulumi.opentelekomcloud.WafDedicatedGeoIpRuleV1Args;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var policy1 = new WafDedicatedPolicyV1("policy1");
    
            var rule1 = new WafDedicatedGeoIpRuleV1("rule1", WafDedicatedGeoIpRuleV1Args.builder()
                .policyId(policy1.wafDedicatedPolicyV1Id())
                .regionCode("BR")
                .action(0)
                .description("test description")
                .build());
    
        }
    }
    
    resources:
      policy1:
        type: opentelekomcloud:WafDedicatedPolicyV1
      rule1:
        type: opentelekomcloud:WafDedicatedGeoIpRuleV1
        properties:
          policyId: ${policy1.wafDedicatedPolicyV1Id}
          regionCode: BR
          action: 0
          description: test description
    

    Create WafDedicatedGeoIpRuleV1 Resource

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

    Constructor syntax

    new WafDedicatedGeoIpRuleV1(name: string, args: WafDedicatedGeoIpRuleV1Args, opts?: CustomResourceOptions);
    @overload
    def WafDedicatedGeoIpRuleV1(resource_name: str,
                                args: WafDedicatedGeoIpRuleV1Args,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafDedicatedGeoIpRuleV1(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                action: Optional[float] = None,
                                policy_id: Optional[str] = None,
                                region_code: Optional[str] = None,
                                description: Optional[str] = None,
                                name: Optional[str] = None,
                                timeouts: Optional[WafDedicatedGeoIpRuleV1TimeoutsArgs] = None,
                                waf_dedicated_geo_ip_rule_v1_id: Optional[str] = None)
    func NewWafDedicatedGeoIpRuleV1(ctx *Context, name string, args WafDedicatedGeoIpRuleV1Args, opts ...ResourceOption) (*WafDedicatedGeoIpRuleV1, error)
    public WafDedicatedGeoIpRuleV1(string name, WafDedicatedGeoIpRuleV1Args args, CustomResourceOptions? opts = null)
    public WafDedicatedGeoIpRuleV1(String name, WafDedicatedGeoIpRuleV1Args args)
    public WafDedicatedGeoIpRuleV1(String name, WafDedicatedGeoIpRuleV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:WafDedicatedGeoIpRuleV1
    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 WafDedicatedGeoIpRuleV1Args
    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 WafDedicatedGeoIpRuleV1Args
    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 WafDedicatedGeoIpRuleV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafDedicatedGeoIpRuleV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafDedicatedGeoIpRuleV1Args
    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 wafDedicatedGeoIpRuleV1Resource = new Opentelekomcloud.WafDedicatedGeoIpRuleV1("wafDedicatedGeoIpRuleV1Resource", new()
    {
        Action = 0,
        PolicyId = "string",
        RegionCode = "string",
        Description = "string",
        Name = "string",
        Timeouts = new Opentelekomcloud.Inputs.WafDedicatedGeoIpRuleV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        WafDedicatedGeoIpRuleV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewWafDedicatedGeoIpRuleV1(ctx, "wafDedicatedGeoIpRuleV1Resource", &opentelekomcloud.WafDedicatedGeoIpRuleV1Args{
    	Action:      pulumi.Float64(0),
    	PolicyId:    pulumi.String("string"),
    	RegionCode:  pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Timeouts: &opentelekomcloud.WafDedicatedGeoIpRuleV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	WafDedicatedGeoIpRuleV1Id: pulumi.String("string"),
    })
    
    var wafDedicatedGeoIpRuleV1Resource = new WafDedicatedGeoIpRuleV1("wafDedicatedGeoIpRuleV1Resource", WafDedicatedGeoIpRuleV1Args.builder()
        .action(0)
        .policyId("string")
        .regionCode("string")
        .description("string")
        .name("string")
        .timeouts(WafDedicatedGeoIpRuleV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .wafDedicatedGeoIpRuleV1Id("string")
        .build());
    
    waf_dedicated_geo_ip_rule_v1_resource = opentelekomcloud.WafDedicatedGeoIpRuleV1("wafDedicatedGeoIpRuleV1Resource",
        action=0,
        policy_id="string",
        region_code="string",
        description="string",
        name="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        waf_dedicated_geo_ip_rule_v1_id="string")
    
    const wafDedicatedGeoIpRuleV1Resource = new opentelekomcloud.WafDedicatedGeoIpRuleV1("wafDedicatedGeoIpRuleV1Resource", {
        action: 0,
        policyId: "string",
        regionCode: "string",
        description: "string",
        name: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        wafDedicatedGeoIpRuleV1Id: "string",
    });
    
    type: opentelekomcloud:WafDedicatedGeoIpRuleV1
    properties:
        action: 0
        description: string
        name: string
        policyId: string
        regionCode: string
        timeouts:
            create: string
            delete: string
            update: string
        wafDedicatedGeoIpRuleV1Id: string
    

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

    Action double
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    RegionCode string
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    Description string
    Rule description
    Name string
    Rule name.
    Timeouts WafDedicatedGeoIpRuleV1Timeouts
    WafDedicatedGeoIpRuleV1Id string
    ID of the rule.
    Action float64
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    RegionCode string
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    Description string
    Rule description
    Name string
    Rule name.
    Timeouts WafDedicatedGeoIpRuleV1TimeoutsArgs
    WafDedicatedGeoIpRuleV1Id string
    ID of the rule.
    action Double
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    regionCode String
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    description String
    Rule description
    name String
    Rule name.
    timeouts WafDedicatedGeoIpRuleV1Timeouts
    wafDedicatedGeoIpRuleV1Id String
    ID of the rule.
    action number
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    policyId string
    The WAF policy ID. Changing this creates a new rule.
    regionCode string
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    description string
    Rule description
    name string
    Rule name.
    timeouts WafDedicatedGeoIpRuleV1Timeouts
    wafDedicatedGeoIpRuleV1Id string
    ID of the rule.
    action float
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    policy_id str
    The WAF policy ID. Changing this creates a new rule.
    region_code str
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    description str
    Rule description
    name str
    Rule name.
    timeouts WafDedicatedGeoIpRuleV1TimeoutsArgs
    waf_dedicated_geo_ip_rule_v1_id str
    ID of the rule.
    action Number
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    regionCode String
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    description String
    Rule description
    name String
    Rule name.
    timeouts Property Map
    wafDedicatedGeoIpRuleV1Id String
    ID of the rule.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WafDedicatedGeoIpRuleV1 resource produces the following output properties:

    CreatedAt double
    Timestamp the rule is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status double
    Rule status. The value can be:
    CreatedAt float64
    Timestamp the rule is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status float64
    Rule status. The value can be:
    createdAt Double
    Timestamp the rule is created.
    id String
    The provider-assigned unique ID for this managed resource.
    status Double
    Rule status. The value can be:
    createdAt number
    Timestamp the rule is created.
    id string
    The provider-assigned unique ID for this managed resource.
    status number
    Rule status. The value can be:
    created_at float
    Timestamp the rule is created.
    id str
    The provider-assigned unique ID for this managed resource.
    status float
    Rule status. The value can be:
    createdAt Number
    Timestamp the rule is created.
    id String
    The provider-assigned unique ID for this managed resource.
    status Number
    Rule status. The value can be:

    Look up Existing WafDedicatedGeoIpRuleV1 Resource

    Get an existing WafDedicatedGeoIpRuleV1 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?: WafDedicatedGeoIpRuleV1State, opts?: CustomResourceOptions): WafDedicatedGeoIpRuleV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[float] = None,
            created_at: Optional[float] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            policy_id: Optional[str] = None,
            region_code: Optional[str] = None,
            status: Optional[float] = None,
            timeouts: Optional[WafDedicatedGeoIpRuleV1TimeoutsArgs] = None,
            waf_dedicated_geo_ip_rule_v1_id: Optional[str] = None) -> WafDedicatedGeoIpRuleV1
    func GetWafDedicatedGeoIpRuleV1(ctx *Context, name string, id IDInput, state *WafDedicatedGeoIpRuleV1State, opts ...ResourceOption) (*WafDedicatedGeoIpRuleV1, error)
    public static WafDedicatedGeoIpRuleV1 Get(string name, Input<string> id, WafDedicatedGeoIpRuleV1State? state, CustomResourceOptions? opts = null)
    public static WafDedicatedGeoIpRuleV1 get(String name, Output<String> id, WafDedicatedGeoIpRuleV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:WafDedicatedGeoIpRuleV1    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 double
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    CreatedAt double
    Timestamp the rule is created.
    Description string
    Rule description
    Name string
    Rule name.
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    RegionCode string
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    Status double
    Rule status. The value can be:
    Timeouts WafDedicatedGeoIpRuleV1Timeouts
    WafDedicatedGeoIpRuleV1Id string
    ID of the rule.
    Action float64
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    CreatedAt float64
    Timestamp the rule is created.
    Description string
    Rule description
    Name string
    Rule name.
    PolicyId string
    The WAF policy ID. Changing this creates a new rule.
    RegionCode string
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    Status float64
    Rule status. The value can be:
    Timeouts WafDedicatedGeoIpRuleV1TimeoutsArgs
    WafDedicatedGeoIpRuleV1Id string
    ID of the rule.
    action Double
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    createdAt Double
    Timestamp the rule is created.
    description String
    Rule description
    name String
    Rule name.
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    regionCode String
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    status Double
    Rule status. The value can be:
    timeouts WafDedicatedGeoIpRuleV1Timeouts
    wafDedicatedGeoIpRuleV1Id String
    ID of the rule.
    action number
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    createdAt number
    Timestamp the rule is created.
    description string
    Rule description
    name string
    Rule name.
    policyId string
    The WAF policy ID. Changing this creates a new rule.
    regionCode string
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    status number
    Rule status. The value can be:
    timeouts WafDedicatedGeoIpRuleV1Timeouts
    wafDedicatedGeoIpRuleV1Id string
    ID of the rule.
    action float
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    created_at float
    Timestamp the rule is created.
    description str
    Rule description
    name str
    Rule name.
    policy_id str
    The WAF policy ID. Changing this creates a new rule.
    region_code str
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    status float
    Rule status. The value can be:
    timeouts WafDedicatedGeoIpRuleV1TimeoutsArgs
    waf_dedicated_geo_ip_rule_v1_id str
    ID of the rule.
    action Number
    Protective action. The value can be:

    • 0: WAF blocks the requests that hit the rule.
    • 1: WAF allows the requests that hit the rule.
    • 2: WAF only logs the requests that hit the rule.
    createdAt Number
    Timestamp the rule is created.
    description String
    Rule description
    name String
    Rule name.
    policyId String
    The WAF policy ID. Changing this creates a new rule.
    regionCode String
    Applicable regions. The value can be the region code. For more geographical location codes, see docs "Appendix - Geographic Location Codes." Values:

    • CA: Canada
    • US: USA
    • AU: Australia
    • IN: India
    • JP: Japan
    • UK: United Kingdom
    • FR: France
    • DE: Germany
    • BR: Brazil
    • Ukraine: Ukraine
    • Pakistan: Pakistan
    • Palestine: Palestine
    • Israel: Israel
    • Iraq: Afghanistan
    • Libya: Libya
    • Turkey: Turkey
    • Thailand: Thailand
    • Singapore: Singapore
    • South Africa: South Africa
    • Mexico: Mexico
    • Peru: Peru
    status Number
    Rule status. The value can be:
    timeouts Property Map
    wafDedicatedGeoIpRuleV1Id String
    ID of the rule.

    Supporting Types

    WafDedicatedGeoIpRuleV1Timeouts, WafDedicatedGeoIpRuleV1TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Dedicated WAF Web Geolocation Access Control rules can be imported using policy_id/id, e.g.

    $ pulumi import opentelekomcloud:index/wafDedicatedGeoIpRuleV1:WafDedicatedGeoIpRuleV1 rule_1 ff95e71c8ae74eba9887193ab22c5757/b39f3a5a1b4f447a8030f0b0703f47f5
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud