Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getRemotePeeringConnections
Explore with Pulumi AI
This data source provides the list of Remote Peering Connections in Oracle Cloud Infrastructure Core service.
Lists the remote peering connections (RPCs) for the specified DRG and compartment (the RPC’s compartment).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRemotePeeringConnections = oci.Core.getRemotePeeringConnections({
compartmentId: compartmentId,
drgId: testDrg.id,
});
import pulumi
import pulumi_oci as oci
test_remote_peering_connections = oci.Core.get_remote_peering_connections(compartment_id=compartment_id,
drg_id=test_drg["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testRemotePeeringConnections = Oci.Core.GetRemotePeeringConnections.Invoke(new()
{
CompartmentId = compartmentId,
DrgId = testDrg.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetRemotePeeringConnectionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testRemotePeeringConnections = CoreFunctions.getRemotePeeringConnections(GetRemotePeeringConnectionsArgs.builder()
.compartmentId(compartmentId)
.drgId(testDrg.id())
.build());
}
}
variables:
testRemotePeeringConnections:
fn::invoke:
Function: oci:Core:getRemotePeeringConnections
Arguments:
compartmentId: ${compartmentId}
drgId: ${testDrg.id}
Using getRemotePeeringConnections
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRemotePeeringConnections(args: GetRemotePeeringConnectionsArgs, opts?: InvokeOptions): Promise<GetRemotePeeringConnectionsResult>
function getRemotePeeringConnectionsOutput(args: GetRemotePeeringConnectionsOutputArgs, opts?: InvokeOptions): Output<GetRemotePeeringConnectionsResult>
def get_remote_peering_connections(compartment_id: Optional[str] = None,
drg_id: Optional[str] = None,
filters: Optional[Sequence[_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:
- Compartment
Id string - The OCID of the compartment.
- Drg
Id string - The OCID of the DRG.
- Filters
List<Get
Remote Peering Connections Filter>
- Compartment
Id string - The OCID of the compartment.
- Drg
Id string - The OCID of the DRG.
- Filters
[]Get
Remote Peering Connections Filter
- compartment
Id String - The OCID of the compartment.
- drg
Id String - The OCID of the DRG.
- filters
List<Get
Remote Peering Connections Filter>
- compartment
Id string - The OCID of the compartment.
- drg
Id string - The OCID of the DRG.
- filters
Get
Remote Peering Connections Filter[]
- compartment_
id str - The OCID of the compartment.
- drg_
id str - The OCID of the DRG.
- filters
Sequence[core.
Get Remote Peering Connections Filter]
- compartment
Id String - The OCID of the compartment.
- drg
Id String - The OCID of the DRG.
- filters List<Property Map>
getRemotePeeringConnections Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the RPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Remote
Peering List<GetConnections Remote Peering Connections Remote Peering Connection> - The list of remote_peering_connections.
- Drg
Id string - The OCID of the DRG that this RPC belongs to.
- Filters
List<Get
Remote Peering Connections Filter>
- Compartment
Id string - The OCID of the compartment that contains the RPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Remote
Peering []GetConnections Remote Peering Connections Remote Peering Connection - The list of remote_peering_connections.
- Drg
Id string - The OCID of the DRG that this RPC belongs to.
- Filters
[]Get
Remote Peering Connections Filter
- compartment
Id String - The OCID of the compartment that contains the RPC.
- id String
- The provider-assigned unique ID for this managed resource.
- remote
Peering List<GetConnections Remote Peering Connections Remote Peering Connection> - The list of remote_peering_connections.
- drg
Id String - The OCID of the DRG that this RPC belongs to.
- filters
List<Get
Remote Peering Connections Filter>
- compartment
Id string - The OCID of the compartment that contains the RPC.
- id string
- The provider-assigned unique ID for this managed resource.
- remote
Peering GetConnections Remote Peering Connections Remote Peering Connection[] - The list of remote_peering_connections.
- drg
Id string - The OCID of the DRG that this RPC belongs to.
- filters
Get
Remote Peering Connections Filter[]
- compartment_
id str - The OCID of the compartment that contains the RPC.
- id str
- The provider-assigned unique ID for this managed resource.
- remote_
peering_ Sequence[core.connections Get Remote Peering Connections Remote Peering Connection] - The list of remote_peering_connections.
- drg_
id str - The OCID of the DRG that this RPC belongs to.
- filters
Sequence[core.
Get Remote Peering Connections Filter]
- compartment
Id String - The OCID of the compartment that contains the RPC.
- id String
- The provider-assigned unique ID for this managed resource.
- remote
Peering List<Property Map>Connections - The list of remote_peering_connections.
- drg
Id String - The OCID of the DRG that this RPC belongs to.
- filters List<Property Map>
Supporting Types
GetRemotePeeringConnectionsFilter
GetRemotePeeringConnectionsRemotePeeringConnection
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id string - The OCID of the DRG.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the RPC.
- Is
Cross boolTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- Peer
Id string - If this RPC is peered, this value is the OCID of the other RPC.
- Peer
Region stringName - If this RPC is peered, this value is the region that contains the other RPC. Example:
us-ashburn-1
- Peer
Tenancy stringId - If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- Peering
Status 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.
- Time
Created string - The date and time the RPC was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Drg
Id string - The OCID of the DRG.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the RPC.
- Is
Cross boolTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- Peer
Id string - If this RPC is peered, this value is the OCID of the other RPC.
- Peer
Region stringName - If this RPC is peered, this value is the region that contains the other RPC. Example:
us-ashburn-1
- Peer
Tenancy stringId - If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- Peering
Status 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.
- Time
Created string - The date and time the RPC was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id String - The OCID of the DRG.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the RPC.
- is
Cross BooleanTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer
Id String - If this RPC is peered, this value is the OCID of the other RPC.
- peer
Region StringName - If this RPC is peered, this value is the region that contains the other RPC. Example:
us-ashburn-1
- peer
Tenancy StringId - If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peering
Status 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.
- time
Created String - The date and time the RPC was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id string - The OCID of the DRG.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the RPC.
- is
Cross booleanTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer
Id string - If this RPC is peered, this value is the OCID of the other RPC.
- peer
Region stringName - If this RPC is peered, this value is the region that contains the other RPC. Example:
us-ashburn-1
- peer
Tenancy stringId - If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peering
Status 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.
- time
Created string - The date and time the RPC was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg_
id str - The OCID of the DRG.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the RPC.
- is_
cross_ booltenancy_ peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer_
id str - If this RPC is peered, this value is the OCID of the other RPC.
- peer_
region_ strname - If this RPC is peered, this value is the region that contains the other RPC. Example:
us-ashburn-1
- peer_
tenancy_ strid - If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peering_
status str - Whether the RPC is peered with another RPC.
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
- compartment
Id String - The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- drg
Id String - The OCID of the DRG.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the RPC.
- is
Cross BooleanTenancy Peering - Whether the VCN at the other end of the peering is in a different tenancy. Example:
false
- peer
Id String - If this RPC is peered, this value is the OCID of the other RPC.
- peer
Region StringName - If this RPC is peered, this value is the region that contains the other RPC. Example:
us-ashburn-1
- peer
Tenancy StringId - If this RPC is peered, this value is the OCID of the other RPC's tenancy.
- peering
Status 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.
- time
Created 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.