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

tencentcloud.getGaapLayer7Listeners

Explore with Pulumi AI

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetGaapLayer7Listeners(ctx *Context, args *GetGaapLayer7ListenersArgs, opts ...InvokeOption) (*GetGaapLayer7ListenersResult, error)
func GetGaapLayer7ListenersOutput(ctx *Context, args *GetGaapLayer7ListenersOutputArgs, opts ...InvokeOption) GetGaapLayer7ListenersResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetGaapLayer7ListenersResult> getGaapLayer7Listeners(GetGaapLayer7ListenersArgs args, InvokeOptions options)
public static Output<GetGaapLayer7ListenersResult> getGaapLayer7Listeners(GetGaapLayer7ListenersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getGaapLayer7Listeners:getGaapLayer7Listeners
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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