Oracle Cloud Infrastructure
getRegions
This data source provides the list of Regions in Oracle Cloud Infrastructure Identity service.
Lists all the regions offered by Oracle Cloud Infrastructure.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testRegions = Output.Create(Oci.Identity.GetRegions.InvokeAsync());
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Identity.GetRegions(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_regions = oci.Identity.get_regions()
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRegions = pulumi.output(oci.Identity.getRegions());
Coming soon!
Using getRegions
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 getRegions(args: GetRegionsArgs, opts?: InvokeOptions): Promise<GetRegionsResult>
function getRegionsOutput(args: GetRegionsOutputArgs, opts?: InvokeOptions): Output<GetRegionsResult>
def get_regions(filters: Optional[Sequence[_identity.GetRegionsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetRegionsResult
def get_regions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_identity.GetRegionsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegionsResult]
func GetRegions(ctx *Context, args *GetRegionsArgs, opts ...InvokeOption) (*GetRegionsResult, error)
func GetRegionsOutput(ctx *Context, args *GetRegionsOutputArgs, opts ...InvokeOption) GetRegionsResultOutput
> Note: This function is named GetRegions
in the Go SDK.
public static class GetRegions
{
public static Task<GetRegionsResult> InvokeAsync(GetRegionsArgs args, InvokeOptions? opts = null)
public static Output<GetRegionsResult> Invoke(GetRegionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegionsResult> getRegions(GetRegionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:Identity/getRegions:getRegions
Arguments:
# Arguments dictionary
The following arguments are supported:
getRegions Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Regions
List<Get
Regions Region> The list of regions.
- Filters
List<Get
Regions Filter>
- Id string
The provider-assigned unique ID for this managed resource.
- Regions
[]Get
Regions Region The list of regions.
- Filters
[]Get
Regions Filter
- id String
The provider-assigned unique ID for this managed resource.
- regions
List<Get
Regions Region> The list of regions.
- filters
List<Get
Regions Filter>
- id string
The provider-assigned unique ID for this managed resource.
- regions
Get
Regions Region[] The list of regions.
- filters
Get
Regions Filter[]
- id str
The provider-assigned unique ID for this managed resource.
- regions
Get
Regions Region] The list of regions.
- filters
Get
Regions Filter]
- id String
The provider-assigned unique ID for this managed resource.
- regions List<Property Map>
The list of regions.
- filters List<Property Map>
Supporting Types
GetRegionsFilter
- Name string
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- Values List<string>
- Regex bool
- Name string
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- Values []string
- Regex bool
- name String
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- values List<String>
- regex Boolean
- name string
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- values string[]
- regex boolean
- name str
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- values Sequence[str]
- regex bool
- name String
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- values List<String>
- regex Boolean
GetRegionsRegion
- Key string
The key of the region. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- Name string
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- Key string
The key of the region. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- Name string
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- key String
The key of the region. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- name String
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- key string
The key of the region. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- name string
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- key str
The key of the region. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- name str
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- key String
The key of the region. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- name String
The name of the region. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.