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

oci.Core.getPeerRegionForRemotePeerings

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 Peer Region For Remote Peerings in Oracle Cloud Infrastructure Core service.

    Lists the regions that support remote VCN peering (which is peering across regions). For more information, see VCN Peering.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPeerRegionForRemotePeerings = oci.Core.getPeerRegionForRemotePeerings({});
    
    import pulumi
    import pulumi_oci as oci
    
    test_peer_region_for_remote_peerings = oci.Core.get_peer_region_for_remote_peerings()
    
    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.GetPeerRegionForRemotePeerings(ctx, &core.GetPeerRegionForRemotePeeringsArgs{}, 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 testPeerRegionForRemotePeerings = Oci.Core.GetPeerRegionForRemotePeerings.Invoke();
    
    });
    
    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.GetPeerRegionForRemotePeeringsArgs;
    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 testPeerRegionForRemotePeerings = CoreFunctions.getPeerRegionForRemotePeerings();
    
        }
    }
    
    variables:
      testPeerRegionForRemotePeerings:
        fn::invoke:
          Function: oci:Core:getPeerRegionForRemotePeerings
          Arguments: {}
    

    Using getPeerRegionForRemotePeerings

    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 getPeerRegionForRemotePeerings(args: GetPeerRegionForRemotePeeringsArgs, opts?: InvokeOptions): Promise<GetPeerRegionForRemotePeeringsResult>
    function getPeerRegionForRemotePeeringsOutput(args: GetPeerRegionForRemotePeeringsOutputArgs, opts?: InvokeOptions): Output<GetPeerRegionForRemotePeeringsResult>
    def get_peer_region_for_remote_peerings(filters: Optional[Sequence[_core.GetPeerRegionForRemotePeeringsFilter]] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetPeerRegionForRemotePeeringsResult
    def get_peer_region_for_remote_peerings_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetPeerRegionForRemotePeeringsFilterArgs]]]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetPeerRegionForRemotePeeringsResult]
    func GetPeerRegionForRemotePeerings(ctx *Context, args *GetPeerRegionForRemotePeeringsArgs, opts ...InvokeOption) (*GetPeerRegionForRemotePeeringsResult, error)
    func GetPeerRegionForRemotePeeringsOutput(ctx *Context, args *GetPeerRegionForRemotePeeringsOutputArgs, opts ...InvokeOption) GetPeerRegionForRemotePeeringsResultOutput

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

    public static class GetPeerRegionForRemotePeerings 
    {
        public static Task<GetPeerRegionForRemotePeeringsResult> InvokeAsync(GetPeerRegionForRemotePeeringsArgs args, InvokeOptions? opts = null)
        public static Output<GetPeerRegionForRemotePeeringsResult> Invoke(GetPeerRegionForRemotePeeringsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPeerRegionForRemotePeeringsResult> getPeerRegionForRemotePeerings(GetPeerRegionForRemotePeeringsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getPeerRegionForRemotePeerings:getPeerRegionForRemotePeerings
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getPeerRegionForRemotePeerings Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    PeerRegionForRemotePeerings List<GetPeerRegionForRemotePeeringsPeerRegionForRemotePeering>
    The list of peer_region_for_remote_peerings.
    Filters List<GetPeerRegionForRemotePeeringsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    PeerRegionForRemotePeerings []GetPeerRegionForRemotePeeringsPeerRegionForRemotePeering
    The list of peer_region_for_remote_peerings.
    Filters []GetPeerRegionForRemotePeeringsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    peerRegionForRemotePeerings List<GetPeerRegionForRemotePeeringsPeerRegionForRemotePeering>
    The list of peer_region_for_remote_peerings.
    filters List<GetPeerRegionForRemotePeeringsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    peerRegionForRemotePeerings GetPeerRegionForRemotePeeringsPeerRegionForRemotePeering[]
    The list of peer_region_for_remote_peerings.
    filters GetPeerRegionForRemotePeeringsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    peer_region_for_remote_peerings Sequence[core.GetPeerRegionForRemotePeeringsPeerRegionForRemotePeering]
    The list of peer_region_for_remote_peerings.
    filters Sequence[core.GetPeerRegionForRemotePeeringsFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    peerRegionForRemotePeerings List<Property Map>
    The list of peer_region_for_remote_peerings.
    filters List<Property Map>

    Supporting Types

    GetPeerRegionForRemotePeeringsFilter

    Name string
    The region's name. Example: us-phoenix-1
    Values List<string>
    Regex bool
    Name string
    The region's name. Example: us-phoenix-1
    Values []string
    Regex bool
    name String
    The region's name. Example: us-phoenix-1
    values List<String>
    regex Boolean
    name string
    The region's name. Example: us-phoenix-1
    values string[]
    regex boolean
    name str
    The region's name. Example: us-phoenix-1
    values Sequence[str]
    regex bool
    name String
    The region's name. Example: us-phoenix-1
    values List<String>
    regex Boolean

    GetPeerRegionForRemotePeeringsPeerRegionForRemotePeering

    Name string
    The region's name. Example: us-phoenix-1
    Name string
    The region's name. Example: us-phoenix-1
    name String
    The region's name. Example: us-phoenix-1
    name string
    The region's name. Example: us-phoenix-1
    name str
    The region's name. Example: us-phoenix-1
    name String
    The region's name. Example: us-phoenix-1

    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