Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 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[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[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:
- AssignedSubscription stringId 
- OCID of the assigned Oracle Cloud Subscription.
- Filters
List<GetAssigned Subscription Line Items Filter> 
- AssignedSubscription stringId 
- OCID of the assigned Oracle Cloud Subscription.
- Filters
[]GetAssigned Subscription Line Items Filter 
- assignedSubscription StringId 
- OCID of the assigned Oracle Cloud Subscription.
- filters
List<GetAssigned Subscription Line Items Filter> 
- assignedSubscription stringId 
- OCID of the assigned Oracle Cloud Subscription.
- filters
GetAssigned Subscription Line Items Filter[] 
- assigned_subscription_ strid 
- OCID of the assigned Oracle Cloud Subscription.
- filters
Sequence[GetAssigned Subscription Line Items Filter] 
- assignedSubscription StringId 
- OCID of the assigned Oracle Cloud Subscription.
- filters List<Property Map>
getAssignedSubscriptionLineItems Result
The following output properties are available:
- AssignedSubscription stringId 
- AssignedSubscription 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<GetAssigned Subscription Line Items Filter> 
- AssignedSubscription stringId 
- AssignedSubscription []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
[]GetAssigned Subscription Line Items Filter 
- assignedSubscription StringId 
- assignedSubscription 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<GetAssigned Subscription Line Items Filter> 
- assignedSubscription stringId 
- assignedSubscription 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
GetAssigned Subscription Line Items Filter[] 
- assigned_subscription_ strid 
- assigned_subscription_ Sequence[Getline_ item_ collections 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[GetAssigned Subscription Line Items Filter] 
- assignedSubscription StringId 
- assignedSubscription 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<GetAssigned Subscription Line Items Assigned Subscription Line Item Collection Item> 
- Array containing line item summaries in an assigned subscription.
- Items
[]GetAssigned Subscription Line Items Assigned Subscription Line Item Collection Item 
- Array containing line item summaries in an assigned subscription.
- items
List<GetAssigned Subscription Line Items Assigned Subscription Line Item Collection Item> 
- Array containing line item summaries in an assigned subscription.
- items
GetAssigned Subscription Line Items Assigned Subscription Line Item Collection Item[] 
- Array containing line item summaries in an assigned subscription.
- items
Sequence[GetAssigned 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          
- 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.
GetAssignedSubscriptionLineItemsFilter     
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.