Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getPeerRegionForRemotePeerings
Explore with Pulumi AI
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, nil, 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.
- Peer
Region List<GetFor Remote Peerings Peer Region For Remote Peerings Peer Region For Remote Peering> - The list of peer_region_for_remote_peerings.
- Filters
List<Get
Peer Region For Remote Peerings Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Peer
Region []GetFor Remote Peerings Peer Region For Remote Peerings Peer Region For Remote Peering - The list of peer_region_for_remote_peerings.
- Filters
[]Get
Peer Region For Remote Peerings Filter
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Region List<GetFor Remote Peerings Peer Region For Remote Peerings Peer Region For Remote Peering> - The list of peer_region_for_remote_peerings.
- filters
List<Get
Peer Region For Remote Peerings Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- peer
Region GetFor Remote Peerings Peer Region For Remote Peerings Peer Region For Remote Peering[] - The list of peer_region_for_remote_peerings.
- filters
Get
Peer Region For Remote Peerings Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- peer_
region_ Sequence[core.for_ remote_ peerings Get Peer Region For Remote Peerings Peer Region For Remote Peering] - The list of peer_region_for_remote_peerings.
- filters
Sequence[core.
Get Peer Region For Remote Peerings Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- peer
Region List<Property Map>For Remote Peerings - The list of peer_region_for_remote_peerings.
- filters List<Property Map>
Supporting Types
GetPeerRegionForRemotePeeringsFilter
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.