Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Core.getRemotePeeringConnections
This data source provides the list of Remote Peering Connections in Oracle Cloud Infrastructure Core service.
Lists the remote peering connections (RPCs) for the specified DRG and compartment (the RPC’s compartment).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRemotePeeringConnections = oci.Core.getRemotePeeringConnections({
    compartmentId: compartmentId,
    drgId: testDrg.id,
});
import pulumi
import pulumi_oci as oci
test_remote_peering_connections = oci.Core.get_remote_peering_connections(compartment_id=compartment_id,
    drg_id=test_drg["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := core.GetRemotePeeringConnections(ctx, &core.GetRemotePeeringConnectionsArgs{
			CompartmentId: compartmentId,
			DrgId:         pulumi.StringRef(testDrg.Id),
		}, 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 testRemotePeeringConnections = Oci.Core.GetRemotePeeringConnections.Invoke(new()
    {
        CompartmentId = compartmentId,
        DrgId = testDrg.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetRemotePeeringConnectionsArgs;
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 testRemotePeeringConnections = CoreFunctions.getRemotePeeringConnections(GetRemotePeeringConnectionsArgs.builder()
            .compartmentId(compartmentId)
            .drgId(testDrg.id())
            .build());
    }
}
variables:
  testRemotePeeringConnections:
    fn::invoke:
      function: oci:Core:getRemotePeeringConnections
      arguments:
        compartmentId: ${compartmentId}
        drgId: ${testDrg.id}
Using getRemotePeeringConnections
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 getRemotePeeringConnections(args: GetRemotePeeringConnectionsArgs, opts?: InvokeOptions): Promise<GetRemotePeeringConnectionsResult>
function getRemotePeeringConnectionsOutput(args: GetRemotePeeringConnectionsOutputArgs, opts?: InvokeOptions): Output<GetRemotePeeringConnectionsResult>def get_remote_peering_connections(compartment_id: Optional[str] = None,
                                   drg_id: Optional[str] = None,
                                   filters: Optional[Sequence[GetRemotePeeringConnectionsFilter]] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetRemotePeeringConnectionsResult
def get_remote_peering_connections_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                   drg_id: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRemotePeeringConnectionsFilterArgs]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetRemotePeeringConnectionsResult]func GetRemotePeeringConnections(ctx *Context, args *GetRemotePeeringConnectionsArgs, opts ...InvokeOption) (*GetRemotePeeringConnectionsResult, error)
func GetRemotePeeringConnectionsOutput(ctx *Context, args *GetRemotePeeringConnectionsOutputArgs, opts ...InvokeOption) GetRemotePeeringConnectionsResultOutput> Note: This function is named GetRemotePeeringConnections in the Go SDK.
public static class GetRemotePeeringConnections 
{
    public static Task<GetRemotePeeringConnectionsResult> InvokeAsync(GetRemotePeeringConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetRemotePeeringConnectionsResult> Invoke(GetRemotePeeringConnectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRemotePeeringConnectionsResult> getRemotePeeringConnections(GetRemotePeeringConnectionsArgs args, InvokeOptions options)
public static Output<GetRemotePeeringConnectionsResult> getRemotePeeringConnections(GetRemotePeeringConnectionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getRemotePeeringConnections:getRemotePeeringConnections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- DrgId string
- The OCID of the DRG.
- Filters
List<GetRemote Peering Connections Filter> 
- CompartmentId string
- The OCID of the compartment.
- DrgId string
- The OCID of the DRG.
- Filters
[]GetRemote Peering Connections Filter 
- compartmentId String
- The OCID of the compartment.
- drgId String
- The OCID of the DRG.
- filters
List<GetRemote Peering Connections Filter> 
- compartmentId string
- The OCID of the compartment.
- drgId string
- The OCID of the DRG.
- filters
GetRemote Peering Connections Filter[] 
- compartment_id str
- The OCID of the compartment.
- drg_id str
- The OCID of the DRG.
- filters
Sequence[GetRemote Peering Connections Filter] 
- compartmentId String
- The OCID of the compartment.
- drgId String
- The OCID of the DRG.
- filters List<Property Map>
getRemotePeeringConnections Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the RPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- RemotePeering List<GetConnections Remote Peering Connections Remote Peering Connection> 
- The list of remote_peering_connections.
- DrgId string
- The OCID of the DRG that this RPC belongs to.
- Filters
List<GetRemote Peering Connections Filter> 
- CompartmentId string
- The OCID of the compartment that contains the RPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- RemotePeering []GetConnections Remote Peering Connections Remote Peering Connection 
- The list of remote_peering_connections.
- DrgId string
- The OCID of the DRG that this RPC belongs to.
- Filters
[]GetRemote Peering Connections Filter 
- compartmentId String
- The OCID of the compartment that contains the RPC.
- id String
- The provider-assigned unique ID for this managed resource.
- remotePeering List<GetConnections Remote Peering Connections Remote Peering Connection> 
- The list of remote_peering_connections.
- drgId String
- The OCID of the DRG that this RPC belongs to.
- filters
List<GetRemote Peering Connections Filter> 
- compartmentId string
- The OCID of the compartment that contains the RPC.
- id string
- The provider-assigned unique ID for this managed resource.
- remotePeering GetConnections Remote Peering Connections Remote Peering Connection[] 
- The list of remote_peering_connections.
- drgId string
- The OCID of the DRG that this RPC belongs to.
- filters
GetRemote Peering Connections Filter[] 
- compartment_id str
- The OCID of the compartment that contains the RPC.
- id str
- The provider-assigned unique ID for this managed resource.
- remote_peering_ Sequence[Getconnections Remote Peering Connections Remote Peering Connection] 
- The list of remote_peering_connections.
- drg_id str
- The OCID of the DRG that this RPC belongs to.
- filters
Sequence[GetRemote Peering Connections Filter] 
- compartmentId String
- The OCID of the compartment that contains the RPC.
- id String
- The provider-assigned unique ID for this managed resource.
- remotePeering List<Property Map>Connections 
- The list of remote_peering_connections.
- drgId String
- The OCID of the DRG that this RPC belongs to.
- filters List<Property Map>
Supporting Types
GetRemotePeeringConnectionsFilter    
GetRemotePeeringConnectionsRemotePeeringConnection      
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgId string
- The OCID of the DRG.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the RPC.
- IsCross boolTenancy Peering 
- Whether the VCN at the other end of the peering is in a different tenancy. Example: false
- PeerId string
- If this RPC is peered, this value is the OCID of the other RPC.
- PeerRegion stringName 
- If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
- PeerTenancy stringId 
- If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- PeeringStatus string
- Whether the RPC is peered with another RPC. NEWmeans the RPC has not yet been peered.PENDINGmeans the peering is being established.REVOKEDmeans the RPC at the other end of the peering has been deleted.
- State string
- The RPC's current lifecycle state.
- TimeCreated string
- The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DrgId string
- The OCID of the DRG.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The OCID of the RPC.
- IsCross boolTenancy Peering 
- Whether the VCN at the other end of the peering is in a different tenancy. Example: false
- PeerId string
- If this RPC is peered, this value is the OCID of the other RPC.
- PeerRegion stringName 
- If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
- PeerTenancy stringId 
- If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- PeeringStatus string
- Whether the RPC is peered with another RPC. NEWmeans the RPC has not yet been peered.PENDINGmeans the peering is being established.REVOKEDmeans the RPC at the other end of the peering has been deleted.
- State string
- The RPC's current lifecycle state.
- TimeCreated string
- The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId String
- The OCID of the DRG.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the RPC.
- isCross BooleanTenancy Peering 
- Whether the VCN at the other end of the peering is in a different tenancy. Example: false
- peerId String
- If this RPC is peered, this value is the OCID of the other RPC.
- peerRegion StringName 
- If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
- peerTenancy StringId 
- If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peeringStatus String
- Whether the RPC is peered with another RPC. NEWmeans the RPC has not yet been peered.PENDINGmeans the peering is being established.REVOKEDmeans the RPC at the other end of the peering has been deleted.
- state String
- The RPC's current lifecycle state.
- timeCreated String
- The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId string
- The OCID of the DRG.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The OCID of the RPC.
- isCross booleanTenancy Peering 
- Whether the VCN at the other end of the peering is in a different tenancy. Example: false
- peerId string
- If this RPC is peered, this value is the OCID of the other RPC.
- peerRegion stringName 
- If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
- peerTenancy stringId 
- If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peeringStatus string
- Whether the RPC is peered with another RPC. NEWmeans the RPC has not yet been peered.PENDINGmeans the peering is being established.REVOKEDmeans the RPC at the other end of the peering has been deleted.
- state string
- The RPC's current lifecycle state.
- timeCreated string
- The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartment_id str
- The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg_id str
- The OCID of the DRG.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The OCID of the RPC.
- is_cross_ booltenancy_ peering 
- Whether the VCN at the other end of the peering is in a different tenancy. Example: false
- peer_id str
- If this RPC is peered, this value is the OCID of the other RPC.
- peer_region_ strname 
- If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
- peer_tenancy_ strid 
- If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peering_status str
- Whether the RPC is peered with another RPC. NEWmeans the RPC has not yet been peered.PENDINGmeans the peering is being established.REVOKEDmeans the RPC at the other end of the peering has been deleted.
- state str
- The RPC's current lifecycle state.
- time_created str
- The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drgId String
- The OCID of the DRG.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The OCID of the RPC.
- isCross BooleanTenancy Peering 
- Whether the VCN at the other end of the peering is in a different tenancy. Example: false
- peerId String
- If this RPC is peered, this value is the OCID of the other RPC.
- peerRegion StringName 
- If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
- peerTenancy StringId 
- If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peeringStatus String
- Whether the RPC is peered with another RPC. NEWmeans the RPC has not yet been peered.PENDINGmeans the peering is being established.REVOKEDmeans the RPC at the other end of the peering has been deleted.
- state String
- The RPC's current lifecycle state.
- timeCreated String
- The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.
