Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.OsubOrganizationSubscription.getOrganizationSubscriptions
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOrganizationSubscriptions = oci.OsubOrganizationSubscription.getOrganizationSubscriptions({
compartmentId: compartmentId,
subscriptionIds: organizationSubscriptionSubscriptionIds,
xOneOriginRegion: organizationSubscriptionXOneOriginRegion,
});
import pulumi
import pulumi_oci as oci
test_organization_subscriptions = oci.OsubOrganizationSubscription.get_organization_subscriptions(compartment_id=compartment_id,
subscription_ids=organization_subscription_subscription_ids,
x_one_origin_region=organization_subscription_x_one_origin_region)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: compartmentId,
SubscriptionIds: organizationSubscriptionSubscriptionIds,
XOneOriginRegion: pulumi.StringRef(organizationSubscriptionXOneOriginRegion),
}, 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 testOrganizationSubscriptions = Oci.OsubOrganizationSubscription.GetOrganizationSubscriptions.Invoke(new()
{
CompartmentId = compartmentId,
SubscriptionIds = organizationSubscriptionSubscriptionIds,
XOneOriginRegion = organizationSubscriptionXOneOriginRegion,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsubOrganizationSubscription.OsubOrganizationSubscriptionFunctions;
import com.pulumi.oci.OsubOrganizationSubscription.inputs.GetOrganizationSubscriptionsArgs;
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 testOrganizationSubscriptions = OsubOrganizationSubscriptionFunctions.getOrganizationSubscriptions(GetOrganizationSubscriptionsArgs.builder()
.compartmentId(compartmentId)
.subscriptionIds(organizationSubscriptionSubscriptionIds)
.xOneOriginRegion(organizationSubscriptionXOneOriginRegion)
.build());
}
}
variables:
testOrganizationSubscriptions:
fn::invoke:
Function: oci:OsubOrganizationSubscription:getOrganizationSubscriptions
Arguments:
compartmentId: ${compartmentId}
subscriptionIds: ${organizationSubscriptionSubscriptionIds}
xOneOriginRegion: ${organizationSubscriptionXOneOriginRegion}
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:
- Compartment
Id string - The OCID of the compartment.
- Subscription
Ids string - Comma separated list of subscription ids, pass "DUMMY" as value
- Filters
List<Get
Organization Subscriptions Filter> - XOne
Origin stringRegion - 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 string - The OCID of the compartment.
- Subscription
Ids string - Comma separated list of subscription ids, pass "DUMMY" as value
- Filters
[]Get
Organization Subscriptions Filter - XOne
Origin stringRegion - 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 String - The OCID of the compartment.
- subscription
Ids String - Comma separated list of subscription ids, pass "DUMMY" as value
- filters
List<Get
Organization Subscriptions Filter> - x
One StringOrigin Region - 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 string - The OCID of the compartment.
- subscription
Ids string - Comma separated list of subscription ids, pass "DUMMY" as value
- filters
Get
Organization Subscriptions Filter[] - x
One stringOrigin Region - 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
Sequence[osuborganizationsubscription.
Get Organization Subscriptions Filter] - x_
one_ strorigin_ region - 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 String - The OCID of the compartment.
- subscription
Ids String - Comma separated list of subscription ids, pass "DUMMY" as value
- filters List<Property Map>
- x
One StringOrigin Region - 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:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Ids string - Subscriptions
List<Get
Organization Subscriptions Subscription> - The list of subscriptions.
- Filters
List<Get
Organization Subscriptions Filter> - XOne
Origin stringRegion
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Subscription
Ids string - Subscriptions
[]Get
Organization Subscriptions Subscription - The list of subscriptions.
- Filters
[]Get
Organization Subscriptions Filter - XOne
Origin stringRegion
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Ids String - subscriptions
List<Get
Organization Subscriptions Subscription> - The list of subscriptions.
- filters
List<Get
Organization Subscriptions Filter> - x
One StringOrigin Region
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- subscription
Ids string - subscriptions
Get
Organization Subscriptions Subscription[] - The list of subscriptions.
- filters
Get
Organization Subscriptions Filter[] - x
One stringOrigin Region
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- subscription_
ids str - subscriptions
Sequence[osuborganizationsubscription.
Get Organization Subscriptions Subscription] - The list of subscriptions.
- filters
Sequence[osuborganizationsubscription.
Get Organization Subscriptions Filter] - x_
one_ strorigin_ region
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- subscription
Ids String - subscriptions List<Property Map>
- The list of subscriptions.
- filters List<Property Map>
- x
One StringOrigin Region
Supporting Types
GetOrganizationSubscriptionsFilter
GetOrganizationSubscriptionsSubscription
- Currencies
List<Get
Organization Subscriptions Subscription Currency> - Currency details
- Id string
- SPM internal Subscription ID
- Service
Name string - Customer friendly service name provided by PRG
- Status string
- Status of the plan
- Time
End string - Represents the date when the last service of the subscription ends
- Time
Start string - Represents the date when the first service of the subscription was activated
- Total
Value 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
[]Get
Organization Subscriptions Subscription Currency - Currency details
- Id string
- SPM internal Subscription ID
- Service
Name string - Customer friendly service name provided by PRG
- Status string
- Status of the plan
- Time
End string - Represents the date when the last service of the subscription ends
- Time
Start string - Represents the date when the first service of the subscription was activated
- Total
Value 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<Get
Organization Subscriptions Subscription Currency> - Currency details
- id String
- SPM internal Subscription ID
- service
Name String - Customer friendly service name provided by PRG
- status String
- Status of the plan
- time
End String - Represents the date when the last service of the subscription ends
- time
Start String - Represents the date when the first service of the subscription was activated
- total
Value 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
Get
Organization Subscriptions Subscription Currency[] - Currency details
- id string
- SPM internal Subscription ID
- service
Name string - Customer friendly service name provided by PRG
- status string
- Status of the plan
- time
End string - Represents the date when the last service of the subscription ends
- time
Start string - Represents the date when the first service of the subscription was activated
- total
Value 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
Sequence[osuborganizationsubscription.
Get Organization Subscriptions Subscription Currency] - 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
- service
Name String - Customer friendly service name provided by PRG
- status String
- Status of the plan
- time
End String - Represents the date when the last service of the subscription ends
- time
Start String - Represents the date when the first service of the subscription was activated
- total
Value 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
- Iso
Code string - Currency Code
- Name string
- Currency name
- Std
Precision string - Standard Precision of the Currency
- Iso
Code string - Currency Code
- Name string
- Currency name
- Std
Precision string - Standard Precision of the Currency
- iso
Code String - Currency Code
- name String
- Currency name
- std
Precision String - Standard Precision of the Currency
- iso
Code string - Currency Code
- name string
- Currency name
- std
Precision string - Standard Precision of the Currency
- iso_
code str - Currency Code
- name str
- Currency name
- std_
precision str - Standard Precision of the Currency
- iso
Code String - Currency Code
- name String
- Currency name
- std
Precision String - Standard Precision of the Currency
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.