Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Identity.getRegionSubscriptions
Explore with Pulumi AI
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:
- Tenancy
Id string - The OCID of the tenancy.
- Filters
List<Get
Region Subscriptions Filter>
- Tenancy
Id string - The OCID of the tenancy.
- Filters
[]Get
Region Subscriptions Filter
- tenancy
Id String - The OCID of the tenancy.
- filters
List<Get
Region Subscriptions Filter>
- tenancy
Id string - The OCID of the tenancy.
- filters
Get
Region Subscriptions Filter[]
- tenancy_
id str - The OCID of the tenancy.
- filters
Sequence[identity.
Get Region Subscriptions Filter]
- tenancy
Id 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.
- Region
Subscriptions List<GetRegion Subscriptions Region Subscription> - The list of region_subscriptions.
- Tenancy
Id string - Filters
List<Get
Region Subscriptions Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Subscriptions []GetRegion Subscriptions Region Subscription - The list of region_subscriptions.
- Tenancy
Id string - Filters
[]Get
Region Subscriptions Filter
- id String
- The provider-assigned unique ID for this managed resource.
- region
Subscriptions List<GetRegion Subscriptions Region Subscription> - The list of region_subscriptions.
- tenancy
Id String - filters
List<Get
Region Subscriptions Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- region
Subscriptions GetRegion Subscriptions Region Subscription[] - The list of region_subscriptions.
- tenancy
Id string - filters
Get
Region Subscriptions Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- region_
subscriptions Sequence[identity.Get Region Subscriptions Region Subscription] - The list of region_subscriptions.
- tenancy_
id str - filters
Sequence[identity.
Get Region Subscriptions Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- region
Subscriptions List<Property Map> - The list of region_subscriptions.
- tenancy
Id String - filters List<Property Map>
Supporting Types
GetRegionSubscriptionsFilter
GetRegionSubscriptionsRegionSubscription
- Is
Home boolRegion - Indicates if the region is the home region or not.
- Region
Key string - The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- Region
Name string - The region's name. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- State string
- Tenancy
Id string - The OCID of the tenancy.
- Is
Home boolRegion - Indicates if the region is the home region or not.
- Region
Key string - The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- Region
Name string - The region's name. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- State string
- Tenancy
Id string - The OCID of the tenancy.
- is
Home BooleanRegion - Indicates if the region is the home region or not.
- region
Key String - The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- region
Name String - The region's name. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- state String
- tenancy
Id String - The OCID of the tenancy.
- is
Home booleanRegion - Indicates if the region is the home region or not.
- region
Key string - The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- region
Name string - The region's name. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- state string
- tenancy
Id string - The OCID of the tenancy.
- is_
home_ boolregion - 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.
- is
Home BooleanRegion - Indicates if the region is the home region or not.
- region
Key String - The region's key. See Regions and Availability Domains for the full list of supported 3-letter region codes. Example:
PHX
- region
Name String - The region's name. See Regions and Availability Domains for the full list of supported region names. Example:
us-phoenix-1
- state String
- tenancy
Id 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.