1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Identity
  5. getRegionSubscriptions
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Identity.getRegionSubscriptions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Region Subscriptions in Oracle Cloud Infrastructure Identity service.

    Lists the region subscriptions for the specified tenancy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRegionSubscriptions = oci.Identity.getRegionSubscriptions({
        tenancyId: testTenancy.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_region_subscriptions = oci.Identity.get_region_subscriptions(tenancy_id=test_tenancy["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Identity"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Identity.GetRegionSubscriptions(ctx, &identity.GetRegionSubscriptionsArgs{
    			TenancyId: testTenancy.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 testRegionSubscriptions = Oci.Identity.GetRegionSubscriptions.Invoke(new()
        {
            TenancyId = testTenancy.Id,
        });
    
    });
    
    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.GetRegionSubscriptionsArgs;
    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 testRegionSubscriptions = IdentityFunctions.getRegionSubscriptions(GetRegionSubscriptionsArgs.builder()
                .tenancyId(testTenancy.id())
                .build());
    
        }
    }
    
    variables:
      testRegionSubscriptions:
        fn::invoke:
          Function: oci:Identity:getRegionSubscriptions
          Arguments:
            tenancyId: ${testTenancy.id}
    

    Using getRegionSubscriptions

    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 getRegionSubscriptions(args: GetRegionSubscriptionsArgs, opts?: InvokeOptions): Promise<GetRegionSubscriptionsResult>
    function getRegionSubscriptionsOutput(args: GetRegionSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetRegionSubscriptionsResult>
    def get_region_subscriptions(filters: Optional[Sequence[_identity.GetRegionSubscriptionsFilter]] = None,
                                 tenancy_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetRegionSubscriptionsResult
    def get_region_subscriptions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_identity.GetRegionSubscriptionsFilterArgs]]]] = None,
                                 tenancy_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetRegionSubscriptionsResult]
    func GetRegionSubscriptions(ctx *Context, args *GetRegionSubscriptionsArgs, opts ...InvokeOption) (*GetRegionSubscriptionsResult, error)
    func GetRegionSubscriptionsOutput(ctx *Context, args *GetRegionSubscriptionsOutputArgs, opts ...InvokeOption) GetRegionSubscriptionsResultOutput

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

    public static class GetRegionSubscriptions 
    {
        public static Task<GetRegionSubscriptionsResult> InvokeAsync(GetRegionSubscriptionsArgs args, InvokeOptions? opts = null)
        public static Output<GetRegionSubscriptionsResult> Invoke(GetRegionSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegionSubscriptionsResult> getRegionSubscriptions(GetRegionSubscriptionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Identity/getRegionSubscriptions:getRegionSubscriptions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TenancyId string
    The OCID of the tenancy.
    Filters []GetRegionSubscriptionsFilter
    tenancyId string
    The OCID of the tenancy.
    filters GetRegionSubscriptionsFilter[]
    tenancyId String
    The OCID of the tenancy.
    filters List<Property Map>

    getRegionSubscriptions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RegionSubscriptions List<GetRegionSubscriptionsRegionSubscription>
    The list of region_subscriptions.
    TenancyId string
    Filters List<GetRegionSubscriptionsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    RegionSubscriptions []GetRegionSubscriptionsRegionSubscription
    The list of region_subscriptions.
    TenancyId string
    Filters []GetRegionSubscriptionsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    regionSubscriptions List<GetRegionSubscriptionsRegionSubscription>
    The list of region_subscriptions.
    tenancyId String
    filters List<GetRegionSubscriptionsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    regionSubscriptions GetRegionSubscriptionsRegionSubscription[]
    The list of region_subscriptions.
    tenancyId string
    filters GetRegionSubscriptionsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    region_subscriptions Sequence[identity.GetRegionSubscriptionsRegionSubscription]
    The list of region_subscriptions.
    tenancy_id str
    filters Sequence[identity.GetRegionSubscriptionsFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    regionSubscriptions List<Property Map>
    The list of region_subscriptions.
    tenancyId String
    filters List<Property Map>

    Supporting Types

    GetRegionSubscriptionsFilter

    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

    GetRegionSubscriptionsRegionSubscription

    IsHomeRegion bool
    Indicates if the region is the home region or not.
    RegionKey string
    The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example: PHX
    RegionName string
    The region's name. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
    State string
    TenancyId string
    The OCID of the tenancy.
    IsHomeRegion bool
    Indicates if the region is the home region or not.
    RegionKey string
    The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example: PHX
    RegionName string
    The region's name. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
    State string
    TenancyId string
    The OCID of the tenancy.
    isHomeRegion Boolean
    Indicates if the region is the home region or not.
    regionKey String
    The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example: PHX
    regionName String
    The region's name. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
    state String
    tenancyId String
    The OCID of the tenancy.
    isHomeRegion boolean
    Indicates if the region is the home region or not.
    regionKey string
    The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example: PHX
    regionName string
    The region's name. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
    state string
    tenancyId string
    The OCID of the tenancy.
    is_home_region bool
    Indicates if the region is the home region or not.
    region_key str
    The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example: PHX
    region_name str
    The region's name. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
    state str
    tenancy_id str
    The OCID of the tenancy.
    isHomeRegion Boolean
    Indicates if the region is the home region or not.
    regionKey String
    The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example: PHX
    regionName String
    The region's name. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1
    state String
    tenancyId String
    The OCID of the tenancy.

    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.11.0 published on Thursday, Sep 19, 2024 by Pulumi