1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. RemotePeeringConnection
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.Core.RemotePeeringConnection

Explore with Pulumi AI

This resource provides the Remote Peering Connection resource in Oracle Cloud Infrastructure Core service.

Creates a new remote peering connection (RPC) for the specified DRG.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testRemotePeeringConnection = new oci.core.RemotePeeringConnection("test_remote_peering_connection", {
    compartmentId: compartmentId,
    drgId: testDrg.id,
    definedTags: {
        "Operations.CostCenter": "42",
    },
    displayName: remotePeeringConnectionDisplayName,
    freeformTags: {
        Department: "Finance",
    },
    peerId: testRemotePeeringConnection2.id,
    peerRegionName: remotePeeringConnectionPeerRegionName,
});
Copy
import pulumi
import pulumi_oci as oci

test_remote_peering_connection = oci.core.RemotePeeringConnection("test_remote_peering_connection",
    compartment_id=compartment_id,
    drg_id=test_drg["id"],
    defined_tags={
        "Operations.CostCenter": "42",
    },
    display_name=remote_peering_connection_display_name,
    freeform_tags={
        "Department": "Finance",
    },
    peer_id=test_remote_peering_connection2["id"],
    peer_region_name=remote_peering_connection_peer_region_name)
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.NewRemotePeeringConnection(ctx, "test_remote_peering_connection", &core.RemotePeeringConnectionArgs{
			CompartmentId: pulumi.Any(compartmentId),
			DrgId:         pulumi.Any(testDrg.Id),
			DefinedTags: pulumi.StringMap{
				"Operations.CostCenter": pulumi.String("42"),
			},
			DisplayName: pulumi.Any(remotePeeringConnectionDisplayName),
			FreeformTags: pulumi.StringMap{
				"Department": pulumi.String("Finance"),
			},
			PeerId:         pulumi.Any(testRemotePeeringConnection2.Id),
			PeerRegionName: pulumi.Any(remotePeeringConnectionPeerRegionName),
		})
		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 testRemotePeeringConnection = new Oci.Core.RemotePeeringConnection("test_remote_peering_connection", new()
    {
        CompartmentId = compartmentId,
        DrgId = testDrg.Id,
        DefinedTags = 
        {
            { "Operations.CostCenter", "42" },
        },
        DisplayName = remotePeeringConnectionDisplayName,
        FreeformTags = 
        {
            { "Department", "Finance" },
        },
        PeerId = testRemotePeeringConnection2.Id,
        PeerRegionName = remotePeeringConnectionPeerRegionName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.RemotePeeringConnection;
import com.pulumi.oci.Core.RemotePeeringConnectionArgs;
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) {
        var testRemotePeeringConnection = new RemotePeeringConnection("testRemotePeeringConnection", RemotePeeringConnectionArgs.builder()
            .compartmentId(compartmentId)
            .drgId(testDrg.id())
            .definedTags(Map.of("Operations.CostCenter", "42"))
            .displayName(remotePeeringConnectionDisplayName)
            .freeformTags(Map.of("Department", "Finance"))
            .peerId(testRemotePeeringConnection2.id())
            .peerRegionName(remotePeeringConnectionPeerRegionName)
            .build());

    }
}
Copy
resources:
  testRemotePeeringConnection:
    type: oci:Core:RemotePeeringConnection
    name: test_remote_peering_connection
    properties:
      compartmentId: ${compartmentId}
      drgId: ${testDrg.id}
      definedTags:
        Operations.CostCenter: '42'
      displayName: ${remotePeeringConnectionDisplayName}
      freeformTags:
        Department: Finance
      peerId: ${testRemotePeeringConnection2.id}
      peerRegionName: ${remotePeeringConnectionPeerRegionName}
Copy

Create RemotePeeringConnection Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RemotePeeringConnection(name: string, args: RemotePeeringConnectionArgs, opts?: CustomResourceOptions);
@overload
def RemotePeeringConnection(resource_name: str,
                            args: RemotePeeringConnectionArgs,
                            opts: Optional[ResourceOptions] = None)

@overload
def RemotePeeringConnection(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            compartment_id: Optional[str] = None,
                            drg_id: Optional[str] = None,
                            defined_tags: Optional[Mapping[str, str]] = None,
                            display_name: Optional[str] = None,
                            freeform_tags: Optional[Mapping[str, str]] = None,
                            peer_id: Optional[str] = None,
                            peer_region_name: Optional[str] = None)
func NewRemotePeeringConnection(ctx *Context, name string, args RemotePeeringConnectionArgs, opts ...ResourceOption) (*RemotePeeringConnection, error)
public RemotePeeringConnection(string name, RemotePeeringConnectionArgs args, CustomResourceOptions? opts = null)
public RemotePeeringConnection(String name, RemotePeeringConnectionArgs args)
public RemotePeeringConnection(String name, RemotePeeringConnectionArgs args, CustomResourceOptions options)
type: oci:Core:RemotePeeringConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RemotePeeringConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RemotePeeringConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RemotePeeringConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RemotePeeringConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RemotePeeringConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var remotePeeringConnectionResource = new Oci.Core.RemotePeeringConnection("remotePeeringConnectionResource", new()
{
    CompartmentId = "string",
    DrgId = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
    DisplayName = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    PeerId = "string",
    PeerRegionName = "string",
});
Copy
example, err := core.NewRemotePeeringConnection(ctx, "remotePeeringConnectionResource", &core.RemotePeeringConnectionArgs{
	CompartmentId: pulumi.String("string"),
	DrgId:         pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DisplayName: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	PeerId:         pulumi.String("string"),
	PeerRegionName: pulumi.String("string"),
})
Copy
var remotePeeringConnectionResource = new RemotePeeringConnection("remotePeeringConnectionResource", RemotePeeringConnectionArgs.builder()
    .compartmentId("string")
    .drgId("string")
    .definedTags(Map.of("string", "string"))
    .displayName("string")
    .freeformTags(Map.of("string", "string"))
    .peerId("string")
    .peerRegionName("string")
    .build());
Copy
remote_peering_connection_resource = oci.core.RemotePeeringConnection("remotePeeringConnectionResource",
    compartment_id="string",
    drg_id="string",
    defined_tags={
        "string": "string",
    },
    display_name="string",
    freeform_tags={
        "string": "string",
    },
    peer_id="string",
    peer_region_name="string")
Copy
const remotePeeringConnectionResource = new oci.core.RemotePeeringConnection("remotePeeringConnectionResource", {
    compartmentId: "string",
    drgId: "string",
    definedTags: {
        string: "string",
    },
    displayName: "string",
    freeformTags: {
        string: "string",
    },
    peerId: "string",
    peerRegionName: "string",
});
Copy
type: oci:Core:RemotePeeringConnection
properties:
    compartmentId: string
    definedTags:
        string: string
    displayName: string
    drgId: string
    freeformTags:
        string: string
    peerId: string
    peerRegionName: string
Copy

RemotePeeringConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RemotePeeringConnection resource accepts the following input properties:

CompartmentId This property is required. string
(Updatable) The OCID of the compartment to contain the RPC.
DrgId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the DRG the RPC belongs to.
DefinedTags Dictionary<string, string>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
FreeformTags Dictionary<string, string>
(Updatable) 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"}
PeerId Changes to this property will trigger replacement. string
The OCID of the RPC you want to peer with.
PeerRegionName Changes to this property will trigger replacement. string

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

CompartmentId This property is required. string
(Updatable) The OCID of the compartment to contain the RPC.
DrgId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the DRG the RPC belongs to.
DefinedTags map[string]string
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
FreeformTags map[string]string
(Updatable) 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"}
PeerId Changes to this property will trigger replacement. string
The OCID of the RPC you want to peer with.
PeerRegionName Changes to this property will trigger replacement. string

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId This property is required. String
(Updatable) The OCID of the compartment to contain the RPC.
drgId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the DRG the RPC belongs to.
definedTags Map<String,String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags Map<String,String>
(Updatable) 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"}
peerId Changes to this property will trigger replacement. String
The OCID of the RPC you want to peer with.
peerRegionName Changes to this property will trigger replacement. String

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId This property is required. string
(Updatable) The OCID of the compartment to contain the RPC.
drgId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the DRG the RPC belongs to.
definedTags {[key: string]: string}
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags {[key: string]: string}
(Updatable) 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"}
peerId Changes to this property will trigger replacement. string
The OCID of the RPC you want to peer with.
peerRegionName Changes to this property will trigger replacement. string

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartment_id This property is required. str
(Updatable) The OCID of the compartment to contain the RPC.
drg_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the DRG the RPC belongs to.
defined_tags Mapping[str, str]
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeform_tags Mapping[str, str]
(Updatable) 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"}
peer_id Changes to this property will trigger replacement. str
The OCID of the RPC you want to peer with.
peer_region_name Changes to this property will trigger replacement. str

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

compartmentId This property is required. String
(Updatable) The OCID of the compartment to contain the RPC.
drgId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the DRG the RPC belongs to.
definedTags Map<String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
freeformTags Map<String>
(Updatable) 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"}
peerId Changes to this property will trigger replacement. String
The OCID of the RPC you want to peer with.
peerRegionName Changes to this property will trigger replacement. String

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Outputs

All input properties are implicitly available as output properties. Additionally, the RemotePeeringConnection resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
IsCrossTenancyPeering bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
PeerTenancyId string
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. 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 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
Id string
The provider-assigned unique ID for this managed resource.
IsCrossTenancyPeering bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
PeerTenancyId string
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. 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 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
id String
The provider-assigned unique ID for this managed resource.
isCrossTenancyPeering Boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerTenancyId String
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. 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 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
id string
The provider-assigned unique ID for this managed resource.
isCrossTenancyPeering boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerTenancyId string
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. 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 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
id str
The provider-assigned unique ID for this managed resource.
is_cross_tenancy_peering bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peer_tenancy_id str
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. 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 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
id String
The provider-assigned unique ID for this managed resource.
isCrossTenancyPeering Boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerTenancyId String
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. 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 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

Look up Existing RemotePeeringConnection Resource

Get an existing RemotePeeringConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RemotePeeringConnectionState, opts?: CustomResourceOptions): RemotePeeringConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        drg_id: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        is_cross_tenancy_peering: Optional[bool] = None,
        peer_id: Optional[str] = None,
        peer_region_name: Optional[str] = None,
        peer_tenancy_id: Optional[str] = None,
        peering_status: Optional[str] = None,
        state: Optional[str] = None,
        time_created: Optional[str] = None) -> RemotePeeringConnection
func GetRemotePeeringConnection(ctx *Context, name string, id IDInput, state *RemotePeeringConnectionState, opts ...ResourceOption) (*RemotePeeringConnection, error)
public static RemotePeeringConnection Get(string name, Input<string> id, RemotePeeringConnectionState? state, CustomResourceOptions? opts = null)
public static RemotePeeringConnection get(String name, Output<String> id, RemotePeeringConnectionState state, CustomResourceOptions options)
resources:  _:    type: oci:Core:RemotePeeringConnection    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CompartmentId string
(Updatable) The OCID of the compartment to contain the RPC.
DefinedTags Dictionary<string, string>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DrgId Changes to this property will trigger replacement. string
The OCID of the DRG the RPC belongs to.
FreeformTags Dictionary<string, string>
(Updatable) 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"}
IsCrossTenancyPeering bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
PeerId Changes to this property will trigger replacement. string
The OCID of the RPC you want to peer with.
PeerRegionName Changes to this property will trigger replacement. string

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

PeerTenancyId string
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. 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 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
(Updatable) The OCID of the compartment to contain the RPC.
DefinedTags map[string]string
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DrgId Changes to this property will trigger replacement. string
The OCID of the DRG the RPC belongs to.
FreeformTags map[string]string
(Updatable) 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"}
IsCrossTenancyPeering bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
PeerId Changes to this property will trigger replacement. string
The OCID of the RPC you want to peer with.
PeerRegionName Changes to this property will trigger replacement. string

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

PeerTenancyId string
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. 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 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
(Updatable) The OCID of the compartment to contain the RPC.
definedTags Map<String,String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId Changes to this property will trigger replacement. String
The OCID of the DRG the RPC belongs to.
freeformTags Map<String,String>
(Updatable) 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"}
isCrossTenancyPeering Boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerId Changes to this property will trigger replacement. String
The OCID of the RPC you want to peer with.
peerRegionName Changes to this property will trigger replacement. String

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

peerTenancyId String
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. 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 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
(Updatable) The OCID of the compartment to contain the RPC.
definedTags {[key: string]: string}
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId Changes to this property will trigger replacement. string
The OCID of the DRG the RPC belongs to.
freeformTags {[key: string]: string}
(Updatable) 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"}
isCrossTenancyPeering boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerId Changes to this property will trigger replacement. string
The OCID of the RPC you want to peer with.
peerRegionName Changes to this property will trigger replacement. string

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

peerTenancyId string
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. 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 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
(Updatable) The OCID of the compartment to contain the RPC.
defined_tags Mapping[str, str]
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drg_id Changes to this property will trigger replacement. str
The OCID of the DRG the RPC belongs to.
freeform_tags Mapping[str, str]
(Updatable) 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"}
is_cross_tenancy_peering bool
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peer_id Changes to this property will trigger replacement. str
The OCID of the RPC you want to peer with.
peer_region_name Changes to this property will trigger replacement. str

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

peer_tenancy_id str
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. 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 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
(Updatable) The OCID of the compartment to contain the RPC.
definedTags Map<String>
(Updatable) 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
(Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
drgId Changes to this property will trigger replacement. String
The OCID of the DRG the RPC belongs to.
freeformTags Map<String>
(Updatable) 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"}
isCrossTenancyPeering Boolean
Whether the VCN at the other end of the peering is in a different tenancy. Example: false
peerId Changes to this property will trigger replacement. String
The OCID of the RPC you want to peer with.
peerRegionName Changes to this property will trigger replacement. String

The name of the region that contains the RPC you want to peer with. Example: us-ashburn-1

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

peerTenancyId String
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. 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 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

Import

RemotePeeringConnections can be imported using the id, e.g.

$ pulumi import oci:Core/remotePeeringConnection:RemotePeeringConnection test_remote_peering_connection "id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.