Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.OspGateway.getInvoicesInvoiceLine
Explore with Pulumi AI
This data source provides details about a specific Invoices Invoice Line resource in Oracle Cloud Infrastructure Osp Gateway service.
Returns the invoice product list by invoice id
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testInvoicesInvoiceLine = oci.OspGateway.getInvoicesInvoiceLine({
    compartmentId: compartmentId,
    internalInvoiceId: testInvoice.id,
    ospHomeRegion: invoicesInvoiceLineOspHomeRegion,
});
import pulumi
import pulumi_oci as oci
test_invoices_invoice_line = oci.OspGateway.get_invoices_invoice_line(compartment_id=compartment_id,
    internal_invoice_id=test_invoice["id"],
    osp_home_region=invoices_invoice_line_osp_home_region)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ospgateway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ospgateway.GetInvoicesInvoiceLine(ctx, &ospgateway.GetInvoicesInvoiceLineArgs{
			CompartmentId:     compartmentId,
			InternalInvoiceId: testInvoice.Id,
			OspHomeRegion:     invoicesInvoiceLineOspHomeRegion,
		}, 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 testInvoicesInvoiceLine = Oci.OspGateway.GetInvoicesInvoiceLine.Invoke(new()
    {
        CompartmentId = compartmentId,
        InternalInvoiceId = testInvoice.Id,
        OspHomeRegion = invoicesInvoiceLineOspHomeRegion,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OspGateway.OspGatewayFunctions;
import com.pulumi.oci.OspGateway.inputs.GetInvoicesInvoiceLineArgs;
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 testInvoicesInvoiceLine = OspGatewayFunctions.getInvoicesInvoiceLine(GetInvoicesInvoiceLineArgs.builder()
            .compartmentId(compartmentId)
            .internalInvoiceId(testInvoice.id())
            .ospHomeRegion(invoicesInvoiceLineOspHomeRegion)
            .build());
    }
}
variables:
  testInvoicesInvoiceLine:
    fn::invoke:
      function: oci:OspGateway:getInvoicesInvoiceLine
      arguments:
        compartmentId: ${compartmentId}
        internalInvoiceId: ${testInvoice.id}
        ospHomeRegion: ${invoicesInvoiceLineOspHomeRegion}
Using getInvoicesInvoiceLine
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 getInvoicesInvoiceLine(args: GetInvoicesInvoiceLineArgs, opts?: InvokeOptions): Promise<GetInvoicesInvoiceLineResult>
function getInvoicesInvoiceLineOutput(args: GetInvoicesInvoiceLineOutputArgs, opts?: InvokeOptions): Output<GetInvoicesInvoiceLineResult>def get_invoices_invoice_line(compartment_id: Optional[str] = None,
                              internal_invoice_id: Optional[str] = None,
                              osp_home_region: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetInvoicesInvoiceLineResult
def get_invoices_invoice_line_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              internal_invoice_id: Optional[pulumi.Input[str]] = None,
                              osp_home_region: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetInvoicesInvoiceLineResult]func GetInvoicesInvoiceLine(ctx *Context, args *GetInvoicesInvoiceLineArgs, opts ...InvokeOption) (*GetInvoicesInvoiceLineResult, error)
func GetInvoicesInvoiceLineOutput(ctx *Context, args *GetInvoicesInvoiceLineOutputArgs, opts ...InvokeOption) GetInvoicesInvoiceLineResultOutput> Note: This function is named GetInvoicesInvoiceLine in the Go SDK.
public static class GetInvoicesInvoiceLine 
{
    public static Task<GetInvoicesInvoiceLineResult> InvokeAsync(GetInvoicesInvoiceLineArgs args, InvokeOptions? opts = null)
    public static Output<GetInvoicesInvoiceLineResult> Invoke(GetInvoicesInvoiceLineInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInvoicesInvoiceLineResult> getInvoicesInvoiceLine(GetInvoicesInvoiceLineArgs args, InvokeOptions options)
public static Output<GetInvoicesInvoiceLineResult> getInvoicesInvoiceLine(GetInvoicesInvoiceLineArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OspGateway/getInvoicesInvoiceLine:getInvoicesInvoiceLine
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- InternalInvoice stringId 
- The identifier of the invoice.
- OspHome stringRegion 
- The home region's public name of the logged in user.
- CompartmentId string
- The OCID of the compartment.
- InternalInvoice stringId 
- The identifier of the invoice.
- OspHome stringRegion 
- The home region's public name of the logged in user.
- compartmentId String
- The OCID of the compartment.
- internalInvoice StringId 
- The identifier of the invoice.
- ospHome StringRegion 
- The home region's public name of the logged in user.
- compartmentId string
- The OCID of the compartment.
- internalInvoice stringId 
- The identifier of the invoice.
- ospHome stringRegion 
- The home region's public name of the logged in user.
- compartment_id str
- The OCID of the compartment.
- internal_invoice_ strid 
- The identifier of the invoice.
- osp_home_ strregion 
- The home region's public name of the logged in user.
- compartmentId String
- The OCID of the compartment.
- internalInvoice StringId 
- The identifier of the invoice.
- ospHome StringRegion 
- The home region's public name of the logged in user.
getInvoicesInvoiceLine Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- InternalInvoice stringId 
- Items
List<GetInvoices Invoice Line Item> 
- Invoice line list elements
- OspHome stringRegion 
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- InternalInvoice stringId 
- Items
[]GetInvoices Invoice Line Item 
- Invoice line list elements
- OspHome stringRegion 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- internalInvoice StringId 
- items
List<GetInvoices Invoice Line Item> 
- Invoice line list elements
- ospHome StringRegion 
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- internalInvoice stringId 
- items
GetInvoices Invoice Line Item[] 
- Invoice line list elements
- ospHome stringRegion 
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- internal_invoice_ strid 
- items
Sequence[ospgateway.Get Invoices Invoice Line Item] 
- Invoice line list elements
- osp_home_ strregion 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- internalInvoice StringId 
- items List<Property Map>
- Invoice line list elements
- ospHome StringRegion 
Supporting Types
GetInvoicesInvoiceLineItem    
- Currencies
List<GetInvoices Invoice Line Item Currency> 
- Currency details model
- NetUnit doublePrice 
- Unit price of the ordered product
- OrderNo string
- Product of the item
- PartNumber string
- Part number
- Product string
- Product of the item
- Quantity double
- Quantity of the ordered product
- TimeEnd string
- End date
- TimeStart string
- Start date
- TotalPrice double
- Total price of the ordered product (Net unit price x quantity)
- Currencies
[]GetInvoices Invoice Line Item Currency 
- Currency details model
- NetUnit float64Price 
- Unit price of the ordered product
- OrderNo string
- Product of the item
- PartNumber string
- Part number
- Product string
- Product of the item
- Quantity float64
- Quantity of the ordered product
- TimeEnd string
- End date
- TimeStart string
- Start date
- TotalPrice float64
- Total price of the ordered product (Net unit price x quantity)
- currencies
List<GetInvoices Invoice Line Item Currency> 
- Currency details model
- netUnit DoublePrice 
- Unit price of the ordered product
- orderNo String
- Product of the item
- partNumber String
- Part number
- product String
- Product of the item
- quantity Double
- Quantity of the ordered product
- timeEnd String
- End date
- timeStart String
- Start date
- totalPrice Double
- Total price of the ordered product (Net unit price x quantity)
- currencies
GetInvoices Invoice Line Item Currency[] 
- Currency details model
- netUnit numberPrice 
- Unit price of the ordered product
- orderNo string
- Product of the item
- partNumber string
- Part number
- product string
- Product of the item
- quantity number
- Quantity of the ordered product
- timeEnd string
- End date
- timeStart string
- Start date
- totalPrice number
- Total price of the ordered product (Net unit price x quantity)
- currencies
Sequence[ospgateway.Get Invoices Invoice Line Item Currency] 
- Currency details model
- net_unit_ floatprice 
- Unit price of the ordered product
- order_no str
- Product of the item
- part_number str
- Part number
- product str
- Product of the item
- quantity float
- Quantity of the ordered product
- time_end str
- End date
- time_start str
- Start date
- total_price float
- Total price of the ordered product (Net unit price x quantity)
- currencies List<Property Map>
- Currency details model
- netUnit NumberPrice 
- Unit price of the ordered product
- orderNo String
- Product of the item
- partNumber String
- Part number
- product String
- Product of the item
- quantity Number
- Quantity of the ordered product
- timeEnd String
- End date
- timeStart String
- Start date
- totalPrice Number
- Total price of the ordered product (Net unit price x quantity)
GetInvoicesInvoiceLineItemCurrency     
- CurrencyCode string
- Currency code
- CurrencySymbol string
- Currency symbol
- Name string
- Name of the currency
- RoundDecimal doublePoint 
- Round decimal point
- UsdConversion double
- USD conversion rate of the currency
- CurrencyCode string
- Currency code
- CurrencySymbol string
- Currency symbol
- Name string
- Name of the currency
- RoundDecimal float64Point 
- Round decimal point
- UsdConversion float64
- USD conversion rate of the currency
- currencyCode String
- Currency code
- currencySymbol String
- Currency symbol
- name String
- Name of the currency
- roundDecimal DoublePoint 
- Round decimal point
- usdConversion Double
- USD conversion rate of the currency
- currencyCode string
- Currency code
- currencySymbol string
- Currency symbol
- name string
- Name of the currency
- roundDecimal numberPoint 
- Round decimal point
- usdConversion number
- USD conversion rate of the currency
- currency_code str
- Currency code
- currency_symbol str
- Currency symbol
- name str
- Name of the currency
- round_decimal_ floatpoint 
- Round decimal point
- usd_conversion float
- USD conversion rate of the currency
- currencyCode String
- Currency code
- currencySymbol String
- Currency symbol
- name String
- Name of the currency
- roundDecimal NumberPoint 
- Round decimal point
- usdConversion Number
- USD conversion rate of the currency
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.