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

oci.Core.getRemotePeeringConnections

Explore with Pulumi AI

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

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

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRemotePeeringConnections = oci.Core.getRemotePeeringConnections({
        compartmentId: compartmentId,
        drgId: testDrg.id,
    });
    
    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:

    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[]
    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 Sequence[core.GetRemotePeeringConnectionsRemotePeeringConnection]
    The list of remote_peering_connections.
    drg_id str
    The OCID of the DRG that this RPC belongs to.
    filters Sequence[core.GetRemotePeeringConnectionsFilter]
    compartmentId String
    The OCID of the compartment that contains the RPC.
    id String
    The provider-assigned unique ID for this managed resource.
    remotePeeringConnections List<Property Map>
    The list of remote_peering_connections.
    drgId String
    The OCID of the DRG that this RPC belongs to.
    filters List<Property Map>

    Supporting Types

    GetRemotePeeringConnectionsFilter

    Name 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, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName 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, 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.
    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]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName 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]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.
    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,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName 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,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.
    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]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName 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]: 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.
    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, 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.
    freeform_tags 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_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<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName 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>
    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
    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