Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getSubscriptionLineItems
Explore with Pulumi AI
This data source provides the list of Subscription Line Items in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
Lists the line items in a subscription.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSubscriptionLineItems = oci.Tenantmanagercontrolplane.getSubscriptionLineItems({
    subscriptionId: testSubscription.id,
});
import pulumi
import pulumi_oci as oci
test_subscription_line_items = oci.Tenantmanagercontrolplane.get_subscription_line_items(subscription_id=test_subscription["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/tenantmanagercontrolplane"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenantmanagercontrolplane.GetSubscriptionLineItems(ctx, &tenantmanagercontrolplane.GetSubscriptionLineItemsArgs{
			SubscriptionId: testSubscription.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 testSubscriptionLineItems = Oci.Tenantmanagercontrolplane.GetSubscriptionLineItems.Invoke(new()
    {
        SubscriptionId = testSubscription.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.GetSubscriptionLineItemsArgs;
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 testSubscriptionLineItems = TenantmanagercontrolplaneFunctions.getSubscriptionLineItems(GetSubscriptionLineItemsArgs.builder()
            .subscriptionId(testSubscription.id())
            .build());
    }
}
variables:
  testSubscriptionLineItems:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getSubscriptionLineItems
      arguments:
        subscriptionId: ${testSubscription.id}
Using getSubscriptionLineItems
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 getSubscriptionLineItems(args: GetSubscriptionLineItemsArgs, opts?: InvokeOptions): Promise<GetSubscriptionLineItemsResult>
function getSubscriptionLineItemsOutput(args: GetSubscriptionLineItemsOutputArgs, opts?: InvokeOptions): Output<GetSubscriptionLineItemsResult>def get_subscription_line_items(filters: Optional[Sequence[GetSubscriptionLineItemsFilter]] = None,
                                subscription_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetSubscriptionLineItemsResult
def get_subscription_line_items_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetSubscriptionLineItemsFilterArgs]]]] = None,
                                subscription_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetSubscriptionLineItemsResult]func GetSubscriptionLineItems(ctx *Context, args *GetSubscriptionLineItemsArgs, opts ...InvokeOption) (*GetSubscriptionLineItemsResult, error)
func GetSubscriptionLineItemsOutput(ctx *Context, args *GetSubscriptionLineItemsOutputArgs, opts ...InvokeOption) GetSubscriptionLineItemsResultOutput> Note: This function is named GetSubscriptionLineItems in the Go SDK.
public static class GetSubscriptionLineItems 
{
    public static Task<GetSubscriptionLineItemsResult> InvokeAsync(GetSubscriptionLineItemsArgs args, InvokeOptions? opts = null)
    public static Output<GetSubscriptionLineItemsResult> Invoke(GetSubscriptionLineItemsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSubscriptionLineItemsResult> getSubscriptionLineItems(GetSubscriptionLineItemsArgs args, InvokeOptions options)
public static Output<GetSubscriptionLineItemsResult> getSubscriptionLineItems(GetSubscriptionLineItemsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getSubscriptionLineItems:getSubscriptionLineItems
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SubscriptionId string
- OCID of the subscription.
- Filters
List<GetSubscription Line Items Filter> 
- SubscriptionId string
- OCID of the subscription.
- Filters
[]GetSubscription Line Items Filter 
- subscriptionId String
- OCID of the subscription.
- filters
List<GetSubscription Line Items Filter> 
- subscriptionId string
- OCID of the subscription.
- filters
GetSubscription Line Items Filter[] 
- subscription_id str
- OCID of the subscription.
- filters
Sequence[GetSubscription Line Items Filter] 
- subscriptionId String
- OCID of the subscription.
- filters List<Property Map>
getSubscriptionLineItems Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- SubscriptionId string
- SubscriptionLine List<GetItem Collections Subscription Line Items Subscription Line Item Collection> 
- The list of subscription_line_item_collection.
- Filters
List<GetSubscription Line Items Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- SubscriptionId string
- SubscriptionLine []GetItem Collections Subscription Line Items Subscription Line Item Collection 
- The list of subscription_line_item_collection.
- Filters
[]GetSubscription Line Items Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptionId String
- subscriptionLine List<GetItem Collections Subscription Line Items Subscription Line Item Collection> 
- The list of subscription_line_item_collection.
- filters
List<GetSubscription Line Items Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- subscriptionId string
- subscriptionLine GetItem Collections Subscription Line Items Subscription Line Item Collection[] 
- The list of subscription_line_item_collection.
- filters
GetSubscription Line Items Filter[] 
- id str
- The provider-assigned unique ID for this managed resource.
- subscription_id str
- subscription_line_ Sequence[Getitem_ collections Subscription Line Items Subscription Line Item Collection] 
- The list of subscription_line_item_collection.
- filters
Sequence[GetSubscription Line Items Filter] 
- id String
- The provider-assigned unique ID for this managed resource.
- subscriptionId String
- subscriptionLine List<Property Map>Item Collections 
- The list of subscription_line_item_collection.
- filters List<Property Map>
Supporting Types
GetSubscriptionLineItemsFilter    
GetSubscriptionLineItemsSubscriptionLineItemCollection       
- Items
List<GetSubscription Line Items Subscription Line Item Collection Item> 
- Array containing line item summaries in a subscription.
- Items
[]GetSubscription Line Items Subscription Line Item Collection Item 
- Array containing line item summaries in a subscription.
- items
List<GetSubscription Line Items Subscription Line Item Collection Item> 
- Array containing line item summaries in a subscription.
- items
GetSubscription Line Items Subscription Line Item Collection Item[] 
- Array containing line item summaries in a subscription.
- items
Sequence[GetSubscription Line Items Subscription Line Item Collection Item] 
- Array containing line item summaries in a subscription.
- items List<Property Map>
- Array containing line item summaries in a subscription.
GetSubscriptionLineItemsSubscriptionLineItemCollectionItem        
- BillingModel string
- Billing model supported by the associated line item.
- Id string
- Subscription line item identifier.
- ProductCode string
- Product code.
- Quantity double
- Product number.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeEnded string
- The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
- TimeStarted string
- The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
- BillingModel string
- Billing model supported by the associated line item.
- Id string
- Subscription line item identifier.
- ProductCode string
- Product code.
- Quantity float64
- Product number.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeEnded string
- The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
- TimeStarted string
- The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
- billingModel String
- Billing model supported by the associated line item.
- id String
- Subscription line item identifier.
- productCode String
- Product code.
- quantity Double
- Product number.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeEnded String
- The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
- timeStarted String
- The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
- billingModel string
- Billing model supported by the associated line item.
- id string
- Subscription line item identifier.
- productCode string
- Product code.
- quantity number
- Product number.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeEnded string
- The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
- timeStarted string
- The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
- billing_model str
- Billing model supported by the associated line item.
- id str
- Subscription line item identifier.
- product_code str
- Product code.
- quantity float
- Product number.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_ended str
- The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
- time_started str
- The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
- billingModel String
- Billing model supported by the associated line item.
- id String
- Subscription line item identifier.
- productCode String
- Product code.
- quantity Number
- Product number.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeEnded String
- The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
- timeStarted String
- The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.