Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Tenantmanagercontrolplane.getAssignedSubscriptionLineItems
Explore with Pulumi AI
This data source provides the list of Assigned Subscription Line Items in Oracle Cloud Infrastructure Tenantmanagercontrolplane service.
List line item summaries that a assigned subscription owns.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAssignedSubscriptionLineItems = oci.Tenantmanagercontrolplane.getAssignedSubscriptionLineItems({
    assignedSubscriptionId: testAssignedSubscription.id,
});
import pulumi
import pulumi_oci as oci
test_assigned_subscription_line_items = oci.Tenantmanagercontrolplane.get_assigned_subscription_line_items(assigned_subscription_id=test_assigned_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.GetAssignedSubscriptionLineItems(ctx, &tenantmanagercontrolplane.GetAssignedSubscriptionLineItemsArgs{
			AssignedSubscriptionId: testAssignedSubscription.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 testAssignedSubscriptionLineItems = Oci.Tenantmanagercontrolplane.GetAssignedSubscriptionLineItems.Invoke(new()
    {
        AssignedSubscriptionId = testAssignedSubscription.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.GetAssignedSubscriptionLineItemsArgs;
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 testAssignedSubscriptionLineItems = TenantmanagercontrolplaneFunctions.getAssignedSubscriptionLineItems(GetAssignedSubscriptionLineItemsArgs.builder()
            .assignedSubscriptionId(testAssignedSubscription.id())
            .build());
    }
}
variables:
  testAssignedSubscriptionLineItems:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getAssignedSubscriptionLineItems
      arguments:
        assignedSubscriptionId: ${testAssignedSubscription.id}
Using getAssignedSubscriptionLineItems
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 getAssignedSubscriptionLineItems(args: GetAssignedSubscriptionLineItemsArgs, opts?: InvokeOptions): Promise<GetAssignedSubscriptionLineItemsResult>
function getAssignedSubscriptionLineItemsOutput(args: GetAssignedSubscriptionLineItemsOutputArgs, opts?: InvokeOptions): Output<GetAssignedSubscriptionLineItemsResult>def get_assigned_subscription_line_items(assigned_subscription_id: Optional[str] = None,
                                         filters: Optional[Sequence[_tenantmanagercontrolplane.GetAssignedSubscriptionLineItemsFilter]] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetAssignedSubscriptionLineItemsResult
def get_assigned_subscription_line_items_output(assigned_subscription_id: Optional[pulumi.Input[str]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_tenantmanagercontrolplane.GetAssignedSubscriptionLineItemsFilterArgs]]]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetAssignedSubscriptionLineItemsResult]func GetAssignedSubscriptionLineItems(ctx *Context, args *GetAssignedSubscriptionLineItemsArgs, opts ...InvokeOption) (*GetAssignedSubscriptionLineItemsResult, error)
func GetAssignedSubscriptionLineItemsOutput(ctx *Context, args *GetAssignedSubscriptionLineItemsOutputArgs, opts ...InvokeOption) GetAssignedSubscriptionLineItemsResultOutput> Note: This function is named GetAssignedSubscriptionLineItems in the Go SDK.
public static class GetAssignedSubscriptionLineItems 
{
    public static Task<GetAssignedSubscriptionLineItemsResult> InvokeAsync(GetAssignedSubscriptionLineItemsArgs args, InvokeOptions? opts = null)
    public static Output<GetAssignedSubscriptionLineItemsResult> Invoke(GetAssignedSubscriptionLineItemsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAssignedSubscriptionLineItemsResult> getAssignedSubscriptionLineItems(GetAssignedSubscriptionLineItemsArgs args, InvokeOptions options)
public static Output<GetAssignedSubscriptionLineItemsResult> getAssignedSubscriptionLineItems(GetAssignedSubscriptionLineItemsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getAssignedSubscriptionLineItems:getAssignedSubscriptionLineItems
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Assigned
Subscription stringId  - OCID of the assigned Oracle Cloud Subscription.
 - Filters
List<Get
Assigned Subscription Line Items Filter>  
- Assigned
Subscription stringId  - OCID of the assigned Oracle Cloud Subscription.
 - Filters
[]Get
Assigned Subscription Line Items Filter  
- assigned
Subscription StringId  - OCID of the assigned Oracle Cloud Subscription.
 - filters
List<Get
Assigned Subscription Line Items Filter>  
- assigned
Subscription stringId  - OCID of the assigned Oracle Cloud Subscription.
 - filters
Get
Assigned Subscription Line Items Filter[]  
- assigned_
subscription_ strid  - OCID of the assigned Oracle Cloud Subscription.
 - filters
Sequence[tenantmanagercontrolplane.
Get Assigned Subscription Line Items Filter]  
- assigned
Subscription StringId  - OCID of the assigned Oracle Cloud Subscription.
 - filters List<Property Map>
 
getAssignedSubscriptionLineItems Result
The following output properties are available:
- Assigned
Subscription stringId  - Assigned
Subscription List<GetLine Item Collections Assigned Subscription Line Items Assigned Subscription Line Item Collection>  - The list of assigned_subscription_line_item_collection.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Filters
List<Get
Assigned Subscription Line Items Filter>  
- Assigned
Subscription stringId  - Assigned
Subscription []GetLine Item Collections Assigned Subscription Line Items Assigned Subscription Line Item Collection  - The list of assigned_subscription_line_item_collection.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Filters
[]Get
Assigned Subscription Line Items Filter  
- assigned
Subscription StringId  - assigned
Subscription List<GetLine Item Collections Assigned Subscription Line Items Assigned Subscription Line Item Collection>  - The list of assigned_subscription_line_item_collection.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - filters
List<Get
Assigned Subscription Line Items Filter>  
- assigned
Subscription stringId  - assigned
Subscription GetLine Item Collections Assigned Subscription Line Items Assigned Subscription Line Item Collection[]  - The list of assigned_subscription_line_item_collection.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - filters
Get
Assigned Subscription Line Items Filter[]  
- assigned_
subscription_ strid  - assigned_
subscription_ Sequence[tenantmanagercontrolplane.line_ item_ collections Get Assigned Subscription Line Items Assigned Subscription Line Item Collection]  - The list of assigned_subscription_line_item_collection.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - filters
Sequence[tenantmanagercontrolplane.
Get Assigned Subscription Line Items Filter]  
- assigned
Subscription StringId  - assigned
Subscription List<Property Map>Line Item Collections  - The list of assigned_subscription_line_item_collection.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - filters List<Property Map>
 
Supporting Types
GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollection         
- Items
List<Get
Assigned Subscription Line Items Assigned Subscription Line Item Collection Item>  - Array containing line item summaries in an assigned subscription.
 
- Items
[]Get
Assigned Subscription Line Items Assigned Subscription Line Item Collection Item  - Array containing line item summaries in an assigned subscription.
 
- items
List<Get
Assigned Subscription Line Items Assigned Subscription Line Item Collection Item>  - Array containing line item summaries in an assigned subscription.
 
- items
Get
Assigned Subscription Line Items Assigned Subscription Line Item Collection Item[]  - Array containing line item summaries in an assigned subscription.
 
- items
Sequence[tenantmanagercontrolplane.
Get Assigned Subscription Line Items Assigned Subscription Line Item Collection Item]  - Array containing line item summaries in an assigned subscription.
 
- items List<Property Map>
 - Array containing line item summaries in an assigned subscription.
 
GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollectionItem          
- 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.
 
GetAssignedSubscriptionLineItemsFilter     
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.