Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi
oci.OneSubsription.getInvoiceLineComputedUsages
Explore with Pulumi AI
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testInvoiceLineComputedUsages:
fn::invoke:
function: oci:OneSubsription:getInvoiceLineComputedUsages
arguments:
compartmentId: ${compartmentId}
invoiceLineId: ${testInvoiceLine.id}
fields: ${invoiceLineComputedUsageFields}
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>
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]
func GetInvoiceLineComputedUsages(ctx *Context, args *GetInvoiceLineComputedUsagesArgs, opts ...InvokeOption) (*GetInvoiceLineComputedUsagesResult, error)
func GetInvoiceLineComputedUsagesOutput(ctx *Context, args *GetInvoiceLineComputedUsagesOutputArgs, opts ...InvokeOption) GetInvoiceLineComputedUsagesResultOutput
> 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)
}
public static CompletableFuture<GetInvoiceLineComputedUsagesResult> getInvoiceLineComputedUsages(GetInvoiceLineComputedUsagesArgs args, InvokeOptions options)
public static Output<GetInvoiceLineComputedUsagesResult> getInvoiceLineComputedUsages(GetInvoiceLineComputedUsagesArgs args, InvokeOptions options)
fn::invoke:
function: oci:OneSubsription/getInvoiceLineComputedUsages:getInvoiceLineComputedUsages
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The OCID of the root compartment.
- Invoice
Line Id 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.
Invoice Line Computed Usages Filter>
- Compartment
Id This property is required. string - The OCID of the root compartment.
- Invoice
Line Id 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.
Invoice Line Computed Usages Filter
- compartment
Id This property is required. String - The OCID of the root compartment.
- invoice
Line Id 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.
Invoice Line Computed Usages Filter>
- compartment
Id This property is required. string - The OCID of the root compartment.
- invoice
Line Id 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.
Invoice Line Computed Usages Filter[]
- 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.
Get Invoice Line Computed Usages Filter]
- compartment
Id This property is required. String - The OCID of the root compartment.
- invoice
Line Id 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.
getInvoiceLineComputedUsages Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Invoice
Line stringId - Invoiceline
Computed List<GetUsages Invoice Line Computed Usages Invoiceline Computed Usage> - The list of invoiceline_computed_usages.
- Fields List<string>
- Filters
List<Get
Invoice Line Computed Usages Filter>
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Invoice
Line stringId - Invoiceline
Computed []GetUsages Invoice Line Computed Usages Invoiceline Computed Usage - The list of invoiceline_computed_usages.
- Fields []string
- Filters
[]Get
Invoice Line Computed Usages Filter
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- invoice
Line StringId - invoiceline
Computed List<GetUsages Invoice Line Computed Usages Invoiceline Computed Usage> - The list of invoiceline_computed_usages.
- fields List<String>
- filters
List<Get
Invoice Line Computed Usages Filter>
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- invoice
Line stringId - invoiceline
Computed GetUsages Invoice Line Computed Usages Invoiceline Computed Usage[] - The list of invoiceline_computed_usages.
- fields string[]
- filters
Get
Invoice Line Computed Usages Filter[]
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- invoice_
line_ strid - invoiceline_
computed_ Sequence[onesubsription.usages Get Invoice Line Computed Usages Invoiceline Computed Usage] - The list of invoiceline_computed_usages.
- fields Sequence[str]
- filters
Sequence[onesubsription.
Get Invoice Line Computed Usages Filter]
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- invoice
Line StringId - invoiceline
Computed List<Property Map>Usages - The list of invoiceline_computed_usages.
- fields List<String>
- filters List<Property Map>
Supporting Types
GetInvoiceLineComputedUsagesFilter
GetInvoiceLineComputedUsagesInvoicelineComputedUsage
- Cost
This property is required. double - Sum of Usage/Service Billing Line net Amount
- Cost
Rounded This property is required. double - Computed Line Amount rounded.
- Net
Unit Price This property is required. double - Net Unit Price for the product in consideration, price actual.
- Parent
Products This property is required. List<GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product> - Product description
- Products
This property is required. List<GetInvoice Line Computed Usages Invoiceline Computed Usage Product> - Product description
- Quantity
This property is required. double - Total Quantity that was used for computation
- Time
Metered On 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
- Cost
Rounded This property is required. float64 - Computed Line Amount rounded.
- Net
Unit Price This property is required. float64 - Net Unit Price for the product in consideration, price actual.
- Parent
Products This property is required. []GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product - Product description
- Products
This property is required. []GetInvoice Line Computed Usages Invoiceline Computed Usage Product - Product description
- Quantity
This property is required. float64 - Total Quantity that was used for computation
- Time
Metered On 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
- cost
Rounded This property is required. Double - Computed Line Amount rounded.
- net
Unit Price This property is required. Double - Net Unit Price for the product in consideration, price actual.
- parent
Products This property is required. List<GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product> - Product description
- products
This property is required. List<GetInvoice Line Computed Usages Invoiceline Computed Usage Product> - Product description
- quantity
This property is required. Double - Total Quantity that was used for computation
- time
Metered On 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
- cost
Rounded This property is required. number - Computed Line Amount rounded.
- net
Unit Price This property is required. number - Net Unit Price for the product in consideration, price actual.
- parent
Products This property is required. GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product[] - Product description
- products
This property is required. GetInvoice Line Computed Usages Invoiceline Computed Usage Product[] - Product description
- quantity
This property is required. number - Total Quantity that was used for computation
- time
Metered On 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.Get Invoice Line Computed Usages Invoiceline Computed Usage Parent Product] - Product description
- products
This property is required. Sequence[onesubsription.Get Invoice Line Computed Usages Invoiceline Computed Usage Product] - 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
- cost
Rounded This property is required. Number - Computed Line Amount rounded.
- net
Unit Price This property is required. Number - Net Unit Price for the product in consideration, price actual.
- parent
Products 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
- time
Metered On This property is required. String - Metered Service date.
- type
This property is required. String - Usage compute type in SPM.
GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct
- Billing
Category This property is required. string - Metered service billing category
- Name
This property is required. string - Product name
- Part
Number This property is required. string - Product part number
- Product
Category This property is required. string - Product category
- Ucm
Rate Card Part Type This property is required. string - Rate card part type of Product
- Unit
Of Measure This property is required. string - Unit of Measure
- Billing
Category This property is required. string - Metered service billing category
- Name
This property is required. string - Product name
- Part
Number This property is required. string - Product part number
- Product
Category This property is required. string - Product category
- Ucm
Rate Card Part Type This property is required. string - Rate card part type of Product
- Unit
Of Measure This property is required. string - Unit of Measure
- billing
Category This property is required. String - Metered service billing category
- name
This property is required. String - Product name
- part
Number This property is required. String - Product part number
- product
Category This property is required. String - Product category
- ucm
Rate Card Part Type This property is required. String - Rate card part type of Product
- unit
Of Measure This property is required. String - Unit of Measure
- billing
Category This property is required. string - Metered service billing category
- name
This property is required. string - Product name
- part
Number This property is required. string - Product part number
- product
Category This property is required. string - Product category
- ucm
Rate Card Part Type This property is required. string - Rate card part type of Product
- unit
Of Measure 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
- billing
Category This property is required. String - Metered service billing category
- name
This property is required. String - Product name
- part
Number This property is required. String - Product part number
- product
Category This property is required. String - Product category
- ucm
Rate Card Part Type This property is required. String - Rate card part type of Product
- unit
Of Measure This property is required. String - Unit of Measure
GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct
- Billing
Category This property is required. string - Metered service billing category
- Name
This property is required. string - Product name
- Part
Number This property is required. string - Product part number
- Product
Category This property is required. string - Product category
- Ucm
Rate Card Part Type This property is required. string - Rate card part type of Product
- Unit
Of Measure This property is required. string - Unit of Measure
- Billing
Category This property is required. string - Metered service billing category
- Name
This property is required. string - Product name
- Part
Number This property is required. string - Product part number
- Product
Category This property is required. string - Product category
- Ucm
Rate Card Part Type This property is required. string - Rate card part type of Product
- Unit
Of Measure This property is required. string - Unit of Measure
- billing
Category This property is required. String - Metered service billing category
- name
This property is required. String - Product name
- part
Number This property is required. String - Product part number
- product
Category This property is required. String - Product category
- ucm
Rate Card Part Type This property is required. String - Rate card part type of Product
- unit
Of Measure This property is required. String - Unit of Measure
- billing
Category This property is required. string - Metered service billing category
- name
This property is required. string - Product name
- part
Number This property is required. string - Product part number
- product
Category This property is required. string - Product category
- ucm
Rate Card Part Type This property is required. string - Rate card part type of Product
- unit
Of Measure 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
- billing
Category This property is required. String - Metered service billing category
- name
This property is required. String - Product name
- part
Number This property is required. String - Product part number
- product
Category This property is required. String - Product category
- ucm
Rate Card Part Type This property is required. String - Rate card part type of Product
- unit
Of Measure 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.