get CAARecord
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.dns.getCAARecord({
name: "test",
zoneName: "test-zone",
resourceGroupName: "test-rg",
});
export const dnsCaaRecordId = example.then(example => example.id);
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.dns.get_caa_record(name="test",
zone_name="test-zone",
resource_group_name="test-rg")
pulumi.export("dnsCaaRecordId", example.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Dns.GetCAARecord.Invoke(new()
{
Name = "test",
ZoneName = "test-zone",
ResourceGroupName = "test-rg",
});
return new Dictionary<string, object?>
{
["dnsCaaRecordId"] = example.Apply(getCAARecordResult => getCAARecordResult.Id),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := dns.GetCAARecord(ctx, &dns.GetCAARecordArgs{
Name: "test",
ZoneName: "test-zone",
ResourceGroupName: "test-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("dnsCaaRecordId", example.Id)
return nil
})
}
Content copied to clipboard
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.GetCAARecordArgs;
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.getCAARecord(GetCAARecordArgs.builder()
.name("test")
.zoneName("test-zone")
.resourceGroupName("test-rg")
.build());
ctx.export("dnsCaaRecordId", example.applyValue(getCAARecordResult -> getCAARecordResult.id()));
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:dns:getCAARecord
arguments:
name: test
zoneName: test-zone
resourceGroupName: test-rg
outputs:
dnsCaaRecordId: ${example.id}
Content copied to clipboard
Return
A collection of values returned by getCAARecord.
Parameters
argument
A collection of arguments for invoking getCAARecord.
suspend fun getCAARecord(name: String, resourceGroupName: String, zoneName: String): GetCAARecordResult
Return
A collection of values returned by getCAARecord.
Parameters
name
The name of the DNS CAA Record.
resource Group Name
Specifies the resource group where the DNS Zone (parent resource) exists.
zone Name
Specifies the DNS Zone where the resource exists.
See also
suspend fun getCAARecord(argument: suspend GetCAARecordPlainArgsBuilder.() -> Unit): GetCAARecordResult
Return
A collection of values returned by getCAARecord.
Parameters
argument
Builder for com.pulumi.azure.dns.kotlin.inputs.GetCAARecordPlainArgs.