Azure Classic

v5.19.0 published on Friday, Sep 16, 2022 by Pulumi

getCAARecord

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Dns.CaaRecord("example", new()
    {
        ZoneName = "test-zone",
        ResourceGroupName = "test-rg",
    });

    return new Dictionary<string, object?>
    {
        ["dnsCaaRecordId"] = 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.NewCaaRecord(ctx, "example", &dns.CaaRecordArgs{
			ZoneName:          pulumi.String("test-zone"),
			ResourceGroupName: pulumi.String("test-rg"),
		})
		if err != nil {
			return err
		}
		ctx.Export("dnsCaaRecordId", example.ID())
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.dns.CaaRecord;
import com.pulumi.azure.dns.CaaRecordArgs;
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) {
        var example = new CaaRecord("example", CaaRecordArgs.builder()        
            .zoneName("test-zone")
            .resourceGroupName("test-rg")
            .build());

        ctx.export("dnsCaaRecordId", example.id());
    }
}
import pulumi
import pulumi_azure as azure

example = azure.dns.CaaRecord("example",
    zone_name="test-zone",
    resource_group_name="test-rg")
pulumi.export("dnsCaaRecordId", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.dns.CaaRecord("example", {
    zoneName: "test-zone",
    resourceGroupName: "test-rg",
});
export const dnsCaaRecordId = example.id;
resources:
  example:
    type: azure:dns:CaaRecord
    properties:
      zoneName: test-zone
      resourceGroupName: test-rg
outputs:
  dnsCaaRecordId: ${example.id}

Using getCAARecord

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 getCAARecord(args: GetCAARecordArgs, opts?: InvokeOptions): Promise<GetCAARecordResult>
function getCAARecordOutput(args: GetCAARecordOutputArgs, opts?: InvokeOptions): Output<GetCAARecordResult>
def get_caa_record(name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   zone_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetCAARecordResult
def get_caa_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[GetCAARecordResult]
func GetCAARecord(ctx *Context, args *GetCAARecordArgs, opts ...InvokeOption) (*GetCAARecordResult, error)
func GetCAARecordOutput(ctx *Context, args *GetCAARecordOutputArgs, opts ...InvokeOption) GetCAARecordResultOutput

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

public static class GetCAARecord 
{
    public static Task<GetCAARecordResult> InvokeAsync(GetCAARecordArgs args, InvokeOptions? opts = null)
    public static Output<GetCAARecordResult> Invoke(GetCAARecordInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCAARecordResult> getCAARecord(GetCAARecordArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: azure:dns/getCAARecord:getCAARecord
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the DNS CAA Record.

ResourceGroupName string

Specifies the resource group where the DNS Zone (parent resource) exists.

ZoneName string

Specifies the DNS Zone where the resource exists.

Name string

The name of the DNS CAA Record.

ResourceGroupName string

Specifies the resource group where the DNS Zone (parent resource) exists.

ZoneName string

Specifies the DNS Zone where the resource exists.

name String

The name of the DNS CAA Record.

resourceGroupName String

Specifies the resource group where the DNS Zone (parent resource) exists.

zoneName String

Specifies the DNS Zone where the resource exists.

name string

The name of the DNS CAA Record.

resourceGroupName string

Specifies the resource group where the DNS Zone (parent resource) exists.

zoneName string

Specifies the DNS Zone where the resource exists.

name str

The name of the DNS CAA Record.

resource_group_name str

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 CAA Record.

resourceGroupName String

Specifies the resource group where the DNS Zone (parent resource) exists.

zoneName String

Specifies the DNS Zone where the resource exists.

getCAARecord Result

The following output properties are available:

Fqdn string

The FQDN of the DNS CAA Record.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Records List<GetCAARecordRecord>

A list of values that make up the CAA record. Each record block supports fields documented below.

ResourceGroupName string
Tags Dictionary<string, string>

A mapping of tags assigned to the resource.

Ttl int

The Time To Live (TTL) of the DNS record in seconds.

ZoneName string
Fqdn string

The FQDN of the DNS CAA Record.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Records []GetCAARecordRecord

A list of values that make up the CAA record. Each record block supports fields documented below.

ResourceGroupName string
Tags map[string]string

A mapping of tags assigned to the resource.

Ttl int

The Time To Live (TTL) of the DNS record in seconds.

ZoneName string
fqdn String

The FQDN of the DNS CAA Record.

id String

The provider-assigned unique ID for this managed resource.

name String
records List<GetCAARecordRecord>

A list of values that make up the CAA record. Each record block supports fields documented below.

resourceGroupName String
tags Map<String,String>

A mapping of tags assigned to the resource.

ttl Integer

The Time To Live (TTL) of the DNS record in seconds.

zoneName String
fqdn string

The FQDN of the DNS CAA Record.

id string

The provider-assigned unique ID for this managed resource.

name string
records GetCAARecordRecord[]

A list of values that make up the CAA record. Each record block supports fields documented below.

resourceGroupName string
tags {[key: string]: string}

A mapping of tags assigned to the resource.

ttl number

The Time To Live (TTL) of the DNS record in seconds.

zoneName string
fqdn str

The FQDN of the DNS CAA Record.

id str

The provider-assigned unique ID for this managed resource.

name str
records Sequence[GetCAARecordRecord]

A list of values that make up the CAA record. Each record block supports fields documented below.

resource_group_name str
tags Mapping[str, str]

A mapping of tags assigned to the resource.

ttl int

The Time To Live (TTL) of the DNS record in seconds.

zone_name str
fqdn String

The FQDN of the DNS CAA Record.

id String

The provider-assigned unique ID for this managed resource.

name String
records List<Property Map>

A list of values that make up the CAA record. Each record block supports fields documented below.

resourceGroupName String
tags Map<String>

A mapping of tags assigned to the resource.

ttl Number

The Time To Live (TTL) of the DNS record in seconds.

zoneName String

Supporting Types

GetCAARecordRecord

Flags int

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

Tag string

A property tag, options are issue, issuewild and iodef.

Value string

A property value such as a registrar domain.

Flags int

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

Tag string

A property tag, options are issue, issuewild and iodef.

Value string

A property value such as a registrar domain.

flags Integer

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

tag String

A property tag, options are issue, issuewild and iodef.

value String

A property value such as a registrar domain.

flags number

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

tag string

A property tag, options are issue, issuewild and iodef.

value string

A property value such as a registrar domain.

flags int

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

tag str

A property tag, options are issue, issuewild and iodef.

value str

A property value such as a registrar domain.

flags Number

Extensible CAA flags, currently only 1 is implemented to set the issuer critical flag.

tag String

A property tag, options are issue, issuewild and iodef.

value String

A property value such as a registrar domain.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.