Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.ResourceManager.getPrivateEndpointReachableIp
Explore with Pulumi AI
This data source provides details about a specific Private Endpoint Reachable Ip resource in Oracle Cloud Infrastructure Resource Manager service.
Gets the alternative IP address of the private resource. This IP will be used by Resource Manager Service to connect to the private resource.
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/v2/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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ResourceManager/getPrivateEndpointReachableIp:getPrivateEndpointReachableIp
arguments:
# arguments dictionary
The 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 - An IP address for the Resource Manager service to use for connection to the private resource.
- Private
Endpoint stringId - Private
Ip string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string - An IP address for the Resource Manager service to use for connection to the private resource.
- Private
Endpoint stringId - Private
Ip string
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - An IP address for the Resource Manager service to use for connection to the private resource.
- private
Endpoint StringId - private
Ip String
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string - An IP address for the Resource Manager service to use for connection to the private resource.
- private
Endpoint stringId - private
Ip string
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str - An IP address for the Resource Manager service to use for connection to the private resource.
- private_
endpoint_ strid - private_
ip str
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Address String - An IP address for the Resource Manager service to use for connection to the private resource.
- 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
oci
Terraform Provider.