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

tencentcloud.getGaapListenerRealServers

Explore with Pulumi AI

Use this data source to query detailed information of gaap listener real servers

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const listenerRealServers = tencentcloud.getGaapListenerRealServers({
    listenerId: "listener-xxxxxx",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

listener_real_servers = tencentcloud.get_gaap_listener_real_servers(listener_id="listener-xxxxxx")
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 {
		_, err := tencentcloud.GetGaapListenerRealServers(ctx, &tencentcloud.GetGaapListenerRealServersArgs{
			ListenerId: "listener-xxxxxx",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var listenerRealServers = Tencentcloud.GetGaapListenerRealServers.Invoke(new()
    {
        ListenerId = "listener-xxxxxx",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetGaapListenerRealServersArgs;
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) {
        final var listenerRealServers = TencentcloudFunctions.getGaapListenerRealServers(GetGaapListenerRealServersArgs.builder()
            .listenerId("listener-xxxxxx")
            .build());

    }
}
Copy
variables:
  listenerRealServers:
    fn::invoke:
      function: tencentcloud:getGaapListenerRealServers
      arguments:
        listenerId: listener-xxxxxx
Copy

Using getGaapListenerRealServers

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 getGaapListenerRealServers(args: GetGaapListenerRealServersArgs, opts?: InvokeOptions): Promise<GetGaapListenerRealServersResult>
function getGaapListenerRealServersOutput(args: GetGaapListenerRealServersOutputArgs, opts?: InvokeOptions): Output<GetGaapListenerRealServersResult>
Copy
def get_gaap_listener_real_servers(id: Optional[str] = None,
                                   listener_id: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetGaapListenerRealServersResult
def get_gaap_listener_real_servers_output(id: Optional[pulumi.Input[str]] = None,
                                   listener_id: Optional[pulumi.Input[str]] = None,
                                   result_output_file: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetGaapListenerRealServersResult]
Copy
func GetGaapListenerRealServers(ctx *Context, args *GetGaapListenerRealServersArgs, opts ...InvokeOption) (*GetGaapListenerRealServersResult, error)
func GetGaapListenerRealServersOutput(ctx *Context, args *GetGaapListenerRealServersOutputArgs, opts ...InvokeOption) GetGaapListenerRealServersResultOutput
Copy

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

public static class GetGaapListenerRealServers 
{
    public static Task<GetGaapListenerRealServersResult> InvokeAsync(GetGaapListenerRealServersArgs args, InvokeOptions? opts = null)
    public static Output<GetGaapListenerRealServersResult> Invoke(GetGaapListenerRealServersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGaapListenerRealServersResult> getGaapListenerRealServers(GetGaapListenerRealServersArgs args, InvokeOptions options)
public static Output<GetGaapListenerRealServersResult> getGaapListenerRealServers(GetGaapListenerRealServersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getGaapListenerRealServers:getGaapListenerRealServers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ListenerId This property is required. string
listener ID.
Id string
ResultOutputFile string
Used to save results.
ListenerId This property is required. string
listener ID.
Id string
ResultOutputFile string
Used to save results.
listenerId This property is required. String
listener ID.
id String
resultOutputFile String
Used to save results.
listenerId This property is required. string
listener ID.
id string
resultOutputFile string
Used to save results.
listener_id This property is required. str
listener ID.
id str
result_output_file str
Used to save results.
listenerId This property is required. String
listener ID.
id String
resultOutputFile String
Used to save results.

getGaapListenerRealServers Result

The following output properties are available:

bindRealServerSets List<Property Map>
Bound real server Information List.
id String
listenerId String
realServerSets List<Property Map>
Real Server Set.
resultOutputFile String

Supporting Types

GetGaapListenerRealServersBindRealServerSet

DownIPLists This property is required. List<string>
When the real server is a domain name, the domain name is resolved to one or more IPs, and this field represents the list of abnormal IPs. When the status is abnormal, but the field is empty, it indicates that the domain name resolution is abnormal.
RealServerFailoverRole This property is required. string
The primary and secondary roles of the real server, 'master' represents primary, 'slave' represents secondary, and this parameter must be in the active and standby mode of the real server when the listener is turned on.
RealServerIP This property is required. string
Real Server IP.
RealServerId This property is required. string
Real Server Id.
RealServerPort This property is required. double
The port number of the real serverNote: This field may return null, indicating that a valid value cannot be obtained.
RealServerStatus This property is required. double
real server health check status, where:0 indicates normal;1 indicates an exception.When the health check status is not enabled, it is always normal.Note: This field may return null, indicating that a valid value cannot be obtained.
RealServerWeight This property is required. double
The weight of this real server.
DownIPLists This property is required. []string
When the real server is a domain name, the domain name is resolved to one or more IPs, and this field represents the list of abnormal IPs. When the status is abnormal, but the field is empty, it indicates that the domain name resolution is abnormal.
RealServerFailoverRole This property is required. string
The primary and secondary roles of the real server, 'master' represents primary, 'slave' represents secondary, and this parameter must be in the active and standby mode of the real server when the listener is turned on.
RealServerIP This property is required. string
Real Server IP.
RealServerId This property is required. string
Real Server Id.
RealServerPort This property is required. float64
The port number of the real serverNote: This field may return null, indicating that a valid value cannot be obtained.
RealServerStatus This property is required. float64
real server health check status, where:0 indicates normal;1 indicates an exception.When the health check status is not enabled, it is always normal.Note: This field may return null, indicating that a valid value cannot be obtained.
RealServerWeight This property is required. float64
The weight of this real server.
downIPLists This property is required. List<String>
When the real server is a domain name, the domain name is resolved to one or more IPs, and this field represents the list of abnormal IPs. When the status is abnormal, but the field is empty, it indicates that the domain name resolution is abnormal.
realServerFailoverRole This property is required. String
The primary and secondary roles of the real server, 'master' represents primary, 'slave' represents secondary, and this parameter must be in the active and standby mode of the real server when the listener is turned on.
realServerIP This property is required. String
Real Server IP.
realServerId This property is required. String
Real Server Id.
realServerPort This property is required. Double
The port number of the real serverNote: This field may return null, indicating that a valid value cannot be obtained.
realServerStatus This property is required. Double
real server health check status, where:0 indicates normal;1 indicates an exception.When the health check status is not enabled, it is always normal.Note: This field may return null, indicating that a valid value cannot be obtained.
realServerWeight This property is required. Double
The weight of this real server.
downIPLists This property is required. string[]
When the real server is a domain name, the domain name is resolved to one or more IPs, and this field represents the list of abnormal IPs. When the status is abnormal, but the field is empty, it indicates that the domain name resolution is abnormal.
realServerFailoverRole This property is required. string
The primary and secondary roles of the real server, 'master' represents primary, 'slave' represents secondary, and this parameter must be in the active and standby mode of the real server when the listener is turned on.
realServerIP This property is required. string
Real Server IP.
realServerId This property is required. string
Real Server Id.
realServerPort This property is required. number
The port number of the real serverNote: This field may return null, indicating that a valid value cannot be obtained.
realServerStatus This property is required. number
real server health check status, where:0 indicates normal;1 indicates an exception.When the health check status is not enabled, it is always normal.Note: This field may return null, indicating that a valid value cannot be obtained.
realServerWeight This property is required. number
The weight of this real server.
down_ip_lists This property is required. Sequence[str]
When the real server is a domain name, the domain name is resolved to one or more IPs, and this field represents the list of abnormal IPs. When the status is abnormal, but the field is empty, it indicates that the domain name resolution is abnormal.
real_server_failover_role This property is required. str
The primary and secondary roles of the real server, 'master' represents primary, 'slave' represents secondary, and this parameter must be in the active and standby mode of the real server when the listener is turned on.
real_server_id This property is required. str
Real Server Id.
real_server_ip This property is required. str
Real Server IP.
real_server_port This property is required. float
The port number of the real serverNote: This field may return null, indicating that a valid value cannot be obtained.
real_server_status This property is required. float
real server health check status, where:0 indicates normal;1 indicates an exception.When the health check status is not enabled, it is always normal.Note: This field may return null, indicating that a valid value cannot be obtained.
real_server_weight This property is required. float
The weight of this real server.
downIPLists This property is required. List<String>
When the real server is a domain name, the domain name is resolved to one or more IPs, and this field represents the list of abnormal IPs. When the status is abnormal, but the field is empty, it indicates that the domain name resolution is abnormal.
realServerFailoverRole This property is required. String
The primary and secondary roles of the real server, 'master' represents primary, 'slave' represents secondary, and this parameter must be in the active and standby mode of the real server when the listener is turned on.
realServerIP This property is required. String
Real Server IP.
realServerId This property is required. String
Real Server Id.
realServerPort This property is required. Number
The port number of the real serverNote: This field may return null, indicating that a valid value cannot be obtained.
realServerStatus This property is required. Number
real server health check status, where:0 indicates normal;1 indicates an exception.When the health check status is not enabled, it is always normal.Note: This field may return null, indicating that a valid value cannot be obtained.
realServerWeight This property is required. Number
The weight of this real server.

GetGaapListenerRealServersRealServerSet

InBanBlacklist This property is required. double
Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
ProjectId This property is required. double
Project Id.
RealServerIP This property is required. string
Real Server IP.
RealServerId This property is required. string
Real Server Id.
RealServerName This property is required. string
Real Server Name.
InBanBlacklist This property is required. float64
Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
ProjectId This property is required. float64
Project Id.
RealServerIP This property is required. string
Real Server IP.
RealServerId This property is required. string
Real Server Id.
RealServerName This property is required. string
Real Server Name.
inBanBlacklist This property is required. Double
Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
projectId This property is required. Double
Project Id.
realServerIP This property is required. String
Real Server IP.
realServerId This property is required. String
Real Server Id.
realServerName This property is required. String
Real Server Name.
inBanBlacklist This property is required. number
Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
projectId This property is required. number
Project Id.
realServerIP This property is required. string
Real Server IP.
realServerId This property is required. string
Real Server Id.
realServerName This property is required. string
Real Server Name.
in_ban_blacklist This property is required. float
Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
project_id This property is required. float
Project Id.
real_server_id This property is required. str
Real Server Id.
real_server_ip This property is required. str
Real Server IP.
real_server_name This property is required. str
Real Server Name.
inBanBlacklist This property is required. Number
Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
projectId This property is required. Number
Project Id.
realServerIP This property is required. String
Real Server IP.
realServerId This property is required. String
Real Server Id.
realServerName This property is required. String
Real Server Name.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.