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

We recommend using Azure Native.

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

azure.privatedns.getResolverDnsForwardingRuleset

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 Dns Forwarding Ruleset.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.PrivateDns.GetResolverDnsForwardingRuleset.Invoke(new()
        {
            Name = "example-ruleset",
            ResourceGroupName = "example-ruleset-resourcegroup",
        });
    
    });
    
    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.LookupResolverDnsForwardingRuleset(ctx, &privatedns.LookupResolverDnsForwardingRulesetArgs{
    			Name:              "example-ruleset",
    			ResourceGroupName: "example-ruleset-resourcegroup",
    		}, 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.GetResolverDnsForwardingRulesetArgs;
    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.getResolverDnsForwardingRuleset(GetResolverDnsForwardingRulesetArgs.builder()
                .name("example-ruleset")
                .resourceGroupName("example-ruleset-resourcegroup")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.privatedns.get_resolver_dns_forwarding_ruleset(name="example-ruleset",
        resource_group_name="example-ruleset-resourcegroup")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.privatedns.getResolverDnsForwardingRuleset({
        name: "example-ruleset",
        resourceGroupName: "example-ruleset-resourcegroup",
    });
    
    variables:
      example:
        fn::invoke:
          Function: azure:privatedns:getResolverDnsForwardingRuleset
          Arguments:
            name: example-ruleset
            resourceGroupName: example-ruleset-resourcegroup
    

    Using getResolverDnsForwardingRuleset

    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 getResolverDnsForwardingRuleset(args: GetResolverDnsForwardingRulesetArgs, opts?: InvokeOptions): Promise<GetResolverDnsForwardingRulesetResult>
    function getResolverDnsForwardingRulesetOutput(args: GetResolverDnsForwardingRulesetOutputArgs, opts?: InvokeOptions): Output<GetResolverDnsForwardingRulesetResult>
    def get_resolver_dns_forwarding_ruleset(name: Optional[str] = None,
                                            resource_group_name: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetResolverDnsForwardingRulesetResult
    def get_resolver_dns_forwarding_ruleset_output(name: Optional[pulumi.Input[str]] = None,
                                            resource_group_name: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetResolverDnsForwardingRulesetResult]
    func LookupResolverDnsForwardingRuleset(ctx *Context, args *LookupResolverDnsForwardingRulesetArgs, opts ...InvokeOption) (*LookupResolverDnsForwardingRulesetResult, error)
    func LookupResolverDnsForwardingRulesetOutput(ctx *Context, args *LookupResolverDnsForwardingRulesetOutputArgs, opts ...InvokeOption) LookupResolverDnsForwardingRulesetResultOutput

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

    public static class GetResolverDnsForwardingRuleset 
    {
        public static Task<GetResolverDnsForwardingRulesetResult> InvokeAsync(GetResolverDnsForwardingRulesetArgs args, InvokeOptions? opts = null)
        public static Output<GetResolverDnsForwardingRulesetResult> Invoke(GetResolverDnsForwardingRulesetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResolverDnsForwardingRulesetResult> getResolverDnsForwardingRuleset(GetResolverDnsForwardingRulesetArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:privatedns/getResolverDnsForwardingRuleset:getResolverDnsForwardingRuleset
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the existing Private DNS Resolver Dns Forwarding Ruleset.
    ResourceGroupName string
    Name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset exists.
    Name string
    Name of the existing Private DNS Resolver Dns Forwarding Ruleset.
    ResourceGroupName string
    Name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name String
    Name of the existing Private DNS Resolver Dns Forwarding Ruleset.
    resourceGroupName String
    Name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name string
    Name of the existing Private DNS Resolver Dns Forwarding Ruleset.
    resourceGroupName string
    Name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name str
    Name of the existing Private DNS Resolver Dns Forwarding Ruleset.
    resource_group_name str
    Name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name String
    Name of the existing Private DNS Resolver Dns Forwarding Ruleset.
    resourceGroupName String
    Name of the Resource Group where the Private DNS Resolver Dns Forwarding Ruleset exists.

    getResolverDnsForwardingRuleset 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 Dns Forwarding Ruleset exists.
    Name string
    PrivateDnsResolverOutboundEndpointIds List<string>
    The IDs list of the Private DNS Resolver Outbound Endpoints that are linked to the Private DNS Resolver Dns Forwarding Ruleset.
    ResourceGroupName string
    Tags Dictionary<string, string>
    The tags assigned to the Private DNS Resolver Dns Forwarding Ruleset.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region where the Private DNS Resolver Dns Forwarding Ruleset exists.
    Name string
    PrivateDnsResolverOutboundEndpointIds []string
    The IDs list of the Private DNS Resolver Outbound Endpoints that are linked to the Private DNS Resolver Dns Forwarding Ruleset.
    ResourceGroupName string
    Tags map[string]string
    The tags assigned to the Private DNS Resolver Dns Forwarding Ruleset.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name String
    privateDnsResolverOutboundEndpointIds List<String>
    The IDs list of the Private DNS Resolver Outbound Endpoints that are linked to the Private DNS Resolver Dns Forwarding Ruleset.
    resourceGroupName String
    tags Map<String,String>
    The tags assigned to the Private DNS Resolver Dns Forwarding Ruleset.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The Azure Region where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name string
    privateDnsResolverOutboundEndpointIds string[]
    The IDs list of the Private DNS Resolver Outbound Endpoints that are linked to the Private DNS Resolver Dns Forwarding Ruleset.
    resourceGroupName string
    tags {[key: string]: string}
    The tags assigned to the Private DNS Resolver Dns Forwarding Ruleset.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    The Azure Region where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name str
    private_dns_resolver_outbound_endpoint_ids Sequence[str]
    The IDs list of the Private DNS Resolver Outbound Endpoints that are linked to the Private DNS Resolver Dns Forwarding Ruleset.
    resource_group_name str
    tags Mapping[str, str]
    The tags assigned to the Private DNS Resolver Dns Forwarding Ruleset.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Private DNS Resolver Dns Forwarding Ruleset exists.
    name String
    privateDnsResolverOutboundEndpointIds List<String>
    The IDs list of the Private DNS Resolver Outbound Endpoints that are linked to the Private DNS Resolver Dns Forwarding Ruleset.
    resourceGroupName String
    tags Map<String>
    The tags assigned to the Private DNS Resolver Dns Forwarding Ruleset.

    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