Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getRemotePeeringConnections

This data source provides the list of Remote Peering Connections in Oracle Cloud Infrastructure Core service.

Lists the remote peering connections (RPCs) for the specified DRG and compartment (the RPC’s compartment).

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testRemotePeeringConnections = Output.Create(Oci.Core.GetRemotePeeringConnections.InvokeAsync(new Oci.Core.GetRemotePeeringConnectionsArgs
        {
            CompartmentId = @var.Compartment_id,
            DrgId = oci_core_drg.Test_drg.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
			DrgId:         pulumi.StringRef(oci_core_drg.Test_drg.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_remote_peering_connections = oci.Core.get_remote_peering_connections(compartment_id=var["compartment_id"],
    drg_id=oci_core_drg["test_drg"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testRemotePeeringConnections = oci.Core.getRemotePeeringConnections({
    compartmentId: _var.compartment_id,
    drgId: oci_core_drg.test_drg.id,
});

Coming soon!

Using getRemotePeeringConnections

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

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

> Note: This function is named GetRemotePeeringConnections in the Go SDK.

public static class GetRemotePeeringConnections 
{
    public static Task<GetRemotePeeringConnectionsResult> InvokeAsync(GetRemotePeeringConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetRemotePeeringConnectionsResult> Invoke(GetRemotePeeringConnectionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRemotePeeringConnectionsResult> getRemotePeeringConnections(GetRemotePeeringConnectionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Core/getRemotePeeringConnections:getRemotePeeringConnections
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

DrgId string

The OCID of the DRG.

Filters List<GetRemotePeeringConnectionsFilter>
CompartmentId string

The OCID of the compartment.

DrgId string

The OCID of the DRG.

Filters []GetRemotePeeringConnectionsFilter
compartmentId String

The OCID of the compartment.

drgId String

The OCID of the DRG.

filters List<GetRemotePeeringConnectionsFilter>
compartmentId string

The OCID of the compartment.

drgId string

The OCID of the DRG.

filters GetRemotePeeringConnectionsFilter[]
compartment_id str

The OCID of the compartment.

drg_id str

The OCID of the DRG.

filters GetRemotePeeringConnectionsFilter]
compartmentId String

The OCID of the compartment.

drgId String

The OCID of the DRG.

filters List<Property Map>

getRemotePeeringConnections Result

The following output properties are available:

CompartmentId string

The OCID of the compartment that contains the RPC.

Id string

The provider-assigned unique ID for this managed resource.

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 GetRemotePeeringConnectionsRemotePeeringConnection]

The list of remote_peering_connections.

drg_id str

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<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 string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

GetRemotePeeringConnectionsRemotePeeringConnection

CompartmentId string

The OCID of the compartment.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

DrgId string

The OCID of the DRG.

FreeformTags Dictionary<string, object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the RPC.

IsCrossTenancyPeering bool

Whether the VCN at the other end of the peering is in a different tenancy. Example: false

PeerId string

If this RPC is peered, this value is the OCID of the other RPC.

PeerRegionName string

If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1

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

The OCID of the compartment.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

DrgId string

The OCID of the DRG.

FreeformTags map[string]interface{}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

Id string

The OCID of the RPC.

IsCrossTenancyPeering bool

Whether the VCN at the other end of the peering is in a different tenancy. Example: false

PeerId string

If this RPC is peered, this value is the OCID of the other RPC.

PeerRegionName string

If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1

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

The OCID of the compartment.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgId String

The OCID of the DRG.

freeformTags Map<String,Object>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the RPC.

isCrossTenancyPeering Boolean

Whether the VCN at the other end of the peering is in a different tenancy. Example: false

peerId String

If this RPC is peered, this value is the OCID of the other RPC.

peerRegionName String

If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1

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

The OCID of the compartment.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName string

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgId string

The OCID of the DRG.

freeformTags {[key: string]: any}

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id string

The OCID of the RPC.

isCrossTenancyPeering boolean

Whether the VCN at the other end of the peering is in a different tenancy. Example: false

peerId string

If this RPC is peered, this value is the OCID of the other RPC.

peerRegionName string

If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1

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

The OCID of the compartment.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

display_name str

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drg_id str

The OCID of the DRG.

freeform_tags Mapping[str, Any]

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id str

The OCID of the RPC.

is_cross_tenancy_peering bool

Whether the VCN at the other end of the peering is in a different tenancy. Example: false

peer_id str

If this RPC is peered, this value is the OCID of the other RPC.

peer_region_name str

If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1

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

The OCID of the compartment.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.

drgId String

The OCID of the DRG.

freeformTags Map<Any>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

id String

The OCID of the RPC.

isCrossTenancyPeering Boolean

Whether the VCN at the other end of the peering is in a different tenancy. Example: false

peerId String

If this RPC is peered, this value is the OCID of the other RPC.

peerRegionName String

If this RPC is peered, this value is the region that contains the other RPC. Example: us-ashburn-1

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

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.