oci.ResourceManager.getPrivateEndpointReachableIp
This data source provides details about a specific Private Endpoint Reachable Ip resource in Oracle Cloud Infrastructure Resource Manager service.
Gets the reachable, or alternative, IP address for a nonpublic IP address that is associated with the private endpoint. Resource Manager uses this IP address to connect to nonpublic resources through the associated private endpoint. For more information, see Getting the Reachable IP Address for a Private Endpoint.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPrivateEndpointReachableIp = oci.ResourceManager.getPrivateEndpointReachableIp({
privateEndpointId: testPrivateEndpoint.id,
privateIp: privateEndpointReachableIpPrivateIp,
});
import pulumi
import pulumi_oci as oci
test_private_endpoint_reachable_ip = oci.ResourceManager.get_private_endpoint_reachable_ip(private_endpoint_id=test_private_endpoint["id"],
private_ip=private_endpoint_reachable_ip_private_ip)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resourcemanager.GetPrivateEndpointReachableIp(ctx, &resourcemanager.GetPrivateEndpointReachableIpArgs{
PrivateEndpointId: testPrivateEndpoint.Id,
PrivateIp: privateEndpointReachableIpPrivateIp,
}, 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 testPrivateEndpointReachableIp = Oci.ResourceManager.GetPrivateEndpointReachableIp.Invoke(new()
{
PrivateEndpointId = testPrivateEndpoint.Id,
PrivateIp = privateEndpointReachableIpPrivateIp,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ResourceManager.ResourceManagerFunctions;
import com.pulumi.oci.ResourceManager.inputs.GetPrivateEndpointReachableIpArgs;
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 testPrivateEndpointReachableIp = ResourceManagerFunctions.getPrivateEndpointReachableIp(GetPrivateEndpointReachableIpArgs.builder()
.privateEndpointId(testPrivateEndpoint.id())
.privateIp(privateEndpointReachableIpPrivateIp)
.build());
}
}
variables:
testPrivateEndpointReachableIp:
fn::invoke:
function: oci:ResourceManager:getPrivateEndpointReachableIp
arguments:
privateEndpointId: ${testPrivateEndpoint.id}
privateIp: ${privateEndpointReachableIpPrivateIp}
Using getPrivateEndpointReachableIp
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 getPrivateEndpointReachableIp(args: GetPrivateEndpointReachableIpArgs, opts?: InvokeOptions): Promise<GetPrivateEndpointReachableIpResult>
function getPrivateEndpointReachableIpOutput(args: GetPrivateEndpointReachableIpOutputArgs, opts?: InvokeOptions): Output<GetPrivateEndpointReachableIpResult>def get_private_endpoint_reachable_ip(private_endpoint_id: Optional[str] = None,
private_ip: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateEndpointReachableIpResult
def get_private_endpoint_reachable_ip_output(private_endpoint_id: Optional[pulumi.Input[str]] = None,
private_ip: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateEndpointReachableIpResult]func GetPrivateEndpointReachableIp(ctx *Context, args *GetPrivateEndpointReachableIpArgs, opts ...InvokeOption) (*GetPrivateEndpointReachableIpResult, error)
func GetPrivateEndpointReachableIpOutput(ctx *Context, args *GetPrivateEndpointReachableIpOutputArgs, opts ...InvokeOption) GetPrivateEndpointReachableIpResultOutput> Note: This function is named GetPrivateEndpointReachableIp in the Go SDK.
public static class GetPrivateEndpointReachableIp
{
public static Task<GetPrivateEndpointReachableIpResult> InvokeAsync(GetPrivateEndpointReachableIpArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateEndpointReachableIpResult> Invoke(GetPrivateEndpointReachableIpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivateEndpointReachableIpResult> getPrivateEndpointReachableIp(GetPrivateEndpointReachableIpArgs args, InvokeOptions options)
public static Output<GetPrivateEndpointReachableIpResult> getPrivateEndpointReachableIp(GetPrivateEndpointReachableIpArgs args, InvokeOptions options)
fn::invoke:
function: oci:ResourceManager/getPrivateEndpointReachableIp:getPrivateEndpointReachableIp
arguments:
# arguments dictionaryThe following arguments are supported:
- Private
Endpoint stringId - The OCID of the private endpoint.
- Private
Ip string - The IP address of the resource in the private subnet.
- Private
Endpoint stringId - The OCID of the private endpoint.
- Private
Ip string - The IP address of the resource in the private subnet.
- private
Endpoint StringId - The OCID of the private endpoint.
- private
Ip String - The IP address of the resource in the private subnet.
- private
Endpoint stringId - The OCID of the private endpoint.
- private
Ip string - The IP address of the resource in the private subnet.
- private_
endpoint_ strid - The OCID of the private endpoint.
- private_
ip str - The IP address of the resource in the private subnet.
- private
Endpoint StringId - The OCID of the private endpoint.
- private
Ip String - The IP address of the resource in the private subnet.
getPrivateEndpointReachableIp Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Reachable IP address associated with the private endpoint.
- Private
Endpoint stringId - Private
Ip string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - Reachable IP address associated with the private endpoint.
- Private
Endpoint stringId - Private
Ip string
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - Reachable IP address associated with the private endpoint.
- private
Endpoint StringId - private
Ip String
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - Reachable IP address associated with the private endpoint.
- private
Endpoint stringId - private
Ip string
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - Reachable IP address associated with the private endpoint.
- private_
endpoint_ strid - private_
ip str
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - Reachable IP address associated with the private endpoint.
- private
Endpoint StringId - private
Ip String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
