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

tencentcloud.getGaapLayer7Listeners

Explore with Pulumi AI

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

    Use this data source to query gaap layer7 listeners.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const fooGaapProxy = new tencentcloud.GaapProxy("fooGaapProxy", {
        bandwidth: 10,
        concurrent: 2,
        accessRegion: "SouthChina",
        realserverRegion: "NorthChina",
    });
    const fooGaapLayer7Listener = new tencentcloud.GaapLayer7Listener("fooGaapLayer7Listener", {
        protocol: "HTTP",
        port: 80,
        proxyId: fooGaapProxy.gaapProxyId,
    });
    const listenerId = tencentcloud.getGaapLayer7ListenersOutput({
        protocol: "HTTP",
        proxyId: fooGaapProxy.gaapProxyId,
        listenerId: fooGaapLayer7Listener.gaapLayer7ListenerId,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo_gaap_proxy = tencentcloud.GaapProxy("fooGaapProxy",
        bandwidth=10,
        concurrent=2,
        access_region="SouthChina",
        realserver_region="NorthChina")
    foo_gaap_layer7_listener = tencentcloud.GaapLayer7Listener("fooGaapLayer7Listener",
        protocol="HTTP",
        port=80,
        proxy_id=foo_gaap_proxy.gaap_proxy_id)
    listener_id = tencentcloud.get_gaap_layer7_listeners_output(protocol="HTTP",
        proxy_id=foo_gaap_proxy.gaap_proxy_id,
        listener_id=foo_gaap_layer7_listener.gaap_layer7_listener_id)
    
    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 {
    		fooGaapProxy, err := tencentcloud.NewGaapProxy(ctx, "fooGaapProxy", &tencentcloud.GaapProxyArgs{
    			Bandwidth:        pulumi.Float64(10),
    			Concurrent:       pulumi.Float64(2),
    			AccessRegion:     pulumi.String("SouthChina"),
    			RealserverRegion: pulumi.String("NorthChina"),
    		})
    		if err != nil {
    			return err
    		}
    		fooGaapLayer7Listener, err := tencentcloud.NewGaapLayer7Listener(ctx, "fooGaapLayer7Listener", &tencentcloud.GaapLayer7ListenerArgs{
    			Protocol: pulumi.String("HTTP"),
    			Port:     pulumi.Float64(80),
    			ProxyId:  fooGaapProxy.GaapProxyId,
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetGaapLayer7ListenersOutput(ctx, tencentcloud.GetGaapLayer7ListenersOutputArgs{
    			Protocol:   pulumi.String("HTTP"),
    			ProxyId:    fooGaapProxy.GaapProxyId,
    			ListenerId: fooGaapLayer7Listener.GaapLayer7ListenerId,
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var fooGaapProxy = new Tencentcloud.GaapProxy("fooGaapProxy", new()
        {
            Bandwidth = 10,
            Concurrent = 2,
            AccessRegion = "SouthChina",
            RealserverRegion = "NorthChina",
        });
    
        var fooGaapLayer7Listener = new Tencentcloud.GaapLayer7Listener("fooGaapLayer7Listener", new()
        {
            Protocol = "HTTP",
            Port = 80,
            ProxyId = fooGaapProxy.GaapProxyId,
        });
    
        var listenerId = Tencentcloud.GetGaapLayer7Listeners.Invoke(new()
        {
            Protocol = "HTTP",
            ProxyId = fooGaapProxy.GaapProxyId,
            ListenerId = fooGaapLayer7Listener.GaapLayer7ListenerId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.GaapProxy;
    import com.pulumi.tencentcloud.GaapProxyArgs;
    import com.pulumi.tencentcloud.GaapLayer7Listener;
    import com.pulumi.tencentcloud.GaapLayer7ListenerArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetGaapLayer7ListenersArgs;
    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) {
            var fooGaapProxy = new GaapProxy("fooGaapProxy", GaapProxyArgs.builder()
                .bandwidth(10)
                .concurrent(2)
                .accessRegion("SouthChina")
                .realserverRegion("NorthChina")
                .build());
    
            var fooGaapLayer7Listener = new GaapLayer7Listener("fooGaapLayer7Listener", GaapLayer7ListenerArgs.builder()
                .protocol("HTTP")
                .port(80)
                .proxyId(fooGaapProxy.gaapProxyId())
                .build());
    
            final var listenerId = TencentcloudFunctions.getGaapLayer7Listeners(GetGaapLayer7ListenersArgs.builder()
                .protocol("HTTP")
                .proxyId(fooGaapProxy.gaapProxyId())
                .listenerId(fooGaapLayer7Listener.gaapLayer7ListenerId())
                .build());
    
        }
    }
    
    resources:
      fooGaapProxy:
        type: tencentcloud:GaapProxy
        properties:
          bandwidth: 10
          concurrent: 2
          accessRegion: SouthChina
          realserverRegion: NorthChina
      fooGaapLayer7Listener:
        type: tencentcloud:GaapLayer7Listener
        properties:
          protocol: HTTP
          port: 80
          proxyId: ${fooGaapProxy.gaapProxyId}
    variables:
      listenerId:
        fn::invoke:
          function: tencentcloud:getGaapLayer7Listeners
          arguments:
            protocol: HTTP
            proxyId: ${fooGaapProxy.gaapProxyId}
            listenerId: ${fooGaapLayer7Listener.gaapLayer7ListenerId}
    

    Using getGaapLayer7Listeners

    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 getGaapLayer7Listeners(args: GetGaapLayer7ListenersArgs, opts?: InvokeOptions): Promise<GetGaapLayer7ListenersResult>
    function getGaapLayer7ListenersOutput(args: GetGaapLayer7ListenersOutputArgs, opts?: InvokeOptions): Output<GetGaapLayer7ListenersResult>
    def get_gaap_layer7_listeners(group_id: Optional[str] = None,
                                  id: Optional[str] = None,
                                  listener_id: Optional[str] = None,
                                  listener_name: Optional[str] = None,
                                  port: Optional[float] = None,
                                  protocol: Optional[str] = None,
                                  proxy_id: Optional[str] = None,
                                  result_output_file: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetGaapLayer7ListenersResult
    def get_gaap_layer7_listeners_output(group_id: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  listener_id: Optional[pulumi.Input[str]] = None,
                                  listener_name: Optional[pulumi.Input[str]] = None,
                                  port: Optional[pulumi.Input[float]] = None,
                                  protocol: Optional[pulumi.Input[str]] = None,
                                  proxy_id: Optional[pulumi.Input[str]] = None,
                                  result_output_file: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetGaapLayer7ListenersResult]
    func GetGaapLayer7Listeners(ctx *Context, args *GetGaapLayer7ListenersArgs, opts ...InvokeOption) (*GetGaapLayer7ListenersResult, error)
    func GetGaapLayer7ListenersOutput(ctx *Context, args *GetGaapLayer7ListenersOutputArgs, opts ...InvokeOption) GetGaapLayer7ListenersResultOutput

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

    public static class GetGaapLayer7Listeners 
    {
        public static Task<GetGaapLayer7ListenersResult> InvokeAsync(GetGaapLayer7ListenersArgs args, InvokeOptions? opts = null)
        public static Output<GetGaapLayer7ListenersResult> Invoke(GetGaapLayer7ListenersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGaapLayer7ListenersResult> getGaapLayer7Listeners(GetGaapLayer7ListenersArgs args, InvokeOptions options)
    public static Output<GetGaapLayer7ListenersResult> getGaapLayer7Listeners(GetGaapLayer7ListenersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getGaapLayer7Listeners:getGaapLayer7Listeners
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Protocol string
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    GroupId string
    Group id.
    Id string
    ID of the layer7 listener.
    ListenerId string
    ID of the layer7 listener to be queried.
    ListenerName string
    Name of the layer7 listener to be queried.
    Port double
    Port of the layer7 listener to be queried.
    ProxyId string
    ID of the GAAP proxy to be queried.
    ResultOutputFile string
    Used to save results.
    Protocol string
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    GroupId string
    Group id.
    Id string
    ID of the layer7 listener.
    ListenerId string
    ID of the layer7 listener to be queried.
    ListenerName string
    Name of the layer7 listener to be queried.
    Port float64
    Port of the layer7 listener to be queried.
    ProxyId string
    ID of the GAAP proxy to be queried.
    ResultOutputFile string
    Used to save results.
    protocol String
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    groupId String
    Group id.
    id String
    ID of the layer7 listener.
    listenerId String
    ID of the layer7 listener to be queried.
    listenerName String
    Name of the layer7 listener to be queried.
    port Double
    Port of the layer7 listener to be queried.
    proxyId String
    ID of the GAAP proxy to be queried.
    resultOutputFile String
    Used to save results.
    protocol string
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    groupId string
    Group id.
    id string
    ID of the layer7 listener.
    listenerId string
    ID of the layer7 listener to be queried.
    listenerName string
    Name of the layer7 listener to be queried.
    port number
    Port of the layer7 listener to be queried.
    proxyId string
    ID of the GAAP proxy to be queried.
    resultOutputFile string
    Used to save results.
    protocol str
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    group_id str
    Group id.
    id str
    ID of the layer7 listener.
    listener_id str
    ID of the layer7 listener to be queried.
    listener_name str
    Name of the layer7 listener to be queried.
    port float
    Port of the layer7 listener to be queried.
    proxy_id str
    ID of the GAAP proxy to be queried.
    result_output_file str
    Used to save results.
    protocol String
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    groupId String
    Group id.
    id String
    ID of the layer7 listener.
    listenerId String
    ID of the layer7 listener to be queried.
    listenerName String
    Name of the layer7 listener to be queried.
    port Number
    Port of the layer7 listener to be queried.
    proxyId String
    ID of the GAAP proxy to be queried.
    resultOutputFile String
    Used to save results.

    getGaapLayer7Listeners Result

    The following output properties are available:

    Id string
    ID of the layer7 listener.
    Listeners List<GetGaapLayer7ListenersListener>
    An information list of layer7 listeners. Each element contains the following attributes:
    Protocol string
    Protocol of the layer7 listener.
    GroupId string
    ListenerId string
    ListenerName string
    Port double
    Port of the layer7 listener.
    ProxyId string
    ID of the GAAP proxy.
    ResultOutputFile string
    Id string
    ID of the layer7 listener.
    Listeners []GetGaapLayer7ListenersListener
    An information list of layer7 listeners. Each element contains the following attributes:
    Protocol string
    Protocol of the layer7 listener.
    GroupId string
    ListenerId string
    ListenerName string
    Port float64
    Port of the layer7 listener.
    ProxyId string
    ID of the GAAP proxy.
    ResultOutputFile string
    id String
    ID of the layer7 listener.
    listeners List<GetGaapLayer7ListenersListener>
    An information list of layer7 listeners. Each element contains the following attributes:
    protocol String
    Protocol of the layer7 listener.
    groupId String
    listenerId String
    listenerName String
    port Double
    Port of the layer7 listener.
    proxyId String
    ID of the GAAP proxy.
    resultOutputFile String
    id string
    ID of the layer7 listener.
    listeners GetGaapLayer7ListenersListener[]
    An information list of layer7 listeners. Each element contains the following attributes:
    protocol string
    Protocol of the layer7 listener.
    groupId string
    listenerId string
    listenerName string
    port number
    Port of the layer7 listener.
    proxyId string
    ID of the GAAP proxy.
    resultOutputFile string
    id str
    ID of the layer7 listener.
    listeners Sequence[GetGaapLayer7ListenersListener]
    An information list of layer7 listeners. Each element contains the following attributes:
    protocol str
    Protocol of the layer7 listener.
    group_id str
    listener_id str
    listener_name str
    port float
    Port of the layer7 listener.
    proxy_id str
    ID of the GAAP proxy.
    result_output_file str
    id String
    ID of the layer7 listener.
    listeners List<Property Map>
    An information list of layer7 listeners. Each element contains the following attributes:
    protocol String
    Protocol of the layer7 listener.
    groupId String
    listenerId String
    listenerName String
    port Number
    Port of the layer7 listener.
    proxyId String
    ID of the GAAP proxy.
    resultOutputFile String

    Supporting Types

    GetGaapLayer7ListenersListener

    AuthType double
    Authentication type of the layer7 listener. 0 is one-way authentication and 1 is mutual authentication.
    CertificateId string
    Certificate ID of the layer7 listener.
    ClientCertificateId string
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    ClientCertificateIds List<string>
    ID list of the client certificate.
    CreateTime string
    Creation time of the layer7 listener.
    ForwardProtocol string
    Protocol type of the forwarding.
    Id string
    ID of the layer7 listener.
    Name string
    Name of the layer7 listener.
    Port double
    Port of the layer7 listener to be queried.
    Protocol string
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    ProxyId string
    ID of the GAAP proxy to be queried.
    Status double
    Status of the layer7 listener.
    TlsCiphers string
    Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
    TlsSupportVersions List<string>
    TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
    AuthType float64
    Authentication type of the layer7 listener. 0 is one-way authentication and 1 is mutual authentication.
    CertificateId string
    Certificate ID of the layer7 listener.
    ClientCertificateId string
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    ClientCertificateIds []string
    ID list of the client certificate.
    CreateTime string
    Creation time of the layer7 listener.
    ForwardProtocol string
    Protocol type of the forwarding.
    Id string
    ID of the layer7 listener.
    Name string
    Name of the layer7 listener.
    Port float64
    Port of the layer7 listener to be queried.
    Protocol string
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    ProxyId string
    ID of the GAAP proxy to be queried.
    Status float64
    Status of the layer7 listener.
    TlsCiphers string
    Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
    TlsSupportVersions []string
    TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
    authType Double
    Authentication type of the layer7 listener. 0 is one-way authentication and 1 is mutual authentication.
    certificateId String
    Certificate ID of the layer7 listener.
    clientCertificateId String
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    clientCertificateIds List<String>
    ID list of the client certificate.
    createTime String
    Creation time of the layer7 listener.
    forwardProtocol String
    Protocol type of the forwarding.
    id String
    ID of the layer7 listener.
    name String
    Name of the layer7 listener.
    port Double
    Port of the layer7 listener to be queried.
    protocol String
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    proxyId String
    ID of the GAAP proxy to be queried.
    status Double
    Status of the layer7 listener.
    tlsCiphers String
    Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
    tlsSupportVersions List<String>
    TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
    authType number
    Authentication type of the layer7 listener. 0 is one-way authentication and 1 is mutual authentication.
    certificateId string
    Certificate ID of the layer7 listener.
    clientCertificateId string
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    clientCertificateIds string[]
    ID list of the client certificate.
    createTime string
    Creation time of the layer7 listener.
    forwardProtocol string
    Protocol type of the forwarding.
    id string
    ID of the layer7 listener.
    name string
    Name of the layer7 listener.
    port number
    Port of the layer7 listener to be queried.
    protocol string
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    proxyId string
    ID of the GAAP proxy to be queried.
    status number
    Status of the layer7 listener.
    tlsCiphers string
    Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
    tlsSupportVersions string[]
    TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
    auth_type float
    Authentication type of the layer7 listener. 0 is one-way authentication and 1 is mutual authentication.
    certificate_id str
    Certificate ID of the layer7 listener.
    client_certificate_id str
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    client_certificate_ids Sequence[str]
    ID list of the client certificate.
    create_time str
    Creation time of the layer7 listener.
    forward_protocol str
    Protocol type of the forwarding.
    id str
    ID of the layer7 listener.
    name str
    Name of the layer7 listener.
    port float
    Port of the layer7 listener to be queried.
    protocol str
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    proxy_id str
    ID of the GAAP proxy to be queried.
    status float
    Status of the layer7 listener.
    tls_ciphers str
    Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
    tls_support_versions Sequence[str]
    TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
    authType Number
    Authentication type of the layer7 listener. 0 is one-way authentication and 1 is mutual authentication.
    certificateId String
    Certificate ID of the layer7 listener.
    clientCertificateId String
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    clientCertificateIds List<String>
    ID list of the client certificate.
    createTime String
    Creation time of the layer7 listener.
    forwardProtocol String
    Protocol type of the forwarding.
    id String
    ID of the layer7 listener.
    name String
    Name of the layer7 listener.
    port Number
    Port of the layer7 listener to be queried.
    protocol String
    Protocol of the layer7 listener to be queried. Valid values: HTTP and HTTPS.
    proxyId String
    ID of the GAAP proxy to be queried.
    status Number
    Status of the layer7 listener.
    tlsCiphers String
    Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
    tlsSupportVersions List<String>
    TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.

    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