tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getGaapLayer7Listeners
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 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 dictionaryThe following arguments are supported:
- Protocol string
- Protocol of the layer7 listener to be queried. Valid values: HTTPandHTTPS.
- 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.
- ResultOutput stringFile 
- Used to save results.
- Protocol string
- Protocol of the layer7 listener to be queried. Valid values: HTTPandHTTPS.
- 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.
- ResultOutput stringFile 
- Used to save results.
- protocol String
- Protocol of the layer7 listener to be queried. Valid values: HTTPandHTTPS.
- 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.
- resultOutput StringFile 
- Used to save results.
- protocol string
- Protocol of the layer7 listener to be queried. Valid values: HTTPandHTTPS.
- 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.
- resultOutput stringFile 
- Used to save results.
- protocol str
- Protocol of the layer7 listener to be queried. Valid values: HTTPandHTTPS.
- 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_ strfile 
- Used to save results.
- protocol String
- Protocol of the layer7 listener to be queried. Valid values: HTTPandHTTPS.
- 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.
- resultOutput StringFile 
- Used to save results.
getGaapLayer7Listeners Result
The following output properties are available:
- Id string
- ID of the layer7 listener.
- Listeners
List<GetGaap Layer7Listeners Listener> 
- 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.
- ResultOutput stringFile 
- Id string
- ID of the layer7 listener.
- Listeners
[]GetGaap Layer7Listeners Listener 
- 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.
- ResultOutput stringFile 
- id String
- ID of the layer7 listener.
- listeners
List<GetGaap Layer7Listeners Listener> 
- 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.
- resultOutput StringFile 
- id string
- ID of the layer7 listener.
- listeners
GetGaap Layer7Listeners Listener[] 
- 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.
- resultOutput stringFile 
- id str
- ID of the layer7 listener.
- listeners
Sequence[GetGaap Layer7Listeners Listener] 
- 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_ strfile 
- 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.
- resultOutput StringFile 
Supporting Types
GetGaapLayer7ListenersListener   
- AuthType double
- Authentication type of the layer7 listener. 0is one-way authentication and1is mutual authentication.
- CertificateId string
- Certificate ID of the layer7 listener.
- ClientCertificate stringId 
- (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_idsinstead. ID of the client certificate.
- ClientCertificate List<string>Ids 
- 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: HTTPandHTTPS.
- 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).
- TlsSupport List<string>Versions 
- TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- AuthType float64
- Authentication type of the layer7 listener. 0is one-way authentication and1is mutual authentication.
- CertificateId string
- Certificate ID of the layer7 listener.
- ClientCertificate stringId 
- (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_idsinstead. ID of the client certificate.
- ClientCertificate []stringIds 
- 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: HTTPandHTTPS.
- 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).
- TlsSupport []stringVersions 
- TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- authType Double
- Authentication type of the layer7 listener. 0is one-way authentication and1is mutual authentication.
- certificateId String
- Certificate ID of the layer7 listener.
- clientCertificate StringId 
- (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_idsinstead. ID of the client certificate.
- clientCertificate List<String>Ids 
- 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: HTTPandHTTPS.
- 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).
- tlsSupport List<String>Versions 
- TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- authType number
- Authentication type of the layer7 listener. 0is one-way authentication and1is mutual authentication.
- certificateId string
- Certificate ID of the layer7 listener.
- clientCertificate stringId 
- (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_idsinstead. ID of the client certificate.
- clientCertificate string[]Ids 
- 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: HTTPandHTTPS.
- 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).
- tlsSupport string[]Versions 
- TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- auth_type float
- Authentication type of the layer7 listener. 0is one-way authentication and1is mutual authentication.
- certificate_id str
- Certificate ID of the layer7 listener.
- client_certificate_ strid 
- (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_idsinstead. ID of the client certificate.
- client_certificate_ Sequence[str]ids 
- 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: HTTPandHTTPS.
- 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_ Sequence[str]versions 
- TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- authType Number
- Authentication type of the layer7 listener. 0is one-way authentication and1is mutual authentication.
- certificateId String
- Certificate ID of the layer7 listener.
- clientCertificate StringId 
- (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_idsinstead. ID of the client certificate.
- clientCertificate List<String>Ids 
- 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: HTTPandHTTPS.
- 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).
- tlsSupport List<String>Versions 
- 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 tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack