1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getGaapRuleRealServers
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getGaapRuleRealServers

Explore with Pulumi AI

tencentcloud logo
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:

    RuleId string
    Rule Id.
    Id string
    ResultOutputFile string
    Used to save results.
    RuleId string
    Rule Id.
    Id string
    ResultOutputFile string
    Used to save results.
    ruleId String
    Rule Id.
    id String
    resultOutputFile String
    Used to save results.
    ruleId string
    Rule Id.
    id string
    resultOutputFile string
    Used to save results.
    rule_id str
    Rule Id.
    id str
    result_output_file str
    Used to save results.
    ruleId String
    Rule Id.
    id String
    resultOutputFile String
    Used to save results.

    getGaapRuleRealServers Result

    The following output properties are available:

    Supporting Types

    GetGaapRuleRealServersBindRealServerSet

    DownIpLists 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 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.
    RealServerId string
    Real Server Id.
    RealServerIp string
    Real Server IP or domain.
    RealServerPort double
    Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
    RealServerStatus double
    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.
    RealServerWeight double
    Real Server Weight.
    DownIpLists []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 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.
    RealServerId string
    Real Server Id.
    RealServerIp string
    Real Server IP or domain.
    RealServerPort float64
    Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
    RealServerStatus float64
    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.
    RealServerWeight float64
    Real Server Weight.
    downIpLists 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 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.
    realServerId String
    Real Server Id.
    realServerIp String
    Real Server IP or domain.
    realServerPort Double
    Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
    realServerStatus Double
    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.
    realServerWeight Double
    Real Server Weight.
    downIpLists 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 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.
    realServerId string
    Real Server Id.
    realServerIp string
    Real Server IP or domain.
    realServerPort number
    Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
    realServerStatus number
    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.
    realServerWeight number
    Real Server Weight.
    down_ip_lists 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 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 str
    Real Server Id.
    real_server_ip str
    Real Server IP or domain.
    real_server_port float
    Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
    real_server_status float
    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_weight float
    Real Server Weight.
    downIpLists 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 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.
    realServerId String
    Real Server Id.
    realServerIp String
    Real Server IP or domain.
    realServerPort Number
    Real Server PortNote: This field may return null, indicating that a valid value cannot be obtained.
    realServerStatus Number
    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.
    realServerWeight Number
    Real Server Weight.

    GetGaapRuleRealServersRealServerSet

    InBanBlacklist double
    Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
    ProjectId double
    Project Id.
    RealServerId string
    Real Server Id.
    RealServerIp string
    Real Server IP or domain.
    RealServerName string
    Real Server Name.
    InBanBlacklist float64
    Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
    ProjectId float64
    Project Id.
    RealServerId string
    Real Server Id.
    RealServerIp string
    Real Server IP or domain.
    RealServerName string
    Real Server Name.
    inBanBlacklist Double
    Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
    projectId Double
    Project Id.
    realServerId String
    Real Server Id.
    realServerIp String
    Real Server IP or domain.
    realServerName String
    Real Server Name.
    inBanBlacklist number
    Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
    projectId number
    Project Id.
    realServerId string
    Real Server Id.
    realServerIp string
    Real Server IP or domain.
    realServerName string
    Real Server Name.
    in_ban_blacklist float
    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_id str
    Real Server Id.
    real_server_ip str
    Real Server IP or domain.
    real_server_name str
    Real Server Name.
    inBanBlacklist Number
    Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.
    projectId Number
    Project Id.
    realServerId String
    Real Server Id.
    realServerIp String
    Real Server IP or domain.
    realServerName String
    Real Server Name.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack