1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. WafFalsealarmmaskingRuleV1
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.WafFalsealarmmaskingRuleV1

Explore with Pulumi AI

Up-to-date reference of API arguments for WAF false alarm masking rules you can get at documentation portal

Manages a WAF False Alarm Masking Rule resource within OpenTelekomCloud.

!> This resource is known to be broken due to the API changes and will be fixed in the upcoming releases

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const policy1 = new opentelekomcloud.WafPolicyV1("policy1", {});
const rule1 = new opentelekomcloud.WafFalsealarmmaskingRuleV1("rule1", {
    policyId: policy1.wafPolicyV1Id,
    url: "/a",
    rule: "100001",
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

policy1 = opentelekomcloud.WafPolicyV1("policy1")
rule1 = opentelekomcloud.WafFalsealarmmaskingRuleV1("rule1",
    policy_id=policy1.waf_policy_v1_id,
    url="/a",
    rule="100001")
Copy
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.NewWafPolicyV1(ctx, "policy1", nil)
		if err != nil {
			return err
		}
		_, err = opentelekomcloud.NewWafFalsealarmmaskingRuleV1(ctx, "rule1", &opentelekomcloud.WafFalsealarmmaskingRuleV1Args{
			PolicyId: policy1.WafPolicyV1Id,
			Url:      pulumi.String("/a"),
			Rule:     pulumi.String("100001"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var policy1 = new Opentelekomcloud.WafPolicyV1("policy1");

    var rule1 = new Opentelekomcloud.WafFalsealarmmaskingRuleV1("rule1", new()
    {
        PolicyId = policy1.WafPolicyV1Id,
        Url = "/a",
        Rule = "100001",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.WafPolicyV1;
import com.pulumi.opentelekomcloud.WafFalsealarmmaskingRuleV1;
import com.pulumi.opentelekomcloud.WafFalsealarmmaskingRuleV1Args;
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 WafPolicyV1("policy1");

        var rule1 = new WafFalsealarmmaskingRuleV1("rule1", WafFalsealarmmaskingRuleV1Args.builder()
            .policyId(policy1.wafPolicyV1Id())
            .url("/a")
            .rule("100001")
            .build());

    }
}
Copy
resources:
  policy1:
    type: opentelekomcloud:WafPolicyV1
  rule1:
    type: opentelekomcloud:WafFalsealarmmaskingRuleV1
    properties:
      policyId: ${policy1.wafPolicyV1Id}
      url: /a
      rule: '100001'
Copy

Create WafFalsealarmmaskingRuleV1 Resource

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

Constructor syntax

new WafFalsealarmmaskingRuleV1(name: string, args: WafFalsealarmmaskingRuleV1Args, opts?: CustomResourceOptions);
@overload
def WafFalsealarmmaskingRuleV1(resource_name: str,
                               args: WafFalsealarmmaskingRuleV1Args,
                               opts: Optional[ResourceOptions] = None)

@overload
def WafFalsealarmmaskingRuleV1(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               policy_id: Optional[str] = None,
                               rule: Optional[str] = None,
                               url: Optional[str] = None,
                               timeouts: Optional[WafFalsealarmmaskingRuleV1TimeoutsArgs] = None,
                               waf_falsealarmmasking_rule_v1_id: Optional[str] = None)
func NewWafFalsealarmmaskingRuleV1(ctx *Context, name string, args WafFalsealarmmaskingRuleV1Args, opts ...ResourceOption) (*WafFalsealarmmaskingRuleV1, error)
public WafFalsealarmmaskingRuleV1(string name, WafFalsealarmmaskingRuleV1Args args, CustomResourceOptions? opts = null)
public WafFalsealarmmaskingRuleV1(String name, WafFalsealarmmaskingRuleV1Args args)
public WafFalsealarmmaskingRuleV1(String name, WafFalsealarmmaskingRuleV1Args args, CustomResourceOptions options)
type: opentelekomcloud:WafFalsealarmmaskingRuleV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WafFalsealarmmaskingRuleV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WafFalsealarmmaskingRuleV1Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WafFalsealarmmaskingRuleV1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WafFalsealarmmaskingRuleV1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WafFalsealarmmaskingRuleV1Args
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 wafFalsealarmmaskingRuleV1Resource = new Opentelekomcloud.WafFalsealarmmaskingRuleV1("wafFalsealarmmaskingRuleV1Resource", new()
{
    PolicyId = "string",
    Rule = "string",
    Url = "string",
    Timeouts = new Opentelekomcloud.Inputs.WafFalsealarmmaskingRuleV1TimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
    WafFalsealarmmaskingRuleV1Id = "string",
});
Copy
example, err := opentelekomcloud.NewWafFalsealarmmaskingRuleV1(ctx, "wafFalsealarmmaskingRuleV1Resource", &opentelekomcloud.WafFalsealarmmaskingRuleV1Args{
PolicyId: pulumi.String("string"),
Rule: pulumi.String("string"),
Url: pulumi.String("string"),
Timeouts: &.WafFalsealarmmaskingRuleV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
WafFalsealarmmaskingRuleV1Id: pulumi.String("string"),
})
Copy
var wafFalsealarmmaskingRuleV1Resource = new WafFalsealarmmaskingRuleV1("wafFalsealarmmaskingRuleV1Resource", WafFalsealarmmaskingRuleV1Args.builder()
    .policyId("string")
    .rule("string")
    .url("string")
    .timeouts(WafFalsealarmmaskingRuleV1TimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .wafFalsealarmmaskingRuleV1Id("string")
    .build());
Copy
waf_falsealarmmasking_rule_v1_resource = opentelekomcloud.WafFalsealarmmaskingRuleV1("wafFalsealarmmaskingRuleV1Resource",
    policy_id="string",
    rule="string",
    url="string",
    timeouts={
        "create": "string",
        "delete": "string",
    },
    waf_falsealarmmasking_rule_v1_id="string")
Copy
const wafFalsealarmmaskingRuleV1Resource = new opentelekomcloud.WafFalsealarmmaskingRuleV1("wafFalsealarmmaskingRuleV1Resource", {
    policyId: "string",
    rule: "string",
    url: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
    wafFalsealarmmaskingRuleV1Id: "string",
});
Copy
type: opentelekomcloud:WafFalsealarmmaskingRuleV1
properties:
    policyId: string
    rule: string
    timeouts:
        create: string
        delete: string
    url: string
    wafFalsealarmmaskingRuleV1Id: string
Copy

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

PolicyId This property is required. string
The WAF policy ID. Changing this creates a new rule.
Rule This property is required. string
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
Url This property is required. string
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
Timeouts WafFalsealarmmaskingRuleV1Timeouts
WafFalsealarmmaskingRuleV1Id string
ID of the rule.
PolicyId This property is required. string
The WAF policy ID. Changing this creates a new rule.
Rule This property is required. string
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
Url This property is required. string
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
Timeouts WafFalsealarmmaskingRuleV1TimeoutsArgs
WafFalsealarmmaskingRuleV1Id string
ID of the rule.
policyId This property is required. String
The WAF policy ID. Changing this creates a new rule.
rule This property is required. String
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
url This property is required. String
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
timeouts WafFalsealarmmaskingRuleV1Timeouts
wafFalsealarmmaskingRuleV1Id String
ID of the rule.
policyId This property is required. string
The WAF policy ID. Changing this creates a new rule.
rule This property is required. string
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
url This property is required. string
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
timeouts WafFalsealarmmaskingRuleV1Timeouts
wafFalsealarmmaskingRuleV1Id string
ID of the rule.
policy_id This property is required. str
The WAF policy ID. Changing this creates a new rule.
rule This property is required. str
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
url This property is required. str
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
timeouts WafFalsealarmmaskingRuleV1TimeoutsArgs
waf_falsealarmmasking_rule_v1_id str
ID of the rule.
policyId This property is required. String
The WAF policy ID. Changing this creates a new rule.
rule This property is required. String
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
url This property is required. String
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
timeouts Property Map
wafFalsealarmmaskingRuleV1Id String
ID of the rule.

Outputs

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

Get an existing WafFalsealarmmaskingRuleV1 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?: WafFalsealarmmaskingRuleV1State, opts?: CustomResourceOptions): WafFalsealarmmaskingRuleV1
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        policy_id: Optional[str] = None,
        rule: Optional[str] = None,
        timeouts: Optional[WafFalsealarmmaskingRuleV1TimeoutsArgs] = None,
        url: Optional[str] = None,
        waf_falsealarmmasking_rule_v1_id: Optional[str] = None) -> WafFalsealarmmaskingRuleV1
func GetWafFalsealarmmaskingRuleV1(ctx *Context, name string, id IDInput, state *WafFalsealarmmaskingRuleV1State, opts ...ResourceOption) (*WafFalsealarmmaskingRuleV1, error)
public static WafFalsealarmmaskingRuleV1 Get(string name, Input<string> id, WafFalsealarmmaskingRuleV1State? state, CustomResourceOptions? opts = null)
public static WafFalsealarmmaskingRuleV1 get(String name, Output<String> id, WafFalsealarmmaskingRuleV1State state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:WafFalsealarmmaskingRuleV1    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
PolicyId string
The WAF policy ID. Changing this creates a new rule.
Rule string
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
Timeouts WafFalsealarmmaskingRuleV1Timeouts
Url string
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
WafFalsealarmmaskingRuleV1Id string
ID of the rule.
PolicyId string
The WAF policy ID. Changing this creates a new rule.
Rule string
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
Timeouts WafFalsealarmmaskingRuleV1TimeoutsArgs
Url string
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
WafFalsealarmmaskingRuleV1Id string
ID of the rule.
policyId String
The WAF policy ID. Changing this creates a new rule.
rule String
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
timeouts WafFalsealarmmaskingRuleV1Timeouts
url String
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
wafFalsealarmmaskingRuleV1Id String
ID of the rule.
policyId string
The WAF policy ID. Changing this creates a new rule.
rule string
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
timeouts WafFalsealarmmaskingRuleV1Timeouts
url string
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
wafFalsealarmmaskingRuleV1Id string
ID of the rule.
policy_id str
The WAF policy ID. Changing this creates a new rule.
rule str
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
timeouts WafFalsealarmmaskingRuleV1TimeoutsArgs
url str
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
waf_falsealarmmasking_rule_v1_id str
ID of the rule.
policyId String
The WAF policy ID. Changing this creates a new rule.
rule String
Specifies the rule ID, which consists of six digits and cannot be empty. Changing this creates a new rule.
timeouts Property Map
url String
Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
wafFalsealarmmaskingRuleV1Id String
ID of the rule.

Supporting Types

WafFalsealarmmaskingRuleV1Timeouts
, WafFalsealarmmaskingRuleV1TimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

False Alarm Masking Rules can be imported using policy_id/id, e.g.

$ pulumi import opentelekomcloud:index/wafFalsealarmmaskingRuleV1:WafFalsealarmmaskingRuleV1 rule_1 ff95e71c8ae74eba9887193ab22c5757/b39f3a5a1b4f447a8030f0b0703f47f5
Copy

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.