Google Cloud Classic v7.29.0 published on Wednesday, Jun 26, 2024 by Pulumi
gcp.dns.getRecordSet
Explore with Pulumi AI
Get a DNS record set within Google Cloud DNS For more information see the official documentation and API
Example Usage
data "google_dns_managed_zone" "sample" {
  name = "sample-zone"
}
data "google_dns_record_set" "rs" {
  managed_zone = data.google_dns_managed_zone.sample.name
  name = "my-record.${data.google_dns_managed_zone.sample.dns_name}"
  type = "A"
}
Using getRecordSet
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 getRecordSet(args: GetRecordSetArgs, opts?: InvokeOptions): Promise<GetRecordSetResult>
function getRecordSetOutput(args: GetRecordSetOutputArgs, opts?: InvokeOptions): Output<GetRecordSetResult>def get_record_set(managed_zone: Optional[str] = None,
                   name: Optional[str] = None,
                   project: Optional[str] = None,
                   type: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRecordSetResult
def get_record_set_output(managed_zone: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   project: Optional[pulumi.Input[str]] = None,
                   type: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetRecordSetResult]func LookupRecordSet(ctx *Context, args *LookupRecordSetArgs, opts ...InvokeOption) (*LookupRecordSetResult, error)
func LookupRecordSetOutput(ctx *Context, args *LookupRecordSetOutputArgs, opts ...InvokeOption) LookupRecordSetResultOutput> Note: This function is named LookupRecordSet in the Go SDK.
public static class GetRecordSet 
{
    public static Task<GetRecordSetResult> InvokeAsync(GetRecordSetArgs args, InvokeOptions? opts = null)
    public static Output<GetRecordSetResult> Invoke(GetRecordSetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRecordSetResult> getRecordSet(GetRecordSetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: gcp:dns/getRecordSet:getRecordSet
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Managed
Zone string - The Name of the zone.
 - Name string
 - The DNS name for the resource.
 - Type string
 - The RRSet type. See this table for supported types.
 - Project string
 - The ID of the project for the Google Cloud.
 
- Managed
Zone string - The Name of the zone.
 - Name string
 - The DNS name for the resource.
 - Type string
 - The RRSet type. See this table for supported types.
 - Project string
 - The ID of the project for the Google Cloud.
 
- managed
Zone String - The Name of the zone.
 - name String
 - The DNS name for the resource.
 - type String
 - The RRSet type. See this table for supported types.
 - project String
 - The ID of the project for the Google Cloud.
 
- managed
Zone string - The Name of the zone.
 - name string
 - The DNS name for the resource.
 - type string
 - The RRSet type. See this table for supported types.
 - project string
 - The ID of the project for the Google Cloud.
 
- managed_
zone str - The Name of the zone.
 - name str
 - The DNS name for the resource.
 - type str
 - The RRSet type. See this table for supported types.
 - project str
 - The ID of the project for the Google Cloud.
 
- managed
Zone String - The Name of the zone.
 - name String
 - The DNS name for the resource.
 - type String
 - The RRSet type. See this table for supported types.
 - project String
 - The ID of the project for the Google Cloud.
 
getRecordSet Result
The following output properties are available:
Package Details
- Repository
 - Google Cloud (GCP) Classic pulumi/pulumi-gcp
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
google-betaTerraform Provider.