tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getGaapRuleRealServers
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of gaap rule real servers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const ruleRealServers = tencentcloud.getGaapRuleRealServers({
ruleId: "rule-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
rule_real_servers = tencentcloud.get_gaap_rule_real_servers(rule_id="rule-xxxxxx")
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.GetGaapRuleRealServers(ctx, &tencentcloud.GetGaapRuleRealServersArgs{
RuleId: "rule-xxxxxx",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var ruleRealServers = Tencentcloud.GetGaapRuleRealServers.Invoke(new()
{
RuleId = "rule-xxxxxx",
});
});
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.GetGaapRuleRealServersArgs;
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 ruleRealServers = TencentcloudFunctions.getGaapRuleRealServers(GetGaapRuleRealServersArgs.builder()
.ruleId("rule-xxxxxx")
.build());
}
}
variables:
ruleRealServers:
fn::invoke:
function: tencentcloud:getGaapRuleRealServers
arguments:
ruleId: rule-xxxxxx
Using getGaapRuleRealServers
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 getGaapRuleRealServers(args: GetGaapRuleRealServersArgs, opts?: InvokeOptions): Promise<GetGaapRuleRealServersResult>
function getGaapRuleRealServersOutput(args: GetGaapRuleRealServersOutputArgs, opts?: InvokeOptions): Output<GetGaapRuleRealServersResult>
def get_gaap_rule_real_servers(id: Optional[str] = None,
result_output_file: Optional[str] = None,
rule_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGaapRuleRealServersResult
def get_gaap_rule_real_servers_output(id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGaapRuleRealServersResult]
func GetGaapRuleRealServers(ctx *Context, args *GetGaapRuleRealServersArgs, opts ...InvokeOption) (*GetGaapRuleRealServersResult, error)
func GetGaapRuleRealServersOutput(ctx *Context, args *GetGaapRuleRealServersOutputArgs, opts ...InvokeOption) GetGaapRuleRealServersResultOutput
> Note: This function is named GetGaapRuleRealServers
in the Go SDK.
public static class GetGaapRuleRealServers
{
public static Task<GetGaapRuleRealServersResult> InvokeAsync(GetGaapRuleRealServersArgs args, InvokeOptions? opts = null)
public static Output<GetGaapRuleRealServersResult> Invoke(GetGaapRuleRealServersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGaapRuleRealServersResult> getGaapRuleRealServers(GetGaapRuleRealServersArgs args, InvokeOptions options)
public static Output<GetGaapRuleRealServersResult> getGaapRuleRealServers(GetGaapRuleRealServersArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getGaapRuleRealServers:getGaapRuleRealServers
arguments:
# arguments dictionary
The following arguments are supported:
- Rule
Id string - Rule Id.
- Id string
- Result
Output stringFile - Used to save results.
- Rule
Id string - Rule Id.
- Id string
- Result
Output stringFile - Used to save results.
- rule
Id String - Rule Id.
- id String
- result
Output StringFile - Used to save results.
- rule
Id string - Rule Id.
- id string
- result
Output stringFile - Used to save results.
- rule_
id str - Rule Id.
- id str
- result_
output_ strfile - Used to save results.
- rule
Id String - Rule Id.
- id String
- result
Output StringFile - Used to save results.
getGaapRuleRealServers Result
The following output properties are available:
- Bind
Real List<GetServer Sets Gaap Rule Real Servers Bind Real Server Set> - Bind Real Server info.
- Id string
- Real
Server List<GetSets Gaap Rule Real Servers Real Server Set> - Real Server Set.
- Rule
Id string - Result
Output stringFile
- Bind
Real []GetServer Sets Gaap Rule Real Servers Bind Real Server Set - Bind Real Server info.
- Id string
- Real
Server []GetSets Gaap Rule Real Servers Real Server Set - Real Server Set.
- Rule
Id string - Result
Output stringFile
- bind
Real List<GetServer Sets Gaap Rule Real Servers Bind Real Server Set> - Bind Real Server info.
- id String
- real
Server List<GetSets Gaap Rule Real Servers Real Server Set> - Real Server Set.
- rule
Id String - result
Output StringFile
- bind
Real GetServer Sets Gaap Rule Real Servers Bind Real Server Set[] - Bind Real Server info.
- id string
- real
Server GetSets Gaap Rule Real Servers Real Server Set[] - Real Server Set.
- rule
Id string - result
Output stringFile
- bind_
real_ Sequence[Getserver_ sets Gaap Rule Real Servers Bind Real Server Set] - Bind Real Server info.
- id str
- real_
server_ Sequence[Getsets Gaap Rule Real Servers Real Server Set] - Real Server Set.
- rule_
id str - result_
output_ strfile
- bind
Real List<Property Map>Server Sets - Bind Real Server info.
- id String
- real
Server List<Property Map>Sets - Real Server Set.
- rule
Id String - result
Output StringFile
Supporting Types
GetGaapRuleRealServersBindRealServerSet
- Down
Ip List<string>Lists - 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 stringFailover Role - 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 stringId - Real Server Id.
- Real
Server stringIp - Real Server IP or domain.
- Real
Server doublePort - Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
- Real
Server doubleStatus - RealServerStatus: 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 doubleWeight - Real Server Weight.
- Down
Ip []stringLists - 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 stringFailover Role - 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 stringId - Real Server Id.
- Real
Server stringIp - Real Server IP or domain.
- Real
Server float64Port - Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
- Real
Server float64Status - RealServerStatus: 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 float64Weight - Real Server Weight.
- down
Ip List<String>Lists - 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 StringFailover Role - 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 StringId - Real Server Id.
- real
Server StringIp - Real Server IP or domain.
- real
Server DoublePort - Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
- real
Server DoubleStatus - RealServerStatus: 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 DoubleWeight - Real Server Weight.
- down
Ip string[]Lists - 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 stringFailover Role - 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 stringId - Real Server Id.
- real
Server stringIp - Real Server IP or domain.
- real
Server numberPort - Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
- real
Server numberStatus - RealServerStatus: 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 numberWeight - Real Server Weight.
- down_
ip_ Sequence[str]lists - 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_ strfailover_ role - 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_ strid - Real Server Id.
- real_
server_ strip - Real Server IP or domain.
- real_
server_ floatport - Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
- real_
server_ floatstatus - RealServerStatus: 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_ floatweight - Real Server Weight.
- down
Ip List<String>Lists - 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 StringFailover Role - 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 StringId - Real Server Id.
- real
Server StringIp - Real Server IP or domain.
- real
Server NumberPort - Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
- real
Server NumberStatus - RealServerStatus: 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 NumberWeight - Real Server Weight.
GetGaapRuleRealServersRealServerSet
- In
Ban doubleBlacklist - Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
- Project
Id double - Project Id.
- Real
Server stringId - Real Server Id.
- Real
Server stringIp - Real Server IP or domain.
- Real
Server stringName - Real Server Name.
- In
Ban float64Blacklist - Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
- Project
Id float64 - Project Id.
- Real
Server stringId - Real Server Id.
- Real
Server stringIp - Real Server IP or domain.
- Real
Server stringName - Real Server Name.
- in
Ban DoubleBlacklist - Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
- project
Id Double - Project Id.
- real
Server StringId - Real Server Id.
- real
Server StringIp - Real Server IP or domain.
- real
Server StringName - Real Server Name.
- in
Ban numberBlacklist - Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
- project
Id number - Project Id.
- real
Server stringId - Real Server Id.
- real
Server stringIp - Real Server IP or domain.
- real
Server stringName - Real Server Name.
- in_
ban_ floatblacklist - Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
- project_
id float - Project Id.
- real_
server_ strid - Real Server Id.
- real_
server_ strip - Real Server IP or domain.
- real_
server_ strname - Real Server Name.
- in
Ban NumberBlacklist - Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
- project
Id Number - Project Id.
- real
Server StringId - Real Server Id.
- real
Server StringIp - Real Server IP or domain.
- real
Server StringName - Real Server Name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack