We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.privatedns.getResolverVirtualNetworkLink
Explore with Pulumi AI
Gets information about an existing Private DNS Resolver Virtual Network Link.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.privatedns.getResolverVirtualNetworkLink({
name: "example-link",
dnsForwardingRulesetId: "example-dns-forwarding-ruleset-id",
});
import pulumi
import pulumi_azure as azure
example = azure.privatedns.get_resolver_virtual_network_link(name="example-link",
dns_forwarding_ruleset_id="example-dns-forwarding-ruleset-id")
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.LookupResolverVirtualNetworkLink(ctx, &privatedns.LookupResolverVirtualNetworkLinkArgs{
Name: "example-link",
DnsForwardingRulesetId: "example-dns-forwarding-ruleset-id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.PrivateDns.GetResolverVirtualNetworkLink.Invoke(new()
{
Name = "example-link",
DnsForwardingRulesetId = "example-dns-forwarding-ruleset-id",
});
});
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.GetResolverVirtualNetworkLinkArgs;
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.getResolverVirtualNetworkLink(GetResolverVirtualNetworkLinkArgs.builder()
.name("example-link")
.dnsForwardingRulesetId("example-dns-forwarding-ruleset-id")
.build());
}
}
variables:
example:
fn::invoke:
Function: azure:privatedns:getResolverVirtualNetworkLink
Arguments:
name: example-link
dnsForwardingRulesetId: example-dns-forwarding-ruleset-id
Using getResolverVirtualNetworkLink
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 getResolverVirtualNetworkLink(args: GetResolverVirtualNetworkLinkArgs, opts?: InvokeOptions): Promise<GetResolverVirtualNetworkLinkResult>
function getResolverVirtualNetworkLinkOutput(args: GetResolverVirtualNetworkLinkOutputArgs, opts?: InvokeOptions): Output<GetResolverVirtualNetworkLinkResult>
def get_resolver_virtual_network_link(dns_forwarding_ruleset_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResolverVirtualNetworkLinkResult
def get_resolver_virtual_network_link_output(dns_forwarding_ruleset_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResolverVirtualNetworkLinkResult]
func LookupResolverVirtualNetworkLink(ctx *Context, args *LookupResolverVirtualNetworkLinkArgs, opts ...InvokeOption) (*LookupResolverVirtualNetworkLinkResult, error)
func LookupResolverVirtualNetworkLinkOutput(ctx *Context, args *LookupResolverVirtualNetworkLinkOutputArgs, opts ...InvokeOption) LookupResolverVirtualNetworkLinkResultOutput
> Note: This function is named LookupResolverVirtualNetworkLink
in the Go SDK.
public static class GetResolverVirtualNetworkLink
{
public static Task<GetResolverVirtualNetworkLinkResult> InvokeAsync(GetResolverVirtualNetworkLinkArgs args, InvokeOptions? opts = null)
public static Output<GetResolverVirtualNetworkLinkResult> Invoke(GetResolverVirtualNetworkLinkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResolverVirtualNetworkLinkResult> getResolverVirtualNetworkLink(GetResolverVirtualNetworkLinkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:privatedns/getResolverVirtualNetworkLink:getResolverVirtualNetworkLink
arguments:
# arguments dictionary
The following arguments are supported:
- Dns
Forwarding stringRuleset Id - ID of the Private DNS Resolver DNS Forwarding Ruleset.
- Name string
- Name of the Private DNS Resolver Virtual Network Link.
- Dns
Forwarding stringRuleset Id - ID of the Private DNS Resolver DNS Forwarding Ruleset.
- Name string
- Name of the Private DNS Resolver Virtual Network Link.
- dns
Forwarding StringRuleset Id - ID of the Private DNS Resolver DNS Forwarding Ruleset.
- name String
- Name of the Private DNS Resolver Virtual Network Link.
- dns
Forwarding stringRuleset Id - ID of the Private DNS Resolver DNS Forwarding Ruleset.
- name string
- Name of the Private DNS Resolver Virtual Network Link.
- dns_
forwarding_ strruleset_ id - ID of the Private DNS Resolver DNS Forwarding Ruleset.
- name str
- Name of the Private DNS Resolver Virtual Network Link.
- dns
Forwarding StringRuleset Id - ID of the Private DNS Resolver DNS Forwarding Ruleset.
- name String
- Name of the Private DNS Resolver Virtual Network Link.
getResolverVirtualNetworkLink Result
The following output properties are available:
- Dns
Forwarding stringRuleset Id - Id string
- The provider-assigned unique ID for this managed resource.
- Metadata Dictionary<string, string>
- The metadata attached to the Private DNS Resolver Virtual Network Link.
- Name string
- Virtual
Network stringId - The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
- Dns
Forwarding stringRuleset Id - Id string
- The provider-assigned unique ID for this managed resource.
- Metadata map[string]string
- The metadata attached to the Private DNS Resolver Virtual Network Link.
- Name string
- Virtual
Network stringId - The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
- dns
Forwarding StringRuleset Id - id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String,String>
- The metadata attached to the Private DNS Resolver Virtual Network Link.
- name String
- virtual
Network StringId - The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
- dns
Forwarding stringRuleset Id - id string
- The provider-assigned unique ID for this managed resource.
- metadata {[key: string]: string}
- The metadata attached to the Private DNS Resolver Virtual Network Link.
- name string
- virtual
Network stringId - The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
- dns_
forwarding_ strruleset_ id - id str
- The provider-assigned unique ID for this managed resource.
- metadata Mapping[str, str]
- The metadata attached to the Private DNS Resolver Virtual Network Link.
- name str
- virtual_
network_ strid - The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
- dns
Forwarding StringRuleset Id - id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String>
- The metadata attached to the Private DNS Resolver Virtual Network Link.
- name String
- virtual
Network StringId - The ID of the Virtual Network that is linked to the Private DNS Resolver Virtual Network Link.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.