1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WafOwaspRuleStatusConfig
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
tencentcloud logo
tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack

    Provides a resource to create a WAF owasp rule status config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafOwaspRuleStatusConfig("example", {
        domain: "demo.com",
        ruleId: "106251141",
        ruleStatus: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafOwaspRuleStatusConfig("example",
        domain="demo.com",
        rule_id="106251141",
        rule_status=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewWafOwaspRuleStatusConfig(ctx, "example", &tencentcloud.WafOwaspRuleStatusConfigArgs{
    			Domain:     pulumi.String("demo.com"),
    			RuleId:     pulumi.String("106251141"),
    			RuleStatus: pulumi.Float64(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.WafOwaspRuleStatusConfig("example", new()
        {
            Domain = "demo.com",
            RuleId = "106251141",
            RuleStatus = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafOwaspRuleStatusConfig;
    import com.pulumi.tencentcloud.WafOwaspRuleStatusConfigArgs;
    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 example = new WafOwaspRuleStatusConfig("example", WafOwaspRuleStatusConfigArgs.builder()
                .domain("demo.com")
                .ruleId("106251141")
                .ruleStatus(1.0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafOwaspRuleStatusConfig
        properties:
          domain: demo.com
          ruleId: '106251141'
          ruleStatus: 1
    

    Create WafOwaspRuleStatusConfig Resource

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

    Constructor syntax

    new WafOwaspRuleStatusConfig(name: string, args: WafOwaspRuleStatusConfigArgs, opts?: CustomResourceOptions);
    @overload
    def WafOwaspRuleStatusConfig(resource_name: str,
                                 args: WafOwaspRuleStatusConfigArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafOwaspRuleStatusConfig(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 domain: Optional[str] = None,
                                 rule_id: Optional[str] = None,
                                 rule_status: Optional[float] = None,
                                 reason: Optional[float] = None,
                                 type_id: Optional[float] = None,
                                 waf_owasp_rule_status_config_id: Optional[str] = None)
    func NewWafOwaspRuleStatusConfig(ctx *Context, name string, args WafOwaspRuleStatusConfigArgs, opts ...ResourceOption) (*WafOwaspRuleStatusConfig, error)
    public WafOwaspRuleStatusConfig(string name, WafOwaspRuleStatusConfigArgs args, CustomResourceOptions? opts = null)
    public WafOwaspRuleStatusConfig(String name, WafOwaspRuleStatusConfigArgs args)
    public WafOwaspRuleStatusConfig(String name, WafOwaspRuleStatusConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafOwaspRuleStatusConfig
    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 WafOwaspRuleStatusConfigArgs
    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 WafOwaspRuleStatusConfigArgs
    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 WafOwaspRuleStatusConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafOwaspRuleStatusConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafOwaspRuleStatusConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Domain string
    Domain name.
    RuleId string
    Rule ID.
    RuleStatus double
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    Reason double
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    TypeId double
    If reverse requires the input of data type.
    WafOwaspRuleStatusConfigId string
    ID of the resource.
    Domain string
    Domain name.
    RuleId string
    Rule ID.
    RuleStatus float64
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    Reason float64
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    TypeId float64
    If reverse requires the input of data type.
    WafOwaspRuleStatusConfigId string
    ID of the resource.
    domain String
    Domain name.
    ruleId String
    Rule ID.
    ruleStatus Double
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    reason Double
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    typeId Double
    If reverse requires the input of data type.
    wafOwaspRuleStatusConfigId String
    ID of the resource.
    domain string
    Domain name.
    ruleId string
    Rule ID.
    ruleStatus number
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    reason number
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    typeId number
    If reverse requires the input of data type.
    wafOwaspRuleStatusConfigId string
    ID of the resource.
    domain str
    Domain name.
    rule_id str
    Rule ID.
    rule_status float
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    reason float
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    type_id float
    If reverse requires the input of data type.
    waf_owasp_rule_status_config_id str
    ID of the resource.
    domain String
    Domain name.
    ruleId String
    Rule ID.
    ruleStatus Number
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    reason Number
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    typeId Number
    If reverse requires the input of data type.
    wafOwaspRuleStatusConfigId String
    ID of the resource.

    Outputs

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

    CveId string
    CVE ID.
    Description string
    Rule description.
    Id string
    The provider-assigned unique ID for this managed resource.
    Level double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    Locked double
    Whether the user is locked.
    VulLevel double
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    CveId string
    CVE ID.
    Description string
    Rule description.
    Id string
    The provider-assigned unique ID for this managed resource.
    Level float64
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    Locked float64
    Whether the user is locked.
    VulLevel float64
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    cveId String
    CVE ID.
    description String
    Rule description.
    id String
    The provider-assigned unique ID for this managed resource.
    level Double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked Double
    Whether the user is locked.
    vulLevel Double
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    cveId string
    CVE ID.
    description string
    Rule description.
    id string
    The provider-assigned unique ID for this managed resource.
    level number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked number
    Whether the user is locked.
    vulLevel number
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    cve_id str
    CVE ID.
    description str
    Rule description.
    id str
    The provider-assigned unique ID for this managed resource.
    level float
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked float
    Whether the user is locked.
    vul_level float
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    cveId String
    CVE ID.
    description String
    Rule description.
    id String
    The provider-assigned unique ID for this managed resource.
    level Number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked Number
    Whether the user is locked.
    vulLevel Number
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).

    Look up Existing WafOwaspRuleStatusConfig Resource

    Get an existing WafOwaspRuleStatusConfig 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?: WafOwaspRuleStatusConfigState, opts?: CustomResourceOptions): WafOwaspRuleStatusConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cve_id: Optional[str] = None,
            description: Optional[str] = None,
            domain: Optional[str] = None,
            level: Optional[float] = None,
            locked: Optional[float] = None,
            reason: Optional[float] = None,
            rule_id: Optional[str] = None,
            rule_status: Optional[float] = None,
            type_id: Optional[float] = None,
            vul_level: Optional[float] = None,
            waf_owasp_rule_status_config_id: Optional[str] = None) -> WafOwaspRuleStatusConfig
    func GetWafOwaspRuleStatusConfig(ctx *Context, name string, id IDInput, state *WafOwaspRuleStatusConfigState, opts ...ResourceOption) (*WafOwaspRuleStatusConfig, error)
    public static WafOwaspRuleStatusConfig Get(string name, Input<string> id, WafOwaspRuleStatusConfigState? state, CustomResourceOptions? opts = null)
    public static WafOwaspRuleStatusConfig get(String name, Output<String> id, WafOwaspRuleStatusConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafOwaspRuleStatusConfig    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:
    CveId string
    CVE ID.
    Description string
    Rule description.
    Domain string
    Domain name.
    Level double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    Locked double
    Whether the user is locked.
    Reason double
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    RuleId string
    Rule ID.
    RuleStatus double
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    TypeId double
    If reverse requires the input of data type.
    VulLevel double
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    WafOwaspRuleStatusConfigId string
    ID of the resource.
    CveId string
    CVE ID.
    Description string
    Rule description.
    Domain string
    Domain name.
    Level float64
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    Locked float64
    Whether the user is locked.
    Reason float64
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    RuleId string
    Rule ID.
    RuleStatus float64
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    TypeId float64
    If reverse requires the input of data type.
    VulLevel float64
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    WafOwaspRuleStatusConfigId string
    ID of the resource.
    cveId String
    CVE ID.
    description String
    Rule description.
    domain String
    Domain name.
    level Double
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked Double
    Whether the user is locked.
    reason Double
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    ruleId String
    Rule ID.
    ruleStatus Double
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    typeId Double
    If reverse requires the input of data type.
    vulLevel Double
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    wafOwaspRuleStatusConfigId String
    ID of the resource.
    cveId string
    CVE ID.
    description string
    Rule description.
    domain string
    Domain name.
    level number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked number
    Whether the user is locked.
    reason number
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    ruleId string
    Rule ID.
    ruleStatus number
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    typeId number
    If reverse requires the input of data type.
    vulLevel number
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    wafOwaspRuleStatusConfigId string
    ID of the resource.
    cve_id str
    CVE ID.
    description str
    Rule description.
    domain str
    Domain name.
    level float
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked float
    Whether the user is locked.
    reason float
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    rule_id str
    Rule ID.
    rule_status float
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    type_id float
    If reverse requires the input of data type.
    vul_level float
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    waf_owasp_rule_status_config_id str
    ID of the resource.
    cveId String
    CVE ID.
    description String
    Rule description.
    domain String
    Domain name.
    level Number
    Protection level of the rule. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    locked Number
    Whether the user is locked.
    reason Number
    Reason for modification. valid values: 0: none (compatibility record is empty). 1: avoid false positives due to business characteristics. 2: reporting of rule-based false positives. 3: gray release of core business rules. 4: others.
    ruleId String
    Rule ID.
    ruleStatus Number
    Rule switch. valid values: 0 (disabled), 1 (enabled), 2 (observation only).
    typeId Number
    If reverse requires the input of data type.
    vulLevel Number
    Threat level. valid values: 0 (unknown), 100 (low risk), 200 (medium risk), 300 (high risk), 400 (critical).
    wafOwaspRuleStatusConfigId String
    ID of the resource.

    Import

    WAF owasp rule status config can be imported using the domain#ruleId, e.g.

    $ pulumi import tencentcloud:index/wafOwaspRuleStatusConfig:WafOwaspRuleStatusConfig example demo.com#106251141
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.45 published on Tuesday, Dec 16, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate