1. Packages
  2. Azure Native v2
  3. API Docs
  4. network
  5. getDnsResourceReferenceByTarResources
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.network.getDnsResourceReferenceByTarResources

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Returns the DNS records specified by the referencing targetResourceIds. Azure REST API version: 2018-05-01.

Other available API versions: 2023-07-01-preview.

Using getDnsResourceReferenceByTarResources

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 getDnsResourceReferenceByTarResources(args: GetDnsResourceReferenceByTarResourcesArgs, opts?: InvokeOptions): Promise<GetDnsResourceReferenceByTarResourcesResult>
function getDnsResourceReferenceByTarResourcesOutput(args: GetDnsResourceReferenceByTarResourcesOutputArgs, opts?: InvokeOptions): Output<GetDnsResourceReferenceByTarResourcesResult>
Copy
def get_dns_resource_reference_by_tar_resources(target_resources: Optional[Sequence[SubResource]] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetDnsResourceReferenceByTarResourcesResult
def get_dns_resource_reference_by_tar_resources_output(target_resources: Optional[pulumi.Input[Sequence[pulumi.Input[SubResourceArgs]]]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetDnsResourceReferenceByTarResourcesResult]
Copy
func GetDnsResourceReferenceByTarResources(ctx *Context, args *GetDnsResourceReferenceByTarResourcesArgs, opts ...InvokeOption) (*GetDnsResourceReferenceByTarResourcesResult, error)
func GetDnsResourceReferenceByTarResourcesOutput(ctx *Context, args *GetDnsResourceReferenceByTarResourcesOutputArgs, opts ...InvokeOption) GetDnsResourceReferenceByTarResourcesResultOutput
Copy

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

public static class GetDnsResourceReferenceByTarResources 
{
    public static Task<GetDnsResourceReferenceByTarResourcesResult> InvokeAsync(GetDnsResourceReferenceByTarResourcesArgs args, InvokeOptions? opts = null)
    public static Output<GetDnsResourceReferenceByTarResourcesResult> Invoke(GetDnsResourceReferenceByTarResourcesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDnsResourceReferenceByTarResourcesResult> getDnsResourceReferenceByTarResources(GetDnsResourceReferenceByTarResourcesArgs args, InvokeOptions options)
public static Output<GetDnsResourceReferenceByTarResourcesResult> getDnsResourceReferenceByTarResources(GetDnsResourceReferenceByTarResourcesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:network:getDnsResourceReferenceByTarResources
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TargetResources List<Pulumi.AzureNative.Network.Inputs.SubResource>
A list of references to azure resources for which referencing dns records need to be queried.
TargetResources []SubResource
A list of references to azure resources for which referencing dns records need to be queried.
targetResources List<SubResource>
A list of references to azure resources for which referencing dns records need to be queried.
targetResources SubResource[]
A list of references to azure resources for which referencing dns records need to be queried.
target_resources Sequence[SubResource]
A list of references to azure resources for which referencing dns records need to be queried.
targetResources List<Property Map>
A list of references to azure resources for which referencing dns records need to be queried.

getDnsResourceReferenceByTarResources Result

The following output properties are available:

DnsResourceReferences List<Pulumi.AzureNative.Network.Outputs.DnsResourceReferenceResponse>
The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request
DnsResourceReferences []DnsResourceReferenceResponse
The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request
dnsResourceReferences List<DnsResourceReferenceResponse>
The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request
dnsResourceReferences DnsResourceReferenceResponse[]
The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request
dns_resource_references Sequence[DnsResourceReferenceResponse]
The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request
dnsResourceReferences List<Property Map>
The result of dns resource reference request. A list of dns resource references for each of the azure resource in the request

Supporting Types

DnsResourceReferenceResponse

DnsResources List<Pulumi.AzureNative.Network.Inputs.SubResourceResponse>
A list of dns Records
TargetResource Pulumi.AzureNative.Network.Inputs.SubResourceResponse
A reference to an azure resource from where the dns resource value is taken.
DnsResources []SubResourceResponse
A list of dns Records
TargetResource SubResourceResponse
A reference to an azure resource from where the dns resource value is taken.
dnsResources List<SubResourceResponse>
A list of dns Records
targetResource SubResourceResponse
A reference to an azure resource from where the dns resource value is taken.
dnsResources SubResourceResponse[]
A list of dns Records
targetResource SubResourceResponse
A reference to an azure resource from where the dns resource value is taken.
dns_resources Sequence[SubResourceResponse]
A list of dns Records
target_resource SubResourceResponse
A reference to an azure resource from where the dns resource value is taken.
dnsResources List<Property Map>
A list of dns Records
targetResource Property Map
A reference to an azure resource from where the dns resource value is taken.

SubResource

Id string
Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
Id string
Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
id String
Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
id string
Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
id str
Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
id String
Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.

SubResourceResponse

Id This property is required. string
Resource ID.
Id This property is required. string
Resource ID.
id This property is required. String
Resource ID.
id This property is required. string
Resource ID.
id This property is required. str
Resource ID.
id This property is required. String
Resource ID.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi