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

tencentcloud.getDayuL4RulesV2

Explore with Pulumi AI

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

    Use this data source to query dayu new layer 4 rules

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const tencentcloudDayuL4RulesV2 = tencentcloud.getDayuL4RulesV2({
        business: "bgpip",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    tencentcloud_dayu_l4_rules_v2 = tencentcloud.get_dayu_l4_rules_v2(business="bgpip")
    
    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.GetDayuL4RulesV2(ctx, &tencentcloud.GetDayuL4RulesV2Args{
    			Business: "bgpip",
    		}, 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 tencentcloudDayuL4RulesV2 = Tencentcloud.GetDayuL4RulesV2.Invoke(new()
        {
            Business = "bgpip",
        });
    
    });
    
    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.GetDayuL4RulesV2Args;
    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 tencentcloudDayuL4RulesV2 = TencentcloudFunctions.getDayuL4RulesV2(GetDayuL4RulesV2Args.builder()
                .business("bgpip")
                .build());
    
        }
    }
    
    variables:
      tencentcloudDayuL4RulesV2:
        fn::invoke:
          function: tencentcloud:getDayuL4RulesV2
          arguments:
            business: bgpip
    

    Using getDayuL4RulesV2

    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 getDayuL4RulesV2(args: GetDayuL4RulesV2Args, opts?: InvokeOptions): Promise<GetDayuL4RulesV2Result>
    function getDayuL4RulesV2Output(args: GetDayuL4RulesV2OutputArgs, opts?: InvokeOptions): Output<GetDayuL4RulesV2Result>
    def get_dayu_l4_rules_v2(business: Optional[str] = None,
                             id: Optional[str] = None,
                             ip: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             virtual_port: Optional[float] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDayuL4RulesV2Result
    def get_dayu_l4_rules_v2_output(business: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             ip: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             virtual_port: Optional[pulumi.Input[float]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDayuL4RulesV2Result]
    func GetDayuL4RulesV2(ctx *Context, args *GetDayuL4RulesV2Args, opts ...InvokeOption) (*GetDayuL4RulesV2Result, error)
    func GetDayuL4RulesV2Output(ctx *Context, args *GetDayuL4RulesV2OutputArgs, opts ...InvokeOption) GetDayuL4RulesV2ResultOutput

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

    public static class GetDayuL4RulesV2 
    {
        public static Task<GetDayuL4RulesV2Result> InvokeAsync(GetDayuL4RulesV2Args args, InvokeOptions? opts = null)
        public static Output<GetDayuL4RulesV2Result> Invoke(GetDayuL4RulesV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDayuL4RulesV2Result> getDayuL4RulesV2(GetDayuL4RulesV2Args args, InvokeOptions options)
    public static Output<GetDayuL4RulesV2Result> getDayuL4RulesV2(GetDayuL4RulesV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDayuL4RulesV2:getDayuL4RulesV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Business string
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    Id string
    Bind the resource ID information.
    Ip string
    Ip of the resource.
    ResultOutputFile string
    Used to save results.
    VirtualPort double
    Virtual port of resource.
    Business string
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    Id string
    Bind the resource ID information.
    Ip string
    Ip of the resource.
    ResultOutputFile string
    Used to save results.
    VirtualPort float64
    Virtual port of resource.
    business String
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    id String
    Bind the resource ID information.
    ip String
    Ip of the resource.
    resultOutputFile String
    Used to save results.
    virtualPort Double
    Virtual port of resource.
    business string
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    id string
    Bind the resource ID information.
    ip string
    Ip of the resource.
    resultOutputFile string
    Used to save results.
    virtualPort number
    Virtual port of resource.
    business str
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    id str
    Bind the resource ID information.
    ip str
    Ip of the resource.
    result_output_file str
    Used to save results.
    virtual_port float
    Virtual port of resource.
    business String
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    id String
    Bind the resource ID information.
    ip String
    Ip of the resource.
    resultOutputFile String
    Used to save results.
    virtualPort Number
    Virtual port of resource.

    getDayuL4RulesV2 Result

    The following output properties are available:

    Business string
    Id string
    Bind the resource ID information.
    Lists List<GetDayuL4RulesV2List>
    A list of layer 4 rules. Each element contains the following attributes:
    Ip string
    Bind the resource IP information.
    ResultOutputFile string
    VirtualPort double
    The virtual port of the layer 4 rule.
    Business string
    Id string
    Bind the resource ID information.
    Lists []GetDayuL4RulesV2List
    A list of layer 4 rules. Each element contains the following attributes:
    Ip string
    Bind the resource IP information.
    ResultOutputFile string
    VirtualPort float64
    The virtual port of the layer 4 rule.
    business String
    id String
    Bind the resource ID information.
    lists List<GetDayuL4RulesV2List>
    A list of layer 4 rules. Each element contains the following attributes:
    ip String
    Bind the resource IP information.
    resultOutputFile String
    virtualPort Double
    The virtual port of the layer 4 rule.
    business string
    id string
    Bind the resource ID information.
    lists GetDayuL4RulesV2List[]
    A list of layer 4 rules. Each element contains the following attributes:
    ip string
    Bind the resource IP information.
    resultOutputFile string
    virtualPort number
    The virtual port of the layer 4 rule.
    business str
    id str
    Bind the resource ID information.
    lists Sequence[GetDayuL4RulesV2List]
    A list of layer 4 rules. Each element contains the following attributes:
    ip str
    Bind the resource IP information.
    result_output_file str
    virtual_port float
    The virtual port of the layer 4 rule.
    business String
    id String
    Bind the resource ID information.
    lists List<Property Map>
    A list of layer 4 rules. Each element contains the following attributes:
    ip String
    Bind the resource IP information.
    resultOutputFile String
    virtualPort Number
    The virtual port of the layer 4 rule.

    Supporting Types

    GetDayuL4RulesV2List

    Id string
    Bind the resource ID information.
    Ip string
    Ip of the resource.
    KeepEnable bool
    session hold switch.
    Keeptime double
    The keeptime of the layer 4 rule.
    LbType double
    LB type of the rule, 1 for weight cycling and 2 for IP hash.
    ModifyTime string
    Rule modification time.
    Protocol string
    Protocol of the rule.
    Region double
    Corresponding regional information.
    RemoveSwitch bool
    Remove the watermark state.
    RuleId string
    ID of the 4 layer rule.
    RuleName string
    Name of the rule.
    SourceLists List<GetDayuL4RulesV2ListSourceList>
    SourcePort double
    The source port of the layer 4 rule.
    SourceType double
    Source type, 1 for source of host, 2 for source of IP.
    VirtualPort double
    Virtual port of resource.
    Id string
    Bind the resource ID information.
    Ip string
    Ip of the resource.
    KeepEnable bool
    session hold switch.
    Keeptime float64
    The keeptime of the layer 4 rule.
    LbType float64
    LB type of the rule, 1 for weight cycling and 2 for IP hash.
    ModifyTime string
    Rule modification time.
    Protocol string
    Protocol of the rule.
    Region float64
    Corresponding regional information.
    RemoveSwitch bool
    Remove the watermark state.
    RuleId string
    ID of the 4 layer rule.
    RuleName string
    Name of the rule.
    SourceLists []GetDayuL4RulesV2ListSourceList
    SourcePort float64
    The source port of the layer 4 rule.
    SourceType float64
    Source type, 1 for source of host, 2 for source of IP.
    VirtualPort float64
    Virtual port of resource.
    id String
    Bind the resource ID information.
    ip String
    Ip of the resource.
    keepEnable Boolean
    session hold switch.
    keeptime Double
    The keeptime of the layer 4 rule.
    lbType Double
    LB type of the rule, 1 for weight cycling and 2 for IP hash.
    modifyTime String
    Rule modification time.
    protocol String
    Protocol of the rule.
    region Double
    Corresponding regional information.
    removeSwitch Boolean
    Remove the watermark state.
    ruleId String
    ID of the 4 layer rule.
    ruleName String
    Name of the rule.
    sourceLists List<GetDayuL4RulesV2ListSourceList>
    sourcePort Double
    The source port of the layer 4 rule.
    sourceType Double
    Source type, 1 for source of host, 2 for source of IP.
    virtualPort Double
    Virtual port of resource.
    id string
    Bind the resource ID information.
    ip string
    Ip of the resource.
    keepEnable boolean
    session hold switch.
    keeptime number
    The keeptime of the layer 4 rule.
    lbType number
    LB type of the rule, 1 for weight cycling and 2 for IP hash.
    modifyTime string
    Rule modification time.
    protocol string
    Protocol of the rule.
    region number
    Corresponding regional information.
    removeSwitch boolean
    Remove the watermark state.
    ruleId string
    ID of the 4 layer rule.
    ruleName string
    Name of the rule.
    sourceLists GetDayuL4RulesV2ListSourceList[]
    sourcePort number
    The source port of the layer 4 rule.
    sourceType number
    Source type, 1 for source of host, 2 for source of IP.
    virtualPort number
    Virtual port of resource.
    id str
    Bind the resource ID information.
    ip str
    Ip of the resource.
    keep_enable bool
    session hold switch.
    keeptime float
    The keeptime of the layer 4 rule.
    lb_type float
    LB type of the rule, 1 for weight cycling and 2 for IP hash.
    modify_time str
    Rule modification time.
    protocol str
    Protocol of the rule.
    region float
    Corresponding regional information.
    remove_switch bool
    Remove the watermark state.
    rule_id str
    ID of the 4 layer rule.
    rule_name str
    Name of the rule.
    source_lists Sequence[GetDayuL4RulesV2ListSourceList]
    source_port float
    The source port of the layer 4 rule.
    source_type float
    Source type, 1 for source of host, 2 for source of IP.
    virtual_port float
    Virtual port of resource.
    id String
    Bind the resource ID information.
    ip String
    Ip of the resource.
    keepEnable Boolean
    session hold switch.
    keeptime Number
    The keeptime of the layer 4 rule.
    lbType Number
    LB type of the rule, 1 for weight cycling and 2 for IP hash.
    modifyTime String
    Rule modification time.
    protocol String
    Protocol of the rule.
    region Number
    Corresponding regional information.
    removeSwitch Boolean
    Remove the watermark state.
    ruleId String
    ID of the 4 layer rule.
    ruleName String
    Name of the rule.
    sourceLists List<Property Map>
    sourcePort Number
    The source port of the layer 4 rule.
    sourceType Number
    Source type, 1 for source of host, 2 for source of IP.
    virtualPort Number
    Virtual port of resource.

    GetDayuL4RulesV2ListSourceList

    Source string
    Weight double
    Source string
    Weight float64
    source String
    weight Double
    source string
    weight number
    source str
    weight float
    source String
    weight Number

    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