Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getSubscriptionAvailableRegions
Explore with Pulumi AI
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:
- Subscription
Id string - OCID of the subscription.
- Filters
List<Get
Subscription Available Regions Filter>
- Subscription
Id string - OCID of the subscription.
- Filters
[]Get
Subscription Available Regions Filter
- subscription
Id String - OCID of the subscription.
- filters
List<Get
Subscription Available Regions Filter>
- subscription
Id string - OCID of the subscription.
- filters
Get
Subscription Available Regions Filter[]
- subscription_
id str - OCID of the subscription.
- filters
Sequence[tenantmanagercontrolplane.
Get Subscription Available Regions Filter]
- subscription
Id String - OCID of the subscription.
- filters List<Property Map>
getSubscriptionAvailableRegions Result
The following output properties are available:
- Available
Region List<GetCollections Subscription Available Regions Available Region Collection> - The list of available_region_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Filters
List<Get
Subscription Available Regions Filter>
- Available
Region []GetCollections Subscription Available Regions Available Region Collection - The list of available_region_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Id string - Filters
[]Get
Subscription Available Regions Filter
- available
Region List<GetCollections Subscription Available Regions Available Region Collection> - The list of available_region_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - filters
List<Get
Subscription Available Regions Filter>
- available
Region GetCollections Subscription Available Regions Available Region Collection[] - The list of available_region_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- subscription
Id string - filters
Get
Subscription Available Regions Filter[]
- available_
region_ Sequence[tenantmanagercontrolplane.collections Get Subscription Available Regions Available Region Collection] - The list of available_region_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- subscription_
id str - filters
Sequence[tenantmanagercontrolplane.
Get Subscription Available Regions Filter]
- available
Region List<Property Map>Collections - The list of available_region_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- subscription
Id String - filters List<Property Map>
Supporting Types
GetSubscriptionAvailableRegionsAvailableRegionCollection
- Items
List<Get
Subscription Available Regions Available Region Collection Item> - Array containing available region items.
- Items
[]Get
Subscription Available Regions Available Region Collection Item - Array containing available region items.
- items
List<Get
Subscription Available Regions Available Region Collection Item> - Array containing available region items.
- items
Get
Subscription Available Regions Available Region Collection Item[] - Array containing available region items.
- items
Sequence[tenantmanagercontrolplane.
Get Subscription Available Regions Available Region Collection Item] - Array containing available region items.
- items List<Property Map>
- Array containing available region items.
GetSubscriptionAvailableRegionsAvailableRegionCollectionItem
- Region
Name string - Region availability for the subscription.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Region
Name string - Region availability for the subscription.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- region
Name String - Region availability for the subscription.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- region
Name string - Region availability for the subscription.
- {[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.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- region
Name String - Region availability for the subscription.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
GetSubscriptionAvailableRegionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.