1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getLighthouseFirewallRulesTemplate
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getLighthouseFirewallRulesTemplate

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of lighthouse firewall_rules_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const firewallRulesTemplate = tencentcloud.getLighthouseFirewallRulesTemplate({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    firewall_rules_template = tencentcloud.get_lighthouse_firewall_rules_template()
    
    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.GetLighthouseFirewallRulesTemplate(ctx, &tencentcloud.GetLighthouseFirewallRulesTemplateArgs{}, 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 firewallRulesTemplate = Tencentcloud.GetLighthouseFirewallRulesTemplate.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.GetLighthouseFirewallRulesTemplateArgs;
    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 firewallRulesTemplate = TencentcloudFunctions.getLighthouseFirewallRulesTemplate();
    
        }
    }
    
    variables:
      firewallRulesTemplate:
        fn::invoke:
          function: tencentcloud:getLighthouseFirewallRulesTemplate
          arguments: {}
    

    Using getLighthouseFirewallRulesTemplate

    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 getLighthouseFirewallRulesTemplate(args: GetLighthouseFirewallRulesTemplateArgs, opts?: InvokeOptions): Promise<GetLighthouseFirewallRulesTemplateResult>
    function getLighthouseFirewallRulesTemplateOutput(args: GetLighthouseFirewallRulesTemplateOutputArgs, opts?: InvokeOptions): Output<GetLighthouseFirewallRulesTemplateResult>
    def get_lighthouse_firewall_rules_template(id: Optional[str] = None,
                                               result_output_file: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetLighthouseFirewallRulesTemplateResult
    def get_lighthouse_firewall_rules_template_output(id: Optional[pulumi.Input[str]] = None,
                                               result_output_file: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetLighthouseFirewallRulesTemplateResult]
    func GetLighthouseFirewallRulesTemplate(ctx *Context, args *GetLighthouseFirewallRulesTemplateArgs, opts ...InvokeOption) (*GetLighthouseFirewallRulesTemplateResult, error)
    func GetLighthouseFirewallRulesTemplateOutput(ctx *Context, args *GetLighthouseFirewallRulesTemplateOutputArgs, opts ...InvokeOption) GetLighthouseFirewallRulesTemplateResultOutput

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

    public static class GetLighthouseFirewallRulesTemplate 
    {
        public static Task<GetLighthouseFirewallRulesTemplateResult> InvokeAsync(GetLighthouseFirewallRulesTemplateArgs args, InvokeOptions? opts = null)
        public static Output<GetLighthouseFirewallRulesTemplateResult> Invoke(GetLighthouseFirewallRulesTemplateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLighthouseFirewallRulesTemplateResult> getLighthouseFirewallRulesTemplate(GetLighthouseFirewallRulesTemplateArgs args, InvokeOptions options)
    public static Output<GetLighthouseFirewallRulesTemplateResult> getLighthouseFirewallRulesTemplate(GetLighthouseFirewallRulesTemplateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getLighthouseFirewallRulesTemplate:getLighthouseFirewallRulesTemplate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    ResultOutputFile string
    Used to save results.
    Id string
    ResultOutputFile string
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.
    id string
    resultOutputFile string
    Used to save results.
    id str
    result_output_file str
    Used to save results.
    id String
    resultOutputFile String
    Used to save results.

    getLighthouseFirewallRulesTemplate Result

    The following output properties are available:

    firewallRuleSets List<Property Map>
    Firewall rule details list.
    id String
    resultOutputFile String

    Supporting Types

    GetLighthouseFirewallRulesTemplateFirewallRuleSet

    Action string
    Valid values are (ACCEPT, DROP). Default value is ACCEPT.
    AppType string
    Application type. Valid values are custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL.
    CidrBlock string
    IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
    FirewallRuleDescription string
    Firewall rule description.
    Port string
    Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
    Protocol string
    Protocol. Valid values are TCP, UDP, ICMP, ALL.
    Action string
    Valid values are (ACCEPT, DROP). Default value is ACCEPT.
    AppType string
    Application type. Valid values are custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL.
    CidrBlock string
    IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
    FirewallRuleDescription string
    Firewall rule description.
    Port string
    Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
    Protocol string
    Protocol. Valid values are TCP, UDP, ICMP, ALL.
    action String
    Valid values are (ACCEPT, DROP). Default value is ACCEPT.
    appType String
    Application type. Valid values are custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL.
    cidrBlock String
    IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
    firewallRuleDescription String
    Firewall rule description.
    port String
    Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
    protocol String
    Protocol. Valid values are TCP, UDP, ICMP, ALL.
    action string
    Valid values are (ACCEPT, DROP). Default value is ACCEPT.
    appType string
    Application type. Valid values are custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL.
    cidrBlock string
    IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
    firewallRuleDescription string
    Firewall rule description.
    port string
    Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
    protocol string
    Protocol. Valid values are TCP, UDP, ICMP, ALL.
    action str
    Valid values are (ACCEPT, DROP). Default value is ACCEPT.
    app_type str
    Application type. Valid values are custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL.
    cidr_block str
    IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
    firewall_rule_description str
    Firewall rule description.
    port str
    Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
    protocol str
    Protocol. Valid values are TCP, UDP, ICMP, ALL.
    action String
    Valid values are (ACCEPT, DROP). Default value is ACCEPT.
    appType String
    Application type. Valid values are custom, HTTP (80), HTTPS (443), Linux login (22), Windows login (3389), MySQL (3306), SQL Server (1433), all TCP ports, all UDP ports, Ping-ICMP, ALL.
    cidrBlock String
    IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
    firewallRuleDescription String
    Firewall rule description.
    port String
    Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
    protocol String
    Protocol. Valid values are TCP, UDP, ICMP, ALL.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack