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

tencentcloud.DayuL4RuleV2

Explore with Pulumi AI

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

    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 string
    The unique name of the resource.
    args DayuL4RuleV2Args
    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 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 string
    The unique name of the resource.
    args DayuL4RuleV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DayuL4RuleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 string
    Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    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.
    DayuL4RuleV2Id string
    Business string
    Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    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.
    DayuL4RuleV2Id string
    business String
    Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    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.
    dayuL4RuleV2Id String
    business string
    Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    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.
    dayuL4RuleV2Id string
    business str
    Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    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.
    dayu_l4_rule_v2_id str
    business String
    Business of the resource that the layer 4 rule works for. Valid values: bgpip and net.
    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.
    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
    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:
    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 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.
    Protocol string
    Protocol of the rule.
    Region double
    Corresponding regional information.
    RemoveSwitch bool
    Remove the watermark state.
    RuleName string
    Name of the rule.
    SourceLists List<DayuL4RuleV2RulesSourceList>
    Source list of the rule.
    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
    The virtual port of the layer 4 rule.
    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.
    Protocol string
    Protocol of the rule.
    Region float64
    Corresponding regional information.
    RemoveSwitch bool
    Remove the watermark state.
    RuleName string
    Name of the rule.
    SourceLists []DayuL4RuleV2RulesSourceList
    Source list of the rule.
    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
    The virtual port of the layer 4 rule.
    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.
    protocol String
    Protocol of the rule.
    region Double
    Corresponding regional information.
    removeSwitch Boolean
    Remove the watermark state.
    ruleName String
    Name of the rule.
    sourceLists List<DayuL4RuleV2RulesSourceList>
    Source list of the rule.
    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
    The virtual port of the layer 4 rule.
    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.
    protocol string
    Protocol of the rule.
    region number
    Corresponding regional information.
    removeSwitch boolean
    Remove the watermark state.
    ruleName string
    Name of the rule.
    sourceLists DayuL4RuleV2RulesSourceList[]
    Source list of the rule.
    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
    The virtual port of the layer 4 rule.
    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.
    protocol str
    Protocol of the rule.
    region float
    Corresponding regional information.
    remove_switch bool
    Remove the watermark state.
    rule_name str
    Name of the rule.
    source_lists Sequence[DayuL4RuleV2RulesSourceList]
    Source list of the rule.
    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
    The virtual port of the layer 4 rule.
    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.
    protocol String
    Protocol of the rule.
    region Number
    Corresponding regional information.
    removeSwitch Boolean
    Remove the watermark state.
    ruleName String
    Name of the rule.
    sourceLists List<Property Map>
    Source list of the rule.
    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
    The virtual port of the layer 4 rule.

    DayuL4RuleV2RulesSourceList, DayuL4RuleV2RulesSourceListArgs

    Source string
    Source IP or domain.
    Weight double
    Weight of the source.
    Source string
    Source IP or domain.
    Weight float64
    Weight of the source.
    source String
    Source IP or domain.
    weight Double
    Weight of the source.
    source string
    Source IP or domain.
    weight number
    Weight of the source.
    source str
    Source IP or domain.
    weight float
    Weight of the source.
    source String
    Source IP or domain.
    weight 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack