1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OneSubsription
  5. getInvoiceLineComputedUsages
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.OneSubsription.getInvoiceLineComputedUsages

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides the list of Invoice Line Computed Usages in Oracle Cloud Infrastructure Onesubscription service.

This is a collection API which returns a list of Invoiced Computed Usages for given Invoiceline id.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInvoiceLineComputedUsages = oci.OneSubsription.getInvoiceLineComputedUsages({
    compartmentId: compartmentId,
    invoiceLineId: testInvoiceLine.id,
    fields: invoiceLineComputedUsageFields,
});
Copy
import pulumi
import pulumi_oci as oci

test_invoice_line_computed_usages = oci.OneSubsription.get_invoice_line_computed_usages(compartment_id=compartment_id,
    invoice_line_id=test_invoice_line["id"],
    fields=invoice_line_computed_usage_fields)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/onesubsription"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := onesubsription.GetInvoiceLineComputedUsages(ctx, &onesubsription.GetInvoiceLineComputedUsagesArgs{
			CompartmentId: compartmentId,
			InvoiceLineId: testInvoiceLine.Id,
			Fields:        invoiceLineComputedUsageFields,
		}, 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 testInvoiceLineComputedUsages = Oci.OneSubsription.GetInvoiceLineComputedUsages.Invoke(new()
    {
        CompartmentId = compartmentId,
        InvoiceLineId = testInvoiceLine.Id,
        Fields = invoiceLineComputedUsageFields,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OneSubsription.OneSubsriptionFunctions;
import com.pulumi.oci.OneSubsription.inputs.GetInvoiceLineComputedUsagesArgs;
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 testInvoiceLineComputedUsages = OneSubsriptionFunctions.getInvoiceLineComputedUsages(GetInvoiceLineComputedUsagesArgs.builder()
            .compartmentId(compartmentId)
            .invoiceLineId(testInvoiceLine.id())
            .fields(invoiceLineComputedUsageFields)
            .build());

    }
}
Copy
variables:
  testInvoiceLineComputedUsages:
    fn::invoke:
      function: oci:OneSubsription:getInvoiceLineComputedUsages
      arguments:
        compartmentId: ${compartmentId}
        invoiceLineId: ${testInvoiceLine.id}
        fields: ${invoiceLineComputedUsageFields}
Copy

Using getInvoiceLineComputedUsages

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 getInvoiceLineComputedUsages(args: GetInvoiceLineComputedUsagesArgs, opts?: InvokeOptions): Promise<GetInvoiceLineComputedUsagesResult>
function getInvoiceLineComputedUsagesOutput(args: GetInvoiceLineComputedUsagesOutputArgs, opts?: InvokeOptions): Output<GetInvoiceLineComputedUsagesResult>
Copy
def get_invoice_line_computed_usages(compartment_id: Optional[str] = None,
                                     fields: Optional[Sequence[str]] = None,
                                     filters: Optional[Sequence[_onesubsription.GetInvoiceLineComputedUsagesFilter]] = None,
                                     invoice_line_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetInvoiceLineComputedUsagesResult
def get_invoice_line_computed_usages_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                     fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_onesubsription.GetInvoiceLineComputedUsagesFilterArgs]]]] = None,
                                     invoice_line_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetInvoiceLineComputedUsagesResult]
Copy
func GetInvoiceLineComputedUsages(ctx *Context, args *GetInvoiceLineComputedUsagesArgs, opts ...InvokeOption) (*GetInvoiceLineComputedUsagesResult, error)
func GetInvoiceLineComputedUsagesOutput(ctx *Context, args *GetInvoiceLineComputedUsagesOutputArgs, opts ...InvokeOption) GetInvoiceLineComputedUsagesResultOutput
Copy

> Note: This function is named GetInvoiceLineComputedUsages in the Go SDK.

public static class GetInvoiceLineComputedUsages 
{
    public static Task<GetInvoiceLineComputedUsagesResult> InvokeAsync(GetInvoiceLineComputedUsagesArgs args, InvokeOptions? opts = null)
    public static Output<GetInvoiceLineComputedUsagesResult> Invoke(GetInvoiceLineComputedUsagesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInvoiceLineComputedUsagesResult> getInvoiceLineComputedUsages(GetInvoiceLineComputedUsagesArgs args, InvokeOptions options)
public static Output<GetInvoiceLineComputedUsagesResult> getInvoiceLineComputedUsages(GetInvoiceLineComputedUsagesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OneSubsription/getInvoiceLineComputedUsages:getInvoiceLineComputedUsages
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the root compartment.
InvoiceLineId This property is required. string
Invoice Line Identifier - Primary Key SPM
Fields List<string>
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client. This parameter is used to control what fields to return.
Filters Changes to this property will trigger replacement. List<GetInvoiceLineComputedUsagesFilter>
CompartmentId This property is required. string
The OCID of the root compartment.
InvoiceLineId This property is required. string
Invoice Line Identifier - Primary Key SPM
Fields []string
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client. This parameter is used to control what fields to return.
Filters Changes to this property will trigger replacement. []GetInvoiceLineComputedUsagesFilter
compartmentId This property is required. String
The OCID of the root compartment.
invoiceLineId This property is required. String
Invoice Line Identifier - Primary Key SPM
fields List<String>
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client. This parameter is used to control what fields to return.
filters Changes to this property will trigger replacement. List<GetInvoiceLineComputedUsagesFilter>
compartmentId This property is required. string
The OCID of the root compartment.
invoiceLineId This property is required. string
Invoice Line Identifier - Primary Key SPM
fields string[]
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client. This parameter is used to control what fields to return.
filters Changes to this property will trigger replacement. GetInvoiceLineComputedUsagesFilter[]
compartment_id This property is required. str
The OCID of the root compartment.
invoice_line_id This property is required. str
Invoice Line Identifier - Primary Key SPM
fields Sequence[str]
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client. This parameter is used to control what fields to return.
filters Changes to this property will trigger replacement. Sequence[onesubsription.GetInvoiceLineComputedUsagesFilter]
compartmentId This property is required. String
The OCID of the root compartment.
invoiceLineId This property is required. String
Invoice Line Identifier - Primary Key SPM
fields List<String>
Partial response refers to an optimization technique offered by the RESTful web APIs to return only the information (fields) required by the client. This parameter is used to control what fields to return.
filters Changes to this property will trigger replacement. List<Property Map>

getInvoiceLineComputedUsages Result

The following output properties are available:

CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
InvoiceLineId string
InvoicelineComputedUsages List<GetInvoiceLineComputedUsagesInvoicelineComputedUsage>
The list of invoiceline_computed_usages.
Fields List<string>
Filters List<GetInvoiceLineComputedUsagesFilter>
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
InvoiceLineId string
InvoicelineComputedUsages []GetInvoiceLineComputedUsagesInvoicelineComputedUsage
The list of invoiceline_computed_usages.
Fields []string
Filters []GetInvoiceLineComputedUsagesFilter
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
invoiceLineId String
invoicelineComputedUsages List<GetInvoiceLineComputedUsagesInvoicelineComputedUsage>
The list of invoiceline_computed_usages.
fields List<String>
filters List<GetInvoiceLineComputedUsagesFilter>
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
invoiceLineId string
invoicelineComputedUsages GetInvoiceLineComputedUsagesInvoicelineComputedUsage[]
The list of invoiceline_computed_usages.
fields string[]
filters GetInvoiceLineComputedUsagesFilter[]
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
invoiceLineId String
invoicelineComputedUsages List<Property Map>
The list of invoiceline_computed_usages.
fields List<String>
filters List<Property Map>

Supporting Types

GetInvoiceLineComputedUsagesFilter

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

GetInvoiceLineComputedUsagesInvoicelineComputedUsage

Cost This property is required. double
Sum of Usage/Service Billing Line net Amount
CostRounded This property is required. double
Computed Line Amount rounded.
NetUnitPrice This property is required. double
Net Unit Price for the product in consideration, price actual.
ParentProducts This property is required. List<GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct>
Product description
Products This property is required. List<GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct>
Product description
Quantity This property is required. double
Total Quantity that was used for computation
TimeMeteredOn This property is required. string
Metered Service date.
Type This property is required. string
Usage compute type in SPM.
Cost This property is required. float64
Sum of Usage/Service Billing Line net Amount
CostRounded This property is required. float64
Computed Line Amount rounded.
NetUnitPrice This property is required. float64
Net Unit Price for the product in consideration, price actual.
ParentProducts This property is required. []GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct
Product description
Products This property is required. []GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct
Product description
Quantity This property is required. float64
Total Quantity that was used for computation
TimeMeteredOn This property is required. string
Metered Service date.
Type This property is required. string
Usage compute type in SPM.
cost This property is required. Double
Sum of Usage/Service Billing Line net Amount
costRounded This property is required. Double
Computed Line Amount rounded.
netUnitPrice This property is required. Double
Net Unit Price for the product in consideration, price actual.
parentProducts This property is required. List<GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct>
Product description
products This property is required. List<GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct>
Product description
quantity This property is required. Double
Total Quantity that was used for computation
timeMeteredOn This property is required. String
Metered Service date.
type This property is required. String
Usage compute type in SPM.
cost This property is required. number
Sum of Usage/Service Billing Line net Amount
costRounded This property is required. number
Computed Line Amount rounded.
netUnitPrice This property is required. number
Net Unit Price for the product in consideration, price actual.
parentProducts This property is required. GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct[]
Product description
products This property is required. GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct[]
Product description
quantity This property is required. number
Total Quantity that was used for computation
timeMeteredOn This property is required. string
Metered Service date.
type This property is required. string
Usage compute type in SPM.
cost This property is required. float
Sum of Usage/Service Billing Line net Amount
cost_rounded This property is required. float
Computed Line Amount rounded.
net_unit_price This property is required. float
Net Unit Price for the product in consideration, price actual.
parent_products This property is required. Sequence[onesubsription.GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct]
Product description
products This property is required. Sequence[onesubsription.GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct]
Product description
quantity This property is required. float
Total Quantity that was used for computation
time_metered_on This property is required. str
Metered Service date.
type This property is required. str
Usage compute type in SPM.
cost This property is required. Number
Sum of Usage/Service Billing Line net Amount
costRounded This property is required. Number
Computed Line Amount rounded.
netUnitPrice This property is required. Number
Net Unit Price for the product in consideration, price actual.
parentProducts This property is required. List<Property Map>
Product description
products This property is required. List<Property Map>
Product description
quantity This property is required. Number
Total Quantity that was used for computation
timeMeteredOn This property is required. String
Metered Service date.
type This property is required. String
Usage compute type in SPM.

GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct

BillingCategory This property is required. string
Metered service billing category
Name This property is required. string
Product name
PartNumber This property is required. string
Product part number
ProductCategory This property is required. string
Product category
UcmRateCardPartType This property is required. string
Rate card part type of Product
UnitOfMeasure This property is required. string
Unit of Measure
BillingCategory This property is required. string
Metered service billing category
Name This property is required. string
Product name
PartNumber This property is required. string
Product part number
ProductCategory This property is required. string
Product category
UcmRateCardPartType This property is required. string
Rate card part type of Product
UnitOfMeasure This property is required. string
Unit of Measure
billingCategory This property is required. String
Metered service billing category
name This property is required. String
Product name
partNumber This property is required. String
Product part number
productCategory This property is required. String
Product category
ucmRateCardPartType This property is required. String
Rate card part type of Product
unitOfMeasure This property is required. String
Unit of Measure
billingCategory This property is required. string
Metered service billing category
name This property is required. string
Product name
partNumber This property is required. string
Product part number
productCategory This property is required. string
Product category
ucmRateCardPartType This property is required. string
Rate card part type of Product
unitOfMeasure This property is required. string
Unit of Measure
billing_category This property is required. str
Metered service billing category
name This property is required. str
Product name
part_number This property is required. str
Product part number
product_category This property is required. str
Product category
ucm_rate_card_part_type This property is required. str
Rate card part type of Product
unit_of_measure This property is required. str
Unit of Measure
billingCategory This property is required. String
Metered service billing category
name This property is required. String
Product name
partNumber This property is required. String
Product part number
productCategory This property is required. String
Product category
ucmRateCardPartType This property is required. String
Rate card part type of Product
unitOfMeasure This property is required. String
Unit of Measure

GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct

BillingCategory This property is required. string
Metered service billing category
Name This property is required. string
Product name
PartNumber This property is required. string
Product part number
ProductCategory This property is required. string
Product category
UcmRateCardPartType This property is required. string
Rate card part type of Product
UnitOfMeasure This property is required. string
Unit of Measure
BillingCategory This property is required. string
Metered service billing category
Name This property is required. string
Product name
PartNumber This property is required. string
Product part number
ProductCategory This property is required. string
Product category
UcmRateCardPartType This property is required. string
Rate card part type of Product
UnitOfMeasure This property is required. string
Unit of Measure
billingCategory This property is required. String
Metered service billing category
name This property is required. String
Product name
partNumber This property is required. String
Product part number
productCategory This property is required. String
Product category
ucmRateCardPartType This property is required. String
Rate card part type of Product
unitOfMeasure This property is required. String
Unit of Measure
billingCategory This property is required. string
Metered service billing category
name This property is required. string
Product name
partNumber This property is required. string
Product part number
productCategory This property is required. string
Product category
ucmRateCardPartType This property is required. string
Rate card part type of Product
unitOfMeasure This property is required. string
Unit of Measure
billing_category This property is required. str
Metered service billing category
name This property is required. str
Product name
part_number This property is required. str
Product part number
product_category This property is required. str
Product category
ucm_rate_card_part_type This property is required. str
Rate card part type of Product
unit_of_measure This property is required. str
Unit of Measure
billingCategory This property is required. String
Metered service billing category
name This property is required. String
Product name
partNumber This property is required. String
Product part number
productCategory This property is required. String
Product category
ucmRateCardPartType This property is required. String
Rate card part type of Product
unitOfMeasure This property is required. String
Unit of Measure

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.29.0 published on Wednesday, Apr 9, 2025 by Pulumi