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

tencentcloud.getDayuL7RulesV2

Explore with Pulumi AI

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

    Use this data source to query new dayu layer 7 rules

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const test = tencentcloud.getDayuL7RulesV2({
        business: "bgpip",
        domain: "qq.com",
        protocol: "https",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    test = tencentcloud.get_dayu_l7_rules_v2(business="bgpip",
        domain="qq.com",
        protocol="https")
    
    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.GetDayuL7RulesV2(ctx, &tencentcloud.GetDayuL7RulesV2Args{
    			Business: "bgpip",
    			Domain:   pulumi.StringRef("qq.com"),
    			Protocol: pulumi.StringRef("https"),
    		}, 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 test = Tencentcloud.GetDayuL7RulesV2.Invoke(new()
        {
            Business = "bgpip",
            Domain = "qq.com",
            Protocol = "https",
        });
    
    });
    
    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.GetDayuL7RulesV2Args;
    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 test = TencentcloudFunctions.getDayuL7RulesV2(GetDayuL7RulesV2Args.builder()
                .business("bgpip")
                .domain("qq.com")
                .protocol("https")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: tencentcloud:getDayuL7RulesV2
          arguments:
            business: bgpip
            domain: qq.com
            protocol: https
    

    Using getDayuL7RulesV2

    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 getDayuL7RulesV2(args: GetDayuL7RulesV2Args, opts?: InvokeOptions): Promise<GetDayuL7RulesV2Result>
    function getDayuL7RulesV2Output(args: GetDayuL7RulesV2OutputArgs, opts?: InvokeOptions): Output<GetDayuL7RulesV2Result>
    def get_dayu_l7_rules_v2(business: Optional[str] = None,
                             domain: Optional[str] = None,
                             id: Optional[str] = None,
                             ip: Optional[str] = None,
                             limit: Optional[float] = None,
                             offset: Optional[float] = None,
                             protocol: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDayuL7RulesV2Result
    def get_dayu_l7_rules_v2_output(business: Optional[pulumi.Input[str]] = None,
                             domain: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             ip: Optional[pulumi.Input[str]] = None,
                             limit: Optional[pulumi.Input[float]] = None,
                             offset: Optional[pulumi.Input[float]] = None,
                             protocol: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDayuL7RulesV2Result]
    func GetDayuL7RulesV2(ctx *Context, args *GetDayuL7RulesV2Args, opts ...InvokeOption) (*GetDayuL7RulesV2Result, error)
    func GetDayuL7RulesV2Output(ctx *Context, args *GetDayuL7RulesV2OutputArgs, opts ...InvokeOption) GetDayuL7RulesV2ResultOutput

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

    public static class GetDayuL7RulesV2 
    {
        public static Task<GetDayuL7RulesV2Result> InvokeAsync(GetDayuL7RulesV2Args args, InvokeOptions? opts = null)
        public static Output<GetDayuL7RulesV2Result> Invoke(GetDayuL7RulesV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDayuL7RulesV2Result> getDayuL7RulesV2(GetDayuL7RulesV2Args args, InvokeOptions options)
    public static Output<GetDayuL7RulesV2Result> getDayuL7RulesV2(GetDayuL7RulesV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDayuL7RulesV2:getDayuL7RulesV2
      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.
    Domain string
    Domain of resource.
    Id string
    Id of the resource.
    Ip string
    Ip of the resource.
    Limit double
    It has been deprecated from version 1.81.21. The number of pages, default is 10.

    Deprecated: Deprecated

    Offset double
    It has been deprecated from version 1.81.21. The page start offset, default is 0.

    Deprecated: Deprecated

    Protocol string
    Protocol of resource, value range [http, https].
    ResultOutputFile string
    Used to save results.
    Business string
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    Domain string
    Domain of resource.
    Id string
    Id of the resource.
    Ip string
    Ip of the resource.
    Limit float64
    It has been deprecated from version 1.81.21. The number of pages, default is 10.

    Deprecated: Deprecated

    Offset float64
    It has been deprecated from version 1.81.21. The page start offset, default is 0.

    Deprecated: Deprecated

    Protocol string
    Protocol of resource, value range [http, https].
    ResultOutputFile string
    Used to save results.
    business String
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    domain String
    Domain of resource.
    id String
    Id of the resource.
    ip String
    Ip of the resource.
    limit Double
    It has been deprecated from version 1.81.21. The number of pages, default is 10.

    Deprecated: Deprecated

    offset Double
    It has been deprecated from version 1.81.21. The page start offset, default is 0.

    Deprecated: Deprecated

    protocol String
    Protocol of resource, value range [http, https].
    resultOutputFile String
    Used to save results.
    business string
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    domain string
    Domain of resource.
    id string
    Id of the resource.
    ip string
    Ip of the resource.
    limit number
    It has been deprecated from version 1.81.21. The number of pages, default is 10.

    Deprecated: Deprecated

    offset number
    It has been deprecated from version 1.81.21. The page start offset, default is 0.

    Deprecated: Deprecated

    protocol string
    Protocol of resource, value range [http, https].
    resultOutputFile string
    Used to save results.
    business str
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    domain str
    Domain of resource.
    id str
    Id of the resource.
    ip str
    Ip of the resource.
    limit float
    It has been deprecated from version 1.81.21. The number of pages, default is 10.

    Deprecated: Deprecated

    offset float
    It has been deprecated from version 1.81.21. The page start offset, default is 0.

    Deprecated: Deprecated

    protocol str
    Protocol of resource, value range [http, https].
    result_output_file str
    Used to save results.
    business String
    Type of the resource that the layer 4 rule works for, valid values are bgpip, bgp, bgp-multip and net.
    domain String
    Domain of resource.
    id String
    Id of the resource.
    ip String
    Ip of the resource.
    limit Number
    It has been deprecated from version 1.81.21. The number of pages, default is 10.

    Deprecated: Deprecated

    offset Number
    It has been deprecated from version 1.81.21. The page start offset, default is 0.

    Deprecated: Deprecated

    protocol String
    Protocol of resource, value range [http, https].
    resultOutputFile String
    Used to save results.

    getDayuL7RulesV2 Result

    The following output properties are available:

    Business string
    Id string
    Id of the resource.
    Lists List<GetDayuL7RulesV2List>
    A list of layer 4 rules. Each element contains the following attributes:
    Domain string
    Domain of resource.
    Ip string
    Ip of the resource.
    Limit double

    Deprecated: Deprecated

    Offset double

    Deprecated: Deprecated

    Protocol string
    Protocol of resource, value range [http, https].
    ResultOutputFile string
    Business string
    Id string
    Id of the resource.
    Lists []GetDayuL7RulesV2List
    A list of layer 4 rules. Each element contains the following attributes:
    Domain string
    Domain of resource.
    Ip string
    Ip of the resource.
    Limit float64

    Deprecated: Deprecated

    Offset float64

    Deprecated: Deprecated

    Protocol string
    Protocol of resource, value range [http, https].
    ResultOutputFile string
    business String
    id String
    Id of the resource.
    lists List<GetDayuL7RulesV2List>
    A list of layer 4 rules. Each element contains the following attributes:
    domain String
    Domain of resource.
    ip String
    Ip of the resource.
    limit Double

    Deprecated: Deprecated

    offset Double

    Deprecated: Deprecated

    protocol String
    Protocol of resource, value range [http, https].
    resultOutputFile String
    business string
    id string
    Id of the resource.
    lists GetDayuL7RulesV2List[]
    A list of layer 4 rules. Each element contains the following attributes:
    domain string
    Domain of resource.
    ip string
    Ip of the resource.
    limit number

    Deprecated: Deprecated

    offset number

    Deprecated: Deprecated

    protocol string
    Protocol of resource, value range [http, https].
    resultOutputFile string
    business str
    id str
    Id of the resource.
    lists Sequence[GetDayuL7RulesV2List]
    A list of layer 4 rules. Each element contains the following attributes:
    domain str
    Domain of resource.
    ip str
    Ip of the resource.
    limit float

    Deprecated: Deprecated

    offset float

    Deprecated: Deprecated

    protocol str
    Protocol of resource, value range [http, https].
    result_output_file str
    business String
    id String
    Id of the resource.
    lists List<Property Map>
    A list of layer 4 rules. Each element contains the following attributes:
    domain String
    Domain of resource.
    ip String
    Ip of the resource.
    limit Number

    Deprecated: Deprecated

    offset Number

    Deprecated: Deprecated

    protocol String
    Protocol of resource, value range [http, https].
    resultOutputFile String

    Supporting Types

    GetDayuL7RulesV2List

    CcEnable double
    CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
    CcLevel string
    CC protection level of HTTPS protocol.
    CcStatus double
    CC protection status, value [0(off), 1(on)].
    CcThreshold double
    CC protection threshold of HTTPS protocol.
    CertType double
    The source of the certificate.
    Domain string
    Domain of resource.
    HttpsToHttpEnable double
    Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
    Id string
    Id of the resource.
    Ip string
    Ip of the resource.
    KeepEnable double
    Session keep switch, value [0 (session keep closed), 1 (session keep open)].
    KeepTime double
    Session hold time, in seconds.
    LbType double
    Load balancing mode, the value is [1 (weighted round-robin)].
    ModifyTime string
    Modify time of resource.
    Protocol string
    Protocol of resource, value range [http, https].
    Region double
    The area code.
    RuleName string
    Rule description.
    SourceLists List<GetDayuL7RulesV2ListSourceList>
    Source list of the rule.
    SourceType double
    Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
    SslId string
    SSL id of the resource.
    Status double
    Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
    VirtualPort double
    Virtual port of resource.
    CcEnable float64
    CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
    CcLevel string
    CC protection level of HTTPS protocol.
    CcStatus float64
    CC protection status, value [0(off), 1(on)].
    CcThreshold float64
    CC protection threshold of HTTPS protocol.
    CertType float64
    The source of the certificate.
    Domain string
    Domain of resource.
    HttpsToHttpEnable float64
    Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
    Id string
    Id of the resource.
    Ip string
    Ip of the resource.
    KeepEnable float64
    Session keep switch, value [0 (session keep closed), 1 (session keep open)].
    KeepTime float64
    Session hold time, in seconds.
    LbType float64
    Load balancing mode, the value is [1 (weighted round-robin)].
    ModifyTime string
    Modify time of resource.
    Protocol string
    Protocol of resource, value range [http, https].
    Region float64
    The area code.
    RuleName string
    Rule description.
    SourceLists []GetDayuL7RulesV2ListSourceList
    Source list of the rule.
    SourceType float64
    Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
    SslId string
    SSL id of the resource.
    Status float64
    Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
    VirtualPort float64
    Virtual port of resource.
    ccEnable Double
    CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
    ccLevel String
    CC protection level of HTTPS protocol.
    ccStatus Double
    CC protection status, value [0(off), 1(on)].
    ccThreshold Double
    CC protection threshold of HTTPS protocol.
    certType Double
    The source of the certificate.
    domain String
    Domain of resource.
    httpsToHttpEnable Double
    Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
    id String
    Id of the resource.
    ip String
    Ip of the resource.
    keepEnable Double
    Session keep switch, value [0 (session keep closed), 1 (session keep open)].
    keepTime Double
    Session hold time, in seconds.
    lbType Double
    Load balancing mode, the value is [1 (weighted round-robin)].
    modifyTime String
    Modify time of resource.
    protocol String
    Protocol of resource, value range [http, https].
    region Double
    The area code.
    ruleName String
    Rule description.
    sourceLists List<GetDayuL7RulesV2ListSourceList>
    Source list of the rule.
    sourceType Double
    Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
    sslId String
    SSL id of the resource.
    status Double
    Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
    virtualPort Double
    Virtual port of resource.
    ccEnable number
    CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
    ccLevel string
    CC protection level of HTTPS protocol.
    ccStatus number
    CC protection status, value [0(off), 1(on)].
    ccThreshold number
    CC protection threshold of HTTPS protocol.
    certType number
    The source of the certificate.
    domain string
    Domain of resource.
    httpsToHttpEnable number
    Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
    id string
    Id of the resource.
    ip string
    Ip of the resource.
    keepEnable number
    Session keep switch, value [0 (session keep closed), 1 (session keep open)].
    keepTime number
    Session hold time, in seconds.
    lbType number
    Load balancing mode, the value is [1 (weighted round-robin)].
    modifyTime string
    Modify time of resource.
    protocol string
    Protocol of resource, value range [http, https].
    region number
    The area code.
    ruleName string
    Rule description.
    sourceLists GetDayuL7RulesV2ListSourceList[]
    Source list of the rule.
    sourceType number
    Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
    sslId string
    SSL id of the resource.
    status number
    Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
    virtualPort number
    Virtual port of resource.
    cc_enable float
    CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
    cc_level str
    CC protection level of HTTPS protocol.
    cc_status float
    CC protection status, value [0(off), 1(on)].
    cc_threshold float
    CC protection threshold of HTTPS protocol.
    cert_type float
    The source of the certificate.
    domain str
    Domain of resource.
    https_to_http_enable float
    Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
    id str
    Id of the resource.
    ip str
    Ip of the resource.
    keep_enable float
    Session keep switch, value [0 (session keep closed), 1 (session keep open)].
    keep_time float
    Session hold time, in seconds.
    lb_type float
    Load balancing mode, the value is [1 (weighted round-robin)].
    modify_time str
    Modify time of resource.
    protocol str
    Protocol of resource, value range [http, https].
    region float
    The area code.
    rule_name str
    Rule description.
    source_lists Sequence[GetDayuL7RulesV2ListSourceList]
    Source list of the rule.
    source_type float
    Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
    ssl_id str
    SSL id of the resource.
    status float
    Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
    virtual_port float
    Virtual port of resource.
    ccEnable Number
    CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
    ccLevel String
    CC protection level of HTTPS protocol.
    ccStatus Number
    CC protection status, value [0(off), 1(on)].
    ccThreshold Number
    CC protection threshold of HTTPS protocol.
    certType Number
    The source of the certificate.
    domain String
    Domain of resource.
    httpsToHttpEnable Number
    Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
    id String
    Id of the resource.
    ip String
    Ip of the resource.
    keepEnable Number
    Session keep switch, value [0 (session keep closed), 1 (session keep open)].
    keepTime Number
    Session hold time, in seconds.
    lbType Number
    Load balancing mode, the value is [1 (weighted round-robin)].
    modifyTime String
    Modify time of resource.
    protocol String
    Protocol of resource, value range [http, https].
    region Number
    The area code.
    ruleName String
    Rule description.
    sourceLists List<Property Map>
    Source list of the rule.
    sourceType Number
    Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
    sslId String
    SSL id of the resource.
    status Number
    Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
    virtualPort Number
    Virtual port of resource.

    GetDayuL7RulesV2ListSourceList

    Source string
    Back-to-source IP or domain name.
    Weight double
    Weight value, take value [0,100].
    Source string
    Back-to-source IP or domain name.
    Weight float64
    Weight value, take value [0,100].
    source String
    Back-to-source IP or domain name.
    weight Double
    Weight value, take value [0,100].
    source string
    Back-to-source IP or domain name.
    weight number
    Weight value, take value [0,100].
    source str
    Back-to-source IP or domain name.
    weight float
    Weight value, take value [0,100].
    source String
    Back-to-source IP or domain name.
    weight Number
    Weight value, take value [0,100].

    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