oci.Dns.getResolverEndpoint
Explore with Pulumi AI
This data source provides details about a specific Resolver Endpoint resource in Oracle Cloud Infrastructure DNS service.
Gets information about a specific resolver endpoint. Note that attempting to get a resolver endpoint
in the DELETED lifecycle state will result in a 404
response to be consistent with other operations of the
API. Requires a PRIVATE
scope query parameter.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testResolverEndpoint = oci.Dns.getResolverEndpoint({
resolverEndpointName: testResolverEndpointOciDnsResolverEndpoint.name,
resolverId: testResolver.id,
scope: "PRIVATE",
});
import pulumi
import pulumi_oci as oci
test_resolver_endpoint = oci.Dns.get_resolver_endpoint(resolver_endpoint_name=test_resolver_endpoint_oci_dns_resolver_endpoint["name"],
resolver_id=test_resolver["id"],
scope="PRIVATE")
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Dns"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Dns.GetResolverEndpoint(ctx, &dns.GetResolverEndpointArgs{
ResolverEndpointName: testResolverEndpointOciDnsResolverEndpoint.Name,
ResolverId: testResolver.Id,
Scope: pulumi.StringRef("PRIVATE"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testResolverEndpoint = Oci.Dns.GetResolverEndpoint.Invoke(new()
{
ResolverEndpointName = testResolverEndpointOciDnsResolverEndpoint.Name,
ResolverId = testResolver.Id,
Scope = "PRIVATE",
});
});
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.GetResolverEndpointArgs;
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 testResolverEndpoint = DnsFunctions.getResolverEndpoint(GetResolverEndpointArgs.builder()
.resolverEndpointName(testResolverEndpointOciDnsResolverEndpoint.name())
.resolverId(testResolver.id())
.scope("PRIVATE")
.build());
}
}
variables:
testResolverEndpoint:
fn::invoke:
Function: oci:Dns:getResolverEndpoint
Arguments:
resolverEndpointName: ${testResolverEndpointOciDnsResolverEndpoint.name}
resolverId: ${testResolver.id}
scope: PRIVATE
Using getResolverEndpoint
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 getResolverEndpoint(args: GetResolverEndpointArgs, opts?: InvokeOptions): Promise<GetResolverEndpointResult>
function getResolverEndpointOutput(args: GetResolverEndpointOutputArgs, opts?: InvokeOptions): Output<GetResolverEndpointResult>
def get_resolver_endpoint(resolver_endpoint_name: Optional[str] = None,
resolver_id: Optional[str] = None,
scope: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResolverEndpointResult
def get_resolver_endpoint_output(resolver_endpoint_name: Optional[pulumi.Input[str]] = None,
resolver_id: Optional[pulumi.Input[str]] = None,
scope: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResolverEndpointResult]
func GetResolverEndpoint(ctx *Context, args *GetResolverEndpointArgs, opts ...InvokeOption) (*GetResolverEndpointResult, error)
func GetResolverEndpointOutput(ctx *Context, args *GetResolverEndpointOutputArgs, opts ...InvokeOption) GetResolverEndpointResultOutput
> Note: This function is named GetResolverEndpoint
in the Go SDK.
public static class GetResolverEndpoint
{
public static Task<GetResolverEndpointResult> InvokeAsync(GetResolverEndpointArgs args, InvokeOptions? opts = null)
public static Output<GetResolverEndpointResult> Invoke(GetResolverEndpointInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResolverEndpointResult> getResolverEndpoint(GetResolverEndpointArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Dns/getResolverEndpoint:getResolverEndpoint
arguments:
# arguments dictionary
The following arguments are supported:
- Resolver
Endpoint stringName - The name of the target resolver endpoint.
- Resolver
Id string - The OCID of the target resolver.
- Scope string
- Value must be
PRIVATE
when listing private name resolver endpoints.
- Resolver
Endpoint stringName - The name of the target resolver endpoint.
- Resolver
Id string - The OCID of the target resolver.
- Scope string
- Value must be
PRIVATE
when listing private name resolver endpoints.
- resolver
Endpoint StringName - The name of the target resolver endpoint.
- resolver
Id String - The OCID of the target resolver.
- scope String
- Value must be
PRIVATE
when listing private name resolver endpoints.
- resolver
Endpoint stringName - The name of the target resolver endpoint.
- resolver
Id string - The OCID of the target resolver.
- scope string
- Value must be
PRIVATE
when listing private name resolver endpoints.
- resolver_
endpoint_ strname - The name of the target resolver endpoint.
- resolver_
id str - The OCID of the target resolver.
- scope str
- Value must be
PRIVATE
when listing private name resolver endpoints.
- resolver
Endpoint StringName - The name of the target resolver endpoint.
- resolver
Id String - The OCID of the target resolver.
- scope String
- Value must be
PRIVATE
when listing private name resolver endpoints.
getResolverEndpoint Result
The following output properties are available:
- Compartment
Id 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.
- Endpoint
Type string - The type of resolver endpoint. VNIC is currently the only supported type.
- Forwarding
Address 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.
- Id string
- Is
Forwarding bool - A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
- Is
Listening bool - A Boolean flag indicating whether or not the resolver endpoint is for listening.
- Listening
Address 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 string
- The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
- Nsg
Ids 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.
- Resolver
Endpoint stringName - Resolver
Id string - Self string
- The canonical absolute URL of the resource.
- State string
- The current state of the resource.
- Subnet
Id string - The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
- Time
Created 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.
- Time
Updated 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.
- Scope string
- Compartment
Id 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.
- Endpoint
Type string - The type of resolver endpoint. VNIC is currently the only supported type.
- Forwarding
Address 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.
- Id string
- Is
Forwarding bool - A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
- Is
Listening bool - A Boolean flag indicating whether or not the resolver endpoint is for listening.
- Listening
Address 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 string
- The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
- Nsg
Ids []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.
- Resolver
Endpoint stringName - Resolver
Id string - Self string
- The canonical absolute URL of the resource.
- State string
- The current state of the resource.
- Subnet
Id string - The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
- Time
Created 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.
- Time
Updated 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.
- Scope string
- compartment
Id 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.
- endpoint
Type String - The type of resolver endpoint. VNIC is currently the only supported type.
- forwarding
Address 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.
- id String
- is
Forwarding Boolean - A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
- is
Listening Boolean - A Boolean flag indicating whether or not the resolver endpoint is for listening.
- listening
Address 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 String
- The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
- nsg
Ids 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.
- resolver
Endpoint StringName - resolver
Id String - self String
- The canonical absolute URL of the resource.
- state String
- The current state of the resource.
- subnet
Id String - The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
- time
Created 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.
- time
Updated 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.
- scope String
- compartment
Id 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.
- endpoint
Type string - The type of resolver endpoint. VNIC is currently the only supported type.
- forwarding
Address 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.
- id string
- is
Forwarding boolean - A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
- is
Listening boolean - A Boolean flag indicating whether or not the resolver endpoint is for listening.
- listening
Address 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 string
- The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
- nsg
Ids 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.
- resolver
Endpoint stringName - resolver
Id string - self string
- The canonical absolute URL of the resource.
- state string
- The current state of the resource.
- subnet
Id string - The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
- time
Created 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.
- time
Updated 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.
- scope string
- compartment_
id 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 str - The type of resolver endpoint. VNIC is currently the only supported type.
- forwarding_
address 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.
- id str
- is_
forwarding bool - A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
- is_
listening bool - A Boolean flag indicating whether or not the resolver endpoint is for listening.
- listening_
address 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 str
- The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
- 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.
- resolver_
endpoint_ strname - resolver_
id str - self str
- The canonical absolute URL of the resource.
- state str
- The current state of the resource.
- subnet_
id str - The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
- time_
created 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 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.
- scope str
- compartment
Id 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.
- endpoint
Type String - The type of resolver endpoint. VNIC is currently the only supported type.
- forwarding
Address 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.
- id String
- is
Forwarding Boolean - A Boolean flag indicating whether or not the resolver endpoint is for forwarding.
- is
Listening Boolean - A Boolean flag indicating whether or not the resolver endpoint is for listening.
- listening
Address 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 String
- The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.
- nsg
Ids 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.
- resolver
Endpoint StringName - resolver
Id String - self String
- The canonical absolute URL of the resource.
- state String
- The current state of the resource.
- subnet
Id String - The OCID of a subnet. Must be part of the VCN that the resolver is attached to.
- time
Created 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.
- time
Updated 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.
- scope String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.