1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. getConfigSystemRules
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Use this data source to query detailed information of Config system preset rules.

    Example Usage

    Query all system preset rules

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getConfigSystemRules({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_config_system_rules()
    
    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.GetConfigSystemRules(ctx, &tencentcloud.GetConfigSystemRulesArgs{}, 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.GetConfigSystemRules.Invoke();
    
    });
    
    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.GetConfigSystemRulesArgs;
    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.getConfigSystemRules(GetConfigSystemRulesArgs.builder()
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getConfigSystemRules
          arguments: {}
    
    Example coming soon!
    

    Query system rules by keyword

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getConfigSystemRules({
        keyword: "cam",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_config_system_rules(keyword="cam")
    
    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.GetConfigSystemRules(ctx, &tencentcloud.GetConfigSystemRulesArgs{
    			Keyword: pulumi.StringRef("cam"),
    		}, 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.GetConfigSystemRules.Invoke(new()
        {
            Keyword = "cam",
        });
    
    });
    
    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.GetConfigSystemRulesArgs;
    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.getConfigSystemRules(GetConfigSystemRulesArgs.builder()
                .keyword("cam")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getConfigSystemRules
          arguments:
            keyword: cam
    
    Example coming soon!
    

    Query system rules by risk level

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = tencentcloud.getConfigSystemRules({
        riskLevel: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.get_config_system_rules(risk_level=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.GetConfigSystemRules(ctx, &tencentcloud.GetConfigSystemRulesArgs{
    			RiskLevel: pulumi.Float64Ref(1),
    		}, 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.GetConfigSystemRules.Invoke(new()
        {
            RiskLevel = 1,
        });
    
    });
    
    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.GetConfigSystemRulesArgs;
    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.getConfigSystemRules(GetConfigSystemRulesArgs.builder()
                .riskLevel(1)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: tencentcloud:getConfigSystemRules
          arguments:
            riskLevel: 1
    
    Example coming soon!
    

    Using getConfigSystemRules

    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 getConfigSystemRules(args: GetConfigSystemRulesArgs, opts?: InvokeOptions): Promise<GetConfigSystemRulesResult>
    function getConfigSystemRulesOutput(args: GetConfigSystemRulesOutputArgs, opts?: InvokeOptions): Output<GetConfigSystemRulesResult>
    def get_config_system_rules(id: Optional[str] = None,
                                keyword: Optional[str] = None,
                                result_output_file: Optional[str] = None,
                                risk_level: Optional[float] = None,
                                opts: Optional[InvokeOptions] = None) -> GetConfigSystemRulesResult
    def get_config_system_rules_output(id: pulumi.Input[Optional[str]] = None,
                                keyword: pulumi.Input[Optional[str]] = None,
                                result_output_file: pulumi.Input[Optional[str]] = None,
                                risk_level: pulumi.Input[Optional[float]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetConfigSystemRulesResult]
    func GetConfigSystemRules(ctx *Context, args *GetConfigSystemRulesArgs, opts ...InvokeOption) (*GetConfigSystemRulesResult, error)
    func GetConfigSystemRulesOutput(ctx *Context, args *GetConfigSystemRulesOutputArgs, opts ...InvokeOption) GetConfigSystemRulesResultOutput

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

    public static class GetConfigSystemRules 
    {
        public static Task<GetConfigSystemRulesResult> InvokeAsync(GetConfigSystemRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetConfigSystemRulesResult> Invoke(GetConfigSystemRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConfigSystemRulesResult> getConfigSystemRules(GetConfigSystemRulesArgs args, InvokeOptions options)
    public static Output<GetConfigSystemRulesResult> getConfigSystemRules(GetConfigSystemRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getConfigSystemRules:getConfigSystemRules
      arguments:
        # arguments dictionary
    data "tencentcloud_getconfigsystemrules" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Keyword string
    Search keyword. Supports identifier/name/label/description search.
    ResultOutputFile string
    Used to save results.
    RiskLevel double
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    Id string
    Keyword string
    Search keyword. Supports identifier/name/label/description search.
    ResultOutputFile string
    Used to save results.
    RiskLevel float64
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id string
    keyword string
    Search keyword. Supports identifier/name/label/description search.
    result_output_file string
    Used to save results.
    risk_level number
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id String
    keyword String
    Search keyword. Supports identifier/name/label/description search.
    resultOutputFile String
    Used to save results.
    riskLevel Double
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id string
    keyword string
    Search keyword. Supports identifier/name/label/description search.
    resultOutputFile string
    Used to save results.
    riskLevel number
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id str
    keyword str
    Search keyword. Supports identifier/name/label/description search.
    result_output_file str
    Used to save results.
    risk_level float
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id String
    keyword String
    Search keyword. Supports identifier/name/label/description search.
    resultOutputFile String
    Used to save results.
    riskLevel Number
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).

    getConfigSystemRules Result

    The following output properties are available:

    Id string
    RuleLists List<GetConfigSystemRulesRuleList>
    System preset rule list.
    Keyword string
    ResultOutputFile string
    RiskLevel double
    Risk level. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    Id string
    RuleLists []GetConfigSystemRulesRuleList
    System preset rule list.
    Keyword string
    ResultOutputFile string
    RiskLevel float64
    Risk level. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id string
    rule_lists list(object)
    System preset rule list.
    keyword string
    result_output_file string
    risk_level number
    Risk level. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id String
    ruleLists List<GetConfigSystemRulesRuleList>
    System preset rule list.
    keyword String
    resultOutputFile String
    riskLevel Double
    Risk level. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id string
    ruleLists GetConfigSystemRulesRuleList[]
    System preset rule list.
    keyword string
    resultOutputFile string
    riskLevel number
    Risk level. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id str
    rule_lists Sequence[GetConfigSystemRulesRuleList]
    System preset rule list.
    keyword str
    result_output_file str
    risk_level float
    Risk level. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    id String
    ruleLists List<Property Map>
    System preset rule list.
    keyword String
    resultOutputFile String
    riskLevel Number
    Risk level. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).

    Supporting Types

    GetConfigSystemRulesRuleList

    CreateTime string
    Creation time.
    Description string
    Rule description.
    Identifier string
    Rule unique identifier.
    IdentifierType string
    Rule type.
    Labels List<string>
    Rule label list.
    ReferenceCount double
    Number of times this rule is referenced.
    ResourceTypes List<string>
    Supported resource type list.
    RiskLevel double
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    RuleName string
    Rule name.
    ServiceFunction string
    Corresponding service function.
    TriggerTypes List<string>
    Trigger type list.
    UpdateTime string
    Last update time.
    CreateTime string
    Creation time.
    Description string
    Rule description.
    Identifier string
    Rule unique identifier.
    IdentifierType string
    Rule type.
    Labels []string
    Rule label list.
    ReferenceCount float64
    Number of times this rule is referenced.
    ResourceTypes []string
    Supported resource type list.
    RiskLevel float64
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    RuleName string
    Rule name.
    ServiceFunction string
    Corresponding service function.
    TriggerTypes []string
    Trigger type list.
    UpdateTime string
    Last update time.
    create_time string
    Creation time.
    description string
    Rule description.
    identifier string
    Rule unique identifier.
    identifier_type string
    Rule type.
    labels list(string)
    Rule label list.
    reference_count number
    Number of times this rule is referenced.
    resource_types list(string)
    Supported resource type list.
    risk_level number
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    rule_name string
    Rule name.
    service_function string
    Corresponding service function.
    trigger_types list(string)
    Trigger type list.
    update_time string
    Last update time.
    createTime String
    Creation time.
    description String
    Rule description.
    identifier String
    Rule unique identifier.
    identifierType String
    Rule type.
    labels List<String>
    Rule label list.
    referenceCount Double
    Number of times this rule is referenced.
    resourceTypes List<String>
    Supported resource type list.
    riskLevel Double
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    ruleName String
    Rule name.
    serviceFunction String
    Corresponding service function.
    triggerTypes List<String>
    Trigger type list.
    updateTime String
    Last update time.
    createTime string
    Creation time.
    description string
    Rule description.
    identifier string
    Rule unique identifier.
    identifierType string
    Rule type.
    labels string[]
    Rule label list.
    referenceCount number
    Number of times this rule is referenced.
    resourceTypes string[]
    Supported resource type list.
    riskLevel number
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    ruleName string
    Rule name.
    serviceFunction string
    Corresponding service function.
    triggerTypes string[]
    Trigger type list.
    updateTime string
    Last update time.
    create_time str
    Creation time.
    description str
    Rule description.
    identifier str
    Rule unique identifier.
    identifier_type str
    Rule type.
    labels Sequence[str]
    Rule label list.
    reference_count float
    Number of times this rule is referenced.
    resource_types Sequence[str]
    Supported resource type list.
    risk_level float
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    rule_name str
    Rule name.
    service_function str
    Corresponding service function.
    trigger_types Sequence[str]
    Trigger type list.
    update_time str
    Last update time.
    createTime String
    Creation time.
    description String
    Rule description.
    identifier String
    Rule unique identifier.
    identifierType String
    Rule type.
    labels List<String>
    Rule label list.
    referenceCount Number
    Number of times this rule is referenced.
    resourceTypes List<String>
    Supported resource type list.
    riskLevel Number
    Risk level for filtering. Valid values: 1 (high risk), 2 (medium risk), 3 (low risk).
    ruleName String
    Rule name.
    serviceFunction String
    Corresponding service function.
    triggerTypes List<String>
    Trigger type list.
    updateTime String
    Last update time.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.