1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Tenantmanagercontrolplane
  5. getAssignedSubscriptionLineItems
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Tenantmanagercontrolplane.getAssignedSubscriptionLineItems

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testAssignedSubscriptionLineItems:
    fn::invoke:
      function: oci:Tenantmanagercontrolplane:getAssignedSubscriptionLineItems
      arguments:
        assignedSubscriptionId: ${testAssignedSubscription.id}
Copy

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>
Copy
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]
Copy
func GetAssignedSubscriptionLineItems(ctx *Context, args *GetAssignedSubscriptionLineItemsArgs, opts ...InvokeOption) (*GetAssignedSubscriptionLineItemsResult, error)
func GetAssignedSubscriptionLineItemsOutput(ctx *Context, args *GetAssignedSubscriptionLineItemsOutputArgs, opts ...InvokeOption) GetAssignedSubscriptionLineItemsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAssignedSubscriptionLineItemsResult> getAssignedSubscriptionLineItems(GetAssignedSubscriptionLineItemsArgs args, InvokeOptions options)
public static Output<GetAssignedSubscriptionLineItemsResult> getAssignedSubscriptionLineItems(GetAssignedSubscriptionLineItemsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Tenantmanagercontrolplane/getAssignedSubscriptionLineItems:getAssignedSubscriptionLineItems
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AssignedSubscriptionId This property is required. string
OCID of the assigned Oracle Cloud Subscription.
Filters Changes to this property will trigger replacement. List<GetAssignedSubscriptionLineItemsFilter>
AssignedSubscriptionId This property is required. string
OCID of the assigned Oracle Cloud Subscription.
Filters Changes to this property will trigger replacement. []GetAssignedSubscriptionLineItemsFilter
assignedSubscriptionId This property is required. String
OCID of the assigned Oracle Cloud Subscription.
filters Changes to this property will trigger replacement. List<GetAssignedSubscriptionLineItemsFilter>
assignedSubscriptionId This property is required. string
OCID of the assigned Oracle Cloud Subscription.
filters Changes to this property will trigger replacement. GetAssignedSubscriptionLineItemsFilter[]
assigned_subscription_id This property is required. str
OCID of the assigned Oracle Cloud Subscription.
filters Changes to this property will trigger replacement. Sequence[tenantmanagercontrolplane.GetAssignedSubscriptionLineItemsFilter]
assignedSubscriptionId This property is required. String
OCID of the assigned Oracle Cloud Subscription.
filters Changes to this property will trigger replacement. List<Property Map>

getAssignedSubscriptionLineItems Result

The following output properties are available:

AssignedSubscriptionId string
AssignedSubscriptionLineItemCollections List<GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollection>
The list of assigned_subscription_line_item_collection.
Id string
The provider-assigned unique ID for this managed resource.
Filters List<GetAssignedSubscriptionLineItemsFilter>
AssignedSubscriptionId string
AssignedSubscriptionLineItemCollections []GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollection
The list of assigned_subscription_line_item_collection.
Id string
The provider-assigned unique ID for this managed resource.
Filters []GetAssignedSubscriptionLineItemsFilter
assignedSubscriptionId String
assignedSubscriptionLineItemCollections List<GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollection>
The list of assigned_subscription_line_item_collection.
id String
The provider-assigned unique ID for this managed resource.
filters List<GetAssignedSubscriptionLineItemsFilter>
assignedSubscriptionId string
assignedSubscriptionLineItemCollections GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollection[]
The list of assigned_subscription_line_item_collection.
id string
The provider-assigned unique ID for this managed resource.
filters GetAssignedSubscriptionLineItemsFilter[]
assignedSubscriptionId String
assignedSubscriptionLineItemCollections List<Property Map>
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 This property is required. List<GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollectionItem>
Array containing line item summaries in an assigned subscription.
Items This property is required. []GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollectionItem
Array containing line item summaries in an assigned subscription.
items This property is required. List<GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollectionItem>
Array containing line item summaries in an assigned subscription.
items This property is required. GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollectionItem[]
Array containing line item summaries in an assigned subscription.
items This property is required. Sequence[tenantmanagercontrolplane.GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollectionItem]
Array containing line item summaries in an assigned subscription.
items This property is required. List<Property Map>
Array containing line item summaries in an assigned subscription.

GetAssignedSubscriptionLineItemsAssignedSubscriptionLineItemCollectionItem

BillingModel This property is required. string
Billing model supported by the associated line item.
Id This property is required. string
Subscription line item identifier.
ProductCode This property is required. string
Product code.
Quantity This property is required. double
Product number.
SystemTags This property is required. Dictionary<string, string>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeEnded This property is required. string
The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
TimeStarted This property is required. string
The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
BillingModel This property is required. string
Billing model supported by the associated line item.
Id This property is required. string
Subscription line item identifier.
ProductCode This property is required. string
Product code.
Quantity This property is required. float64
Product number.
SystemTags This property is required. map[string]string
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeEnded This property is required. string
The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
TimeStarted This property is required. string
The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
billingModel This property is required. String
Billing model supported by the associated line item.
id This property is required. String
Subscription line item identifier.
productCode This property is required. String
Product code.
quantity This property is required. Double
Product number.
systemTags This property is required. Map<String,String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeEnded This property is required. String
The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
timeStarted This property is required. String
The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
billingModel This property is required. string
Billing model supported by the associated line item.
id This property is required. string
Subscription line item identifier.
productCode This property is required. string
Product code.
quantity This property is required. number
Product number.
systemTags This property is required. {[key: string]: string}
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeEnded This property is required. string
The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
timeStarted This property is required. string
The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
billing_model This property is required. str
Billing model supported by the associated line item.
id This property is required. str
Subscription line item identifier.
product_code This property is required. str
Product code.
quantity This property is required. float
Product number.
system_tags This property is required. Mapping[str, str]
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
time_ended This property is required. str
The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
time_started This property is required. str
The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.
billingModel This property is required. String
Billing model supported by the associated line item.
id This property is required. String
Subscription line item identifier.
productCode This property is required. String
Product code.
quantity This property is required. Number
Product number.
systemTags This property is required. Map<String>
Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
timeEnded This property is required. String
The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.
timeStarted This property is required. String
The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.

GetAssignedSubscriptionLineItemsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi