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 dictionary
The following arguments are supported:
- Protocol
This property is required. string - Protocol of the layer7 listener to be queried. Valid values:
HTTP
andHTTPS
. - 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
This property is required. string - Protocol of the layer7 listener to be queried. Valid values:
HTTP
andHTTPS
. - 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
This property is required. String - Protocol of the layer7 listener to be queried. Valid values:
HTTP
andHTTPS
. - 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
This property is required. string - Protocol of the layer7 listener to be queried. Valid values:
HTTP
andHTTPS
. - 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
This property is required. str - Protocol of the layer7 listener to be queried. Valid values:
HTTP
andHTTPS
. - 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
This property is required. String - Protocol of the layer7 listener to be queried. Valid values:
HTTP
andHTTPS
. - 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 This property is required. double - Authentication type of the layer7 listener.
0
is one-way authentication and1
is mutual authentication. - Certificate
Id This property is required. string - Certificate ID of the layer7 listener.
- Client
Certificate Id 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. - Client
Certificate Ids This property is required. List<string> - ID list of the client certificate.
- Create
Time This property is required. string - Creation time of the layer7 listener.
- Forward
Protocol 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
andHTTPS
. - Proxy
Id This property is required. string - ID of the GAAP proxy to be queried.
- Status
This property is required. double - Status of the layer7 listener.
- Tls
Ciphers This property is required. string - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- Tls
Support Versions This property is required. List<string> - TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- Auth
Type This property is required. float64 - Authentication type of the layer7 listener.
0
is one-way authentication and1
is mutual authentication. - Certificate
Id This property is required. string - Certificate ID of the layer7 listener.
- Client
Certificate Id 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. - Client
Certificate Ids This property is required. []string - ID list of the client certificate.
- Create
Time This property is required. string - Creation time of the layer7 listener.
- Forward
Protocol 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
andHTTPS
. - Proxy
Id This property is required. string - ID of the GAAP proxy to be queried.
- Status
This property is required. float64 - Status of the layer7 listener.
- Tls
Ciphers This property is required. string - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- Tls
Support Versions This property is required. []string - TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- auth
Type This property is required. Double - Authentication type of the layer7 listener.
0
is one-way authentication and1
is mutual authentication. - certificate
Id This property is required. String - Certificate ID of the layer7 listener.
- client
Certificate Id 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. - client
Certificate Ids This property is required. List<String> - ID list of the client certificate.
- create
Time This property is required. String - Creation time of the layer7 listener.
- forward
Protocol 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
andHTTPS
. - proxy
Id This property is required. String - ID of the GAAP proxy to be queried.
- status
This property is required. Double - Status of the layer7 listener.
- tls
Ciphers This property is required. String - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- tls
Support Versions This property is required. List<String> - TLS version, optional TLSv1, TLSv1.1, TLSv1.2, TLSv1.3.
- auth
Type This property is required. number - Authentication type of the layer7 listener.
0
is one-way authentication and1
is mutual authentication. - certificate
Id This property is required. string - Certificate ID of the layer7 listener.
- client
Certificate Id 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. - client
Certificate Ids This property is required. string[] - ID list of the client certificate.
- create
Time This property is required. string - Creation time of the layer7 listener.
- forward
Protocol 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
andHTTPS
. - proxy
Id This property is required. string - ID of the GAAP proxy to be queried.
- status
This property is required. number - Status of the layer7 listener.
- tls
Ciphers This property is required. string - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- tls
Support Versions 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 and1
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
andHTTPS
. - 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.
- auth
Type This property is required. Number - Authentication type of the layer7 listener.
0
is one-way authentication and1
is mutual authentication. - certificate
Id This property is required. String - Certificate ID of the layer7 listener.
- client
Certificate Id 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. - client
Certificate Ids This property is required. List<String> - ID list of the client certificate.
- create
Time This property is required. String - Creation time of the layer7 listener.
- forward
Protocol 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
andHTTPS
. - proxy
Id This property is required. String - ID of the GAAP proxy to be queried.
- status
This property is required. Number - Status of the layer7 listener.
- tls
Ciphers This property is required. String - Password Suite, optional GAAP_TLS_CIPHERS_STRICT, GAAP_TLS_CIPHERS_GENERAL, GAAP_TLS_CIPHERS_WIDE(default).
- tls
Support Versions 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.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack