1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Tenantmanagercontrolplane
  5. getSubscriptionLineItems
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Tenantmanagercontrolplane.getSubscriptionLineItems

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

    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 dictionary

    The following arguments are supported:

    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
    SubscriptionLineItemCollections List<GetSubscriptionLineItemsSubscriptionLineItemCollection>
    The list of subscription_line_item_collection.
    Filters List<GetSubscriptionLineItemsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    SubscriptionId string
    SubscriptionLineItemCollections []GetSubscriptionLineItemsSubscriptionLineItemCollection
    The list of subscription_line_item_collection.
    Filters []GetSubscriptionLineItemsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionId String
    subscriptionLineItemCollections List<GetSubscriptionLineItemsSubscriptionLineItemCollection>
    The list of subscription_line_item_collection.
    filters List<GetSubscriptionLineItemsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    subscriptionId string
    subscriptionLineItemCollections GetSubscriptionLineItemsSubscriptionLineItemCollection[]
    The list of subscription_line_item_collection.
    filters GetSubscriptionLineItemsFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    subscriptionId String
    subscriptionLineItemCollections List<Property Map>
    The list of subscription_line_item_collection.
    filters List<Property Map>

    Supporting Types

    GetSubscriptionLineItemsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetSubscriptionLineItemsSubscriptionLineItemCollection

    Items List<GetSubscriptionLineItemsSubscriptionLineItemCollectionItem>
    Array containing line item summaries in a subscription.
    Items []GetSubscriptionLineItemsSubscriptionLineItemCollectionItem
    Array containing line item summaries in a subscription.
    items List<GetSubscriptionLineItemsSubscriptionLineItemCollectionItem>
    Array containing line item summaries in a subscription.
    items GetSubscriptionLineItemsSubscriptionLineItemCollectionItem[]
    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.
    SystemTags 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.
    SystemTags 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.
    systemTags 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.
    systemTags {[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.
    system_tags 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.
    systemTags 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi