1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getLighthouseFirewallRulesTemplate
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getLighthouseFirewallRulesTemplate

Explore with Pulumi AI

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({});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

firewall_rules_template = tencentcloud.get_lighthouse_firewall_rules_template()
Copy
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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var firewallRulesTemplate = Tencentcloud.GetLighthouseFirewallRulesTemplate.Invoke();

});
Copy
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();

    }
}
Copy
variables:
  firewallRulesTemplate:
    fn::invoke:
      function: tencentcloud:getLighthouseFirewallRulesTemplate
      arguments: {}
Copy

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>
Copy
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]
Copy
func GetLighthouseFirewallRulesTemplate(ctx *Context, args *GetLighthouseFirewallRulesTemplateArgs, opts ...InvokeOption) (*GetLighthouseFirewallRulesTemplateResult, error)
func GetLighthouseFirewallRulesTemplateOutput(ctx *Context, args *GetLighthouseFirewallRulesTemplateOutputArgs, opts ...InvokeOption) GetLighthouseFirewallRulesTemplateResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetLighthouseFirewallRulesTemplateResult> getLighthouseFirewallRulesTemplate(GetLighthouseFirewallRulesTemplateArgs args, InvokeOptions options)
public static Output<GetLighthouseFirewallRulesTemplateResult> getLighthouseFirewallRulesTemplate(GetLighthouseFirewallRulesTemplateArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getLighthouseFirewallRulesTemplate:getLighthouseFirewallRulesTemplate
  arguments:
    # arguments dictionary
Copy

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 This property is required. string
Valid values are (ACCEPT, DROP). Default value is ACCEPT.
AppType This property is required. 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 This property is required. string
IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
FirewallRuleDescription This property is required. string
Firewall rule description.
Port This property is required. string
Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
Protocol This property is required. string
Protocol. Valid values are TCP, UDP, ICMP, ALL.
Action This property is required. string
Valid values are (ACCEPT, DROP). Default value is ACCEPT.
AppType This property is required. 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 This property is required. string
IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
FirewallRuleDescription This property is required. string
Firewall rule description.
Port This property is required. string
Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
Protocol This property is required. string
Protocol. Valid values are TCP, UDP, ICMP, ALL.
action This property is required. String
Valid values are (ACCEPT, DROP). Default value is ACCEPT.
appType This property is required. 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 This property is required. String
IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
firewallRuleDescription This property is required. String
Firewall rule description.
port This property is required. String
Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
protocol This property is required. String
Protocol. Valid values are TCP, UDP, ICMP, ALL.
action This property is required. string
Valid values are (ACCEPT, DROP). Default value is ACCEPT.
appType This property is required. 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 This property is required. string
IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
firewallRuleDescription This property is required. string
Firewall rule description.
port This property is required. string
Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
protocol This property is required. string
Protocol. Valid values are TCP, UDP, ICMP, ALL.
action This property is required. str
Valid values are (ACCEPT, DROP). Default value is ACCEPT.
app_type This property is required. 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 This property is required. str
IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
firewall_rule_description This property is required. str
Firewall rule description.
port This property is required. str
Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
protocol This property is required. str
Protocol. Valid values are TCP, UDP, ICMP, ALL.
action This property is required. String
Valid values are (ACCEPT, DROP). Default value is ACCEPT.
appType This property is required. 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 This property is required. String
IP range or IP (mutually exclusive). Default value is 0.0.0.0/0, which indicates all sources.
firewallRuleDescription This property is required. String
Firewall rule description.
port This property is required. String
Port. Valid values are ALL, one single port, multiple ports separated by commas, or port range indicated by a minus sign.
protocol This property is required. 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.