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 dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the root compartment.
- Invoice
Line 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<Get
Invoice Line Computed Usages Filter>
- Compartment
Id string - The OCID of the root compartment.
- Invoice
Line 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
[]Get
Invoice Line Computed Usages Filter
- compartment
Id String - The OCID of the root compartment.
- invoice
Line 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<Get
Invoice Line Computed Usages Filter>
- compartment
Id string - The OCID of the root compartment.
- invoice
Line 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
Get
Invoice 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]
- compartment
Id String - The OCID of the root compartment.
- invoice
Line 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:
- 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 double
- Sum of Usage/Service Billing Line net Amount
- Cost
Rounded double - Computed Line Amount rounded.
- Net
Unit doublePrice - Net Unit Price for the product in consideration, price actual.
- Parent
Products List<GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product> - Product description
- Products
List<Get
Invoice Line Computed Usages Invoiceline Computed Usage Product> - Product description
- Quantity double
- Total Quantity that was used for computation
- Time
Metered stringOn - Metered Service date.
- Type string
- Usage compute type in SPM.
- Cost float64
- Sum of Usage/Service Billing Line net Amount
- Cost
Rounded float64 - Computed Line Amount rounded.
- Net
Unit float64Price - Net Unit Price for the product in consideration, price actual.
- Parent
Products []GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product - Product description
- Products
[]Get
Invoice Line Computed Usages Invoiceline Computed Usage Product - Product description
- Quantity float64
- Total Quantity that was used for computation
- Time
Metered stringOn - Metered Service date.
- Type string
- Usage compute type in SPM.
- cost Double
- Sum of Usage/Service Billing Line net Amount
- cost
Rounded Double - Computed Line Amount rounded.
- net
Unit DoublePrice - Net Unit Price for the product in consideration, price actual.
- parent
Products List<GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product> - Product description
- products
List<Get
Invoice Line Computed Usages Invoiceline Computed Usage Product> - Product description
- quantity Double
- Total Quantity that was used for computation
- time
Metered StringOn - Metered Service date.
- type String
- Usage compute type in SPM.
- cost number
- Sum of Usage/Service Billing Line net Amount
- cost
Rounded number - Computed Line Amount rounded.
- net
Unit numberPrice - Net Unit Price for the product in consideration, price actual.
- parent
Products GetInvoice Line Computed Usages Invoiceline Computed Usage Parent Product[] - Product description
- products
Get
Invoice Line Computed Usages Invoiceline Computed Usage Product[] - Product description
- quantity number
- Total Quantity that was used for computation
- time
Metered 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
- cost
Rounded Number - Computed Line Amount rounded.
- net
Unit NumberPrice - Net Unit Price for the product in consideration, price actual.
- parent
Products List<Property Map> - Product description
- products List<Property Map>
- Product description
- quantity Number
- Total Quantity that was used for computation
- time
Metered StringOn - Metered Service date.
- type String
- Usage compute type in SPM.
GetInvoiceLineComputedUsagesInvoicelineComputedUsageParentProduct
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Measure
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Measure
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - Unit of Measure
- billing
Category string - Metered service billing category
- name string
- Product name
- part
Number string - Product part number
- product
Category string - Product category
- ucm
Rate stringCard Part Type - Rate card part type of Product
- unit
Of 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
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - Unit of Measure
GetInvoiceLineComputedUsagesInvoicelineComputedUsageProduct
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Measure
- Billing
Category string - Metered service billing category
- Name string
- Product name
- Part
Number string - Product part number
- Product
Category string - Product category
- Ucm
Rate stringCard Part Type - Rate card part type of Product
- Unit
Of stringMeasure - Unit of Measure
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - Unit of Measure
- billing
Category string - Metered service billing category
- name string
- Product name
- part
Number string - Product part number
- product
Category string - Product category
- ucm
Rate stringCard Part Type - Rate card part type of Product
- unit
Of 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
- billing
Category String - Metered service billing category
- name String
- Product name
- part
Number String - Product part number
- product
Category String - Product category
- ucm
Rate StringCard Part Type - Rate card part type of Product
- unit
Of StringMeasure - 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.