tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDayuL4RulesV2
Explore with Pulumi AI
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
andnet
. - Id string
- Bind the resource ID information.
- Ip string
- Ip of the resource.
- Result
Output stringFile - Used to save results.
- Virtual
Port 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
andnet
. - Id string
- Bind the resource ID information.
- Ip string
- Ip of the resource.
- Result
Output stringFile - Used to save results.
- Virtual
Port 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
andnet
. - id String
- Bind the resource ID information.
- ip String
- Ip of the resource.
- result
Output StringFile - Used to save results.
- virtual
Port 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
andnet
. - id string
- Bind the resource ID information.
- ip string
- Ip of the resource.
- result
Output stringFile - Used to save results.
- virtual
Port 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
andnet
. - id str
- Bind the resource ID information.
- ip str
- Ip of the resource.
- result_
output_ strfile - 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
andnet
. - id String
- Bind the resource ID information.
- ip String
- Ip of the resource.
- result
Output StringFile - Used to save results.
- virtual
Port Number - Virtual port of resource.
getDayuL4RulesV2 Result
The following output properties are available:
- Business string
- Id string
- Bind the resource ID information.
- Lists
List<Get
Dayu L4Rules V2List> - A list of layer 4 rules. Each element contains the following attributes:
- Ip string
- Bind the resource IP information.
- Result
Output stringFile - Virtual
Port double - The virtual port of the layer 4 rule.
- Business string
- Id string
- Bind the resource ID information.
- Lists
[]Get
Dayu L4Rules V2List - A list of layer 4 rules. Each element contains the following attributes:
- Ip string
- Bind the resource IP information.
- Result
Output stringFile - Virtual
Port float64 - The virtual port of the layer 4 rule.
- business String
- id String
- Bind the resource ID information.
- lists
List<Get
Dayu L4Rules V2List> - A list of layer 4 rules. Each element contains the following attributes:
- ip String
- Bind the resource IP information.
- result
Output StringFile - virtual
Port Double - The virtual port of the layer 4 rule.
- business string
- id string
- Bind the resource ID information.
- lists
Get
Dayu L4Rules V2List[] - A list of layer 4 rules. Each element contains the following attributes:
- ip string
- Bind the resource IP information.
- result
Output stringFile - virtual
Port number - The virtual port of the layer 4 rule.
- business str
- id str
- Bind the resource ID information.
- lists
Sequence[Get
Dayu L4Rules V2List] - A list of layer 4 rules. Each element contains the following attributes:
- ip str
- Bind the resource IP information.
- result_
output_ strfile - 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.
- result
Output StringFile - virtual
Port 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.
- Keep
Enable bool - session hold switch.
- Keeptime double
- The keeptime of the layer 4 rule.
- Lb
Type double - LB type of the rule,
1
for weight cycling and2
for IP hash. - Modify
Time string - Rule modification time.
- Protocol string
- Protocol of the rule.
- Region double
- Corresponding regional information.
- Remove
Switch bool - Remove the watermark state.
- Rule
Id string - ID of the 4 layer rule.
- Rule
Name string - Name of the rule.
- Source
Lists List<GetDayu L4Rules V2List Source List> - Source
Port double - The source port of the layer 4 rule.
- Source
Type double - Source type,
1
for source of host,2
for source of IP. - Virtual
Port double - Virtual port of resource.
- Id string
- Bind the resource ID information.
- Ip string
- Ip of the resource.
- Keep
Enable bool - session hold switch.
- Keeptime float64
- The keeptime of the layer 4 rule.
- Lb
Type float64 - LB type of the rule,
1
for weight cycling and2
for IP hash. - Modify
Time string - Rule modification time.
- Protocol string
- Protocol of the rule.
- Region float64
- Corresponding regional information.
- Remove
Switch bool - Remove the watermark state.
- Rule
Id string - ID of the 4 layer rule.
- Rule
Name string - Name of the rule.
- Source
Lists []GetDayu L4Rules V2List Source List - Source
Port float64 - The source port of the layer 4 rule.
- Source
Type float64 - Source type,
1
for source of host,2
for source of IP. - Virtual
Port float64 - Virtual port of resource.
- id String
- Bind the resource ID information.
- ip String
- Ip of the resource.
- keep
Enable Boolean - session hold switch.
- keeptime Double
- The keeptime of the layer 4 rule.
- lb
Type Double - LB type of the rule,
1
for weight cycling and2
for IP hash. - modify
Time String - Rule modification time.
- protocol String
- Protocol of the rule.
- region Double
- Corresponding regional information.
- remove
Switch Boolean - Remove the watermark state.
- rule
Id String - ID of the 4 layer rule.
- rule
Name String - Name of the rule.
- source
Lists List<GetDayu L4Rules V2List Source List> - source
Port Double - The source port of the layer 4 rule.
- source
Type Double - Source type,
1
for source of host,2
for source of IP. - virtual
Port Double - Virtual port of resource.
- id string
- Bind the resource ID information.
- ip string
- Ip of the resource.
- keep
Enable boolean - session hold switch.
- keeptime number
- The keeptime of the layer 4 rule.
- lb
Type number - LB type of the rule,
1
for weight cycling and2
for IP hash. - modify
Time string - Rule modification time.
- protocol string
- Protocol of the rule.
- region number
- Corresponding regional information.
- remove
Switch boolean - Remove the watermark state.
- rule
Id string - ID of the 4 layer rule.
- rule
Name string - Name of the rule.
- source
Lists GetDayu L4Rules V2List Source List[] - source
Port number - The source port of the layer 4 rule.
- source
Type number - Source type,
1
for source of host,2
for source of IP. - virtual
Port 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 and2
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[GetDayu L4Rules V2List Source List] - 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.
- keep
Enable Boolean - session hold switch.
- keeptime Number
- The keeptime of the layer 4 rule.
- lb
Type Number - LB type of the rule,
1
for weight cycling and2
for IP hash. - modify
Time String - Rule modification time.
- protocol String
- Protocol of the rule.
- region Number
- Corresponding regional information.
- remove
Switch Boolean - Remove the watermark state.
- rule
Id String - ID of the 4 layer rule.
- rule
Name String - Name of the rule.
- source
Lists List<Property Map> - source
Port Number - The source port of the layer 4 rule.
- source
Type Number - Source type,
1
for source of host,2
for source of IP. - virtual
Port Number - Virtual port of resource.
GetDayuL4RulesV2ListSourceList
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack