1. Packages
  2. Azure Classic
  3. API Docs
  4. privatedns
  5. getResolverOutboundEndpoint

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.privatedns.getResolverOutboundEndpoint

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Gets information about an existing Private DNS Resolver Outbound Endpoint.

Example Usage

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

const example = azure.privatedns.getResolverOutboundEndpoint({
    name: "example-endpoint",
    privateDnsResolverId: "example-private-dns-resolver-id",
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.privatedns.get_resolver_outbound_endpoint(name="example-endpoint",
    private_dns_resolver_id="example-private-dns-resolver-id")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/privatedns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := privatedns.LookupResolverOutboundEndpoint(ctx, &privatedns.LookupResolverOutboundEndpointArgs{
			Name:                 "example-endpoint",
			PrivateDnsResolverId: "example-private-dns-resolver-id",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.PrivateDns.GetResolverOutboundEndpoint.Invoke(new()
    {
        Name = "example-endpoint",
        PrivateDnsResolverId = "example-private-dns-resolver-id",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.privatedns.PrivatednsFunctions;
import com.pulumi.azure.privatedns.inputs.GetResolverOutboundEndpointArgs;
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 = PrivatednsFunctions.getResolverOutboundEndpoint(GetResolverOutboundEndpointArgs.builder()
            .name("example-endpoint")
            .privateDnsResolverId("example-private-dns-resolver-id")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:privatedns:getResolverOutboundEndpoint
      arguments:
        name: example-endpoint
        privateDnsResolverId: example-private-dns-resolver-id
Copy

Using getResolverOutboundEndpoint

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 getResolverOutboundEndpoint(args: GetResolverOutboundEndpointArgs, opts?: InvokeOptions): Promise<GetResolverOutboundEndpointResult>
function getResolverOutboundEndpointOutput(args: GetResolverOutboundEndpointOutputArgs, opts?: InvokeOptions): Output<GetResolverOutboundEndpointResult>
Copy
def get_resolver_outbound_endpoint(name: Optional[str] = None,
                                   private_dns_resolver_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetResolverOutboundEndpointResult
def get_resolver_outbound_endpoint_output(name: Optional[pulumi.Input[str]] = None,
                                   private_dns_resolver_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetResolverOutboundEndpointResult]
Copy
func LookupResolverOutboundEndpoint(ctx *Context, args *LookupResolverOutboundEndpointArgs, opts ...InvokeOption) (*LookupResolverOutboundEndpointResult, error)
func LookupResolverOutboundEndpointOutput(ctx *Context, args *LookupResolverOutboundEndpointOutputArgs, opts ...InvokeOption) LookupResolverOutboundEndpointResultOutput
Copy

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

public static class GetResolverOutboundEndpoint 
{
    public static Task<GetResolverOutboundEndpointResult> InvokeAsync(GetResolverOutboundEndpointArgs args, InvokeOptions? opts = null)
    public static Output<GetResolverOutboundEndpointResult> Invoke(GetResolverOutboundEndpointInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetResolverOutboundEndpointResult> getResolverOutboundEndpoint(GetResolverOutboundEndpointArgs args, InvokeOptions options)
public static Output<GetResolverOutboundEndpointResult> getResolverOutboundEndpoint(GetResolverOutboundEndpointArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:privatedns/getResolverOutboundEndpoint:getResolverOutboundEndpoint
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the Private DNS Resolver Outbound Endpoint.
PrivateDnsResolverId This property is required. string
ID of the Private DNS Resolver Outbound Endpoint.
Name This property is required. string
Name of the Private DNS Resolver Outbound Endpoint.
PrivateDnsResolverId This property is required. string
ID of the Private DNS Resolver Outbound Endpoint.
name This property is required. String
Name of the Private DNS Resolver Outbound Endpoint.
privateDnsResolverId This property is required. String
ID of the Private DNS Resolver Outbound Endpoint.
name This property is required. string
Name of the Private DNS Resolver Outbound Endpoint.
privateDnsResolverId This property is required. string
ID of the Private DNS Resolver Outbound Endpoint.
name This property is required. str
Name of the Private DNS Resolver Outbound Endpoint.
private_dns_resolver_id This property is required. str
ID of the Private DNS Resolver Outbound Endpoint.
name This property is required. String
Name of the Private DNS Resolver Outbound Endpoint.
privateDnsResolverId This property is required. String
ID of the Private DNS Resolver Outbound Endpoint.

getResolverOutboundEndpoint Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Location string
The Azure Region where the Private DNS Resolver Outbound Endpoint exists.
Name string
PrivateDnsResolverId string
SubnetId string
The ID of the Subnet that is linked to the Private DNS Resolver Outbound Endpoint.
Tags Dictionary<string, string>
The tags assigned to the Private DNS Resolver Outbound Endpoint.
Id string
The provider-assigned unique ID for this managed resource.
Location string
The Azure Region where the Private DNS Resolver Outbound Endpoint exists.
Name string
PrivateDnsResolverId string
SubnetId string
The ID of the Subnet that is linked to the Private DNS Resolver Outbound Endpoint.
Tags map[string]string
The tags assigned to the Private DNS Resolver Outbound Endpoint.
id String
The provider-assigned unique ID for this managed resource.
location String
The Azure Region where the Private DNS Resolver Outbound Endpoint exists.
name String
privateDnsResolverId String
subnetId String
The ID of the Subnet that is linked to the Private DNS Resolver Outbound Endpoint.
tags Map<String,String>
The tags assigned to the Private DNS Resolver Outbound Endpoint.
id string
The provider-assigned unique ID for this managed resource.
location string
The Azure Region where the Private DNS Resolver Outbound Endpoint exists.
name string
privateDnsResolverId string
subnetId string
The ID of the Subnet that is linked to the Private DNS Resolver Outbound Endpoint.
tags {[key: string]: string}
The tags assigned to the Private DNS Resolver Outbound Endpoint.
id str
The provider-assigned unique ID for this managed resource.
location str
The Azure Region where the Private DNS Resolver Outbound Endpoint exists.
name str
private_dns_resolver_id str
subnet_id str
The ID of the Subnet that is linked to the Private DNS Resolver Outbound Endpoint.
tags Mapping[str, str]
The tags assigned to the Private DNS Resolver Outbound Endpoint.
id String
The provider-assigned unique ID for this managed resource.
location String
The Azure Region where the Private DNS Resolver Outbound Endpoint exists.
name String
privateDnsResolverId String
subnetId String
The ID of the Subnet that is linked to the Private DNS Resolver Outbound Endpoint.
tags Map<String>
The tags assigned to the Private DNS Resolver Outbound Endpoint.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi