getRecordSet

Get a DNS record set within Google Cloud DNS For more information see the official documentation and API

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.dns.DnsFunctions;
import com.pulumi.gcp.dns.inputs.GetManagedZoneArgs;
import com.pulumi.gcp.dns.inputs.GetRecordSetArgs;
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 sample = DnsFunctions.getManagedZone(GetManagedZoneArgs.builder()
.name("sample-zone")
.build());
final var rs = DnsFunctions.getRecordSet(GetRecordSetArgs.builder()
.managedZone(sample.applyValue(getManagedZoneResult -> getManagedZoneResult.name()))
.name(String.format("my-record.%s", sample.applyValue(getManagedZoneResult -> getManagedZoneResult.dnsName())))
.type("A")
.build());
}
}

Return

A collection of values returned by getRecordSet.

Parameters

argument

A collection of arguments for invoking getRecordSet.


suspend fun getRecordSet(managedZone: String, name: String, project: String? = null, type: String): GetRecordSetResult

Return

A collection of values returned by getRecordSet.

Parameters

managedZone

The Name of the zone.

name

The DNS name for the resource.

project

The ID of the project for the Google Cloud.

See also


Return

A collection of values returned by getRecordSet.

Parameters

argument

Builder for com.pulumi.gcp.dns.kotlin.inputs.GetRecordSetPlainArgs.

See also