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

tencentcloud.getGaapRealservers

Explore with Pulumi AI

Use this data source to query gaap realservers.

Example Usage

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

const fooGaapRealserver = new tencentcloud.GaapRealserver("fooGaapRealserver", {ip: "1.1.1.1"});
const fooGaapRealservers = fooGaapRealserver.ip.apply(ip => tencentcloud.getGaapRealserversOutput({
    ip: ip,
}));
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo_gaap_realserver = tencentcloud.GaapRealserver("fooGaapRealserver", ip="1.1.1.1")
foo_gaap_realservers = foo_gaap_realserver.ip.apply(lambda ip: tencentcloud.get_gaap_realservers_output(ip=ip))
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 {
		fooGaapRealserver, err := tencentcloud.NewGaapRealserver(ctx, "fooGaapRealserver", &tencentcloud.GaapRealserverArgs{
			Ip: pulumi.String("1.1.1.1"),
		})
		if err != nil {
			return err
		}
		_ = fooGaapRealserver.Ip.ApplyT(func(ip *string) (tencentcloud.GetGaapRealserversResult, error) {
			return tencentcloud.GetGaapRealserversResult(interface{}(tencentcloud.GetGaapRealserversOutput(ctx, tencentcloud.GetGaapRealserversOutputArgs{
				Ip: ip,
			}, nil))), nil
		}).(tencentcloud.GetGaapRealserversResultOutput)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var fooGaapRealserver = new Tencentcloud.GaapRealserver("fooGaapRealserver", new()
    {
        Ip = "1.1.1.1",
    });

    var fooGaapRealservers = Tencentcloud.GetGaapRealservers.Invoke(new()
    {
        Ip = fooGaapRealserver.Ip,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.GaapRealserver;
import com.pulumi.tencentcloud.GaapRealserverArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetGaapRealserversArgs;
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 fooGaapRealserver = new GaapRealserver("fooGaapRealserver", GaapRealserverArgs.builder()
            .ip("1.1.1.1")
            .build());

        final var fooGaapRealservers = TencentcloudFunctions.getGaapRealservers(GetGaapRealserversArgs.builder()
            .ip(fooGaapRealserver.ip())
            .build());

    }
}
Copy
resources:
  fooGaapRealserver:
    type: tencentcloud:GaapRealserver
    properties:
      ip: 1.1.1.1
variables:
  fooGaapRealservers:
    fn::invoke:
      function: tencentcloud:getGaapRealservers
      arguments:
        ip: ${fooGaapRealserver.ip}
Copy

Using getGaapRealservers

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 getGaapRealservers(args: GetGaapRealserversArgs, opts?: InvokeOptions): Promise<GetGaapRealserversResult>
function getGaapRealserversOutput(args: GetGaapRealserversOutputArgs, opts?: InvokeOptions): Output<GetGaapRealserversResult>
Copy
def get_gaap_realservers(domain: Optional[str] = None,
                         id: Optional[str] = None,
                         ip: Optional[str] = None,
                         name: Optional[str] = None,
                         project_id: Optional[float] = None,
                         result_output_file: Optional[str] = None,
                         tags: Optional[Mapping[str, str]] = None,
                         opts: Optional[InvokeOptions] = None) -> GetGaapRealserversResult
def get_gaap_realservers_output(domain: Optional[pulumi.Input[str]] = None,
                         id: Optional[pulumi.Input[str]] = None,
                         ip: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[float]] = None,
                         result_output_file: Optional[pulumi.Input[str]] = None,
                         tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetGaapRealserversResult]
Copy
func GetGaapRealservers(ctx *Context, args *GetGaapRealserversArgs, opts ...InvokeOption) (*GetGaapRealserversResult, error)
func GetGaapRealserversOutput(ctx *Context, args *GetGaapRealserversOutputArgs, opts ...InvokeOption) GetGaapRealserversResultOutput
Copy

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

public static class GetGaapRealservers 
{
    public static Task<GetGaapRealserversResult> InvokeAsync(GetGaapRealserversArgs args, InvokeOptions? opts = null)
    public static Output<GetGaapRealserversResult> Invoke(GetGaapRealserversInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGaapRealserversResult> getGaapRealservers(GetGaapRealserversArgs args, InvokeOptions options)
public static Output<GetGaapRealserversResult> getGaapRealservers(GetGaapRealserversArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getGaapRealservers:getGaapRealservers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domain string
Domain of the GAAP realserver to be queried, conflict with ip.
Id string
ID of the GAAP realserver.
Ip string
IP of the GAAP realserver to be queried, conflict with domain.
Name string
Name of the GAAP realserver to be queried, the maximum length is 30.
ProjectId double
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
ResultOutputFile string
Used to save results.
Tags Dictionary<string, string>
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
Domain string
Domain of the GAAP realserver to be queried, conflict with ip.
Id string
ID of the GAAP realserver.
Ip string
IP of the GAAP realserver to be queried, conflict with domain.
Name string
Name of the GAAP realserver to be queried, the maximum length is 30.
ProjectId float64
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
ResultOutputFile string
Used to save results.
Tags map[string]string
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain String
Domain of the GAAP realserver to be queried, conflict with ip.
id String
ID of the GAAP realserver.
ip String
IP of the GAAP realserver to be queried, conflict with domain.
name String
Name of the GAAP realserver to be queried, the maximum length is 30.
projectId Double
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
resultOutputFile String
Used to save results.
tags Map<String,String>
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain string
Domain of the GAAP realserver to be queried, conflict with ip.
id string
ID of the GAAP realserver.
ip string
IP of the GAAP realserver to be queried, conflict with domain.
name string
Name of the GAAP realserver to be queried, the maximum length is 30.
projectId number
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
resultOutputFile string
Used to save results.
tags {[key: string]: string}
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain str
Domain of the GAAP realserver to be queried, conflict with ip.
id str
ID of the GAAP realserver.
ip str
IP of the GAAP realserver to be queried, conflict with domain.
name str
Name of the GAAP realserver to be queried, the maximum length is 30.
project_id float
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
result_output_file str
Used to save results.
tags Mapping[str, str]
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain String
Domain of the GAAP realserver to be queried, conflict with ip.
id String
ID of the GAAP realserver.
ip String
IP of the GAAP realserver to be queried, conflict with domain.
name String
Name of the GAAP realserver to be queried, the maximum length is 30.
projectId Number
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
resultOutputFile String
Used to save results.
tags Map<String>
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.

getGaapRealservers Result

The following output properties are available:

Id string
ID of the GAAP realserver.
Realservers List<GetGaapRealserversRealserver>
An information list of GAAP realserver. Each element contains the following attributes:
Domain string
Domain of the GAAP realserver.
Ip string
IP of the GAAP realserver.
Name string
Name of the GAAP realserver.
ProjectId double
ID of the project within the GAAP realserver.
ResultOutputFile string
Tags Dictionary<string, string>
Tags of the GAAP realserver.
Id string
ID of the GAAP realserver.
Realservers []GetGaapRealserversRealserver
An information list of GAAP realserver. Each element contains the following attributes:
Domain string
Domain of the GAAP realserver.
Ip string
IP of the GAAP realserver.
Name string
Name of the GAAP realserver.
ProjectId float64
ID of the project within the GAAP realserver.
ResultOutputFile string
Tags map[string]string
Tags of the GAAP realserver.
id String
ID of the GAAP realserver.
realservers List<GetGaapRealserversRealserver>
An information list of GAAP realserver. Each element contains the following attributes:
domain String
Domain of the GAAP realserver.
ip String
IP of the GAAP realserver.
name String
Name of the GAAP realserver.
projectId Double
ID of the project within the GAAP realserver.
resultOutputFile String
tags Map<String,String>
Tags of the GAAP realserver.
id string
ID of the GAAP realserver.
realservers GetGaapRealserversRealserver[]
An information list of GAAP realserver. Each element contains the following attributes:
domain string
Domain of the GAAP realserver.
ip string
IP of the GAAP realserver.
name string
Name of the GAAP realserver.
projectId number
ID of the project within the GAAP realserver.
resultOutputFile string
tags {[key: string]: string}
Tags of the GAAP realserver.
id str
ID of the GAAP realserver.
realservers Sequence[GetGaapRealserversRealserver]
An information list of GAAP realserver. Each element contains the following attributes:
domain str
Domain of the GAAP realserver.
ip str
IP of the GAAP realserver.
name str
Name of the GAAP realserver.
project_id float
ID of the project within the GAAP realserver.
result_output_file str
tags Mapping[str, str]
Tags of the GAAP realserver.
id String
ID of the GAAP realserver.
realservers List<Property Map>
An information list of GAAP realserver. Each element contains the following attributes:
domain String
Domain of the GAAP realserver.
ip String
IP of the GAAP realserver.
name String
Name of the GAAP realserver.
projectId Number
ID of the project within the GAAP realserver.
resultOutputFile String
tags Map<String>
Tags of the GAAP realserver.

Supporting Types

GetGaapRealserversRealserver

Domain This property is required. string
Domain of the GAAP realserver to be queried, conflict with ip.
Id This property is required. string
ID of the GAAP realserver.
Ip This property is required. string
IP of the GAAP realserver to be queried, conflict with domain.
Name This property is required. string
Name of the GAAP realserver to be queried, the maximum length is 30.
ProjectId This property is required. double
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
Tags This property is required. Dictionary<string, string>
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
Domain This property is required. string
Domain of the GAAP realserver to be queried, conflict with ip.
Id This property is required. string
ID of the GAAP realserver.
Ip This property is required. string
IP of the GAAP realserver to be queried, conflict with domain.
Name This property is required. string
Name of the GAAP realserver to be queried, the maximum length is 30.
ProjectId This property is required. float64
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
Tags This property is required. map[string]string
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain This property is required. String
Domain of the GAAP realserver to be queried, conflict with ip.
id This property is required. String
ID of the GAAP realserver.
ip This property is required. String
IP of the GAAP realserver to be queried, conflict with domain.
name This property is required. String
Name of the GAAP realserver to be queried, the maximum length is 30.
projectId This property is required. Double
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
tags This property is required. Map<String,String>
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain This property is required. string
Domain of the GAAP realserver to be queried, conflict with ip.
id This property is required. string
ID of the GAAP realserver.
ip This property is required. string
IP of the GAAP realserver to be queried, conflict with domain.
name This property is required. string
Name of the GAAP realserver to be queried, the maximum length is 30.
projectId This property is required. number
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
tags This property is required. {[key: string]: string}
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain This property is required. str
Domain of the GAAP realserver to be queried, conflict with ip.
id This property is required. str
ID of the GAAP realserver.
ip This property is required. str
IP of the GAAP realserver to be queried, conflict with domain.
name This property is required. str
Name of the GAAP realserver to be queried, the maximum length is 30.
project_id This property is required. float
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
tags This property is required. Mapping[str, str]
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.
domain This property is required. String
Domain of the GAAP realserver to be queried, conflict with ip.
id This property is required. String
ID of the GAAP realserver.
ip This property is required. String
IP of the GAAP realserver to be queried, conflict with domain.
name This property is required. String
Name of the GAAP realserver to be queried, the maximum length is 30.
projectId This property is required. Number
ID of the project within the GAAP realserver to be queried, default value is -1, no set means all projects.
tags This property is required. Map<String>
Tags of the GAAP proxy to be queried. Support up to 5, display the information as long as it matches one.

Package Details

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