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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
policy1:
type: opentelekomcloud:WafPolicyV1
rule1:
type: opentelekomcloud:WafFalsealarmmaskingRuleV1
properties:
policyId: ${policy1.wafPolicyV1Id}
url: /a
rule: '100001'
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 string
- The unique name of the resource.
- args WafFalsealarmmaskingRuleV1Args
- 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 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 string
- The unique name of the resource.
- args WafFalsealarmmaskingRuleV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WafFalsealarmmaskingRuleV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := opentelekomcloud.NewWafFalsealarmmaskingRuleV1(ctx, "wafFalsealarmmaskingRuleV1Resource", &opentelekomcloud.WafFalsealarmmaskingRuleV1Args{
PolicyId: pulumi.String("string"),
Rule: pulumi.String("string"),
Url: pulumi.String("string"),
Timeouts: &opentelekomcloud.WafFalsealarmmaskingRuleV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
WafFalsealarmmaskingRuleV1Id: pulumi.String("string"),
})
var wafFalsealarmmaskingRuleV1Resource = new WafFalsealarmmaskingRuleV1("wafFalsealarmmaskingRuleV1Resource", WafFalsealarmmaskingRuleV1Args.builder()
.policyId("string")
.rule("string")
.url("string")
.timeouts(WafFalsealarmmaskingRuleV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.wafFalsealarmmaskingRuleV1Id("string")
.build());
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")
const wafFalsealarmmaskingRuleV1Resource = new opentelekomcloud.WafFalsealarmmaskingRuleV1("wafFalsealarmmaskingRuleV1Resource", {
policyId: "string",
rule: "string",
url: "string",
timeouts: {
create: "string",
"delete": "string",
},
wafFalsealarmmaskingRuleV1Id: "string",
});
type: opentelekomcloud:WafFalsealarmmaskingRuleV1
properties:
policyId: string
rule: string
timeouts:
create: string
delete: string
url: string
wafFalsealarmmaskingRuleV1Id: string
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:
- Policy
Id 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.
- Url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- Timeouts
Waf
Falsealarmmasking Rule V1Timeouts - Waf
Falsealarmmasking stringRule V1Id - ID of the rule.
- Policy
Id 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.
- Url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- Timeouts
Waf
Falsealarmmasking Rule V1Timeouts Args - Waf
Falsealarmmasking stringRule V1Id - ID of the rule.
- policy
Id 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.
- url String
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- timeouts
Waf
Falsealarmmasking Rule V1Timeouts - waf
Falsealarmmasking StringRule V1Id - ID of the rule.
- policy
Id 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.
- url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- timeouts
Waf
Falsealarmmasking Rule V1Timeouts - waf
Falsealarmmasking stringRule V1Id - 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.
- url str
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- timeouts
Waf
Falsealarmmasking Rule V1Timeouts Args - waf_
falsealarmmasking_ strrule_ v1_ id - ID of the rule.
- policy
Id 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.
- url String
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- timeouts Property Map
- waf
Falsealarmmasking StringRule V1Id - 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
- 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.
- Policy
Id 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
Waf
Falsealarmmasking Rule V1Timeouts - Url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- Waf
Falsealarmmasking stringRule V1Id - ID of the rule.
- Policy
Id 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
Waf
Falsealarmmasking Rule V1Timeouts Args - Url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- Waf
Falsealarmmasking stringRule V1Id - ID of the rule.
- policy
Id 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
Waf
Falsealarmmasking Rule V1Timeouts - url String
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- waf
Falsealarmmasking StringRule V1Id - ID of the rule.
- policy
Id 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
Waf
Falsealarmmasking Rule V1Timeouts - url string
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- waf
Falsealarmmasking stringRule V1Id - 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
Waf
Falsealarmmasking Rule V1Timeouts Args - url str
- Specifies a misreported URL excluding a domain name. Changing this creates a new rule.
- waf_
falsealarmmasking_ strrule_ v1_ id - ID of the rule.
- policy
Id 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.
- waf
Falsealarmmasking StringRule V1Id - ID of the rule.
Supporting Types
WafFalsealarmmaskingRuleV1Timeouts, WafFalsealarmmaskingRuleV1TimeoutsArgs
Import
False Alarm Masking Rules can be imported using policy_id/id
, e.g.
$ pulumi import opentelekomcloud:index/wafFalsealarmmaskingRuleV1:WafFalsealarmmaskingRuleV1 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.