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

tencentcloud.DayuL4RuleV2

Explore with Pulumi AI

Create DayuL4RuleV2 Resource

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

Constructor syntax

new DayuL4RuleV2(name: string, args: DayuL4RuleV2Args, opts?: CustomResourceOptions);
@overload
def DayuL4RuleV2(resource_name: str,
                 args: DayuL4RuleV2Args,
                 opts: Optional[ResourceOptions] = None)

@overload
def DayuL4RuleV2(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 business: Optional[str] = None,
                 resource_id: Optional[str] = None,
                 rules: Optional[DayuL4RuleV2RulesArgs] = None,
                 virtual_port: Optional[float] = None,
                 vpn: Optional[str] = None,
                 dayu_l4_rule_v2_id: Optional[str] = None)
func NewDayuL4RuleV2(ctx *Context, name string, args DayuL4RuleV2Args, opts ...ResourceOption) (*DayuL4RuleV2, error)
public DayuL4RuleV2(string name, DayuL4RuleV2Args args, CustomResourceOptions? opts = null)
public DayuL4RuleV2(String name, DayuL4RuleV2Args args)
public DayuL4RuleV2(String name, DayuL4RuleV2Args args, CustomResourceOptions options)
type: tencentcloud:DayuL4RuleV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DayuL4RuleV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DayuL4RuleV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DayuL4RuleV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DayuL4RuleV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DayuL4RuleV2Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Business This property is required. string
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
ResourceId This property is required. string
Resource id.
Rules This property is required. DayuL4RuleV2Rules
A list of layer 4 rules. Each element contains the following attributes:
VirtualPort This property is required. double
The virtual port of the layer 4 rule.
Vpn This property is required. string
Resource vpn.
DayuL4RuleV2Id string
Business This property is required. string
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
ResourceId This property is required. string
Resource id.
Rules This property is required. DayuL4RuleV2RulesArgs
A list of layer 4 rules. Each element contains the following attributes:
VirtualPort This property is required. float64
The virtual port of the layer 4 rule.
Vpn This property is required. string
Resource vpn.
DayuL4RuleV2Id string
business This property is required. String
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
resourceId This property is required. String
Resource id.
rules This property is required. DayuL4RuleV2Rules
A list of layer 4 rules. Each element contains the following attributes:
virtualPort This property is required. Double
The virtual port of the layer 4 rule.
vpn This property is required. String
Resource vpn.
dayuL4RuleV2Id String
business This property is required. string
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
resourceId This property is required. string
Resource id.
rules This property is required. DayuL4RuleV2Rules
A list of layer 4 rules. Each element contains the following attributes:
virtualPort This property is required. number
The virtual port of the layer 4 rule.
vpn This property is required. string
Resource vpn.
dayuL4RuleV2Id string
business This property is required. str
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
resource_id This property is required. str
Resource id.
rules This property is required. DayuL4RuleV2RulesArgs
A list of layer 4 rules. Each element contains the following attributes:
virtual_port This property is required. float
The virtual port of the layer 4 rule.
vpn This property is required. str
Resource vpn.
dayu_l4_rule_v2_id str
business This property is required. String
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
resourceId This property is required. String
Resource id.
rules This property is required. Property Map
A list of layer 4 rules. Each element contains the following attributes:
virtualPort This property is required. Number
The virtual port of the layer 4 rule.
vpn This property is required. String
Resource vpn.
dayuL4RuleV2Id String

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing DayuL4RuleV2 Resource

Get an existing DayuL4RuleV2 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?: DayuL4RuleV2State, opts?: CustomResourceOptions): DayuL4RuleV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        business: Optional[str] = None,
        dayu_l4_rule_v2_id: Optional[str] = None,
        resource_id: Optional[str] = None,
        rules: Optional[DayuL4RuleV2RulesArgs] = None,
        virtual_port: Optional[float] = None,
        vpn: Optional[str] = None) -> DayuL4RuleV2
func GetDayuL4RuleV2(ctx *Context, name string, id IDInput, state *DayuL4RuleV2State, opts ...ResourceOption) (*DayuL4RuleV2, error)
public static DayuL4RuleV2 Get(string name, Input<string> id, DayuL4RuleV2State? state, CustomResourceOptions? opts = null)
public static DayuL4RuleV2 get(String name, Output<String> id, DayuL4RuleV2State state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:DayuL4RuleV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Business string
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
DayuL4RuleV2Id string
ResourceId string
Resource id.
Rules DayuL4RuleV2Rules
A list of layer 4 rules. Each element contains the following attributes:
VirtualPort double
The virtual port of the layer 4 rule.
Vpn string
Resource vpn.
Business string
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
DayuL4RuleV2Id string
ResourceId string
Resource id.
Rules DayuL4RuleV2RulesArgs
A list of layer 4 rules. Each element contains the following attributes:
VirtualPort float64
The virtual port of the layer 4 rule.
Vpn string
Resource vpn.
business String
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
dayuL4RuleV2Id String
resourceId String
Resource id.
rules DayuL4RuleV2Rules
A list of layer 4 rules. Each element contains the following attributes:
virtualPort Double
The virtual port of the layer 4 rule.
vpn String
Resource vpn.
business string
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
dayuL4RuleV2Id string
resourceId string
Resource id.
rules DayuL4RuleV2Rules
A list of layer 4 rules. Each element contains the following attributes:
virtualPort number
The virtual port of the layer 4 rule.
vpn string
Resource vpn.
business str
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
dayu_l4_rule_v2_id str
resource_id str
Resource id.
rules DayuL4RuleV2RulesArgs
A list of layer 4 rules. Each element contains the following attributes:
virtual_port float
The virtual port of the layer 4 rule.
vpn str
Resource vpn.
business String
Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
dayuL4RuleV2Id String
resourceId String
Resource id.
rules Property Map
A list of layer 4 rules. Each element contains the following attributes:
virtualPort Number
The virtual port of the layer 4 rule.
vpn String
Resource vpn.

Supporting Types

DayuL4RuleV2Rules
, DayuL4RuleV2RulesArgs

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.
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.
RuleName This property is required. string
Name of the rule.
SourceLists This property is required. List<DayuL4RuleV2RulesSourceList>
Source list of the rule.
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
The virtual port of the layer 4 rule.
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.
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.
RuleName This property is required. string
Name of the rule.
SourceLists This property is required. []DayuL4RuleV2RulesSourceList
Source list of the rule.
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
The virtual port of the layer 4 rule.
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.
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.
ruleName This property is required. String
Name of the rule.
sourceLists This property is required. List<DayuL4RuleV2RulesSourceList>
Source list of the rule.
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
The virtual port of the layer 4 rule.
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.
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.
ruleName This property is required. string
Name of the rule.
sourceLists This property is required. DayuL4RuleV2RulesSourceList[]
Source list of the rule.
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
The virtual port of the layer 4 rule.
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.
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_name This property is required. str
Name of the rule.
source_lists This property is required. Sequence[DayuL4RuleV2RulesSourceList]
Source list of the rule.
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
The virtual port of the layer 4 rule.
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.
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.
ruleName This property is required. String
Name of the rule.
sourceLists This property is required. List<Property Map>
Source list of the rule.
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
The virtual port of the layer 4 rule.

DayuL4RuleV2RulesSourceList
, DayuL4RuleV2RulesSourceListArgs

Source This property is required. string
Source IP or domain.
Weight This property is required. double
Weight of the source.
Source This property is required. string
Source IP or domain.
Weight This property is required. float64
Weight of the source.
source This property is required. String
Source IP or domain.
weight This property is required. Double
Weight of the source.
source This property is required. string
Source IP or domain.
weight This property is required. number
Weight of the source.
source This property is required. str
Source IP or domain.
weight This property is required. float
Weight of the source.
source This property is required. String
Source IP or domain.
weight This property is required. Number
Weight of the source.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.