ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getDnsResourceRecords
Explore with Pulumi AI
Retrieve details about existing IBM Cloud private domain name service records. For more information, about DNS records, see managing DNS record.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const dsPdnsResourceRecords = ibm.getDnsResourceRecords({
instanceId: "resource_instance_guid",
zoneId: "resource_dns_resource_records_zone_id",
});
import pulumi
import pulumi_ibm as ibm
ds_pdns_resource_records = ibm.get_dns_resource_records(instance_id="resource_instance_guid",
zone_id="resource_dns_resource_records_zone_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetDnsResourceRecords(ctx, &ibm.GetDnsResourceRecordsArgs{
InstanceId: "resource_instance_guid",
ZoneId: "resource_dns_resource_records_zone_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var dsPdnsResourceRecords = Ibm.GetDnsResourceRecords.Invoke(new()
{
InstanceId = "resource_instance_guid",
ZoneId = "resource_dns_resource_records_zone_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetDnsResourceRecordsArgs;
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 dsPdnsResourceRecords = IbmFunctions.getDnsResourceRecords(GetDnsResourceRecordsArgs.builder()
.instanceId("resource_instance_guid")
.zoneId("resource_dns_resource_records_zone_id")
.build());
}
}
variables:
dsPdnsResourceRecords:
fn::invoke:
function: ibm:getDnsResourceRecords
arguments:
instanceId: resource_instance_guid
zoneId: resource_dns_resource_records_zone_id
Using getDnsResourceRecords
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 getDnsResourceRecords(args: GetDnsResourceRecordsArgs, opts?: InvokeOptions): Promise<GetDnsResourceRecordsResult>
function getDnsResourceRecordsOutput(args: GetDnsResourceRecordsOutputArgs, opts?: InvokeOptions): Output<GetDnsResourceRecordsResult>
def get_dns_resource_records(id: Optional[str] = None,
instance_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDnsResourceRecordsResult
def get_dns_resource_records_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDnsResourceRecordsResult]
func GetDnsResourceRecords(ctx *Context, args *GetDnsResourceRecordsArgs, opts ...InvokeOption) (*GetDnsResourceRecordsResult, error)
func GetDnsResourceRecordsOutput(ctx *Context, args *GetDnsResourceRecordsOutputArgs, opts ...InvokeOption) GetDnsResourceRecordsResultOutput
> Note: This function is named GetDnsResourceRecords
in the Go SDK.
public static class GetDnsResourceRecords
{
public static Task<GetDnsResourceRecordsResult> InvokeAsync(GetDnsResourceRecordsArgs args, InvokeOptions? opts = null)
public static Output<GetDnsResourceRecordsResult> Invoke(GetDnsResourceRecordsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDnsResourceRecordsResult> getDnsResourceRecords(GetDnsResourceRecordsArgs args, InvokeOptions options)
public static Output<GetDnsResourceRecordsResult> getDnsResourceRecords(GetDnsResourceRecordsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDnsResourceRecords:getDnsResourceRecords
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The GUID of the private DNS service instance.
- Zone
Id string - The ID of the zone that you added to the private DNS service instance.
- Id string
- (String) The unique identifier of the private DNS resource record.
- Instance
Id string - The GUID of the private DNS service instance.
- Zone
Id string - The ID of the zone that you added to the private DNS service instance.
- Id string
- (String) The unique identifier of the private DNS resource record.
- instance
Id String - The GUID of the private DNS service instance.
- zone
Id String - The ID of the zone that you added to the private DNS service instance.
- id String
- (String) The unique identifier of the private DNS resource record.
- instance
Id string - The GUID of the private DNS service instance.
- zone
Id string - The ID of the zone that you added to the private DNS service instance.
- id string
- (String) The unique identifier of the private DNS resource record.
- instance_
id str - The GUID of the private DNS service instance.
- zone_
id str - The ID of the zone that you added to the private DNS service instance.
- id str
- (String) The unique identifier of the private DNS resource record.
- instance
Id String - The GUID of the private DNS service instance.
- zone
Id String - The ID of the zone that you added to the private DNS service instance.
- id String
- (String) The unique identifier of the private DNS resource record.
getDnsResourceRecords Result
The following output properties are available:
- Dns
Resource List<GetRecords Dns Resource Records Dns Resource Record> - (List) A list of all private domain name service resource records.
- Id string
- (String) The unique identifier of the private DNS resource record.
- Instance
Id string - Zone
Id string
- Dns
Resource []GetRecords Dns Resource Records Dns Resource Record - (List) A list of all private domain name service resource records.
- Id string
- (String) The unique identifier of the private DNS resource record.
- Instance
Id string - Zone
Id string
- dns
Resource List<GetRecords Dns Resource Records Dns Resource Record> - (List) A list of all private domain name service resource records.
- id String
- (String) The unique identifier of the private DNS resource record.
- instance
Id String - zone
Id String
- dns
Resource GetRecords Dns Resource Records Dns Resource Record[] - (List) A list of all private domain name service resource records.
- id string
- (String) The unique identifier of the private DNS resource record.
- instance
Id string - zone
Id string
- dns_
resource_ Sequence[Getrecords Dns Resource Records Dns Resource Record] - (List) A list of all private domain name service resource records.
- id str
- (String) The unique identifier of the private DNS resource record.
- instance_
id str - zone_
id str
- dns
Resource List<Property Map>Records - (List) A list of all private domain name service resource records.
- id String
- (String) The unique identifier of the private DNS resource record.
- instance
Id String - zone
Id String
Supporting Types
GetDnsResourceRecordsDnsResourceRecord
- Id string
- (String) The unique identifier of the private DNS resource record.
- Name string
- (String) The name of a private DNS resource record.
- Rdata string
- (String) The resource data of a private DNS resource record.
- Ttl double
- (Integer) The time-to-live value of the DNS resource record.
- Type string
- (String) The type of the private DNS resource record. Supported values are
A
,AAAA
,CNAME
,PTR
,TXT
,MX
, andSRV
.
- Id string
- (String) The unique identifier of the private DNS resource record.
- Name string
- (String) The name of a private DNS resource record.
- Rdata string
- (String) The resource data of a private DNS resource record.
- Ttl float64
- (Integer) The time-to-live value of the DNS resource record.
- Type string
- (String) The type of the private DNS resource record. Supported values are
A
,AAAA
,CNAME
,PTR
,TXT
,MX
, andSRV
.
- id String
- (String) The unique identifier of the private DNS resource record.
- name String
- (String) The name of a private DNS resource record.
- rdata String
- (String) The resource data of a private DNS resource record.
- ttl Double
- (Integer) The time-to-live value of the DNS resource record.
- type String
- (String) The type of the private DNS resource record. Supported values are
A
,AAAA
,CNAME
,PTR
,TXT
,MX
, andSRV
.
- id string
- (String) The unique identifier of the private DNS resource record.
- name string
- (String) The name of a private DNS resource record.
- rdata string
- (String) The resource data of a private DNS resource record.
- ttl number
- (Integer) The time-to-live value of the DNS resource record.
- type string
- (String) The type of the private DNS resource record. Supported values are
A
,AAAA
,CNAME
,PTR
,TXT
,MX
, andSRV
.
- id str
- (String) The unique identifier of the private DNS resource record.
- name str
- (String) The name of a private DNS resource record.
- rdata str
- (String) The resource data of a private DNS resource record.
- ttl float
- (Integer) The time-to-live value of the DNS resource record.
- type str
- (String) The type of the private DNS resource record. Supported values are
A
,AAAA
,CNAME
,PTR
,TXT
,MX
, andSRV
.
- id String
- (String) The unique identifier of the private DNS resource record.
- name String
- (String) The name of a private DNS resource record.
- rdata String
- (String) The resource data of a private DNS resource record.
- ttl Number
- (Integer) The time-to-live value of the DNS resource record.
- type String
- (String) The type of the private DNS resource record. Supported values are
A
,AAAA
,CNAME
,PTR
,TXT
,MX
, andSRV
.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.