1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. FwmSecurityGroupRule
Viewing docs for tencentcloud 1.83.41
published on Friday, Nov 6, 2026 by tencentcloudstack
tencentcloud
Viewing docs for tencentcloud 1.83.41
published on Friday, Nov 6, 2026 by tencentcloudstack

    Provides a resource to create a FWM security group rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.FwmSecurityGroupRule("example", {
        groupId: "fwmrg-ghlu11dv",
        ipVersion: "ipv4",
        sourceType: "net",
        sourceContent: "0.0.0.0/0",
        destType: "net",
        destContent: "0.0.0.0/0",
        protocol: "ANY",
        port: "-1/-1",
        ruleAction: "drop",
        scope: "SG",
        protocolPortType: 0,
        description: "remark.",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.FwmSecurityGroupRule("example",
        group_id="fwmrg-ghlu11dv",
        ip_version="ipv4",
        source_type="net",
        source_content="0.0.0.0/0",
        dest_type="net",
        dest_content="0.0.0.0/0",
        protocol="ANY",
        port="-1/-1",
        rule_action="drop",
        scope="SG",
        protocol_port_type=0,
        description="remark.")
    
    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.NewFwmSecurityGroupRule(ctx, "example", &tencentcloud.FwmSecurityGroupRuleArgs{
    			GroupId:          pulumi.String("fwmrg-ghlu11dv"),
    			IpVersion:        pulumi.String("ipv4"),
    			SourceType:       pulumi.String("net"),
    			SourceContent:    pulumi.String("0.0.0.0/0"),
    			DestType:         pulumi.String("net"),
    			DestContent:      pulumi.String("0.0.0.0/0"),
    			Protocol:         pulumi.String("ANY"),
    			Port:             pulumi.String("-1/-1"),
    			RuleAction:       pulumi.String("drop"),
    			Scope:            pulumi.String("SG"),
    			ProtocolPortType: pulumi.Float64(0),
    			Description:      pulumi.String("remark."),
    		})
    		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.FwmSecurityGroupRule("example", new()
        {
            GroupId = "fwmrg-ghlu11dv",
            IpVersion = "ipv4",
            SourceType = "net",
            SourceContent = "0.0.0.0/0",
            DestType = "net",
            DestContent = "0.0.0.0/0",
            Protocol = "ANY",
            Port = "-1/-1",
            RuleAction = "drop",
            Scope = "SG",
            ProtocolPortType = 0,
            Description = "remark.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.FwmSecurityGroupRule;
    import com.pulumi.tencentcloud.FwmSecurityGroupRuleArgs;
    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 FwmSecurityGroupRule("example", FwmSecurityGroupRuleArgs.builder()
                .groupId("fwmrg-ghlu11dv")
                .ipVersion("ipv4")
                .sourceType("net")
                .sourceContent("0.0.0.0/0")
                .destType("net")
                .destContent("0.0.0.0/0")
                .protocol("ANY")
                .port("-1/-1")
                .ruleAction("drop")
                .scope("SG")
                .protocolPortType(0.0)
                .description("remark.")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:FwmSecurityGroupRule
        properties:
          groupId: fwmrg-ghlu11dv
          ipVersion: ipv4
          sourceType: net
          sourceContent: 0.0.0.0/0
          destType: net
          destContent: 0.0.0.0/0
          protocol: ANY
          port: -1/-1
          ruleAction: drop
          scope: SG
          protocolPortType: 0
          description: remark.
    
    Example coming soon!
    

    API Reference

    This resource interacts with the following TencentCloud APIs:

    Create FwmSecurityGroupRule Resource

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

    Constructor syntax

    new FwmSecurityGroupRule(name: string, args: FwmSecurityGroupRuleArgs, opts?: CustomResourceOptions);
    @overload
    def FwmSecurityGroupRule(resource_name: str,
                             args: FwmSecurityGroupRuleArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def FwmSecurityGroupRule(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             ip_version: Optional[str] = None,
                             port: Optional[str] = None,
                             dest_content: Optional[str] = None,
                             dest_type: Optional[str] = None,
                             source_type: Optional[str] = None,
                             group_id: Optional[str] = None,
                             source_content: Optional[str] = None,
                             rule_action: Optional[str] = None,
                             protocol: Optional[str] = None,
                             protocol_port_type: Optional[float] = None,
                             belong_member_id: Optional[str] = None,
                             scope: Optional[str] = None,
                             service_template_id: Optional[str] = None,
                             description: Optional[str] = None,
                             fwm_security_group_rule_id: Optional[str] = None)
    func NewFwmSecurityGroupRule(ctx *Context, name string, args FwmSecurityGroupRuleArgs, opts ...ResourceOption) (*FwmSecurityGroupRule, error)
    public FwmSecurityGroupRule(string name, FwmSecurityGroupRuleArgs args, CustomResourceOptions? opts = null)
    public FwmSecurityGroupRule(String name, FwmSecurityGroupRuleArgs args)
    public FwmSecurityGroupRule(String name, FwmSecurityGroupRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:FwmSecurityGroupRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_fwm_security_group_rule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FwmSecurityGroupRuleArgs
    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 FwmSecurityGroupRuleArgs
    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 FwmSecurityGroupRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FwmSecurityGroupRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FwmSecurityGroupRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    DestContent string
    Destination content, such as IP, CIDR or instance ID.
    DestType string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    GroupId string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    IpVersion string
    IP version: ipv4, ipv6.
    Port string
    Port, such as 80, 1-65535 or ALL.
    Protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    RuleAction string
    Rule action: accept, drop, log.
    SourceContent string
    Source content, such as IP, CIDR or instance ID.
    SourceType string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    BelongMemberId string
    ID of the member account that the rule belongs to.
    Description string
    Rule description.
    FwmSecurityGroupRuleId string
    ID of the resource.
    ProtocolPortType double
    Protocol port type.
    Scope string
    Rule effective scope: SG, LH.
    ServiceTemplateId string
    Service template ID.
    DestContent string
    Destination content, such as IP, CIDR or instance ID.
    DestType string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    GroupId string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    IpVersion string
    IP version: ipv4, ipv6.
    Port string
    Port, such as 80, 1-65535 or ALL.
    Protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    RuleAction string
    Rule action: accept, drop, log.
    SourceContent string
    Source content, such as IP, CIDR or instance ID.
    SourceType string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    BelongMemberId string
    ID of the member account that the rule belongs to.
    Description string
    Rule description.
    FwmSecurityGroupRuleId string
    ID of the resource.
    ProtocolPortType float64
    Protocol port type.
    Scope string
    Rule effective scope: SG, LH.
    ServiceTemplateId string
    Service template ID.
    dest_content string
    Destination content, such as IP, CIDR or instance ID.
    dest_type string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    group_id string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ip_version string
    IP version: ipv4, ipv6.
    port string
    Port, such as 80, 1-65535 or ALL.
    protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    rule_action string
    Rule action: accept, drop, log.
    source_content string
    Source content, such as IP, CIDR or instance ID.
    source_type string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    belong_member_id string
    ID of the member account that the rule belongs to.
    description string
    Rule description.
    fwm_security_group_rule_id string
    ID of the resource.
    protocol_port_type number
    Protocol port type.
    scope string
    Rule effective scope: SG, LH.
    service_template_id string
    Service template ID.
    destContent String
    Destination content, such as IP, CIDR or instance ID.
    destType String
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    groupId String
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ipVersion String
    IP version: ipv4, ipv6.
    port String
    Port, such as 80, 1-65535 or ALL.
    protocol String
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    ruleAction String
    Rule action: accept, drop, log.
    sourceContent String
    Source content, such as IP, CIDR or instance ID.
    sourceType String
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    belongMemberId String
    ID of the member account that the rule belongs to.
    description String
    Rule description.
    fwmSecurityGroupRuleId String
    ID of the resource.
    protocolPortType Double
    Protocol port type.
    scope String
    Rule effective scope: SG, LH.
    serviceTemplateId String
    Service template ID.
    destContent string
    Destination content, such as IP, CIDR or instance ID.
    destType string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    groupId string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ipVersion string
    IP version: ipv4, ipv6.
    port string
    Port, such as 80, 1-65535 or ALL.
    protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    ruleAction string
    Rule action: accept, drop, log.
    sourceContent string
    Source content, such as IP, CIDR or instance ID.
    sourceType string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    belongMemberId string
    ID of the member account that the rule belongs to.
    description string
    Rule description.
    fwmSecurityGroupRuleId string
    ID of the resource.
    protocolPortType number
    Protocol port type.
    scope string
    Rule effective scope: SG, LH.
    serviceTemplateId string
    Service template ID.
    dest_content str
    Destination content, such as IP, CIDR or instance ID.
    dest_type str
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    group_id str
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ip_version str
    IP version: ipv4, ipv6.
    port str
    Port, such as 80, 1-65535 or ALL.
    protocol str
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    rule_action str
    Rule action: accept, drop, log.
    source_content str
    Source content, such as IP, CIDR or instance ID.
    source_type str
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    belong_member_id str
    ID of the member account that the rule belongs to.
    description str
    Rule description.
    fwm_security_group_rule_id str
    ID of the resource.
    protocol_port_type float
    Protocol port type.
    scope str
    Rule effective scope: SG, LH.
    service_template_id str
    Service template ID.
    destContent String
    Destination content, such as IP, CIDR or instance ID.
    destType String
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    groupId String
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ipVersion String
    IP version: ipv4, ipv6.
    port String
    Port, such as 80, 1-65535 or ALL.
    protocol String
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    ruleAction String
    Rule action: accept, drop, log.
    sourceContent String
    Source content, such as IP, CIDR or instance ID.
    sourceType String
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    belongMemberId String
    ID of the member account that the rule belongs to.
    description String
    Rule description.
    fwmSecurityGroupRuleId String
    ID of the resource.
    protocolPortType Number
    Protocol port type.
    scope String
    Rule effective scope: SG, LH.
    serviceTemplateId String
    Service template ID.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    Sequence double
    Priority (read-only, same source as order_index).
    SourceId string
    Source ID.
    TargetId string
    Destination ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    Rule ID.
    Sequence float64
    Priority (read-only, same source as order_index).
    SourceId string
    Source ID.
    TargetId string
    Destination ID.
    id string
    The provider-assigned unique ID for this managed resource.
    rule_id string
    Rule ID.
    sequence number
    Priority (read-only, same source as order_index).
    source_id string
    Source ID.
    target_id string
    Destination ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.
    sequence Double
    Priority (read-only, same source as order_index).
    sourceId String
    Source ID.
    targetId String
    Destination ID.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    Rule ID.
    sequence number
    Priority (read-only, same source as order_index).
    sourceId string
    Source ID.
    targetId string
    Destination ID.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    Rule ID.
    sequence float
    Priority (read-only, same source as order_index).
    source_id str
    Source ID.
    target_id str
    Destination ID.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    Rule ID.
    sequence Number
    Priority (read-only, same source as order_index).
    sourceId String
    Source ID.
    targetId String
    Destination ID.

    Look up Existing FwmSecurityGroupRule Resource

    Get an existing FwmSecurityGroupRule 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?: FwmSecurityGroupRuleState, opts?: CustomResourceOptions): FwmSecurityGroupRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            belong_member_id: Optional[str] = None,
            description: Optional[str] = None,
            dest_content: Optional[str] = None,
            dest_type: Optional[str] = None,
            fwm_security_group_rule_id: Optional[str] = None,
            group_id: Optional[str] = None,
            ip_version: Optional[str] = None,
            port: Optional[str] = None,
            protocol: Optional[str] = None,
            protocol_port_type: Optional[float] = None,
            rule_action: Optional[str] = None,
            rule_id: Optional[str] = None,
            scope: Optional[str] = None,
            sequence: Optional[float] = None,
            service_template_id: Optional[str] = None,
            source_content: Optional[str] = None,
            source_id: Optional[str] = None,
            source_type: Optional[str] = None,
            target_id: Optional[str] = None) -> FwmSecurityGroupRule
    func GetFwmSecurityGroupRule(ctx *Context, name string, id IDInput, state *FwmSecurityGroupRuleState, opts ...ResourceOption) (*FwmSecurityGroupRule, error)
    public static FwmSecurityGroupRule Get(string name, Input<string> id, FwmSecurityGroupRuleState? state, CustomResourceOptions? opts = null)
    public static FwmSecurityGroupRule get(String name, Output<String> id, FwmSecurityGroupRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:FwmSecurityGroupRule    get:      id: ${id}
    import {
      to = tencentcloud_fwm_security_group_rule.example
      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:
    BelongMemberId string
    ID of the member account that the rule belongs to.
    Description string
    Rule description.
    DestContent string
    Destination content, such as IP, CIDR or instance ID.
    DestType string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    FwmSecurityGroupRuleId string
    ID of the resource.
    GroupId string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    IpVersion string
    IP version: ipv4, ipv6.
    Port string
    Port, such as 80, 1-65535 or ALL.
    Protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    ProtocolPortType double
    Protocol port type.
    RuleAction string
    Rule action: accept, drop, log.
    RuleId string
    Rule ID.
    Scope string
    Rule effective scope: SG, LH.
    Sequence double
    Priority (read-only, same source as order_index).
    ServiceTemplateId string
    Service template ID.
    SourceContent string
    Source content, such as IP, CIDR or instance ID.
    SourceId string
    Source ID.
    SourceType string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    TargetId string
    Destination ID.
    BelongMemberId string
    ID of the member account that the rule belongs to.
    Description string
    Rule description.
    DestContent string
    Destination content, such as IP, CIDR or instance ID.
    DestType string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    FwmSecurityGroupRuleId string
    ID of the resource.
    GroupId string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    IpVersion string
    IP version: ipv4, ipv6.
    Port string
    Port, such as 80, 1-65535 or ALL.
    Protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    ProtocolPortType float64
    Protocol port type.
    RuleAction string
    Rule action: accept, drop, log.
    RuleId string
    Rule ID.
    Scope string
    Rule effective scope: SG, LH.
    Sequence float64
    Priority (read-only, same source as order_index).
    ServiceTemplateId string
    Service template ID.
    SourceContent string
    Source content, such as IP, CIDR or instance ID.
    SourceId string
    Source ID.
    SourceType string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    TargetId string
    Destination ID.
    belong_member_id string
    ID of the member account that the rule belongs to.
    description string
    Rule description.
    dest_content string
    Destination content, such as IP, CIDR or instance ID.
    dest_type string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    fwm_security_group_rule_id string
    ID of the resource.
    group_id string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ip_version string
    IP version: ipv4, ipv6.
    port string
    Port, such as 80, 1-65535 or ALL.
    protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    protocol_port_type number
    Protocol port type.
    rule_action string
    Rule action: accept, drop, log.
    rule_id string
    Rule ID.
    scope string
    Rule effective scope: SG, LH.
    sequence number
    Priority (read-only, same source as order_index).
    service_template_id string
    Service template ID.
    source_content string
    Source content, such as IP, CIDR or instance ID.
    source_id string
    Source ID.
    source_type string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    target_id string
    Destination ID.
    belongMemberId String
    ID of the member account that the rule belongs to.
    description String
    Rule description.
    destContent String
    Destination content, such as IP, CIDR or instance ID.
    destType String
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    fwmSecurityGroupRuleId String
    ID of the resource.
    groupId String
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ipVersion String
    IP version: ipv4, ipv6.
    port String
    Port, such as 80, 1-65535 or ALL.
    protocol String
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    protocolPortType Double
    Protocol port type.
    ruleAction String
    Rule action: accept, drop, log.
    ruleId String
    Rule ID.
    scope String
    Rule effective scope: SG, LH.
    sequence Double
    Priority (read-only, same source as order_index).
    serviceTemplateId String
    Service template ID.
    sourceContent String
    Source content, such as IP, CIDR or instance ID.
    sourceId String
    Source ID.
    sourceType String
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    targetId String
    Destination ID.
    belongMemberId string
    ID of the member account that the rule belongs to.
    description string
    Rule description.
    destContent string
    Destination content, such as IP, CIDR or instance ID.
    destType string
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    fwmSecurityGroupRuleId string
    ID of the resource.
    groupId string
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ipVersion string
    IP version: ipv4, ipv6.
    port string
    Port, such as 80, 1-65535 or ALL.
    protocol string
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    protocolPortType number
    Protocol port type.
    ruleAction string
    Rule action: accept, drop, log.
    ruleId string
    Rule ID.
    scope string
    Rule effective scope: SG, LH.
    sequence number
    Priority (read-only, same source as order_index).
    serviceTemplateId string
    Service template ID.
    sourceContent string
    Source content, such as IP, CIDR or instance ID.
    sourceId string
    Source ID.
    sourceType string
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    targetId string
    Destination ID.
    belong_member_id str
    ID of the member account that the rule belongs to.
    description str
    Rule description.
    dest_content str
    Destination content, such as IP, CIDR or instance ID.
    dest_type str
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    fwm_security_group_rule_id str
    ID of the resource.
    group_id str
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ip_version str
    IP version: ipv4, ipv6.
    port str
    Port, such as 80, 1-65535 or ALL.
    protocol str
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    protocol_port_type float
    Protocol port type.
    rule_action str
    Rule action: accept, drop, log.
    rule_id str
    Rule ID.
    scope str
    Rule effective scope: SG, LH.
    sequence float
    Priority (read-only, same source as order_index).
    service_template_id str
    Service template ID.
    source_content str
    Source content, such as IP, CIDR or instance ID.
    source_id str
    Source ID.
    source_type str
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    target_id str
    Destination ID.
    belongMemberId String
    ID of the member account that the rule belongs to.
    description String
    Rule description.
    destContent String
    Destination content, such as IP, CIDR or instance ID.
    destType String
    Destination type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    fwmSecurityGroupRuleId String
    ID of the resource.
    groupId String
    Rule group ID, the parent rule group (Product=enterprise_sg) to which the rule belongs.
    ipVersion String
    IP version: ipv4, ipv6.
    port String
    Port, such as 80, 1-65535 or ALL.
    protocol String
    Protocol: TCP, UDP, ICMP, ANY. ANY means all protocols.
    protocolPortType Number
    Protocol port type.
    ruleAction String
    Rule action: accept, drop, log.
    ruleId String
    Rule ID.
    scope String
    Rule effective scope: SG, LH.
    sequence Number
    Priority (read-only, same source as order_index).
    serviceTemplateId String
    Service template ID.
    sourceContent String
    Source content, such as IP, CIDR or instance ID.
    sourceId String
    Source ID.
    sourceType String
    Source type: net, vpc, subnet, cvm, clb, eni, cdb, template, tag, region, resourcegroup, addressbook, instance.
    targetId String
    Destination ID.

    Import

    FWM security group rule can be imported using the groupId#ruleId, e.g.

    $ pulumi import tencentcloud:index/fwmSecurityGroupRule:FwmSecurityGroupRule example fwmrg-ghlu11dv#a5f39ae7-2a81-4735-9027-5d6f83d814a5
    

    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
    Viewing docs for tencentcloud 1.83.41
    published on Friday, Nov 6, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial