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

tencentcloud.getDayuL4RulesV2

Explore with Pulumi AI

tencentcloud 1.81.183 published on Wednesday, Apr 16, 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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

tencentcloud_dayu_l4_rules_v2 = tencentcloud.get_dayu_l4_rules_v2(business="bgpip")
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.GetDayuL4RulesV2(ctx, &tencentcloud.GetDayuL4RulesV2Args{
			Business: "bgpip",
		}, 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 tencentcloudDayuL4RulesV2 = Tencentcloud.GetDayuL4RulesV2.Invoke(new()
    {
        Business = "bgpip",
    });

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

    }
}
Copy
variables:
  tencentcloudDayuL4RulesV2:
    fn::invoke:
      function: tencentcloud:getDayuL4RulesV2
      arguments:
        business: bgpip
Copy

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>
Copy
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]
Copy
func GetDayuL4RulesV2(ctx *Context, args *GetDayuL4RulesV2Args, opts ...InvokeOption) (*GetDayuL4RulesV2Result, error)
func GetDayuL4RulesV2Output(ctx *Context, args *GetDayuL4RulesV2OutputArgs, opts ...InvokeOption) GetDayuL4RulesV2ResultOutput
Copy

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

The following arguments are supported:

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

GetDayuL4RulesV2ListSourceList

Source This property is required. string
Weight This property is required. double
Source This property is required. string
Weight This property is required. float64
source This property is required. String
weight This property is required. Double
source This property is required. string
weight This property is required. number
source This property is required. str
weight This property is required. float
source This property is required. String
weight This property is required. Number

Package Details

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