ibm 1.78.0 published on Wednesday, Apr 30, 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,
});
import pulumi
import pulumi_ibm as ibm
test_cr = ibm.get_dns_custom_resolvers(instance_id=ibm_dns_custom_resolver["test"]["instance_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.GetDnsCustomResolvers(ctx, &ibm.GetDnsCustomResolversArgs{
InstanceId: ibm_dns_custom_resolver.Test.Instance_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 test_cr = Ibm.GetDnsCustomResolvers.Invoke(new()
{
InstanceId = ibm_dns_custom_resolver.Test.Instance_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.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());
}
}
variables:
test-cr:
fn::invoke:
function: ibm:getDnsCustomResolvers
arguments:
instanceId: ${ibm_dns_custom_resolver.test.instance_id}
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>
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]
func GetDnsCustomResolvers(ctx *Context, args *GetDnsCustomResolversArgs, opts ...InvokeOption) (*GetDnsCustomResolversResult, error)
func GetDnsCustomResolversOutput(ctx *Context, args *GetDnsCustomResolversOutputArgs, opts ...InvokeOption) GetDnsCustomResolversResultOutput
> 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)
}
public static CompletableFuture<GetDnsCustomResolversResult> getDnsCustomResolvers(GetDnsCustomResolversArgs args, InvokeOptions options)
public static Output<GetDnsCustomResolversResult> getDnsCustomResolvers(GetDnsCustomResolversArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getDnsCustomResolvers:getDnsCustomResolvers
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - The GUID of the private DNS service instance.
- Id string
- Instance
Id string - The GUID of the private DNS service instance.
- Id string
- instance
Id String - The GUID of the private DNS service instance.
- id String
- instance
Id string - The GUID of the private DNS service instance.
- id string
- instance_
id str - The GUID of the private DNS service instance.
- id str
- instance
Id String - The GUID of the private DNS service instance.
- id String
getDnsCustomResolvers Result
The following output properties are available:
- Custom
Resolvers List<GetDns Custom Resolvers Custom Resolver> - (List) List of all private DNS custom resolvers.
- Id string
- Instance
Id string
- Custom
Resolvers []GetDns Custom Resolvers Custom Resolver - (List) List of all private DNS custom resolvers.
- Id string
- Instance
Id string
- custom
Resolvers List<GetDns Custom Resolvers Custom Resolver> - (List) List of all private DNS custom resolvers.
- id String
- instance
Id String
- custom
Resolvers GetDns Custom Resolvers Custom Resolver[] - (List) List of all private DNS custom resolvers.
- id string
- instance
Id string
- custom_
resolvers Sequence[GetDns Custom Resolvers Custom Resolver] - (List) List of all private DNS custom resolvers.
- id str
- instance_
id str
- custom
Resolvers List<Property Map> - (List) List of all private DNS custom resolvers.
- id String
- instance
Id String
Supporting Types
GetDnsCustomResolversCustomResolver
- Allow
Disruptive boolUpdates - (Boolean) Whether a disruptive update is allowed for the custom resolver.
- Custom
Resolver stringId - (String) Identifier of the custom resolver.
- Description string
- (String) Descriptive text of the custom resolver.
- Enabled bool
- (String) Whether the location is enabled or disabled.
- Health string
- (String) The status of DNS custom resolver's health. Supported values are
CRITICAL
,DEGRADED
,HEALTHY
. - Locations
List<Get
Dns Custom Resolvers Custom Resolver Location> - (List) The list of locations within the custom resolver.
- Name string
- (String) Name of the custom resolver.
- Profile string
- (String) The profile name of the custom resolver. Supported values are
ESSENTIAL
,ADVANCED
,PREMIER
.
- Allow
Disruptive boolUpdates - (Boolean) Whether a disruptive update is allowed for the custom resolver.
- Custom
Resolver stringId - (String) Identifier of the custom resolver.
- Description string
- (String) Descriptive text of the custom resolver.
- Enabled bool
- (String) Whether the location is enabled or disabled.
- Health string
- (String) The status of DNS custom resolver's health. Supported values are
CRITICAL
,DEGRADED
,HEALTHY
. - Locations
[]Get
Dns Custom Resolvers Custom Resolver Location - (List) The list of locations within the custom resolver.
- Name string
- (String) Name of the custom resolver.
- Profile string
- (String) The profile name of the custom resolver. Supported values are
ESSENTIAL
,ADVANCED
,PREMIER
.
- allow
Disruptive BooleanUpdates - (Boolean) Whether a disruptive update is allowed for the custom resolver.
- custom
Resolver StringId - (String) Identifier of the custom resolver.
- description String
- (String) Descriptive text of the custom resolver.
- enabled Boolean
- (String) Whether the location is enabled or disabled.
- health String
- (String) The status of DNS custom resolver's health. Supported values are
CRITICAL
,DEGRADED
,HEALTHY
. - locations
List<Get
Dns Custom Resolvers Custom Resolver Location> - (List) The list of locations within the custom resolver.
- name String
- (String) Name of the custom resolver.
- profile String
- (String) The profile name of the custom resolver. Supported values are
ESSENTIAL
,ADVANCED
,PREMIER
.
- allow
Disruptive booleanUpdates - (Boolean) Whether a disruptive update is allowed for the custom resolver.
- custom
Resolver stringId - (String) Identifier of the custom resolver.
- description string
- (String) Descriptive text of the custom resolver.
- enabled boolean
- (String) Whether the location is enabled or disabled.
- health string
- (String) The status of DNS custom resolver's health. Supported values are
CRITICAL
,DEGRADED
,HEALTHY
. - locations
Get
Dns Custom Resolvers Custom Resolver Location[] - (List) The list of locations within the custom resolver.
- name string
- (String) Name of the custom resolver.
- profile string
- (String) The profile name of the custom resolver. Supported values are
ESSENTIAL
,ADVANCED
,PREMIER
.
- allow_
disruptive_ boolupdates - (Boolean) Whether a disruptive update is allowed for the custom resolver.
- custom_
resolver_ strid - (String) Identifier of the custom resolver.
- description str
- (String) Descriptive text of the custom resolver.
- enabled bool
- (String) Whether the location is enabled or disabled.
- health str
- (String) The status of DNS custom resolver's health. Supported values are
CRITICAL
,DEGRADED
,HEALTHY
. - locations
Sequence[Get
Dns Custom Resolvers Custom Resolver Location] - (List) The list of locations within the custom resolver.
- name str
- (String) Name of the custom resolver.
- profile str
- (String) The profile name of the custom resolver. Supported values are
ESSENTIAL
,ADVANCED
,PREMIER
.
- allow
Disruptive BooleanUpdates - (Boolean) Whether a disruptive update is allowed for the custom resolver.
- custom
Resolver StringId - (String) Identifier of the custom resolver.
- description String
- (String) Descriptive text of the custom resolver.
- enabled Boolean
- (String) Whether the location is enabled or disabled.
- health String
- (String) The status of DNS custom resolver's health. Supported values are
CRITICAL
,DEGRADED
,HEALTHY
. - locations List<Property Map>
- (List) The list of locations within the custom resolver.
- name String
- (String) Name of the custom resolver.
- profile String
- (String) The profile name of the custom resolver. Supported values are
ESSENTIAL
,ADVANCED
,PREMIER
.
GetDnsCustomResolversCustomResolverLocation
- Dns
Server stringIp - (String) The DNS server IP.
- Enabled bool
- (String) Whether the location is enabled or disabled.
- Healthy bool
- (String) The health status.
- Location
Id string - (String) The location ID.
- Subnet
Crn string - (String) The subnet CRN.
- Dns
Server stringIp - (String) The DNS server IP.
- Enabled bool
- (String) Whether the location is enabled or disabled.
- Healthy bool
- (String) The health status.
- Location
Id string - (String) The location ID.
- Subnet
Crn string - (String) The subnet CRN.
- dns
Server StringIp - (String) The DNS server IP.
- enabled Boolean
- (String) Whether the location is enabled or disabled.
- healthy Boolean
- (String) The health status.
- location
Id String - (String) The location ID.
- subnet
Crn String - (String) The subnet CRN.
- dns
Server stringIp - (String) The DNS server IP.
- enabled boolean
- (String) Whether the location is enabled or disabled.
- healthy boolean
- (String) The health status.
- location
Id string - (String) The location ID.
- subnet
Crn string - (String) The subnet CRN.
- dns_
server_ strip - (String) The DNS server IP.
- enabled bool
- (String) Whether the location is enabled or disabled.
- healthy bool
- (String) The health status.
- location_
id str - (String) The location ID.
- subnet_
crn str - (String) The subnet CRN.
- dns
Server StringIp - (String) The DNS server IP.
- enabled Boolean
- (String) Whether the location is enabled or disabled.
- healthy Boolean
- (String) The health status.
- location
Id String - (String) The location ID.
- subnet
Crn 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.