1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ResourceManager
  5. getPrivateEndpointReachableIp
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

oci.ResourceManager.getPrivateEndpointReachableIp

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi

    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/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:

    PrivateEndpointId string
    The OCID of the private endpoint.
    PrivateIp string
    The IP address of the resource in the private subnet.
    PrivateEndpointId string
    The OCID of the private endpoint.
    PrivateIp string
    The IP address of the resource in the private subnet.
    privateEndpointId String
    The OCID of the private endpoint.
    privateIp String
    The IP address of the resource in the private subnet.
    privateEndpointId string
    The OCID of the private endpoint.
    privateIp string
    The IP address of the resource in the private subnet.
    private_endpoint_id str
    The OCID of the private endpoint.
    private_ip str
    The IP address of the resource in the private subnet.
    privateEndpointId String
    The OCID of the private endpoint.
    privateIp 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.
    IpAddress string
    An IP address for the Resource Manager service to use for connection to the private resource.
    PrivateEndpointId string
    PrivateIp string
    Id string
    The provider-assigned unique ID for this managed resource.
    IpAddress string
    An IP address for the Resource Manager service to use for connection to the private resource.
    PrivateEndpointId string
    PrivateIp string
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    An IP address for the Resource Manager service to use for connection to the private resource.
    privateEndpointId String
    privateIp String
    id string
    The provider-assigned unique ID for this managed resource.
    ipAddress string
    An IP address for the Resource Manager service to use for connection to the private resource.
    privateEndpointId string
    privateIp 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_id str
    private_ip str
    id String
    The provider-assigned unique ID for this managed resource.
    ipAddress String
    An IP address for the Resource Manager service to use for connection to the private resource.
    privateEndpointId String
    privateIp String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.33.0 published on Thursday, Apr 25, 2024 by Pulumi