1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Dns
  5. getResolverEndpoints
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Dns.getResolverEndpoints

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Resolver Endpoints in Oracle Cloud Infrastructure DNS service.

Gets a list of all endpoints within a resolver. The collection can be filtered by name or lifecycle state. It can be sorted on creation time or name both in ASC or DESC order. Note that when no lifecycleState query parameter is provided, the collection does not include resolver endpoints in the DELETED lifecycle state to be consistent with other operations of the API.

Example Usage

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

const testResolverEndpoints = oci.Dns.getResolverEndpoints({
    resolverId: testResolver.id,
    scope: "PRIVATE",
    name: resolverEndpointName,
    state: resolverEndpointState,
});
Copy
import pulumi
import pulumi_oci as oci

test_resolver_endpoints = oci.Dns.get_resolver_endpoints(resolver_id=test_resolver["id"],
    scope="PRIVATE",
    name=resolver_endpoint_name,
    state=resolver_endpoint_state)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/dns"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dns.GetResolverEndpoints(ctx, &dns.GetResolverEndpointsArgs{
			ResolverId: testResolver.Id,
			Scope:      "PRIVATE",
			Name:       pulumi.StringRef(resolverEndpointName),
			State:      pulumi.StringRef(resolverEndpointState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testResolverEndpoints = Oci.Dns.GetResolverEndpoints.Invoke(new()
    {
        ResolverId = testResolver.Id,
        Scope = "PRIVATE",
        Name = resolverEndpointName,
        State = resolverEndpointState,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Dns.DnsFunctions;
import com.pulumi.oci.Dns.inputs.GetResolverEndpointsArgs;
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 testResolverEndpoints = DnsFunctions.getResolverEndpoints(GetResolverEndpointsArgs.builder()
            .resolverId(testResolver.id())
            .scope("PRIVATE")
            .name(resolverEndpointName)
            .state(resolverEndpointState)
            .build());

    }
}
Copy
variables:
  testResolverEndpoints:
    fn::invoke:
      function: oci:Dns:getResolverEndpoints
      arguments:
        resolverId: ${testResolver.id}
        scope: PRIVATE
        name: ${resolverEndpointName}
        state: ${resolverEndpointState}
Copy

Using getResolverEndpoints

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 getResolverEndpoints(args: GetResolverEndpointsArgs, opts?: InvokeOptions): Promise<GetResolverEndpointsResult>
function getResolverEndpointsOutput(args: GetResolverEndpointsOutputArgs, opts?: InvokeOptions): Output<GetResolverEndpointsResult>
Copy
def get_resolver_endpoints(filters: Optional[Sequence[_dns.GetResolverEndpointsFilter]] = None,
                           name: Optional[str] = None,
                           resolver_id: Optional[str] = None,
                           scope: Optional[str] = None,
                           state: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetResolverEndpointsResult
def get_resolver_endpoints_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_dns.GetResolverEndpointsFilterArgs]]]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           resolver_id: Optional[pulumi.Input[str]] = None,
                           scope: Optional[pulumi.Input[str]] = None,
                           state: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetResolverEndpointsResult]
Copy
func GetResolverEndpoints(ctx *Context, args *GetResolverEndpointsArgs, opts ...InvokeOption) (*GetResolverEndpointsResult, error)
func GetResolverEndpointsOutput(ctx *Context, args *GetResolverEndpointsOutputArgs, opts ...InvokeOption) GetResolverEndpointsResultOutput
Copy

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

public static class GetResolverEndpoints 
{
    public static Task<GetResolverEndpointsResult> InvokeAsync(GetResolverEndpointsArgs args, InvokeOptions? opts = null)
    public static Output<GetResolverEndpointsResult> Invoke(GetResolverEndpointsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetResolverEndpointsResult> getResolverEndpoints(GetResolverEndpointsArgs args, InvokeOptions options)
public static Output<GetResolverEndpointsResult> getResolverEndpoints(GetResolverEndpointsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Dns/getResolverEndpoints:getResolverEndpoints
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResolverId This property is required. string
The OCID of the target resolver.
Scope This property is required. string
Value must be PRIVATE when listing private name resolver endpoints.
Filters Changes to this property will trigger replacement. List<GetResolverEndpointsFilter>
Name string
The name of a resource.
State string
The state of a resource.
ResolverId This property is required. string
The OCID of the target resolver.
Scope This property is required. string
Value must be PRIVATE when listing private name resolver endpoints.
Filters Changes to this property will trigger replacement. []GetResolverEndpointsFilter
Name string
The name of a resource.
State string
The state of a resource.
resolverId This property is required. String
The OCID of the target resolver.
scope This property is required. String
Value must be PRIVATE when listing private name resolver endpoints.
filters Changes to this property will trigger replacement. List<GetResolverEndpointsFilter>
name String
The name of a resource.
state String
The state of a resource.
resolverId This property is required. string
The OCID of the target resolver.
scope This property is required. string
Value must be PRIVATE when listing private name resolver endpoints.
filters Changes to this property will trigger replacement. GetResolverEndpointsFilter[]
name string
The name of a resource.
state string
The state of a resource.
resolver_id This property is required. str
The OCID of the target resolver.
scope This property is required. str
Value must be PRIVATE when listing private name resolver endpoints.
filters Changes to this property will trigger replacement. Sequence[dns.GetResolverEndpointsFilter]
name str
The name of a resource.
state str
The state of a resource.
resolverId This property is required. String
The OCID of the target resolver.
scope This property is required. String
Value must be PRIVATE when listing private name resolver endpoints.
filters Changes to this property will trigger replacement. List<Property Map>
name String
The name of a resource.
state String
The state of a resource.

getResolverEndpoints Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
ResolverEndpoints List<GetResolverEndpointsResolverEndpoint>
The list of resolver_endpoints.
ResolverId string
Scope string
Filters List<GetResolverEndpointsFilter>
Name string
The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
State string
The current state of the resource.
Id string
The provider-assigned unique ID for this managed resource.
ResolverEndpoints []GetResolverEndpointsResolverEndpoint
The list of resolver_endpoints.
ResolverId string
Scope string
Filters []GetResolverEndpointsFilter
Name string
The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
State string
The current state of the resource.
id String
The provider-assigned unique ID for this managed resource.
resolverEndpoints List<GetResolverEndpointsResolverEndpoint>
The list of resolver_endpoints.
resolverId String
scope String
filters List<GetResolverEndpointsFilter>
name String
The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
state String
The current state of the resource.
id string
The provider-assigned unique ID for this managed resource.
resolverEndpoints GetResolverEndpointsResolverEndpoint[]
The list of resolver_endpoints.
resolverId string
scope string
filters GetResolverEndpointsFilter[]
name string
The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
state string
The current state of the resource.
id str
The provider-assigned unique ID for this managed resource.
resolver_endpoints Sequence[dns.GetResolverEndpointsResolverEndpoint]
The list of resolver_endpoints.
resolver_id str
scope str
filters Sequence[dns.GetResolverEndpointsFilter]
name str
The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
state str
The current state of the resource.
id String
The provider-assigned unique ID for this managed resource.
resolverEndpoints List<Property Map>
The list of resolver_endpoints.
resolverId String
scope String
filters List<Property Map>
name String
The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
state String
The current state of the resource.

Supporting Types

GetResolverEndpointsFilter

Name This property is required. string
The name of a resource.
Values This property is required. List<string>
Regex bool
Name This property is required. string
The name of a resource.
Values This property is required. []string
Regex bool
name This property is required. String
The name of a resource.
values This property is required. List<String>
regex Boolean
name This property is required. string
The name of a resource.
values This property is required. string[]
regex boolean
name This property is required. str
The name of a resource.
values This property is required. Sequence[str]
regex bool
name This property is required. String
The name of a resource.
values This property is required. List<String>
regex Boolean

GetResolverEndpointsResolverEndpoint

CompartmentId This property is required. string
The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under and will be updated if the resolver's compartment is changed.
EndpointType This property is required. string
The type of resolver endpoint. VNIC is currently the only supported type.
ForwardingAddress This property is required. string
An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.
IsForwarding This property is required. bool
A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
IsListening This property is required. bool
A Boolean flag indicating whether or not the resolver endpoint is for listening.
ListeningAddress This property is required. string
An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified when isListening is true.
Name This property is required. string
The name of a resource.
ResolverId This property is required. string
The OCID of the target resolver.
Self This property is required. string
The canonical absolute URL of the resource.
State This property is required. string
The state of a resource.
SubnetId This property is required. string
The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
TimeCreated This property is required. string
The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
TimeUpdated This property is required. string
The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
NsgIds List<string>
An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the resolver endpoint is a part of.
Scope string
Value must be PRIVATE when listing private name resolver endpoints.
CompartmentId This property is required. string
The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under and will be updated if the resolver's compartment is changed.
EndpointType This property is required. string
The type of resolver endpoint. VNIC is currently the only supported type.
ForwardingAddress This property is required. string
An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.
IsForwarding This property is required. bool
A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
IsListening This property is required. bool
A Boolean flag indicating whether or not the resolver endpoint is for listening.
ListeningAddress This property is required. string
An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified when isListening is true.
Name This property is required. string
The name of a resource.
ResolverId This property is required. string
The OCID of the target resolver.
Self This property is required. string
The canonical absolute URL of the resource.
State This property is required. string
The state of a resource.
SubnetId This property is required. string
The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
TimeCreated This property is required. string
The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
TimeUpdated This property is required. string
The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
NsgIds []string
An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the resolver endpoint is a part of.
Scope string
Value must be PRIVATE when listing private name resolver endpoints.
compartmentId This property is required. String
The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under and will be updated if the resolver's compartment is changed.
endpointType This property is required. String
The type of resolver endpoint. VNIC is currently the only supported type.
forwardingAddress This property is required. String
An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.
isForwarding This property is required. Boolean
A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
isListening This property is required. Boolean
A Boolean flag indicating whether or not the resolver endpoint is for listening.
listeningAddress This property is required. String
An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified when isListening is true.
name This property is required. String
The name of a resource.
resolverId This property is required. String
The OCID of the target resolver.
self This property is required. String
The canonical absolute URL of the resource.
state This property is required. String
The state of a resource.
subnetId This property is required. String
The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
timeCreated This property is required. String
The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
timeUpdated This property is required. String
The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
nsgIds List<String>
An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the resolver endpoint is a part of.
scope String
Value must be PRIVATE when listing private name resolver endpoints.
compartmentId This property is required. string
The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under and will be updated if the resolver's compartment is changed.
endpointType This property is required. string
The type of resolver endpoint. VNIC is currently the only supported type.
forwardingAddress This property is required. string
An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.
isForwarding This property is required. boolean
A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
isListening This property is required. boolean
A Boolean flag indicating whether or not the resolver endpoint is for listening.
listeningAddress This property is required. string
An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified when isListening is true.
name This property is required. string
The name of a resource.
resolverId This property is required. string
The OCID of the target resolver.
self This property is required. string
The canonical absolute URL of the resource.
state This property is required. string
The state of a resource.
subnetId This property is required. string
The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
timeCreated This property is required. string
The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
timeUpdated This property is required. string
The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
nsgIds string[]
An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the resolver endpoint is a part of.
scope string
Value must be PRIVATE when listing private name resolver endpoints.
compartment_id This property is required. str
The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under and will be updated if the resolver's compartment is changed.
endpoint_type This property is required. str
The type of resolver endpoint. VNIC is currently the only supported type.
forwarding_address This property is required. str
An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.
is_forwarding This property is required. bool
A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
is_listening This property is required. bool
A Boolean flag indicating whether or not the resolver endpoint is for listening.
listening_address This property is required. str
An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified when isListening is true.
name This property is required. str
The name of a resource.
resolver_id This property is required. str
The OCID of the target resolver.
self This property is required. str
The canonical absolute URL of the resource.
state This property is required. str
The state of a resource.
subnet_id This property is required. str
The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
time_created This property is required. str
The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
time_updated This property is required. str
The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
nsg_ids Sequence[str]
An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the resolver endpoint is a part of.
scope str
Value must be PRIVATE when listing private name resolver endpoints.
compartmentId This property is required. String
The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under and will be updated if the resolver's compartment is changed.
endpointType This property is required. String
The type of resolver endpoint. VNIC is currently the only supported type.
forwardingAddress This property is required. String
An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.
isForwarding This property is required. Boolean
A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
isListening This property is required. Boolean
A Boolean flag indicating whether or not the resolver endpoint is for listening.
listeningAddress This property is required. String
An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified when isListening is true.
name This property is required. String
The name of a resource.
resolverId This property is required. String
The OCID of the target resolver.
self This property is required. String
The canonical absolute URL of the resource.
state This property is required. String
The state of a resource.
subnetId This property is required. String
The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
timeCreated This property is required. String
The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
timeUpdated This property is required. String
The date and time the resource was last updated in "YYYY-MM-ddThh:mm:ssZ" format with a Z offset, as defined by RFC 3339.
nsgIds List<String>
An array of network security group OCIDs for the resolver endpoint. These must be part of the VCN that the resolver endpoint is a part of.
scope String
Value must be PRIVATE when listing private name resolver endpoints.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi