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

tencentcloud.getGaapHttpDomains

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query forward domain of 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 fooGaapHttpDomain = new tencentcloud.GaapHttpDomain("fooGaapHttpDomain", {
        listenerId: fooGaapLayer7Listener.gaapLayer7ListenerId,
        domain: "www.qq.com",
    });
    const fooGaapHttpDomains = tencentcloud.getGaapHttpDomainsOutput({
        listenerId: fooGaapLayer7Listener.gaapLayer7ListenerId,
        domain: fooGaapHttpDomain.domain,
    });
    
    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)
    foo_gaap_http_domain = tencentcloud.GaapHttpDomain("fooGaapHttpDomain",
        listener_id=foo_gaap_layer7_listener.gaap_layer7_listener_id,
        domain="www.qq.com")
    foo_gaap_http_domains = tencentcloud.get_gaap_http_domains_output(listener_id=foo_gaap_layer7_listener.gaap_layer7_listener_id,
        domain=foo_gaap_http_domain.domain)
    
    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
    		}
    		fooGaapHttpDomain, err := tencentcloud.NewGaapHttpDomain(ctx, "fooGaapHttpDomain", &tencentcloud.GaapHttpDomainArgs{
    			ListenerId: fooGaapLayer7Listener.GaapLayer7ListenerId,
    			Domain:     pulumi.String("www.qq.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.GetGaapHttpDomainsOutput(ctx, tencentcloud.GetGaapHttpDomainsOutputArgs{
    			ListenerId: fooGaapLayer7Listener.GaapLayer7ListenerId,
    			Domain:     fooGaapHttpDomain.Domain,
    		}, 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 fooGaapHttpDomain = new Tencentcloud.GaapHttpDomain("fooGaapHttpDomain", new()
        {
            ListenerId = fooGaapLayer7Listener.GaapLayer7ListenerId,
            Domain = "www.qq.com",
        });
    
        var fooGaapHttpDomains = Tencentcloud.GetGaapHttpDomains.Invoke(new()
        {
            ListenerId = fooGaapLayer7Listener.GaapLayer7ListenerId,
            Domain = fooGaapHttpDomain.Domain,
        });
    
    });
    
    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.GaapHttpDomain;
    import com.pulumi.tencentcloud.GaapHttpDomainArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetGaapHttpDomainsArgs;
    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());
    
            var fooGaapHttpDomain = new GaapHttpDomain("fooGaapHttpDomain", GaapHttpDomainArgs.builder()
                .listenerId(fooGaapLayer7Listener.gaapLayer7ListenerId())
                .domain("www.qq.com")
                .build());
    
            final var fooGaapHttpDomains = TencentcloudFunctions.getGaapHttpDomains(GetGaapHttpDomainsArgs.builder()
                .listenerId(fooGaapLayer7Listener.gaapLayer7ListenerId())
                .domain(fooGaapHttpDomain.domain())
                .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}
      fooGaapHttpDomain:
        type: tencentcloud:GaapHttpDomain
        properties:
          listenerId: ${fooGaapLayer7Listener.gaapLayer7ListenerId}
          domain: www.qq.com
    variables:
      fooGaapHttpDomains:
        fn::invoke:
          function: tencentcloud:getGaapHttpDomains
          arguments:
            listenerId: ${fooGaapLayer7Listener.gaapLayer7ListenerId}
            domain: ${fooGaapHttpDomain.domain}
    

    Using getGaapHttpDomains

    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 getGaapHttpDomains(args: GetGaapHttpDomainsArgs, opts?: InvokeOptions): Promise<GetGaapHttpDomainsResult>
    function getGaapHttpDomainsOutput(args: GetGaapHttpDomainsOutputArgs, opts?: InvokeOptions): Output<GetGaapHttpDomainsResult>
    def get_gaap_http_domains(domain: Optional[str] = None,
                              id: Optional[str] = None,
                              listener_id: Optional[str] = None,
                              result_output_file: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetGaapHttpDomainsResult
    def get_gaap_http_domains_output(domain: Optional[pulumi.Input[str]] = None,
                              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[GetGaapHttpDomainsResult]
    func GetGaapHttpDomains(ctx *Context, args *GetGaapHttpDomainsArgs, opts ...InvokeOption) (*GetGaapHttpDomainsResult, error)
    func GetGaapHttpDomainsOutput(ctx *Context, args *GetGaapHttpDomainsOutputArgs, opts ...InvokeOption) GetGaapHttpDomainsResultOutput

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

    public static class GetGaapHttpDomains 
    {
        public static Task<GetGaapHttpDomainsResult> InvokeAsync(GetGaapHttpDomainsArgs args, InvokeOptions? opts = null)
        public static Output<GetGaapHttpDomainsResult> Invoke(GetGaapHttpDomainsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGaapHttpDomainsResult> getGaapHttpDomains(GetGaapHttpDomainsArgs args, InvokeOptions options)
    public static Output<GetGaapHttpDomainsResult> getGaapHttpDomains(GetGaapHttpDomainsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getGaapHttpDomains:getGaapHttpDomains
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Domain string
    Forward domain of the layer7 listener to be queried.
    ListenerId string
    ID of the layer7 listener to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    Domain string
    Forward domain of the layer7 listener to be queried.
    ListenerId string
    ID of the layer7 listener to be queried.
    Id string
    ResultOutputFile string
    Used to save results.
    domain String
    Forward domain of the layer7 listener to be queried.
    listenerId String
    ID of the layer7 listener to be queried.
    id String
    resultOutputFile String
    Used to save results.
    domain string
    Forward domain of the layer7 listener to be queried.
    listenerId string
    ID of the layer7 listener to be queried.
    id string
    resultOutputFile string
    Used to save results.
    domain str
    Forward domain of the layer7 listener to be queried.
    listener_id str
    ID of the layer7 listener to be queried.
    id str
    result_output_file str
    Used to save results.
    domain String
    Forward domain of the layer7 listener to be queried.
    listenerId String
    ID of the layer7 listener to be queried.
    id String
    resultOutputFile String
    Used to save results.

    getGaapHttpDomains Result

    The following output properties are available:

    Domain string
    Forward domain of the layer7 listener.
    Domains List<GetGaapHttpDomainsDomain>
    An information list of forward domain of the layer7 listeners. Each element contains the following attributes:
    Id string
    ListenerId string
    ResultOutputFile string
    Domain string
    Forward domain of the layer7 listener.
    Domains []GetGaapHttpDomainsDomain
    An information list of forward domain of the layer7 listeners. Each element contains the following attributes:
    Id string
    ListenerId string
    ResultOutputFile string
    domain String
    Forward domain of the layer7 listener.
    domains List<GetGaapHttpDomainsDomain>
    An information list of forward domain of the layer7 listeners. Each element contains the following attributes:
    id String
    listenerId String
    resultOutputFile String
    domain string
    Forward domain of the layer7 listener.
    domains GetGaapHttpDomainsDomain[]
    An information list of forward domain of the layer7 listeners. Each element contains the following attributes:
    id string
    listenerId string
    resultOutputFile string
    domain str
    Forward domain of the layer7 listener.
    domains Sequence[GetGaapHttpDomainsDomain]
    An information list of forward domain of the layer7 listeners. Each element contains the following attributes:
    id str
    listener_id str
    result_output_file str
    domain String
    Forward domain of the layer7 listener.
    domains List<Property Map>
    An information list of forward domain of the layer7 listeners. Each element contains the following attributes:
    id String
    listenerId String
    resultOutputFile String

    Supporting Types

    GetGaapHttpDomainsDomain

    BasicAuth bool
    Indicates whether basic authentication is enable.
    BasicAuthId string
    ID of the basic authentication.
    CertificateId string
    ID of the server certificate.
    ClientCertificateId string
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    ClientCertificateIds List<string>
    ID list of the client certificate.
    Domain string
    Forward domain of the layer7 listener to be queried.
    GaapAuth bool
    Indicates whether SSL certificate authentication is enable.
    GaapAuthId string
    ID of the SSL certificate.
    IsDefaultServer bool
    Whether to use as the default domain name.
    RealserverAuth bool
    Indicates whether realserver authentication is enable.
    RealserverCertificateDomain string
    CA certificate domain of the realserver.
    RealserverCertificateId string
    (Deprecated) It has been deprecated from version 1.28.0. Use realserver_certificate_ids instead. CA certificate ID of the realserver.
    RealserverCertificateIds List<string>
    CA certificate ID list of the realserver.
    BasicAuth bool
    Indicates whether basic authentication is enable.
    BasicAuthId string
    ID of the basic authentication.
    CertificateId string
    ID of the server certificate.
    ClientCertificateId string
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    ClientCertificateIds []string
    ID list of the client certificate.
    Domain string
    Forward domain of the layer7 listener to be queried.
    GaapAuth bool
    Indicates whether SSL certificate authentication is enable.
    GaapAuthId string
    ID of the SSL certificate.
    IsDefaultServer bool
    Whether to use as the default domain name.
    RealserverAuth bool
    Indicates whether realserver authentication is enable.
    RealserverCertificateDomain string
    CA certificate domain of the realserver.
    RealserverCertificateId string
    (Deprecated) It has been deprecated from version 1.28.0. Use realserver_certificate_ids instead. CA certificate ID of the realserver.
    RealserverCertificateIds []string
    CA certificate ID list of the realserver.
    basicAuth Boolean
    Indicates whether basic authentication is enable.
    basicAuthId String
    ID of the basic authentication.
    certificateId String
    ID of the server certificate.
    clientCertificateId String
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    clientCertificateIds List<String>
    ID list of the client certificate.
    domain String
    Forward domain of the layer7 listener to be queried.
    gaapAuth Boolean
    Indicates whether SSL certificate authentication is enable.
    gaapAuthId String
    ID of the SSL certificate.
    isDefaultServer Boolean
    Whether to use as the default domain name.
    realserverAuth Boolean
    Indicates whether realserver authentication is enable.
    realserverCertificateDomain String
    CA certificate domain of the realserver.
    realserverCertificateId String
    (Deprecated) It has been deprecated from version 1.28.0. Use realserver_certificate_ids instead. CA certificate ID of the realserver.
    realserverCertificateIds List<String>
    CA certificate ID list of the realserver.
    basicAuth boolean
    Indicates whether basic authentication is enable.
    basicAuthId string
    ID of the basic authentication.
    certificateId string
    ID of the server certificate.
    clientCertificateId string
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    clientCertificateIds string[]
    ID list of the client certificate.
    domain string
    Forward domain of the layer7 listener to be queried.
    gaapAuth boolean
    Indicates whether SSL certificate authentication is enable.
    gaapAuthId string
    ID of the SSL certificate.
    isDefaultServer boolean
    Whether to use as the default domain name.
    realserverAuth boolean
    Indicates whether realserver authentication is enable.
    realserverCertificateDomain string
    CA certificate domain of the realserver.
    realserverCertificateId string
    (Deprecated) It has been deprecated from version 1.28.0. Use realserver_certificate_ids instead. CA certificate ID of the realserver.
    realserverCertificateIds string[]
    CA certificate ID list of the realserver.
    basic_auth bool
    Indicates whether basic authentication is enable.
    basic_auth_id str
    ID of the basic authentication.
    certificate_id str
    ID of the server certificate.
    client_certificate_id str
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    client_certificate_ids Sequence[str]
    ID list of the client certificate.
    domain str
    Forward domain of the layer7 listener to be queried.
    gaap_auth bool
    Indicates whether SSL certificate authentication is enable.
    gaap_auth_id str
    ID of the SSL certificate.
    is_default_server bool
    Whether to use as the default domain name.
    realserver_auth bool
    Indicates whether realserver authentication is enable.
    realserver_certificate_domain str
    CA certificate domain of the realserver.
    realserver_certificate_id str
    (Deprecated) It has been deprecated from version 1.28.0. Use realserver_certificate_ids instead. CA certificate ID of the realserver.
    realserver_certificate_ids Sequence[str]
    CA certificate ID list of the realserver.
    basicAuth Boolean
    Indicates whether basic authentication is enable.
    basicAuthId String
    ID of the basic authentication.
    certificateId String
    ID of the server certificate.
    clientCertificateId String
    (Deprecated) It has been deprecated from version 1.26.0. Use client_certificate_ids instead. ID of the client certificate.
    clientCertificateIds List<String>
    ID list of the client certificate.
    domain String
    Forward domain of the layer7 listener to be queried.
    gaapAuth Boolean
    Indicates whether SSL certificate authentication is enable.
    gaapAuthId String
    ID of the SSL certificate.
    isDefaultServer Boolean
    Whether to use as the default domain name.
    realserverAuth Boolean
    Indicates whether realserver authentication is enable.
    realserverCertificateDomain String
    CA certificate domain of the realserver.
    realserverCertificateId String
    (Deprecated) It has been deprecated from version 1.28.0. Use realserver_certificate_ids instead. CA certificate ID of the realserver.
    realserverCertificateIds List<String>
    CA certificate ID list of the realserver.

    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