1. Packages
  2. Ibm Provider
  3. API Docs
  4. getDnsCustomResolvers
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getDnsCustomResolvers

Explore with Pulumi AI

Provides a read-only data source for custom resolvers. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax. For more information about custom resolver, see List custom resolvers.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const test_cr = ibm.getDnsCustomResolvers({
    instanceId: ibm_dns_custom_resolver.test.instance_id,
});
Copy
import pulumi
import pulumi_ibm as ibm

test_cr = ibm.get_dns_custom_resolvers(instance_id=ibm_dns_custom_resolver["test"]["instance_id"])
Copy
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.GetDnsCustomResolvers(ctx, &ibm.GetDnsCustomResolversArgs{
			InstanceId: ibm_dns_custom_resolver.Test.Instance_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var test_cr = Ibm.GetDnsCustomResolvers.Invoke(new()
    {
        InstanceId = ibm_dns_custom_resolver.Test.Instance_id,
    });

});
Copy
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.GetDnsCustomResolversArgs;
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 test-cr = IbmFunctions.getDnsCustomResolvers(GetDnsCustomResolversArgs.builder()
            .instanceId(ibm_dns_custom_resolver.test().instance_id())
            .build());

    }
}
Copy
variables:
  test-cr:
    fn::invoke:
      function: ibm:getDnsCustomResolvers
      arguments:
        instanceId: ${ibm_dns_custom_resolver.test.instance_id}
Copy

Using getDnsCustomResolvers

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 getDnsCustomResolvers(args: GetDnsCustomResolversArgs, opts?: InvokeOptions): Promise<GetDnsCustomResolversResult>
function getDnsCustomResolversOutput(args: GetDnsCustomResolversOutputArgs, opts?: InvokeOptions): Output<GetDnsCustomResolversResult>
Copy
def get_dns_custom_resolvers(id: Optional[str] = None,
                             instance_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDnsCustomResolversResult
def get_dns_custom_resolvers_output(id: Optional[pulumi.Input[str]] = None,
                             instance_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDnsCustomResolversResult]
Copy
func GetDnsCustomResolvers(ctx *Context, args *GetDnsCustomResolversArgs, opts ...InvokeOption) (*GetDnsCustomResolversResult, error)
func GetDnsCustomResolversOutput(ctx *Context, args *GetDnsCustomResolversOutputArgs, opts ...InvokeOption) GetDnsCustomResolversResultOutput
Copy

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

public static class GetDnsCustomResolvers 
{
    public static Task<GetDnsCustomResolversResult> InvokeAsync(GetDnsCustomResolversArgs args, InvokeOptions? opts = null)
    public static Output<GetDnsCustomResolversResult> Invoke(GetDnsCustomResolversInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDnsCustomResolversResult> getDnsCustomResolvers(GetDnsCustomResolversArgs args, InvokeOptions options)
public static Output<GetDnsCustomResolversResult> getDnsCustomResolvers(GetDnsCustomResolversArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getDnsCustomResolvers:getDnsCustomResolvers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
The GUID of the private DNS service instance.
Id string
InstanceId This property is required. string
The GUID of the private DNS service instance.
Id string
instanceId This property is required. String
The GUID of the private DNS service instance.
id String
instanceId This property is required. string
The GUID of the private DNS service instance.
id string
instance_id This property is required. str
The GUID of the private DNS service instance.
id str
instanceId This property is required. String
The GUID of the private DNS service instance.
id String

getDnsCustomResolvers Result

The following output properties are available:

CustomResolvers List<GetDnsCustomResolversCustomResolver>
(List) List of all private DNS custom resolvers.
Id string
InstanceId string
CustomResolvers []GetDnsCustomResolversCustomResolver
(List) List of all private DNS custom resolvers.
Id string
InstanceId string
customResolvers List<GetDnsCustomResolversCustomResolver>
(List) List of all private DNS custom resolvers.
id String
instanceId String
customResolvers GetDnsCustomResolversCustomResolver[]
(List) List of all private DNS custom resolvers.
id string
instanceId string
custom_resolvers Sequence[GetDnsCustomResolversCustomResolver]
(List) List of all private DNS custom resolvers.
id str
instance_id str
customResolvers List<Property Map>
(List) List of all private DNS custom resolvers.
id String
instanceId String

Supporting Types

GetDnsCustomResolversCustomResolver

AllowDisruptiveUpdates This property is required. bool
(Boolean) Whether a disruptive update is allowed for the custom resolver.
CustomResolverId This property is required. string
(String) Identifier of the custom resolver.
Description This property is required. string
(String) Descriptive text of the custom resolver.
Enabled This property is required. bool
(String) Whether the location is enabled or disabled.
Health This property is required. string
(String) The status of DNS custom resolver's health. Supported values are CRITICAL, DEGRADED, HEALTHY.
Locations This property is required. List<GetDnsCustomResolversCustomResolverLocation>
(List) The list of locations within the custom resolver.
Name This property is required. string
(String) Name of the custom resolver.
Profile This property is required. string
(String) The profile name of the custom resolver. Supported values are ESSENTIAL, ADVANCED, PREMIER.
AllowDisruptiveUpdates This property is required. bool
(Boolean) Whether a disruptive update is allowed for the custom resolver.
CustomResolverId This property is required. string
(String) Identifier of the custom resolver.
Description This property is required. string
(String) Descriptive text of the custom resolver.
Enabled This property is required. bool
(String) Whether the location is enabled or disabled.
Health This property is required. string
(String) The status of DNS custom resolver's health. Supported values are CRITICAL, DEGRADED, HEALTHY.
Locations This property is required. []GetDnsCustomResolversCustomResolverLocation
(List) The list of locations within the custom resolver.
Name This property is required. string
(String) Name of the custom resolver.
Profile This property is required. string
(String) The profile name of the custom resolver. Supported values are ESSENTIAL, ADVANCED, PREMIER.
allowDisruptiveUpdates This property is required. Boolean
(Boolean) Whether a disruptive update is allowed for the custom resolver.
customResolverId This property is required. String
(String) Identifier of the custom resolver.
description This property is required. String
(String) Descriptive text of the custom resolver.
enabled This property is required. Boolean
(String) Whether the location is enabled or disabled.
health This property is required. String
(String) The status of DNS custom resolver's health. Supported values are CRITICAL, DEGRADED, HEALTHY.
locations This property is required. List<GetDnsCustomResolversCustomResolverLocation>
(List) The list of locations within the custom resolver.
name This property is required. String
(String) Name of the custom resolver.
profile This property is required. String
(String) The profile name of the custom resolver. Supported values are ESSENTIAL, ADVANCED, PREMIER.
allowDisruptiveUpdates This property is required. boolean
(Boolean) Whether a disruptive update is allowed for the custom resolver.
customResolverId This property is required. string
(String) Identifier of the custom resolver.
description This property is required. string
(String) Descriptive text of the custom resolver.
enabled This property is required. boolean
(String) Whether the location is enabled or disabled.
health This property is required. string
(String) The status of DNS custom resolver's health. Supported values are CRITICAL, DEGRADED, HEALTHY.
locations This property is required. GetDnsCustomResolversCustomResolverLocation[]
(List) The list of locations within the custom resolver.
name This property is required. string
(String) Name of the custom resolver.
profile This property is required. string
(String) The profile name of the custom resolver. Supported values are ESSENTIAL, ADVANCED, PREMIER.
allow_disruptive_updates This property is required. bool
(Boolean) Whether a disruptive update is allowed for the custom resolver.
custom_resolver_id This property is required. str
(String) Identifier of the custom resolver.
description This property is required. str
(String) Descriptive text of the custom resolver.
enabled This property is required. bool
(String) Whether the location is enabled or disabled.
health This property is required. str
(String) The status of DNS custom resolver's health. Supported values are CRITICAL, DEGRADED, HEALTHY.
locations This property is required. Sequence[GetDnsCustomResolversCustomResolverLocation]
(List) The list of locations within the custom resolver.
name This property is required. str
(String) Name of the custom resolver.
profile This property is required. str
(String) The profile name of the custom resolver. Supported values are ESSENTIAL, ADVANCED, PREMIER.
allowDisruptiveUpdates This property is required. Boolean
(Boolean) Whether a disruptive update is allowed for the custom resolver.
customResolverId This property is required. String
(String) Identifier of the custom resolver.
description This property is required. String
(String) Descriptive text of the custom resolver.
enabled This property is required. Boolean
(String) Whether the location is enabled or disabled.
health This property is required. String
(String) The status of DNS custom resolver's health. Supported values are CRITICAL, DEGRADED, HEALTHY.
locations This property is required. List<Property Map>
(List) The list of locations within the custom resolver.
name This property is required. String
(String) Name of the custom resolver.
profile This property is required. String
(String) The profile name of the custom resolver. Supported values are ESSENTIAL, ADVANCED, PREMIER.

GetDnsCustomResolversCustomResolverLocation

DnsServerIp This property is required. string
(String) The DNS server IP.
Enabled This property is required. bool
(String) Whether the location is enabled or disabled.
Healthy This property is required. bool
(String) The health status.
LocationId This property is required. string
(String) The location ID.
SubnetCrn This property is required. string
(String) The subnet CRN.
DnsServerIp This property is required. string
(String) The DNS server IP.
Enabled This property is required. bool
(String) Whether the location is enabled or disabled.
Healthy This property is required. bool
(String) The health status.
LocationId This property is required. string
(String) The location ID.
SubnetCrn This property is required. string
(String) The subnet CRN.
dnsServerIp This property is required. String
(String) The DNS server IP.
enabled This property is required. Boolean
(String) Whether the location is enabled or disabled.
healthy This property is required. Boolean
(String) The health status.
locationId This property is required. String
(String) The location ID.
subnetCrn This property is required. String
(String) The subnet CRN.
dnsServerIp This property is required. string
(String) The DNS server IP.
enabled This property is required. boolean
(String) Whether the location is enabled or disabled.
healthy This property is required. boolean
(String) The health status.
locationId This property is required. string
(String) The location ID.
subnetCrn This property is required. string
(String) The subnet CRN.
dns_server_ip This property is required. str
(String) The DNS server IP.
enabled This property is required. bool
(String) Whether the location is enabled or disabled.
healthy This property is required. bool
(String) The health status.
location_id This property is required. str
(String) The location ID.
subnet_crn This property is required. str
(String) The subnet CRN.
dnsServerIp This property is required. String
(String) The DNS server IP.
enabled This property is required. Boolean
(String) Whether the location is enabled or disabled.
healthy This property is required. Boolean
(String) The health status.
locationId This property is required. String
(String) The location ID.
subnetCrn This property is required. String
(String) The subnet CRN.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.