1. Packages
  2. Packages
  3. Spectrocloud Provider
  4. API Docs
  5. getPrivatecloudgatewayDnsMap
Viewing docs for spectrocloud 0.29.1
published on Friday, May 8, 2026 by spectrocloud
Viewing docs for spectrocloud 0.29.1
published on Friday, May 8, 2026 by spectrocloud

    Data source for looking up private cloud gateway DNS mappings.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const example = spectrocloud.getPrivatecloudgatewayDnsMap({
        privateCloudGatewayId: "pcg-uid",
        searchDomainName: "corp.example.com",
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    example = spectrocloud.get_privatecloudgateway_dns_map(private_cloud_gateway_id="pcg-uid",
        search_domain_name="corp.example.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spectrocloud.LookupPrivatecloudgatewayDnsMap(ctx, &spectrocloud.LookupPrivatecloudgatewayDnsMapArgs{
    			PrivateCloudGatewayId: "pcg-uid",
    			SearchDomainName:      "corp.example.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Spectrocloud.GetPrivatecloudgatewayDnsMap.Invoke(new()
        {
            PrivateCloudGatewayId = "pcg-uid",
            SearchDomainName = "corp.example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.SpectrocloudFunctions;
    import com.pulumi.spectrocloud.inputs.GetPrivatecloudgatewayDnsMapArgs;
    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 example = SpectrocloudFunctions.getPrivatecloudgatewayDnsMap(GetPrivatecloudgatewayDnsMapArgs.builder()
                .privateCloudGatewayId("pcg-uid")
                .searchDomainName("corp.example.com")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: spectrocloud:getPrivatecloudgatewayDnsMap
          arguments:
            privateCloudGatewayId: pcg-uid
            searchDomainName: corp.example.com
    
    Example coming soon!
    

    Using getPrivatecloudgatewayDnsMap

    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 getPrivatecloudgatewayDnsMap(args: GetPrivatecloudgatewayDnsMapArgs, opts?: InvokeOptions): Promise<GetPrivatecloudgatewayDnsMapResult>
    function getPrivatecloudgatewayDnsMapOutput(args: GetPrivatecloudgatewayDnsMapOutputArgs, opts?: InvokeOptions): Output<GetPrivatecloudgatewayDnsMapResult>
    def get_privatecloudgateway_dns_map(id: Optional[str] = None,
                                        network: Optional[str] = None,
                                        private_cloud_gateway_id: Optional[str] = None,
                                        search_domain_name: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetPrivatecloudgatewayDnsMapResult
    def get_privatecloudgateway_dns_map_output(id: pulumi.Input[Optional[str]] = None,
                                        network: pulumi.Input[Optional[str]] = None,
                                        private_cloud_gateway_id: pulumi.Input[Optional[str]] = None,
                                        search_domain_name: pulumi.Input[Optional[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetPrivatecloudgatewayDnsMapResult]
    func LookupPrivatecloudgatewayDnsMap(ctx *Context, args *LookupPrivatecloudgatewayDnsMapArgs, opts ...InvokeOption) (*LookupPrivatecloudgatewayDnsMapResult, error)
    func LookupPrivatecloudgatewayDnsMapOutput(ctx *Context, args *LookupPrivatecloudgatewayDnsMapOutputArgs, opts ...InvokeOption) LookupPrivatecloudgatewayDnsMapResultOutput

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

    public static class GetPrivatecloudgatewayDnsMap 
    {
        public static Task<GetPrivatecloudgatewayDnsMapResult> InvokeAsync(GetPrivatecloudgatewayDnsMapArgs args, InvokeOptions? opts = null)
        public static Output<GetPrivatecloudgatewayDnsMapResult> Invoke(GetPrivatecloudgatewayDnsMapInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPrivatecloudgatewayDnsMapResult> getPrivatecloudgatewayDnsMap(GetPrivatecloudgatewayDnsMapArgs args, InvokeOptions options)
    public static Output<GetPrivatecloudgatewayDnsMapResult> getPrivatecloudgatewayDnsMap(GetPrivatecloudgatewayDnsMapArgs args, InvokeOptions options)
    
    fn::invoke:
      function: spectrocloud:index/getPrivatecloudgatewayDnsMap:getPrivatecloudgatewayDnsMap
      arguments:
        # arguments dictionary
    data "spectrocloud_getprivatecloudgatewaydnsmap" "name" {
        # arguments
    }

    The following arguments are supported:

    PrivateCloudGatewayId string
    The ID of the private cloud gateway.
    SearchDomainName string
    The domain name used for DNS search queries within the private cloud.
    Id string
    The ID of this resource.
    Network string
    The network to which the private cloud gateway is mapped.
    PrivateCloudGatewayId string
    The ID of the private cloud gateway.
    SearchDomainName string
    The domain name used for DNS search queries within the private cloud.
    Id string
    The ID of this resource.
    Network string
    The network to which the private cloud gateway is mapped.
    private_cloud_gateway_id string
    The ID of the private cloud gateway.
    search_domain_name string
    The domain name used for DNS search queries within the private cloud.
    id string
    The ID of this resource.
    network string
    The network to which the private cloud gateway is mapped.
    privateCloudGatewayId String
    The ID of the private cloud gateway.
    searchDomainName String
    The domain name used for DNS search queries within the private cloud.
    id String
    The ID of this resource.
    network String
    The network to which the private cloud gateway is mapped.
    privateCloudGatewayId string
    The ID of the private cloud gateway.
    searchDomainName string
    The domain name used for DNS search queries within the private cloud.
    id string
    The ID of this resource.
    network string
    The network to which the private cloud gateway is mapped.
    private_cloud_gateway_id str
    The ID of the private cloud gateway.
    search_domain_name str
    The domain name used for DNS search queries within the private cloud.
    id str
    The ID of this resource.
    network str
    The network to which the private cloud gateway is mapped.
    privateCloudGatewayId String
    The ID of the private cloud gateway.
    searchDomainName String
    The domain name used for DNS search queries within the private cloud.
    id String
    The ID of this resource.
    network String
    The network to which the private cloud gateway is mapped.

    getPrivatecloudgatewayDnsMap Result

    The following output properties are available:

    DataCenter string
    The data center in which the private cloud resides.
    Id string
    The ID of this resource.
    Network string
    The network to which the private cloud gateway is mapped.
    PrivateCloudGatewayId string
    The ID of the private cloud gateway.
    SearchDomainName string
    The domain name used for DNS search queries within the private cloud.
    DataCenter string
    The data center in which the private cloud resides.
    Id string
    The ID of this resource.
    Network string
    The network to which the private cloud gateway is mapped.
    PrivateCloudGatewayId string
    The ID of the private cloud gateway.
    SearchDomainName string
    The domain name used for DNS search queries within the private cloud.
    data_center string
    The data center in which the private cloud resides.
    id string
    The ID of this resource.
    network string
    The network to which the private cloud gateway is mapped.
    private_cloud_gateway_id string
    The ID of the private cloud gateway.
    search_domain_name string
    The domain name used for DNS search queries within the private cloud.
    dataCenter String
    The data center in which the private cloud resides.
    id String
    The ID of this resource.
    network String
    The network to which the private cloud gateway is mapped.
    privateCloudGatewayId String
    The ID of the private cloud gateway.
    searchDomainName String
    The domain name used for DNS search queries within the private cloud.
    dataCenter string
    The data center in which the private cloud resides.
    id string
    The ID of this resource.
    network string
    The network to which the private cloud gateway is mapped.
    privateCloudGatewayId string
    The ID of the private cloud gateway.
    searchDomainName string
    The domain name used for DNS search queries within the private cloud.
    data_center str
    The data center in which the private cloud resides.
    id str
    The ID of this resource.
    network str
    The network to which the private cloud gateway is mapped.
    private_cloud_gateway_id str
    The ID of the private cloud gateway.
    search_domain_name str
    The domain name used for DNS search queries within the private cloud.
    dataCenter String
    The data center in which the private cloud resides.
    id String
    The ID of this resource.
    network String
    The network to which the private cloud gateway is mapped.
    privateCloudGatewayId String
    The ID of the private cloud gateway.
    searchDomainName String
    The domain name used for DNS search queries within the private cloud.

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    Viewing docs for spectrocloud 0.29.1
    published on Friday, May 8, 2026 by spectrocloud
      Try Pulumi Cloud free. Your team will thank you.