tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getGaapLayer7Listeners
Start a Neo task
Explain and create a tencentcloud.getGaapLayer7Listeners resource
tencentcloud 1.82.35 published on Friday, Nov 7, 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 foo = new tencentcloud.GaapProxy("foo", {
name: "ci-test-gaap-proxy",
bandwidth: 10,
concurrent: 2,
accessRegion: "SouthChina",
realserverRegion: "NorthChina",
});
const fooGaapLayer7Listener = new tencentcloud.GaapLayer7Listener("foo", {
protocol: "HTTP",
name: "ci-test-gaap-l7-listener",
port: 80,
proxyId: foo.gaapProxyId,
});
const listenerId = tencentcloud.getGaapLayer7ListenersOutput({
protocol: "HTTP",
proxyId: foo.gaapProxyId,
listenerId: fooGaapLayer7Listener.gaapLayer7ListenerId,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.GaapProxy("foo",
name="ci-test-gaap-proxy",
bandwidth=10,
concurrent=2,
access_region="SouthChina",
realserver_region="NorthChina")
foo_gaap_layer7_listener = tencentcloud.GaapLayer7Listener("foo",
protocol="HTTP",
name="ci-test-gaap-l7-listener",
port=80,
proxy_id=foo.gaap_proxy_id)
listener_id = tencentcloud.get_gaap_layer7_listeners_output(protocol="HTTP",
proxy_id=foo.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 {
foo, err := tencentcloud.NewGaapProxy(ctx, "foo", &tencentcloud.GaapProxyArgs{
Name: pulumi.String("ci-test-gaap-proxy"),
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, "foo", &tencentcloud.GaapLayer7ListenerArgs{
Protocol: pulumi.String("HTTP"),
Name: pulumi.String("ci-test-gaap-l7-listener"),
Port: pulumi.Float64(80),
ProxyId: foo.GaapProxyId,
})
if err != nil {
return err
}
_ = tencentcloud.GetGaapLayer7ListenersOutput(ctx, tencentcloud.GetGaapLayer7ListenersOutputArgs{
Protocol: pulumi.String("HTTP"),
ProxyId: foo.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 foo = new Tencentcloud.GaapProxy("foo", new()
{
Name = "ci-test-gaap-proxy",
Bandwidth = 10,
Concurrent = 2,
AccessRegion = "SouthChina",
RealserverRegion = "NorthChina",
});
var fooGaapLayer7Listener = new Tencentcloud.GaapLayer7Listener("foo", new()
{
Protocol = "HTTP",
Name = "ci-test-gaap-l7-listener",
Port = 80,
ProxyId = foo.GaapProxyId,
});
var listenerId = Tencentcloud.GetGaapLayer7Listeners.Invoke(new()
{
Protocol = "HTTP",
ProxyId = foo.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 foo = new GaapProxy("foo", GaapProxyArgs.builder()
.name("ci-test-gaap-proxy")
.bandwidth(10.0)
.concurrent(2.0)
.accessRegion("SouthChina")
.realserverRegion("NorthChina")
.build());
var fooGaapLayer7Listener = new GaapLayer7Listener("fooGaapLayer7Listener", GaapLayer7ListenerArgs.builder()
.protocol("HTTP")
.name("ci-test-gaap-l7-listener")
.port(80.0)
.proxyId(foo.gaapProxyId())
.build());
final var listenerId = TencentcloudFunctions.getGaapLayer7Listeners(GetGaapLayer7ListenersArgs.builder()
.protocol("HTTP")
.proxyId(foo.gaapProxyId())
.listenerId(fooGaapLayer7Listener.gaapLayer7ListenerId())
.build());
}
}
resources:
foo:
type: tencentcloud:GaapProxy
properties:
name: ci-test-gaap-proxy
bandwidth: 10
concurrent: 2
accessRegion: SouthChina
realserverRegion: NorthChina
fooGaapLayer7Listener:
type: tencentcloud:GaapLayer7Listener
name: foo
properties:
protocol: HTTP
name: ci-test-gaap-l7-listener
port: 80
proxyId: ${foo.gaapProxyId}
variables:
listenerId:
fn::invoke:
function: tencentcloud:getGaapLayer7Listeners
arguments:
protocol: HTTP
proxyId: ${foo.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. - Group
Id string - Group id.
- Id string
- ID of the layer7 listener.
- Listener
Id string - ID of the layer7 listener to be queried.
- Listener
Name string - Name of the layer7 listener to be queried.
- Port double
- Port of the layer7 listener to be queried.
- Proxy
Id string - ID of the GAAP proxy to be queried.
- Result
Output stringFile - Used to save results.
- Protocol string
- Protocol of the layer7 listener to be queried. Valid values:
HTTPandHTTPS. - Group
Id string - Group id.
- Id string
- ID of the layer7 listener.
- Listener
Id string - ID of the layer7 listener to be queried.
- Listener
Name string - Name of the layer7 listener to be queried.
- Port float64
- Port of the layer7 listener to be queried.
- Proxy
Id string - ID of the GAAP proxy to be queried.
- Result
Output stringFile - Used to save results.
- protocol String
- Protocol of the layer7 listener to be queried. Valid values:
HTTPandHTTPS. - group
Id String - Group id.
- id String
- ID of the layer7 listener.
- listener
Id String - ID of the layer7 listener to be queried.
- listener
Name String - Name of the layer7 listener to be queried.
- port Double
- Port of the layer7 listener to be queried.
- proxy
Id String - ID of the GAAP proxy to be queried.
- result
Output StringFile - Used to save results.
- protocol string
- Protocol of the layer7 listener to be queried. Valid values:
HTTPandHTTPS. - group
Id string - Group id.
- id string
- ID of the layer7 listener.
- listener
Id string - ID of the layer7 listener to be queried.
- listener
Name string - Name of the layer7 listener to be queried.
- port number
- Port of the layer7 listener to be queried.
- proxy
Id string - ID of the GAAP proxy to be queried.
- result
Output 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. - group
Id String - Group id.
- id String
- ID of the layer7 listener.
- listener
Id String - ID of the layer7 listener to be queried.
- listener
Name String - Name of the layer7 listener to be queried.
- port Number
- Port of the layer7 listener to be queried.
- proxy
Id String - ID of the GAAP proxy to be queried.
- result
Output StringFile - Used to save results.
getGaapLayer7Listeners Result
The following output properties are available:
- Id string
- ID of the layer7 listener.
- Listeners
List<Get
Gaap Layer7Listeners Listener> - An information list of layer7 listeners. Each element contains the following attributes:
- Protocol string
- Protocol of the layer7 listener.
- Group
Id string - Listener
Id string - Listener
Name string - Port double
- Port of the layer7 listener.
- Proxy
Id string - ID of the GAAP proxy.
- Result
Output stringFile
- Id string
- ID of the layer7 listener.
- Listeners
[]Get
Gaap Layer7Listeners Listener - An information list of layer7 listeners. Each element contains the following attributes:
- Protocol string
- Protocol of the layer7 listener.
- Group
Id string - Listener
Id string - Listener
Name string - Port float64
- Port of the layer7 listener.
- Proxy
Id string - ID of the GAAP proxy.
- Result
Output stringFile
- id String
- ID of the layer7 listener.
- listeners
List<Get
Gaap Layer7Listeners Listener> - An information list of layer7 listeners. Each element contains the following attributes:
- protocol String
- Protocol of the layer7 listener.
- group
Id String - listener
Id String - listener
Name String - port Double
- Port of the layer7 listener.
- proxy
Id String - ID of the GAAP proxy.
- result
Output StringFile
- id string
- ID of the layer7 listener.
- listeners
Get
Gaap Layer7Listeners Listener[] - An information list of layer7 listeners. Each element contains the following attributes:
- protocol string
- Protocol of the layer7 listener.
- group
Id string - listener
Id string - listener
Name string - port number
- Port of the layer7 listener.
- proxy
Id string - ID of the GAAP proxy.
- result
Output stringFile
- id str
- ID of the layer7 listener.
- listeners
Sequence[Get
Gaap 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.
- group
Id String - listener
Id String - listener
Name String - port Number
- Port of the layer7 listener.
- proxy
Id String - ID of the GAAP proxy.
- result
Output StringFile
Supporting Types
GetGaapLayer7ListenersListener
- Auth
Type double - Authentication type of the layer7 listener.
0is one-way authentication and1is mutual authentication. - Certificate
Id string - Certificate ID of the layer7 listener.
- Client
Certificate stringId - (Deprecated) It has been deprecated from version 1.26.0. Use
client_certificate_idsinstead. ID of the client certificate. - Client
Certificate List<string>Ids - ID list of the client certificate.
- Create
Time string - Creation time of the layer7 listener.
- Forward
Protocol 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. - Proxy
Id string - ID of the GAAP proxy to be queried.
- Status double
- Status of the layer7 listener.
- Tls
Ciphers string - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- Tls
Support List<string>Versions - TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- Auth
Type float64 - Authentication type of the layer7 listener.
0is one-way authentication and1is mutual authentication. - Certificate
Id string - Certificate ID of the layer7 listener.
- Client
Certificate stringId - (Deprecated) It has been deprecated from version 1.26.0. Use
client_certificate_idsinstead. ID of the client certificate. - Client
Certificate []stringIds - ID list of the client certificate.
- Create
Time string - Creation time of the layer7 listener.
- Forward
Protocol 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. - Proxy
Id string - ID of the GAAP proxy to be queried.
- Status float64
- Status of the layer7 listener.
- Tls
Ciphers string - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- Tls
Support []stringVersions - TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- auth
Type Double - Authentication type of the layer7 listener.
0is one-way authentication and1is mutual authentication. - certificate
Id String - Certificate ID of the layer7 listener.
- client
Certificate StringId - (Deprecated) It has been deprecated from version 1.26.0. Use
client_certificate_idsinstead. ID of the client certificate. - client
Certificate List<String>Ids - ID list of the client certificate.
- create
Time String - Creation time of the layer7 listener.
- forward
Protocol 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. - proxy
Id String - ID of the GAAP proxy to be queried.
- status Double
- Status of the layer7 listener.
- tls
Ciphers String - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- tls
Support List<String>Versions - TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- auth
Type number - Authentication type of the layer7 listener.
0is one-way authentication and1is mutual authentication. - certificate
Id string - Certificate ID of the layer7 listener.
- client
Certificate stringId - (Deprecated) It has been deprecated from version 1.26.0. Use
client_certificate_idsinstead. ID of the client certificate. - client
Certificate string[]Ids - ID list of the client certificate.
- create
Time string - Creation time of the layer7 listener.
- forward
Protocol 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. - proxy
Id string - ID of the GAAP proxy to be queried.
- status number
- Status of the layer7 listener.
- tls
Ciphers string - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- tls
Support 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.
- auth
Type Number - Authentication type of the layer7 listener.
0is one-way authentication and1is mutual authentication. - certificate
Id String - Certificate ID of the layer7 listener.
- client
Certificate StringId - (Deprecated) It has been deprecated from version 1.26.0. Use
client_certificate_idsinstead. ID of the client certificate. - client
Certificate List<String>Ids - ID list of the client certificate.
- create
Time String - Creation time of the layer7 listener.
- forward
Protocol 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. - proxy
Id String - ID of the GAAP proxy to be queried.
- status Number
- Status of the layer7 listener.
- tls
Ciphers String - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- tls
Support 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.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
