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

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

azure.privatedns.getResolverOutboundEndpoint

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi

    Gets information about an existing Private DNS Resolver Outbound Endpoint.

    Example Usage

    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",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/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
    	})
    }
    
    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());
    
        }
    }
    
    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")
    
    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",
    });
    
    variables:
      example:
        fn::invoke:
          Function: azure:privatedns:getResolverOutboundEndpoint
          Arguments:
            name: example-endpoint
            privateDnsResolverId: example-private-dns-resolver-id
    

    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>
    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]
    func LookupResolverOutboundEndpoint(ctx *Context, args *LookupResolverOutboundEndpointArgs, opts ...InvokeOption) (*LookupResolverOutboundEndpointResult, error)
    func LookupResolverOutboundEndpointOutput(ctx *Context, args *LookupResolverOutboundEndpointOutputArgs, opts ...InvokeOption) LookupResolverOutboundEndpointResultOutput

    > 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)
    }
    public static CompletableFuture<GetResolverOutboundEndpointResult> getResolverOutboundEndpoint(GetResolverOutboundEndpointArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:privatedns/getResolverOutboundEndpoint:getResolverOutboundEndpoint
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the Private DNS Resolver Outbound Endpoint.
    PrivateDnsResolverId string
    ID of the Private DNS Resolver Outbound Endpoint.
    Name string
    Name of the Private DNS Resolver Outbound Endpoint.
    PrivateDnsResolverId string
    ID of the Private DNS Resolver Outbound Endpoint.
    name String
    Name of the Private DNS Resolver Outbound Endpoint.
    privateDnsResolverId String
    ID of the Private DNS Resolver Outbound Endpoint.
    name string
    Name of the Private DNS Resolver Outbound Endpoint.
    privateDnsResolverId string
    ID of the Private DNS Resolver Outbound Endpoint.
    name str
    Name of the Private DNS Resolver Outbound Endpoint.
    private_dns_resolver_id str
    ID of the Private DNS Resolver Outbound Endpoint.
    name String
    Name of the Private DNS Resolver Outbound Endpoint.
    privateDnsResolverId 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.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.67.0 published on Wednesday, Feb 21, 2024 by Pulumi