Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:OneSubsription/getInvoiceLineComputedUsages:getInvoiceLineComputedUsages
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the root compartment.
- InvoiceLine stringId 
- 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
List<GetInvoice Line Computed Usages Filter> 
- CompartmentId string
- The OCID of the root compartment.
- InvoiceLine stringId 
- 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
[]GetInvoice Line Computed Usages Filter 
- compartmentId String
- The OCID of the root compartment.
- invoiceLine StringId 
- 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
List<GetInvoice Line Computed Usages Filter> 
- compartmentId string
- The OCID of the root compartment.
- invoiceLine stringId 
- 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
GetInvoice Line Computed Usages Filter[] 
- compartment_id str
- The OCID of the root compartment.
- invoice_line_ strid 
- 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
Sequence[onesubsription.Get Invoice Line Computed Usages Filter] 
- compartmentId String
- The OCID of the root compartment.
- invoiceLine StringId 
- 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 List<Property Map>
getInvoiceLineComputedUsages Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- InvoiceLine stringId 
- InvoicelineComputed List<GetUsages Invoice Line Computed Usages Invoiceline Computed Usage> 
- The list of invoiceline_computed_usages.
- Fields List<string>
- Filters
List<GetInvoice Line Computed Usages Filter> 
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- InvoiceLine stringId 
- InvoicelineComputed []GetUsages Invoice Line Computed Usages Invoiceline Computed Usage 
- The list of invoiceline_computed_usages.
- Fields []string
- Filters
[]GetInvoice Line Computed Usages Filter 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- invoiceLine StringId 
- invoicelineComputed List<GetUsages Invoice Line Computed Usages Invoiceline Computed Usage> 
- The list of invoiceline_computed_usages.
- fields List<String>
- filters
List<GetInvoice Line Computed Usages Filter> 
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- invoiceLine stringId 
- invoicelineComputed GetUsages Invoice Line Computed Usages Invoiceline Computed Usage[] 
- The list of invoiceline_computed_usages.
- fields string[]
- filters
GetInvoice 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] 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- invoiceLine StringId 
- invoicelineComputed List<Property Map>Usages 
- The list of invoiceline_computed_usages.
- fields List<String>
- filters List<Property Map>
Supporting Types
GetInvoiceLineComputedUsagesFilter     
GetInvoiceLineComputedUsagesInvoicelineComputedUsage       
- Cost double
- Sum of Usage/Service Billing Line net Amount
- CostRounded double
- Computed Line Amount rounded.
- NetUnit doublePrice 
- Net Unit Price for the product in consideration, price actual.
- ParentProducts List<GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product> 
- Product description
- Products
List<GetInvoice Line Computed Usages Invoiceline Computed Usage Product> 
- Product description
- Quantity double
- Total Quantity that was used for computation
- TimeMetered stringOn 
- Metered Service date.
- Type string
- Usage compute type in SPM.
- Cost float64
- Sum of Usage/Service Billing Line net Amount
- CostRounded float64
- Computed Line Amount rounded.
- NetUnit float64Price 
- Net Unit Price for the product in consideration, price actual.
- ParentProducts []GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product 
- Product description
- Products
[]GetInvoice Line Computed Usages Invoiceline Computed Usage Product 
- Product description
- Quantity float64
- Total Quantity that was used for computation
- TimeMetered stringOn 
- Metered Service date.
- Type string
- Usage compute type in SPM.
- cost Double
- Sum of Usage/Service Billing Line net Amount
- costRounded Double
- Computed Line Amount rounded.
- netUnit DoublePrice 
- Net Unit Price for the product in consideration, price actual.
- parentProducts List<GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product> 
- Product description
- products
List<GetInvoice Line Computed Usages Invoiceline Computed Usage Product> 
- Product description
- quantity Double
- Total Quantity that was used for computation
- timeMetered StringOn 
- Metered Service date.
- type String
- Usage compute type in SPM.
- cost number
- Sum of Usage/Service Billing Line net Amount
- costRounded number
- Computed Line Amount rounded.
- netUnit numberPrice 
- Net Unit Price for the product in consideration, price actual.
- parentProducts GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product[] 
- Product description
- products
GetInvoice Line Computed Usages Invoiceline Computed Usage Product[] 
- Product description
- quantity number
- Total Quantity that was used for computation
- timeMetered stringOn 
- Metered Service date.
- type string
- Usage compute type in SPM.
- cost float
- Sum of Usage/Service Billing Line net Amount
- cost_rounded float
- Computed Line Amount rounded.
- net_unit_ floatprice 
- Net Unit Price for the product in consideration, price actual.
- parent_products Sequence[onesubsription.Get Invoice Line Computed Usages Invoiceline Computed Usage Parent Product] 
- Product description
- products
Sequence[onesubsription.Get Invoice Line Computed Usages Invoiceline Computed Usage Product] 
- Product description
- quantity float
- Total Quantity that was used for computation
- time_metered_ stron 
- Metered Service date.
- type str
- Usage compute type in SPM.
- cost Number
- Sum of Usage/Service Billing Line net Amount
- costRounded Number
- Computed Line Amount rounded.
- netUnit NumberPrice 
- Net Unit Price for the product in consideration, price actual.
- parentProducts List<Property Map>
- Product description
- products List<Property Map>
- Product description
- quantity Number
- Total Quantity that was used for computation
- timeMetered StringOn 
- Metered Service date.
- type String
- Usage compute type in SPM.
GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct         
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Measure
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Measure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Measure
- billingCategory string
- Metered service billing category
- name string
- Product name
- partNumber string
- Product part number
- productCategory string
- Product category
- ucmRate stringCard Part Type 
- Rate card part type of Product
- unitOf stringMeasure 
- Unit of Measure
- billing_category str
- Metered service billing category
- name str
- Product name
- part_number str
- Product part number
- product_category str
- Product category
- ucm_rate_ strcard_ part_ type 
- Rate card part type of Product
- unit_of_ strmeasure 
- Unit of Measure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Measure
GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct        
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Measure
- BillingCategory string
- Metered service billing category
- Name string
- Product name
- PartNumber string
- Product part number
- ProductCategory string
- Product category
- UcmRate stringCard Part Type 
- Rate card part type of Product
- UnitOf stringMeasure 
- Unit of Measure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Measure
- billingCategory string
- Metered service billing category
- name string
- Product name
- partNumber string
- Product part number
- productCategory string
- Product category
- ucmRate stringCard Part Type 
- Rate card part type of Product
- unitOf stringMeasure 
- Unit of Measure
- billing_category str
- Metered service billing category
- name str
- Product name
- part_number str
- Product part number
- product_category str
- Product category
- ucm_rate_ strcard_ part_ type 
- Rate card part type of Product
- unit_of_ strmeasure 
- Unit of Measure
- billingCategory String
- Metered service billing category
- name String
- Product name
- partNumber String
- Product part number
- productCategory String
- Product category
- ucmRate StringCard Part Type 
- Rate card part type of Product
- unitOf StringMeasure 
- Unit of Measure
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.