Oracle Cloud Infrastructure

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

getOrganizationSubscriptions

This data source provides the list of Organization Subscriptions in Oracle Cloud Infrastructure Osub Organization Subscription service.

API that returns data for the list of subscription ids returned from Organizations API

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testOrganizationSubscriptions = Output.Create(Oci.OsubOrganizationSubscription.GetOrganizationSubscriptions.InvokeAsync(new Oci.OsubOrganizationSubscription.GetOrganizationSubscriptionsArgs
        {
            CompartmentId = @var.Compartment_id,
            SubscriptionIds = @var.Organization_subscription_subscription_ids,
            XOneOriginRegion = @var.Organization_subscription_x_one_origin_region,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/OsubOrganizationSubscription"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := OsubOrganizationSubscription.GetOrganizationSubscriptions(ctx, &osuborganizationsubscription.GetOrganizationSubscriptionsArgs{
			CompartmentId:    _var.Compartment_id,
			SubscriptionIds:  _var.Organization_subscription_subscription_ids,
			XOneOriginRegion: pulumi.StringRef(_var.Organization_subscription_x_one_origin_region),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_organization_subscriptions = oci.OsubOrganizationSubscription.get_organization_subscriptions(compartment_id=var["compartment_id"],
    subscription_ids=var["organization_subscription_subscription_ids"],
    x_one_origin_region=var["organization_subscription_x_one_origin_region"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testOrganizationSubscriptions = oci.OsubOrganizationSubscription.getOrganizationSubscriptions({
    compartmentId: _var.compartment_id,
    subscriptionIds: _var.organization_subscription_subscription_ids,
    xOneOriginRegion: _var.organization_subscription_x_one_origin_region,
});

Coming soon!

Using getOrganizationSubscriptions

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 getOrganizationSubscriptions(args: GetOrganizationSubscriptionsArgs, opts?: InvokeOptions): Promise<GetOrganizationSubscriptionsResult>
function getOrganizationSubscriptionsOutput(args: GetOrganizationSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetOrganizationSubscriptionsResult>
def get_organization_subscriptions(compartment_id: Optional[str] = None,
                                   filters: Optional[Sequence[_osuborganizationsubscription.GetOrganizationSubscriptionsFilter]] = None,
                                   subscription_ids: Optional[str] = None,
                                   x_one_origin_region: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetOrganizationSubscriptionsResult
def get_organization_subscriptions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osuborganizationsubscription.GetOrganizationSubscriptionsFilterArgs]]]] = None,
                                   subscription_ids: Optional[pulumi.Input[str]] = None,
                                   x_one_origin_region: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationSubscriptionsResult]
func GetOrganizationSubscriptions(ctx *Context, args *GetOrganizationSubscriptionsArgs, opts ...InvokeOption) (*GetOrganizationSubscriptionsResult, error)
func GetOrganizationSubscriptionsOutput(ctx *Context, args *GetOrganizationSubscriptionsOutputArgs, opts ...InvokeOption) GetOrganizationSubscriptionsResultOutput

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

public static class GetOrganizationSubscriptions 
{
    public static Task<GetOrganizationSubscriptionsResult> InvokeAsync(GetOrganizationSubscriptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetOrganizationSubscriptionsResult> Invoke(GetOrganizationSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOrganizationSubscriptionsResult> getOrganizationSubscriptions(GetOrganizationSubscriptionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:OsubOrganizationSubscription/getOrganizationSubscriptions:getOrganizationSubscriptions
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

SubscriptionIds string

Comma separated list of subscription ids, pass "DUMMY" as value

Filters List<GetOrganizationSubscriptionsFilter>
XOneOriginRegion string

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

CompartmentId string

The OCID of the compartment.

SubscriptionIds string

Comma separated list of subscription ids, pass "DUMMY" as value

Filters []GetOrganizationSubscriptionsFilter
XOneOriginRegion string

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

compartmentId String

The OCID of the compartment.

subscriptionIds String

Comma separated list of subscription ids, pass "DUMMY" as value

filters List<GetOrganizationSubscriptionsFilter>
xOneOriginRegion String

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

compartmentId string

The OCID of the compartment.

subscriptionIds string

Comma separated list of subscription ids, pass "DUMMY" as value

filters GetOrganizationSubscriptionsFilter[]
xOneOriginRegion string

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

compartment_id str

The OCID of the compartment.

subscription_ids str

Comma separated list of subscription ids, pass "DUMMY" as value

filters GetOrganizationSubscriptionsFilter]
x_one_origin_region str

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

compartmentId String

The OCID of the compartment.

subscriptionIds String

Comma separated list of subscription ids, pass "DUMMY" as value

filters List<Property Map>
xOneOriginRegion String

The Oracle Cloud Infrastructure home region name in case home region is not us-ashburn-1 (IAD), e.g. ap-mumbai-1, us-phoenix-1 etc.

getOrganizationSubscriptions Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

SubscriptionIds string
Subscriptions List<GetOrganizationSubscriptionsSubscription>

The list of subscriptions.

Filters List<GetOrganizationSubscriptionsFilter>
XOneOriginRegion string
CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

SubscriptionIds string
Subscriptions []GetOrganizationSubscriptionsSubscription

The list of subscriptions.

Filters []GetOrganizationSubscriptionsFilter
XOneOriginRegion string
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

subscriptionIds String
subscriptions List<GetOrganizationSubscriptionsSubscription>

The list of subscriptions.

filters List<GetOrganizationSubscriptionsFilter>
xOneOriginRegion String
compartmentId string
id string

The provider-assigned unique ID for this managed resource.

subscriptionIds string
subscriptions GetOrganizationSubscriptionsSubscription[]

The list of subscriptions.

filters GetOrganizationSubscriptionsFilter[]
xOneOriginRegion string
compartment_id str
id str

The provider-assigned unique ID for this managed resource.

subscription_ids str
subscriptions GetOrganizationSubscriptionsSubscription]

The list of subscriptions.

filters GetOrganizationSubscriptionsFilter]
x_one_origin_region str
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

subscriptionIds String
subscriptions List<Property Map>

The list of subscriptions.

filters List<Property Map>
xOneOriginRegion String

Supporting Types

GetOrganizationSubscriptionsFilter

Name string

Currency name

Values List<string>
Regex bool
Name string

Currency name

Values []string
Regex bool
name String

Currency name

values List<String>
regex Boolean
name string

Currency name

values string[]
regex boolean
name str

Currency name

values Sequence[str]
regex bool
name String

Currency name

values List<String>
regex Boolean

GetOrganizationSubscriptionsSubscription

Currencies List<GetOrganizationSubscriptionsSubscriptionCurrency>

Currency details

Id string

SPM internal Subscription ID

ServiceName string

Customer friendly service name provided by PRG

Status string

Status of the plan

TimeEnd string

Represents the date when the last service of the subscription ends

TimeStart string

Represents the date when the first service of the subscription was activated

TotalValue string

Total aggregate TCLV of all lines for the subscription including expired, active, and signed

Type string

Subscription Type i.e. IAAS,SAAS,PAAS

Currencies []GetOrganizationSubscriptionsSubscriptionCurrency

Currency details

Id string

SPM internal Subscription ID

ServiceName string

Customer friendly service name provided by PRG

Status string

Status of the plan

TimeEnd string

Represents the date when the last service of the subscription ends

TimeStart string

Represents the date when the first service of the subscription was activated

TotalValue string

Total aggregate TCLV of all lines for the subscription including expired, active, and signed

Type string

Subscription Type i.e. IAAS,SAAS,PAAS

currencies List<GetOrganizationSubscriptionsSubscriptionCurrency>

Currency details

id String

SPM internal Subscription ID

serviceName String

Customer friendly service name provided by PRG

status String

Status of the plan

timeEnd String

Represents the date when the last service of the subscription ends

timeStart String

Represents the date when the first service of the subscription was activated

totalValue String

Total aggregate TCLV of all lines for the subscription including expired, active, and signed

type String

Subscription Type i.e. IAAS,SAAS,PAAS

currencies GetOrganizationSubscriptionsSubscriptionCurrency[]

Currency details

id string

SPM internal Subscription ID

serviceName string

Customer friendly service name provided by PRG

status string

Status of the plan

timeEnd string

Represents the date when the last service of the subscription ends

timeStart string

Represents the date when the first service of the subscription was activated

totalValue string

Total aggregate TCLV of all lines for the subscription including expired, active, and signed

type string

Subscription Type i.e. IAAS,SAAS,PAAS

currencies GetOrganizationSubscriptionsSubscriptionCurrency]

Currency details

id str

SPM internal Subscription ID

service_name str

Customer friendly service name provided by PRG

status str

Status of the plan

time_end str

Represents the date when the last service of the subscription ends

time_start str

Represents the date when the first service of the subscription was activated

total_value str

Total aggregate TCLV of all lines for the subscription including expired, active, and signed

type str

Subscription Type i.e. IAAS,SAAS,PAAS

currencies List<Property Map>

Currency details

id String

SPM internal Subscription ID

serviceName String

Customer friendly service name provided by PRG

status String

Status of the plan

timeEnd String

Represents the date when the last service of the subscription ends

timeStart String

Represents the date when the first service of the subscription was activated

totalValue String

Total aggregate TCLV of all lines for the subscription including expired, active, and signed

type String

Subscription Type i.e. IAAS,SAAS,PAAS

GetOrganizationSubscriptionsSubscriptionCurrency

IsoCode string

Currency Code

Name string

Currency name

StdPrecision string

Standard Precision of the Currency

IsoCode string

Currency Code

Name string

Currency name

StdPrecision string

Standard Precision of the Currency

isoCode String

Currency Code

name String

Currency name

stdPrecision String

Standard Precision of the Currency

isoCode string

Currency Code

name string

Currency name

stdPrecision string

Standard Precision of the Currency

iso_code str

Currency Code

name str

Currency name

std_precision str

Standard Precision of the Currency

isoCode String

Currency Code

name String

Currency name

stdPrecision String

Standard Precision of the Currency

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.