Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getRegionSubscriptions

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testRegionSubscriptions = Output.Create(Oci.Identity.GetRegionSubscriptions.InvokeAsync(new Oci.Identity.GetRegionSubscriptionsArgs
        {
            TenancyId = oci_identity_tenancy.Test_tenancy.Id,
        }));
    }

}
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.GetRegionSubscriptions(ctx, &identity.GetRegionSubscriptionsArgs{
			TenancyId: oci_identity_tenancy.Test_tenancy.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_region_subscriptions = oci.Identity.get_region_subscriptions(tenancy_id=oci_identity_tenancy["test_tenancy"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testRegionSubscriptions = oci.Identity.getRegionSubscriptions({
    tenancyId: oci_identity_tenancy.test_tenancy.id,
});

Coming soon!

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 GetRegionSubscriptionsRegionSubscription]

The list of region_subscriptions.

tenancy_id str
filters 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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.