1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. RemotePeeringConnection
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.RemotePeeringConnection

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    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 string
    The unique name of the resource.
    args RemotePeeringConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args RemotePeeringConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RemotePeeringConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    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"),
    })
    
    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());
    
    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")
    
    const remotePeeringConnectionResource = new oci.core.RemotePeeringConnection("remotePeeringConnectionResource", {
        compartmentId: "string",
        drgId: "string",
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        peerId: "string",
        peerRegionName: "string",
    });
    
    type: oci:Core:RemotePeeringConnection
    properties:
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        drgId: string
        freeformTags:
            string: string
        peerId: string
        peerRegionName: string
    

    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 string
    (Updatable) The OCID of the compartment to contain the RPC.
    DrgId 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 string
    The OCID of the RPC you want to peer with.
    PeerRegionName 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 string
    (Updatable) The OCID of the compartment to contain the RPC.
    DrgId 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 string
    The OCID of the RPC you want to peer with.
    PeerRegionName 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 String
    (Updatable) The OCID of the compartment to contain the RPC.
    drgId 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 String
    The OCID of the RPC you want to peer with.
    peerRegionName 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 string
    (Updatable) The OCID of the compartment to contain the RPC.
    drgId 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 string
    The OCID of the RPC you want to peer with.
    peerRegionName 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 str
    (Updatable) The OCID of the compartment to contain the RPC.
    drg_id 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 str
    The OCID of the RPC you want to peer with.
    peer_region_name 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 String
    (Updatable) The OCID of the compartment to contain the RPC.
    drgId 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 String
    The OCID of the RPC you want to peer with.
    peerRegionName 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 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 string
    The OCID of the RPC you want to peer with.
    PeerRegionName 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 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 string
    The OCID of the RPC you want to peer with.
    PeerRegionName 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 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 String
    The OCID of the RPC you want to peer with.
    peerRegionName 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 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 string
    The OCID of the RPC you want to peer with.
    peerRegionName 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 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 str
    The OCID of the RPC you want to peer with.
    peer_region_name 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 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 String
    The OCID of the RPC you want to peer with.
    peerRegionName 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"
    

    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi