1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Tenantmanagercontrolplane
  5. getSubscriptionAvailableRegions
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Tenantmanagercontrolplane.getSubscriptionAvailableRegions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

    This data source provides the list of Subscription Available Regions in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.

    List the available regions based on subscription ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSubscriptionAvailableRegions = oci.Tenantmanagercontrolplane.getSubscriptionAvailableRegions({
        subscriptionId: testSubscription.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_subscription_available_regions = oci.Tenantmanagercontrolplane.get_subscription_available_regions(subscription_id=test_subscription["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/tenantmanagercontrolplane"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tenantmanagercontrolplane.GetSubscriptionAvailableRegions(ctx, &tenantmanagercontrolplane.GetSubscriptionAvailableRegionsArgs{
    			SubscriptionId: testSubscription.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 testSubscriptionAvailableRegions = Oci.Tenantmanagercontrolplane.GetSubscriptionAvailableRegions.Invoke(new()
        {
            SubscriptionId = testSubscription.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Tenantmanagercontrolplane.TenantmanagercontrolplaneFunctions;
    import com.pulumi.oci.Tenantmanagercontrolplane.inputs.GetSubscriptionAvailableRegionsArgs;
    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 testSubscriptionAvailableRegions = TenantmanagercontrolplaneFunctions.getSubscriptionAvailableRegions(GetSubscriptionAvailableRegionsArgs.builder()
                .subscriptionId(testSubscription.id())
                .build());
    
        }
    }
    
    variables:
      testSubscriptionAvailableRegions:
        fn::invoke:
          function: oci:Tenantmanagercontrolplane:getSubscriptionAvailableRegions
          arguments:
            subscriptionId: ${testSubscription.id}
    

    Using getSubscriptionAvailableRegions

    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 getSubscriptionAvailableRegions(args: GetSubscriptionAvailableRegionsArgs, opts?: InvokeOptions): Promise<GetSubscriptionAvailableRegionsResult>
    function getSubscriptionAvailableRegionsOutput(args: GetSubscriptionAvailableRegionsOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionAvailableRegionsResult>
    def get_subscription_available_regions(filters: Optional[Sequence[_tenantmanagercontrolplane.GetSubscriptionAvailableRegionsFilter]] = None,
                                           subscription_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetSubscriptionAvailableRegionsResult
    def get_subscription_available_regions_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_tenantmanagercontrolplane.GetSubscriptionAvailableRegionsFilterArgs]]]] = None,
                                           subscription_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionAvailableRegionsResult]
    func GetSubscriptionAvailableRegions(ctx *Context, args *GetSubscriptionAvailableRegionsArgs, opts ...InvokeOption) (*GetSubscriptionAvailableRegionsResult, error)
    func GetSubscriptionAvailableRegionsOutput(ctx *Context, args *GetSubscriptionAvailableRegionsOutputArgs, opts ...InvokeOption) GetSubscriptionAvailableRegionsResultOutput

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

    public static class GetSubscriptionAvailableRegions 
    {
        public static Task<GetSubscriptionAvailableRegionsResult> InvokeAsync(GetSubscriptionAvailableRegionsArgs args, InvokeOptions? opts = null)
        public static Output<GetSubscriptionAvailableRegionsResult> Invoke(GetSubscriptionAvailableRegionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSubscriptionAvailableRegionsResult> getSubscriptionAvailableRegions(GetSubscriptionAvailableRegionsArgs args, InvokeOptions options)
    public static Output<GetSubscriptionAvailableRegionsResult> getSubscriptionAvailableRegions(GetSubscriptionAvailableRegionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Tenantmanagercontrolplane/getSubscriptionAvailableRegions:getSubscriptionAvailableRegions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    subscriptionId String
    OCID of the subscription.
    filters List<Property Map>

    getSubscriptionAvailableRegions Result

    The following output properties are available:

    AvailableRegionCollections List<GetSubscriptionAvailableRegionsAvailableRegionCollection>
    The list of available_region_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    SubscriptionId string
    Filters List<GetSubscriptionAvailableRegionsFilter>
    AvailableRegionCollections []GetSubscriptionAvailableRegionsAvailableRegionCollection
    The list of available_region_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    SubscriptionId string
    Filters []GetSubscriptionAvailableRegionsFilter
    availableRegionCollections List<GetSubscriptionAvailableRegionsAvailableRegionCollection>
    The list of available_region_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionId String
    filters List<GetSubscriptionAvailableRegionsFilter>
    availableRegionCollections GetSubscriptionAvailableRegionsAvailableRegionCollection[]
    The list of available_region_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    subscriptionId string
    filters GetSubscriptionAvailableRegionsFilter[]
    availableRegionCollections List<Property Map>
    The list of available_region_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionId String
    filters List<Property Map>

    Supporting Types

    GetSubscriptionAvailableRegionsAvailableRegionCollection

    items List<Property Map>
    Array containing available region items.

    GetSubscriptionAvailableRegionsAvailableRegionCollectionItem

    RegionName string
    Region availability for the subscription.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    RegionName string
    Region availability for the subscription.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    regionName String
    Region availability for the subscription.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    regionName string
    Region availability for the subscription.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    region_name str
    Region availability for the subscription.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    regionName String
    Region availability for the subscription.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}

    GetSubscriptionAvailableRegionsFilter

    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

    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.28.0 published on Thursday, Mar 27, 2025 by Pulumi