1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getWafOwaspRuleTypes
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

    Use this data source to query detailed information of WAF owasp rule types

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getWafOwaspRuleTypes({
        domain: "demo.com",
        filters: [{
            name: "RuleId",
            values: ["10000001"],
            exactMatch: true,
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_waf_owasp_rule_types(domain="demo.com",
        filters=[{
            "name": "RuleId",
            "values": ["10000001"],
            "exact_match": True,
        }])
    
    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.GetWafOwaspRuleTypes(ctx, &tencentcloud.GetWafOwaspRuleTypesArgs{
    			Domain: "demo.com",
    			Filters: []tencentcloud.GetWafOwaspRuleTypesFilter{
    				{
    					Name: "RuleId",
    					Values: []string{
    						"10000001",
    					},
    					ExactMatch: true,
    				},
    			},
    		}, nil)
    		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 = Tencentcloud.GetWafOwaspRuleTypes.Invoke(new()
        {
            Domain = "demo.com",
            Filters = new[]
            {
                new Tencentcloud.Inputs.GetWafOwaspRuleTypesFilterInputArgs
                {
                    Name = "RuleId",
                    Values = new[]
                    {
                        "10000001",
                    },
                    ExactMatch = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetWafOwaspRuleTypesArgs;
    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) {
            final var example = TencentcloudFunctions.getWafOwaspRuleTypes(GetWafOwaspRuleTypesArgs.builder()
                .domain("demo.com")
                .filters(GetWafOwaspRuleTypesFilterArgs.builder()
                    .name("RuleId")
                    .values("10000001")
                    .exactMatch(true)
                    .build())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getWafOwaspRuleTypes
          arguments:
            domain: demo.com
            filters:
              - name: RuleId
                values:
                  - '10000001'
                exactMatch: true
    

    Using getWafOwaspRuleTypes

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getWafOwaspRuleTypes(args: GetWafOwaspRuleTypesArgs, opts?: InvokeOptions): Promise<GetWafOwaspRuleTypesResult>
    function getWafOwaspRuleTypesOutput(args: GetWafOwaspRuleTypesOutputArgs, opts?: InvokeOptions): Output<GetWafOwaspRuleTypesResult>
    def get_waf_owasp_rule_types(domain: Optional[str] = None,
                                 filters: Optional[Sequence[GetWafOwaspRuleTypesFilter]] = None,
                                 id: Optional[str] = None,
                                 result_output_file: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetWafOwaspRuleTypesResult
    def get_waf_owasp_rule_types_output(domain: Optional[pulumi.Input[str]] = None,
                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetWafOwaspRuleTypesFilterArgs]]]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 result_output_file: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetWafOwaspRuleTypesResult]
    func GetWafOwaspRuleTypes(ctx *Context, args *GetWafOwaspRuleTypesArgs, opts ...InvokeOption) (*GetWafOwaspRuleTypesResult, error)
    func GetWafOwaspRuleTypesOutput(ctx *Context, args *GetWafOwaspRuleTypesOutputArgs, opts ...InvokeOption) GetWafOwaspRuleTypesResultOutput

    > Note: This function is named GetWafOwaspRuleTypes in the Go SDK.

    public static class GetWafOwaspRuleTypes 
    {
        public static Task<GetWafOwaspRuleTypesResult> InvokeAsync(GetWafOwaspRuleTypesArgs args, InvokeOptions? opts = null)
        public static Output<GetWafOwaspRuleTypesResult> Invoke(GetWafOwaspRuleTypesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWafOwaspRuleTypesResult> getWafOwaspRuleTypes(GetWafOwaspRuleTypesArgs args, InvokeOptions options)
    public static Output<GetWafOwaspRuleTypesResult> getWafOwaspRuleTypes(GetWafOwaspRuleTypesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getWafOwaspRuleTypes:getWafOwaspRuleTypes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Domain string
    Domain names to be queried.
    Filters List<GetWafOwaspRuleTypesFilter>
    Filter conditions. supports RuleId, CveID, and Desc.
    Id string
    ResultOutputFile string
    Used to save results.
    Domain string
    Domain names to be queried.
    Filters []GetWafOwaspRuleTypesFilter
    Filter conditions. supports RuleId, CveID, and Desc.
    Id string
    ResultOutputFile string
    Used to save results.
    domain String
    Domain names to be queried.
    filters List<GetWafOwaspRuleTypesFilter>
    Filter conditions. supports RuleId, CveID, and Desc.
    id String
    resultOutputFile String
    Used to save results.
    domain string
    Domain names to be queried.
    filters GetWafOwaspRuleTypesFilter[]
    Filter conditions. supports RuleId, CveID, and Desc.
    id string
    resultOutputFile string
    Used to save results.
    domain str
    Domain names to be queried.
    filters Sequence[GetWafOwaspRuleTypesFilter]
    Filter conditions. supports RuleId, CveID, and Desc.
    id str
    result_output_file str
    Used to save results.
    domain String
    Domain names to be queried.
    filters List<Property Map>
    Filter conditions. supports RuleId, CveID, and Desc.
    id String
    resultOutputFile String
    Used to save results.

    getWafOwaspRuleTypes Result

    The following output properties are available:

    domain String
    id String
    lists List<Property Map>
    Rule type list and information.
    filters List<Property Map>
    resultOutputFile String

    Supporting Types

    GetWafOwaspRuleTypesFilter

    ExactMatch bool
    Exact search or not.
    Name string
    Field name, used for filtering Filter the sub-order number (value) by DealName.
    Values List<string>
    Values after filtering.
    ExactMatch bool
    Exact search or not.
    Name string
    Field name, used for filtering Filter the sub-order number (value) by DealName.
    Values []string
    Values after filtering.
    exactMatch Boolean
    Exact search or not.
    name String
    Field name, used for filtering Filter the sub-order number (value) by DealName.
    values List<String>
    Values after filtering.
    exactMatch boolean
    Exact search or not.
    name string
    Field name, used for filtering Filter the sub-order number (value) by DealName.
    values string[]
    Values after filtering.
    exact_match bool
    Exact search or not.
    name str
    Field name, used for filtering Filter the sub-order number (value) by DealName.
    values Sequence[str]
    Values after filtering.
    exactMatch Boolean
    Exact search or not.
    name String
    Field name, used for filtering Filter the sub-order number (value) by DealName.
    values List<String>
    Values after filtering.

    GetWafOwaspRuleTypesList

    Action double
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ActiveRule double
    Indicates the total number of rules enabled under the rule type.
    Classification string
    Data type category.
    Description string
    Type description.
    Level double
    Protection level of the rule type. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    Status double
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    TotalRule double
    Specifies all rules under the rule type. always.
    TypeId double
    Type ID.
    TypeName string
    Type name.
    Action float64
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    ActiveRule float64
    Indicates the total number of rules enabled under the rule type.
    Classification string
    Data type category.
    Description string
    Type description.
    Level float64
    Protection level of the rule type. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    Status float64
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    TotalRule float64
    Specifies all rules under the rule type. always.
    TypeId float64
    Type ID.
    TypeName string
    Type name.
    action Double
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    activeRule Double
    Indicates the total number of rules enabled under the rule type.
    classification String
    Data type category.
    description String
    Type description.
    level Double
    Protection level of the rule type. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    status Double
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    totalRule Double
    Specifies all rules under the rule type. always.
    typeId Double
    Type ID.
    typeName String
    Type name.
    action number
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    activeRule number
    Indicates the total number of rules enabled under the rule type.
    classification string
    Data type category.
    description string
    Type description.
    level number
    Protection level of the rule type. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    status number
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    totalRule number
    Specifies all rules under the rule type. always.
    typeId number
    Type ID.
    typeName string
    Type name.
    action float
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    active_rule float
    Indicates the total number of rules enabled under the rule type.
    classification str
    Data type category.
    description str
    Type description.
    level float
    Protection level of the rule type. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    status float
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    total_rule float
    Specifies all rules under the rule type. always.
    type_id float
    Type ID.
    type_name str
    Type name.
    action Number
    Protection mode of the rule type. valid values: 0 (observation), 1 (intercept).
    activeRule Number
    Indicates the total number of rules enabled under the rule type.
    classification String
    Data type category.
    description String
    Type description.
    level Number
    Protection level of the rule type. valid values: 100 (loose), 200 (normal), 300 (strict), 400 (ultra-strict).
    status Number
    The switch status of the rule type. valid values: 0 (disabled), 1 (enabled).
    totalRule Number
    Specifies all rules under the rule type. always.
    typeId Number
    Type ID.
    typeName String
    Type name.

    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