1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getRemotePeeringConnections
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Core.getRemotePeeringConnections

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

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,
});
Copy
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"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testRemotePeeringConnections:
    fn::invoke:
      function: oci:Core:getRemotePeeringConnections
      arguments:
        compartmentId: ${compartmentId}
        drgId: ${testDrg.id}
Copy

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>
Copy
def get_remote_peering_connections(compartment_id: Optional[str] = None,
                                   drg_id: Optional[str] = None,
                                   filters: Optional[Sequence[_core.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[_core.GetRemotePeeringConnectionsFilterArgs]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetRemotePeeringConnectionsResult]
Copy
func GetRemotePeeringConnections(ctx *Context, args *GetRemotePeeringConnectionsArgs, opts ...InvokeOption) (*GetRemotePeeringConnectionsResult, error)
func GetRemotePeeringConnectionsOutput(ctx *Context, args *GetRemotePeeringConnectionsOutputArgs, opts ...InvokeOption) GetRemotePeeringConnectionsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRemotePeeringConnectionsResult> getRemotePeeringConnections(GetRemotePeeringConnectionsArgs args, InvokeOptions options)
public static Output<GetRemotePeeringConnectionsResult> getRemotePeeringConnections(GetRemotePeeringConnectionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getRemotePeeringConnections:getRemotePeeringConnections
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
DrgId string
The OCID of the DRG.
Filters Changes to this property will trigger replacement. List<GetRemotePeeringConnectionsFilter>
CompartmentId This property is required. string
The OCID of the compartment.
DrgId string
The OCID of the DRG.
Filters Changes to this property will trigger replacement. []GetRemotePeeringConnectionsFilter
compartmentId This property is required. String
The OCID of the compartment.
drgId String
The OCID of the DRG.
filters Changes to this property will trigger replacement. List<GetRemotePeeringConnectionsFilter>
compartmentId This property is required. string
The OCID of the compartment.
drgId string
The OCID of the DRG.
filters Changes to this property will trigger replacement. GetRemotePeeringConnectionsFilter[]
compartment_id This property is required. str
The OCID of the compartment.
drg_id str
The OCID of the DRG.
filters Changes to this property will trigger replacement. Sequence[core.GetRemotePeeringConnectionsFilter]
compartmentId This property is required. String
The OCID of the compartment.
drgId String
The OCID of the DRG.
filters Changes to this property will trigger replacement. 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.
RemotePeeringConnections List<GetRemotePeeringConnectionsRemotePeeringConnection>
The list of remote_peering_connections.
DrgId string
The OCID of the DRG that this RPC belongs to.
Filters List<GetRemotePeeringConnectionsFilter>
CompartmentId string
The OCID of the compartment that contains the RPC.
Id string
The provider-assigned unique ID for this managed resource.
RemotePeeringConnections []GetRemotePeeringConnectionsRemotePeeringConnection
The list of remote_peering_connections.
DrgId string
The OCID of the DRG that this RPC belongs to.
Filters []GetRemotePeeringConnectionsFilter
compartmentId String
The OCID of the compartment that contains the RPC.
id String
The provider-assigned unique ID for this managed resource.
remotePeeringConnections List<GetRemotePeeringConnectionsRemotePeeringConnection>
The list of remote_peering_connections.
drgId String
The OCID of the DRG that this RPC belongs to.
filters List<GetRemotePeeringConnectionsFilter>
compartmentId string
The OCID of the compartment that contains the RPC.
id string
The provider-assigned unique ID for this managed resource.
remotePeeringConnections GetRemotePeeringConnectionsRemotePeeringConnection[]
The list of remote_peering_connections.
drgId string
The OCID of the DRG that this RPC belongs to.
filters GetRemotePeeringConnectionsFilter[]
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_connections Sequence[core.GetRemotePeeringConnectionsRemotePeeringConnection]
The list of remote_peering_connections.
drg_id str
The OCID of the DRG that this RPC belongs to.
filters Sequence[core.GetRemotePeeringConnectionsFilter]
compartmentId String
The OCID of the compartment that contains the RPC.
id String
The provider-assigned unique ID for this managed resource.
remotePeeringConnections List<Property Map>
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

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetRemotePeeringConnectionsRemotePeeringConnection

CompartmentId This property is required. string
The OCID of the compartment.
DefinedTags This property is required. 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 This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DrgId This property is required. string
The OCID of the DRG.
FreeformTags This property is required. 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 This property is required. string
The OCID of the RPC.
IsCrossTenancyPeering This property is required. bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
PeerId This property is required. string
If this RPC is peered, this value is the OCID of the other RPC.
PeerRegionName This property is required. string
If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
PeerTenancyId This property is required. string
If this RPC is peered, this value is the OCID of the other RPC's tenancy.
PeeringStatus This property is required. string
Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted.
State This property is required. string
The RPC's current lifecycle state.
TimeCreated This property is required. string
The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
CompartmentId This property is required. string
The OCID of the compartment.
DefinedTags This property is required. 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 This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DrgId This property is required. string
The OCID of the DRG.
FreeformTags This property is required. 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 This property is required. string
The OCID of the RPC.
IsCrossTenancyPeering This property is required. bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
PeerId This property is required. string
If this RPC is peered, this value is the OCID of the other RPC.
PeerRegionName This property is required. string
If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
PeerTenancyId This property is required. string
If this RPC is peered, this value is the OCID of the other RPC's tenancy.
PeeringStatus This property is required. string
Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted.
State This property is required. string
The RPC's current lifecycle state.
TimeCreated This property is required. string
The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId This property is required. String
The OCID of the compartment.
definedTags This property is required. 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 This property is required. String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId This property is required. String
The OCID of the DRG.
freeformTags This property is required. 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 This property is required. String
The OCID of the RPC.
isCrossTenancyPeering This property is required. Boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerId This property is required. String
If this RPC is peered, this value is the OCID of the other RPC.
peerRegionName This property is required. String
If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
peerTenancyId This property is required. String
If this RPC is peered, this value is the OCID of the other RPC's tenancy.
peeringStatus This property is required. String
Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted.
state This property is required. String
The RPC's current lifecycle state.
timeCreated This property is required. String
The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId This property is required. string
The OCID of the compartment.
definedTags This property is required. {[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 This property is required. string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId This property is required. string
The OCID of the DRG.
freeformTags This property is required. {[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 This property is required. string
The OCID of the RPC.
isCrossTenancyPeering This property is required. boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerId This property is required. string
If this RPC is peered, this value is the OCID of the other RPC.
peerRegionName This property is required. string
If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
peerTenancyId This property is required. string
If this RPC is peered, this value is the OCID of the other RPC's tenancy.
peeringStatus This property is required. string
Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted.
state This property is required. string
The RPC's current lifecycle state.
timeCreated This property is required. string
The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartment_id This property is required. str
The OCID of the compartment.
defined_tags This property is required. 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 This property is required. str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drg_id This property is required. str
The OCID of the DRG.
freeform_tags This property is required. 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 This property is required. str
The OCID of the RPC.
is_cross_tenancy_peering This property is required. bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peer_id This property is required. str
If this RPC is peered, this value is the OCID of the other RPC.
peer_region_name This property is required. str
If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
peer_tenancy_id This property is required. str
If this RPC is peered, this value is the OCID of the other RPC's tenancy.
peering_status This property is required. str
Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted.
state This property is required. str
The RPC's current lifecycle state.
time_created This property is required. str
The date and time the RPC was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
compartmentId This property is required. String
The OCID of the compartment.
definedTags This property is required. 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 This property is required. String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId This property is required. String
The OCID of the DRG.
freeformTags This property is required. 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 This property is required. String
The OCID of the RPC.
isCrossTenancyPeering This property is required. Boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerId This property is required. String
If this RPC is peered, this value is the OCID of the other RPC.
peerRegionName This property is required. String
If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1
peerTenancyId This property is required. String
If this RPC is peered, this value is the OCID of the other RPC's tenancy.
peeringStatus This property is required. String
Whether the RPC is peered with another RPC. NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted.
state This property is required. String
The RPC's current lifecycle state.
timeCreated This property is required. 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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi