1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. getRegions
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.Identity.getRegions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRegions = oci.Identity.getRegions({});
    
    import pulumi
    import pulumi_oci as oci
    
    test_regions = oci.Identity.get_regions()
    
    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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testRegions = Oci.Identity.GetRegions.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Identity.IdentityFunctions;
    import com.pulumi.oci.Identity.inputs.GetRegionsArgs;
    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 testRegions = IdentityFunctions.getRegions();
    
        }
    }
    
    variables:
      testRegions:
        fn::invoke:
          Function: oci:Identity:getRegions
          Arguments: {}
    

    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<GetRegionsRegion>
    The list of regions.
    Filters List<GetRegionsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    Regions []GetRegionsRegion
    The list of regions.
    Filters []GetRegionsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    regions List<GetRegionsRegion>
    The list of regions.
    filters List<GetRegionsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    regions GetRegionsRegion[]
    The list of regions.
    filters GetRegionsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    regions Sequence[identity.GetRegionsRegion]
    The list of regions.
    filters Sequence[identity.GetRegionsFilter]
    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi