Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
This data source provides details about a specific Subscription resource in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Gets the subscription details by subscription ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSubscription = oci.Tenantmanagercontrolplane.getSubscription({
subscriptionId: testSubscriptionOciTenantmanagercontrolplaneSubscription.id,
});
import pulumi
import pulumi_oci as oci
test_subscription = oci.Tenantmanagercontrolplane.get_subscription(subscription_id=test_subscription_oci_tenantmanagercontrolplane_subscription["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/tenantmanagercontrolplane"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tenantmanagercontrolplane.GetSubscription(ctx, &tenantmanagercontrolplane.GetSubscriptionArgs{
SubscriptionId: testSubscriptionOciTenantmanagercontrolplaneSubscription.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 testSubscription = Oci.Tenantmanagercontrolplane.GetSubscription.Invoke(new()
{
SubscriptionId = testSubscriptionOciTenantmanagercontrolplaneSubscription.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.GetSubscriptionArgs;
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 testSubscription = TenantmanagercontrolplaneFunctions.getSubscription(GetSubscriptionArgs.builder()
.subscriptionId(testSubscriptionOciTenantmanagercontrolplaneSubscription.id())
.build());
}
}
variables:
testSubscription:
fn::invoke:
function: oci:Tenantmanagercontrolplane:getSubscription
arguments:
subscriptionId: ${testSubscriptionOciTenantmanagercontrolplaneSubscription.id}
Using getSubscription
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 getSubscription(args: GetSubscriptionArgs, opts?: InvokeOptions): Promise<GetSubscriptionResult>
function getSubscriptionOutput(args: GetSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionResult>def get_subscription(subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSubscriptionResult
def get_subscription_output(subscription_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionResult]func GetSubscription(ctx *Context, args *GetSubscriptionArgs, opts ...InvokeOption) (*GetSubscriptionResult, error)
func GetSubscriptionOutput(ctx *Context, args *GetSubscriptionOutputArgs, opts ...InvokeOption) GetSubscriptionResultOutput> Note: This function is named GetSubscription in the Go SDK.
public static class GetSubscription
{
public static Task<GetSubscriptionResult> InvokeAsync(GetSubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetSubscriptionResult> Invoke(GetSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubscriptionResult> getSubscription(GetSubscriptionArgs args, InvokeOptions options)
public static Output<GetSubscriptionResult> getSubscription(GetSubscriptionArgs args, InvokeOptions options)
fn::invoke:
function: oci:Tenantmanagercontrolplane/getSubscription:getSubscription
arguments:
# arguments dictionaryThe following arguments are supported:
- Subscription
Id string - OCID of the subscription.
- Subscription
Id string - OCID of the subscription.
- subscription
Id String - OCID of the subscription.
- subscription
Id string - OCID of the subscription.
- subscription_
id str - OCID of the subscription.
- subscription
Id String - OCID of the subscription.
getSubscription Result
The following output properties are available:
- Classic
Subscription stringId - Classic subscription ID.
- Cloud
Amount stringCurrency - The currency code for the customer associated with the subscription.
- Compartment
Id string - The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.
- Csi
Number string - Customer service identifier for the customer associated with the subscription.
- Currency
Code string - Currency code. For example USD, MXN.
- Customer
Country stringCode - The country code for the customer associated with the subscription.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - End
Date string - Date and time when the SKU ended.
- Entity
Version string - The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Classic boolSubscription - Specifies whether or not the subscription is from classic systems.
- Is
Government boolSubscription - Specifies whether or not the subscription is a government subscription.
- Payment
Model string - The pay model of the subscription, such as 'Pay as you go' or 'Monthly'.
- Program
Type string - Specifies any program that is associated with the subscription.
- Promotions
List<Get
Subscription Promotion> - List of promotions related to the subscription.
- Purchase
Entitlement stringId - Purchase entitlement ID associated with the subscription.
- Region
Assignment string - Region for the subscription.
- Service
Name string - The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'.
- Skuses
List<Get
Subscription Skus> - List of SKUs linked to this subscription.
- Start
Date string - Subscription start time.
- State string
- Lifecycle state of the subscription.
- Subscription
Id string - Subscription
Number string - Unique Oracle Cloud Subscriptions identifier that is immutable on creation.
- Subscription
Tier string - Tier for the subscription, whether a free promotion subscription or a paid subscription.
- Time
Created string - The date and time of creation, as described in RFC 3339, section 14.29.
- Time
Updated string - The date and time of update, as described in RFC 3339, section 14.29.
- Classic
Subscription stringId - Classic subscription ID.
- Cloud
Amount stringCurrency - The currency code for the customer associated with the subscription.
- Compartment
Id string - The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.
- Csi
Number string - Customer service identifier for the customer associated with the subscription.
- Currency
Code string - Currency code. For example USD, MXN.
- Customer
Country stringCode - The country code for the customer associated with the subscription.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - End
Date string - Date and time when the SKU ended.
- Entity
Version string - The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Classic boolSubscription - Specifies whether or not the subscription is from classic systems.
- Is
Government boolSubscription - Specifies whether or not the subscription is a government subscription.
- Payment
Model string - The pay model of the subscription, such as 'Pay as you go' or 'Monthly'.
- Program
Type string - Specifies any program that is associated with the subscription.
- Promotions
[]Get
Subscription Promotion - List of promotions related to the subscription.
- Purchase
Entitlement stringId - Purchase entitlement ID associated with the subscription.
- Region
Assignment string - Region for the subscription.
- Service
Name string - The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'.
- Skuses
[]Get
Subscription Skus - List of SKUs linked to this subscription.
- Start
Date string - Subscription start time.
- State string
- Lifecycle state of the subscription.
- Subscription
Id string - Subscription
Number string - Unique Oracle Cloud Subscriptions identifier that is immutable on creation.
- Subscription
Tier string - Tier for the subscription, whether a free promotion subscription or a paid subscription.
- Time
Created string - The date and time of creation, as described in RFC 3339, section 14.29.
- Time
Updated string - The date and time of update, as described in RFC 3339, section 14.29.
- classic
Subscription StringId - Classic subscription ID.
- cloud
Amount StringCurrency - The currency code for the customer associated with the subscription.
- compartment
Id String - The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.
- csi
Number String - Customer service identifier for the customer associated with the subscription.
- currency
Code String - Currency code. For example USD, MXN.
- customer
Country StringCode - The country code for the customer associated with the subscription.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - end
Date String - Date and time when the SKU ended.
- entity
Version String - The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The provider-assigned unique ID for this managed resource.
- is
Classic BooleanSubscription - Specifies whether or not the subscription is from classic systems.
- is
Government BooleanSubscription - Specifies whether or not the subscription is a government subscription.
- payment
Model String - The pay model of the subscription, such as 'Pay as you go' or 'Monthly'.
- program
Type String - Specifies any program that is associated with the subscription.
- promotions
List<Get
Subscription Promotion> - List of promotions related to the subscription.
- purchase
Entitlement StringId - Purchase entitlement ID associated with the subscription.
- region
Assignment String - Region for the subscription.
- service
Name String - The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'.
- skuses
List<Get
Subscription Skus> - List of SKUs linked to this subscription.
- start
Date String - Subscription start time.
- state String
- Lifecycle state of the subscription.
- subscription
Id String - subscription
Number String - Unique Oracle Cloud Subscriptions identifier that is immutable on creation.
- subscription
Tier String - Tier for the subscription, whether a free promotion subscription or a paid subscription.
- time
Created String - The date and time of creation, as described in RFC 3339, section 14.29.
- time
Updated String - The date and time of update, as described in RFC 3339, section 14.29.
- classic
Subscription stringId - Classic subscription ID.
- cloud
Amount stringCurrency - The currency code for the customer associated with the subscription.
- compartment
Id string - The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.
- csi
Number string - Customer service identifier for the customer associated with the subscription.
- currency
Code string - Currency code. For example USD, MXN.
- customer
Country stringCode - The country code for the customer associated with the subscription.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - end
Date string - Date and time when the SKU ended.
- entity
Version string - The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id string
- The provider-assigned unique ID for this managed resource.
- is
Classic booleanSubscription - Specifies whether or not the subscription is from classic systems.
- is
Government booleanSubscription - Specifies whether or not the subscription is a government subscription.
- payment
Model string - The pay model of the subscription, such as 'Pay as you go' or 'Monthly'.
- program
Type string - Specifies any program that is associated with the subscription.
- promotions
Get
Subscription Promotion[] - List of promotions related to the subscription.
- purchase
Entitlement stringId - Purchase entitlement ID associated with the subscription.
- region
Assignment string - Region for the subscription.
- service
Name string - The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'.
- skuses
Get
Subscription Skus[] - List of SKUs linked to this subscription.
- start
Date string - Subscription start time.
- state string
- Lifecycle state of the subscription.
- subscription
Id string - subscription
Number string - Unique Oracle Cloud Subscriptions identifier that is immutable on creation.
- subscription
Tier string - Tier for the subscription, whether a free promotion subscription or a paid subscription.
- time
Created string - The date and time of creation, as described in RFC 3339, section 14.29.
- time
Updated string - The date and time of update, as described in RFC 3339, section 14.29.
- classic_
subscription_ strid - Classic subscription ID.
- cloud_
amount_ strcurrency - The currency code for the customer associated with the subscription.
- compartment_
id str - The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.
- csi_
number str - Customer service identifier for the customer associated with the subscription.
- currency_
code str - Currency code. For example USD, MXN.
- customer_
country_ strcode - The country code for the customer associated with the subscription.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - end_
date str - Date and time when the SKU ended.
- entity_
version str - The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id str
- The provider-assigned unique ID for this managed resource.
- is_
classic_ boolsubscription - Specifies whether or not the subscription is from classic systems.
- is_
government_ boolsubscription - Specifies whether or not the subscription is a government subscription.
- payment_
model str - The pay model of the subscription, such as 'Pay as you go' or 'Monthly'.
- program_
type str - Specifies any program that is associated with the subscription.
- promotions
Sequence[Get
Subscription Promotion] - List of promotions related to the subscription.
- purchase_
entitlement_ strid - Purchase entitlement ID associated with the subscription.
- region_
assignment str - Region for the subscription.
- service_
name str - The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'.
- skuses
Sequence[Get
Subscription Skus] - List of SKUs linked to this subscription.
- start_
date str - Subscription start time.
- state str
- Lifecycle state of the subscription.
- subscription_
id str - subscription_
number str - Unique Oracle Cloud Subscriptions identifier that is immutable on creation.
- subscription_
tier str - Tier for the subscription, whether a free promotion subscription or a paid subscription.
- time_
created str - The date and time of creation, as described in RFC 3339, section 14.29.
- time_
updated str - The date and time of update, as described in RFC 3339, section 14.29.
- classic
Subscription StringId - Classic subscription ID.
- cloud
Amount StringCurrency - The currency code for the customer associated with the subscription.
- compartment
Id String - The Oracle ID (OCID) of the owning compartment. Always a tenancy OCID.
- csi
Number String - Customer service identifier for the customer associated with the subscription.
- currency
Code String - Currency code. For example USD, MXN.
- customer
Country StringCode - The country code for the customer associated with the subscription.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"} - end
Date String - Date and time when the SKU ended.
- entity
Version String - The entity version of the subscription, whether V1 (the legacy schema version), or V2 (the latest 20230401 API version).
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"} - id String
- The provider-assigned unique ID for this managed resource.
- is
Classic BooleanSubscription - Specifies whether or not the subscription is from classic systems.
- is
Government BooleanSubscription - Specifies whether or not the subscription is a government subscription.
- payment
Model String - The pay model of the subscription, such as 'Pay as you go' or 'Monthly'.
- program
Type String - Specifies any program that is associated with the subscription.
- promotions List<Property Map>
- List of promotions related to the subscription.
- purchase
Entitlement StringId - Purchase entitlement ID associated with the subscription.
- region
Assignment String - Region for the subscription.
- service
Name String - The type of subscription, such as 'UCM', 'SAAS', 'ERP', 'CRM'.
- skuses List<Property Map>
- List of SKUs linked to this subscription.
- start
Date String - Subscription start time.
- state String
- Lifecycle state of the subscription.
- subscription
Id String - subscription
Number String - Unique Oracle Cloud Subscriptions identifier that is immutable on creation.
- subscription
Tier String - Tier for the subscription, whether a free promotion subscription or a paid subscription.
- time
Created String - The date and time of creation, as described in RFC 3339, section 14.29.
- time
Updated String - The date and time of update, as described in RFC 3339, section 14.29.
Supporting Types
GetSubscriptionPromotion
- Amount double
- If a subscription is present, indicates the total amount of promotional subscription credits.
- Currency
Unit string - Currency unit associated with the promotion.
- Duration int
- Specifies how long the promotion related to the subscription, if any, is valid in duration units.
- Duration
Unit string - Unit for the duration.
- Is
Intent boolTo Pay - Speficies whether or not the customer intends to pay after the promotion has expired.
- Status string
- If a subscription is present, indicates the current status of the subscription promotion.
- Time
Expired string - Date and time when the promotion ends.
- Time
Started string - Date and time when the promotion starts.
- Amount float64
- If a subscription is present, indicates the total amount of promotional subscription credits.
- Currency
Unit string - Currency unit associated with the promotion.
- Duration int
- Specifies how long the promotion related to the subscription, if any, is valid in duration units.
- Duration
Unit string - Unit for the duration.
- Is
Intent boolTo Pay - Speficies whether or not the customer intends to pay after the promotion has expired.
- Status string
- If a subscription is present, indicates the current status of the subscription promotion.
- Time
Expired string - Date and time when the promotion ends.
- Time
Started string - Date and time when the promotion starts.
- amount Double
- If a subscription is present, indicates the total amount of promotional subscription credits.
- currency
Unit String - Currency unit associated with the promotion.
- duration Integer
- Specifies how long the promotion related to the subscription, if any, is valid in duration units.
- duration
Unit String - Unit for the duration.
- is
Intent BooleanTo Pay - Speficies whether or not the customer intends to pay after the promotion has expired.
- status String
- If a subscription is present, indicates the current status of the subscription promotion.
- time
Expired String - Date and time when the promotion ends.
- time
Started String - Date and time when the promotion starts.
- amount number
- If a subscription is present, indicates the total amount of promotional subscription credits.
- currency
Unit string - Currency unit associated with the promotion.
- duration number
- Specifies how long the promotion related to the subscription, if any, is valid in duration units.
- duration
Unit string - Unit for the duration.
- is
Intent booleanTo Pay - Speficies whether or not the customer intends to pay after the promotion has expired.
- status string
- If a subscription is present, indicates the current status of the subscription promotion.
- time
Expired string - Date and time when the promotion ends.
- time
Started string - Date and time when the promotion starts.
- amount float
- If a subscription is present, indicates the total amount of promotional subscription credits.
- currency_
unit str - Currency unit associated with the promotion.
- duration int
- Specifies how long the promotion related to the subscription, if any, is valid in duration units.
- duration_
unit str - Unit for the duration.
- is_
intent_ boolto_ pay - Speficies whether or not the customer intends to pay after the promotion has expired.
- status str
- If a subscription is present, indicates the current status of the subscription promotion.
- time_
expired str - Date and time when the promotion ends.
- time_
started str - Date and time when the promotion starts.
- amount Number
- If a subscription is present, indicates the total amount of promotional subscription credits.
- currency
Unit String - Currency unit associated with the promotion.
- duration Number
- Specifies how long the promotion related to the subscription, if any, is valid in duration units.
- duration
Unit String - Unit for the duration.
- is
Intent BooleanTo Pay - Speficies whether or not the customer intends to pay after the promotion has expired.
- status String
- If a subscription is present, indicates the current status of the subscription promotion.
- time
Expired String - Date and time when the promotion ends.
- time
Started String - Date and time when the promotion starts.
GetSubscriptionSkus
- Description string
- Description of the stock units.
- End
Date string - Date and time when the SKU ended.
- Gsi
Order stringLine Id - Sales order line identifier.
- Is
Additional boolInstance - Specifies if an additional test instance can be provisioned by the SaaS application.
- Is
Base boolService Component - Specifies if the SKU is considered as a parent or child.
- License
Part stringDescription - Description of the covered product belonging to this SKU.
- Metric
Name string - Base metric for billing the service.
- Quantity int
- Quantity of the stock units.
- Sku string
- Stock Keeping Unit (SKU) ID.
- Start
Date string - Subscription start time.
- Description string
- Description of the stock units.
- End
Date string - Date and time when the SKU ended.
- Gsi
Order stringLine Id - Sales order line identifier.
- Is
Additional boolInstance - Specifies if an additional test instance can be provisioned by the SaaS application.
- Is
Base boolService Component - Specifies if the SKU is considered as a parent or child.
- License
Part stringDescription - Description of the covered product belonging to this SKU.
- Metric
Name string - Base metric for billing the service.
- Quantity int
- Quantity of the stock units.
- Sku string
- Stock Keeping Unit (SKU) ID.
- Start
Date string - Subscription start time.
- description String
- Description of the stock units.
- end
Date String - Date and time when the SKU ended.
- gsi
Order StringLine Id - Sales order line identifier.
- is
Additional BooleanInstance - Specifies if an additional test instance can be provisioned by the SaaS application.
- is
Base BooleanService Component - Specifies if the SKU is considered as a parent or child.
- license
Part StringDescription - Description of the covered product belonging to this SKU.
- metric
Name String - Base metric for billing the service.
- quantity Integer
- Quantity of the stock units.
- sku String
- Stock Keeping Unit (SKU) ID.
- start
Date String - Subscription start time.
- description string
- Description of the stock units.
- end
Date string - Date and time when the SKU ended.
- gsi
Order stringLine Id - Sales order line identifier.
- is
Additional booleanInstance - Specifies if an additional test instance can be provisioned by the SaaS application.
- is
Base booleanService Component - Specifies if the SKU is considered as a parent or child.
- license
Part stringDescription - Description of the covered product belonging to this SKU.
- metric
Name string - Base metric for billing the service.
- quantity number
- Quantity of the stock units.
- sku string
- Stock Keeping Unit (SKU) ID.
- start
Date string - Subscription start time.
- description str
- Description of the stock units.
- end_
date str - Date and time when the SKU ended.
- gsi_
order_ strline_ id - Sales order line identifier.
- is_
additional_ boolinstance - Specifies if an additional test instance can be provisioned by the SaaS application.
- is_
base_ boolservice_ component - Specifies if the SKU is considered as a parent or child.
- license_
part_ strdescription - Description of the covered product belonging to this SKU.
- metric_
name str - Base metric for billing the service.
- quantity int
- Quantity of the stock units.
- sku str
- Stock Keeping Unit (SKU) ID.
- start_
date str - Subscription start time.
- description String
- Description of the stock units.
- end
Date String - Date and time when the SKU ended.
- gsi
Order StringLine Id - Sales order line identifier.
- is
Additional BooleanInstance - Specifies if an additional test instance can be provisioned by the SaaS application.
- is
Base BooleanService Component - Specifies if the SKU is considered as a parent or child.
- license
Part StringDescription - Description of the covered product belonging to this SKU.
- metric
Name String - Base metric for billing the service.
- quantity Number
- Quantity of the stock units.
- sku String
- Stock Keeping Unit (SKU) ID.
- start
Date String - Subscription start time.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
