We recommend using Azure Native.
Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi
azure.dns.getAAAARecord
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.dns.getAAAARecord({
name: "test",
zoneName: "test-zone",
resourceGroupName: "test-rg",
});
export const dnsAaaaRecordId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.dns.get_aaaa_record(name="test",
zone_name="test-zone",
resource_group_name="test-rg")
pulumi.export("dnsAaaaRecordId", example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := dns.GetAAAARecord(ctx, &dns.GetAAAARecordArgs{
Name: "test",
ZoneName: "test-zone",
ResourceGroupName: "test-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("dnsAaaaRecordId", example.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Dns.GetAAAARecord.Invoke(new()
{
Name = "test",
ZoneName = "test-zone",
ResourceGroupName = "test-rg",
});
return new Dictionary<string, object?>
{
["dnsAaaaRecordId"] = example.Apply(getAAAARecordResult => getAAAARecordResult.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.dns.DnsFunctions;
import com.pulumi.azure.dns.inputs.GetAAAARecordArgs;
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 = DnsFunctions.getAAAARecord(GetAAAARecordArgs.builder()
.name("test")
.zoneName("test-zone")
.resourceGroupName("test-rg")
.build());
ctx.export("dnsAaaaRecordId", example.applyValue(getAAAARecordResult -> getAAAARecordResult.id()));
}
}
variables:
example:
fn::invoke:
Function: azure:dns:getAAAARecord
Arguments:
name: test
zoneName: test-zone
resourceGroupName: test-rg
outputs:
dnsAaaaRecordId: ${example.id}
Using getAAAARecord
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 getAAAARecord(args: GetAAAARecordArgs, opts?: InvokeOptions): Promise<GetAAAARecordResult>
function getAAAARecordOutput(args: GetAAAARecordOutputArgs, opts?: InvokeOptions): Output<GetAAAARecordResult>
def get_aaaa_record(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
zone_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAAAARecordResult
def get_aaaa_record_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
zone_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAAAARecordResult]
func GetAAAARecord(ctx *Context, args *GetAAAARecordArgs, opts ...InvokeOption) (*GetAAAARecordResult, error)
func GetAAAARecordOutput(ctx *Context, args *GetAAAARecordOutputArgs, opts ...InvokeOption) GetAAAARecordResultOutput
> Note: This function is named GetAAAARecord
in the Go SDK.
public static class GetAAAARecord
{
public static Task<GetAAAARecordResult> InvokeAsync(GetAAAARecordArgs args, InvokeOptions? opts = null)
public static Output<GetAAAARecordResult> Invoke(GetAAAARecordInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAAAARecordResult> getAAAARecord(GetAAAARecordArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:dns/getAAAARecord:getAAAARecord
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the DNS AAAA Record.
- Resource
Group stringName - Specifies the resource group where the DNS Zone (parent resource) exists.
- Zone
Name string - Specifies the DNS Zone where the resource exists.
- Name string
- The name of the DNS AAAA Record.
- Resource
Group stringName - Specifies the resource group where the DNS Zone (parent resource) exists.
- Zone
Name string - Specifies the DNS Zone where the resource exists.
- name String
- The name of the DNS AAAA Record.
- resource
Group StringName - Specifies the resource group where the DNS Zone (parent resource) exists.
- zone
Name String - Specifies the DNS Zone where the resource exists.
- name string
- The name of the DNS AAAA Record.
- resource
Group stringName - Specifies the resource group where the DNS Zone (parent resource) exists.
- zone
Name string - Specifies the DNS Zone where the resource exists.
- name str
- The name of the DNS AAAA Record.
- resource_
group_ strname - Specifies the resource group where the DNS Zone (parent resource) exists.
- zone_
name str - Specifies the DNS Zone where the resource exists.
- name String
- The name of the DNS AAAA Record.
- resource
Group StringName - Specifies the resource group where the DNS Zone (parent resource) exists.
- zone
Name String - Specifies the DNS Zone where the resource exists.
getAAAARecord Result
The following output properties are available:
- Fqdn string
- The FQDN of the DNS AAAA Record.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Records List<string>
- List of IPv6 Addresses.
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags assigned to the resource.
- Target
Resource stringId - The Azure resource id of the target object from where the dns resource value is taken.
- Ttl int
- The Time To Live (TTL) of the DNS record in seconds.
- Zone
Name string
- Fqdn string
- The FQDN of the DNS AAAA Record.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Records []string
- List of IPv6 Addresses.
- Resource
Group stringName - map[string]string
- A mapping of tags assigned to the resource.
- Target
Resource stringId - The Azure resource id of the target object from where the dns resource value is taken.
- Ttl int
- The Time To Live (TTL) of the DNS record in seconds.
- Zone
Name string
- fqdn String
- The FQDN of the DNS AAAA Record.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- records List<String>
- List of IPv6 Addresses.
- resource
Group StringName - Map<String,String>
- A mapping of tags assigned to the resource.
- target
Resource StringId - The Azure resource id of the target object from where the dns resource value is taken.
- ttl Integer
- The Time To Live (TTL) of the DNS record in seconds.
- zone
Name String
- fqdn string
- The FQDN of the DNS AAAA Record.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- records string[]
- List of IPv6 Addresses.
- resource
Group stringName - {[key: string]: string}
- A mapping of tags assigned to the resource.
- target
Resource stringId - The Azure resource id of the target object from where the dns resource value is taken.
- ttl number
- The Time To Live (TTL) of the DNS record in seconds.
- zone
Name string
- fqdn str
- The FQDN of the DNS AAAA Record.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- records Sequence[str]
- List of IPv6 Addresses.
- resource_
group_ strname - Mapping[str, str]
- A mapping of tags assigned to the resource.
- target_
resource_ strid - The Azure resource id of the target object from where the dns resource value is taken.
- ttl int
- The Time To Live (TTL) of the DNS record in seconds.
- zone_
name str
- fqdn String
- The FQDN of the DNS AAAA Record.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- records List<String>
- List of IPv6 Addresses.
- resource
Group StringName - Map<String>
- A mapping of tags assigned to the resource.
- target
Resource StringId - The Azure resource id of the target object from where the dns resource value is taken.
- ttl Number
- The Time To Live (TTL) of the DNS record in seconds.
- zone
Name String
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.