getSoaRecord

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.dns.getSoaRecord({
zoneName: "test-zone",
resourceGroupName: "test-rg",
});
export const dnsSoaRecordId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.dns.get_soa_record(zone_name="test-zone",
resource_group_name="test-rg")
pulumi.export("dnsSoaRecordId", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Dns.GetSoaRecord.Invoke(new()
{
ZoneName = "test-zone",
ResourceGroupName = "test-rg",
});
return new Dictionary<string, object?>
{
["dnsSoaRecordId"] = example.Apply(getSoaRecordResult => getSoaRecordResult.Id),
};
});
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.GetSoaRecord(ctx, &dns.GetSoaRecordArgs{
ZoneName: "test-zone",
ResourceGroupName: "test-rg",
}, nil)
if err != nil {
return err
}
ctx.Export("dnsSoaRecordId", 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.DnsFunctions;
import com.pulumi.azure.dns.inputs.GetSoaRecordArgs;
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.getSoaRecord(GetSoaRecordArgs.builder()
.zoneName("test-zone")
.resourceGroupName("test-rg")
.build());
ctx.export("dnsSoaRecordId", example.applyValue(getSoaRecordResult -> getSoaRecordResult.id()));
}
}
variables:
example:
fn::invoke:
function: azure:dns:getSoaRecord
arguments:
zoneName: test-zone
resourceGroupName: test-rg
outputs:
dnsSoaRecordId: ${example.id}

Return

A collection of values returned by getSoaRecord.

Parameters

argument

A collection of arguments for invoking getSoaRecord.


suspend fun getSoaRecord(name: String? = null, resourceGroupName: String, zoneName: String): GetSoaRecordResult

Return

A collection of values returned by getSoaRecord.

Parameters

name

The name of the DNS SOA Record.

resourceGroupName

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

zoneName

Specifies the DNS Zone where the resource exists.

See also


Return

A collection of values returned by getSoaRecord.

Parameters

argument

Builder for com.pulumi.azure.dns.kotlin.inputs.GetSoaRecordPlainArgs.

See also