Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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[_tenantmanagercontrolplane.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[_tenantmanagercontrolplane.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:
- Subscription
Id string - OCID of the subscription.
 - Filters
List<Get
Subscription Line Items Filter>  
- Subscription
Id string - OCID of the subscription.
 - Filters
[]Get
Subscription Line Items Filter  
- subscription
Id String - OCID of the subscription.
 - filters
List<Get
Subscription Line Items Filter>  
- subscription
Id string - OCID of the subscription.
 - filters
Get
Subscription Line Items Filter[]  
- subscription_
id str - OCID of the subscription.
 - filters
Sequence[tenantmanagercontrolplane.
Get Subscription Line Items Filter]  
- subscription
Id 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.
 - Subscription
Id string - Subscription
Line List<GetItem Collections Subscription Line Items Subscription Line Item Collection>  - The list of subscription_line_item_collection.
 - Filters
List<Get
Subscription Line Items Filter>  
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Subscription
Id string - Subscription
Line []GetItem Collections Subscription Line Items Subscription Line Item Collection  - The list of subscription_line_item_collection.
 - Filters
[]Get
Subscription Line Items Filter  
- id String
 - The provider-assigned unique ID for this managed resource.
 - subscription
Id String - subscription
Line List<GetItem Collections Subscription Line Items Subscription Line Item Collection>  - The list of subscription_line_item_collection.
 - filters
List<Get
Subscription Line Items Filter>  
- id string
 - The provider-assigned unique ID for this managed resource.
 - subscription
Id string - subscription
Line GetItem Collections Subscription Line Items Subscription Line Item Collection[]  - The list of subscription_line_item_collection.
 - filters
Get
Subscription Line Items Filter[]  
- id str
 - The provider-assigned unique ID for this managed resource.
 - subscription_
id str - subscription_
line_ Sequence[tenantmanagercontrolplane.item_ collections Get Subscription Line Items Subscription Line Item Collection]  - The list of subscription_line_item_collection.
 - filters
Sequence[tenantmanagercontrolplane.
Get Subscription Line Items Filter]  
- id String
 - The provider-assigned unique ID for this managed resource.
 - subscription
Id String - subscription
Line List<Property Map>Item Collections  - The list of subscription_line_item_collection.
 - filters List<Property Map>
 
Supporting Types
GetSubscriptionLineItemsFilter    
GetSubscriptionLineItemsSubscriptionLineItemCollection       
- Items
List<Get
Subscription Line Items Subscription Line Item Collection Item>  - Array containing line item summaries in a subscription.
 
- Items
[]Get
Subscription Line Items Subscription Line Item Collection Item  - Array containing line item summaries in a subscription.
 
- items
List<Get
Subscription Line Items Subscription Line Item Collection Item>  - Array containing line item summaries in a subscription.
 
- items
Get
Subscription Line Items Subscription Line Item Collection Item[]  - Array containing line item summaries in a subscription.
 
- items
Sequence[tenantmanagercontrolplane.
Get Subscription 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        
- Billing
Model string - Billing model supported by the associated line item.
 - Id string
 - Subscription line item identifier.
 - Product
Code 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"} - Time
Ended string - The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
 - Time
Started string - The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
 
- Billing
Model string - Billing model supported by the associated line item.
 - Id string
 - Subscription line item identifier.
 - Product
Code 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"} - Time
Ended string - The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
 - Time
Started string - The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
 
- billing
Model String - Billing model supported by the associated line item.
 - id String
 - Subscription line item identifier.
 - product
Code 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"} - time
Ended String - The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
 - time
Started String - The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
 
- billing
Model string - Billing model supported by the associated line item.
 - id string
 - Subscription line item identifier.
 - product
Code 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"} - time
Ended string - The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
 - time
Started 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.
 
- billing
Model String - Billing model supported by the associated line item.
 - id String
 - Subscription line item identifier.
 - product
Code 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"} - time
Ended String - The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
 - time
Started 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.