1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OspGateway
  5. getInvoicesInvoiceLine
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.OspGateway.getInvoicesInvoiceLine

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testInvoicesInvoiceLine:
    fn::invoke:
      function: oci:OspGateway:getInvoicesInvoiceLine
      arguments:
        compartmentId: ${compartmentId}
        internalInvoiceId: ${testInvoice.id}
        ospHomeRegion: ${invoicesInvoiceLineOspHomeRegion}
Copy

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>
Copy
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]
Copy
func GetInvoicesInvoiceLine(ctx *Context, args *GetInvoicesInvoiceLineArgs, opts ...InvokeOption) (*GetInvoicesInvoiceLineResult, error)
func GetInvoicesInvoiceLineOutput(ctx *Context, args *GetInvoicesInvoiceLineOutputArgs, opts ...InvokeOption) GetInvoicesInvoiceLineResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetInvoicesInvoiceLineResult> getInvoicesInvoiceLine(GetInvoicesInvoiceLineArgs args, InvokeOptions options)
public static Output<GetInvoicesInvoiceLineResult> getInvoicesInvoiceLine(GetInvoicesInvoiceLineArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OspGateway/getInvoicesInvoiceLine:getInvoicesInvoiceLine
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
InternalInvoiceId This property is required. string
The identifier of the invoice.
OspHomeRegion This property is required. string
The home region's public name of the logged in user.
CompartmentId This property is required. string
The OCID of the compartment.
InternalInvoiceId This property is required. string
The identifier of the invoice.
OspHomeRegion This property is required. string
The home region's public name of the logged in user.
compartmentId This property is required. String
The OCID of the compartment.
internalInvoiceId This property is required. String
The identifier of the invoice.
ospHomeRegion This property is required. String
The home region's public name of the logged in user.
compartmentId This property is required. string
The OCID of the compartment.
internalInvoiceId This property is required. string
The identifier of the invoice.
ospHomeRegion This property is required. string
The home region's public name of the logged in user.
compartment_id This property is required. str
The OCID of the compartment.
internal_invoice_id This property is required. str
The identifier of the invoice.
osp_home_region This property is required. str
The home region's public name of the logged in user.
compartmentId This property is required. String
The OCID of the compartment.
internalInvoiceId This property is required. String
The identifier of the invoice.
ospHomeRegion This property is required. String
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.
InternalInvoiceId string
Items List<GetInvoicesInvoiceLineItem>
Invoice line list elements
OspHomeRegion string
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
InternalInvoiceId string
Items []GetInvoicesInvoiceLineItem
Invoice line list elements
OspHomeRegion string
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
internalInvoiceId String
items List<GetInvoicesInvoiceLineItem>
Invoice line list elements
ospHomeRegion String
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
internalInvoiceId string
items GetInvoicesInvoiceLineItem[]
Invoice line list elements
ospHomeRegion string
compartment_id str
id str
The provider-assigned unique ID for this managed resource.
internal_invoice_id str
items Sequence[ospgateway.GetInvoicesInvoiceLineItem]
Invoice line list elements
osp_home_region str
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
internalInvoiceId String
items List<Property Map>
Invoice line list elements
ospHomeRegion String

Supporting Types

GetInvoicesInvoiceLineItem

Currencies This property is required. List<GetInvoicesInvoiceLineItemCurrency>
Currency details model
NetUnitPrice This property is required. double
Unit price of the ordered product
OrderNo This property is required. string
Product of the item
PartNumber This property is required. string
Part number
Product This property is required. string
Product of the item
Quantity This property is required. double
Quantity of the ordered product
TimeEnd This property is required. string
End date
TimeStart This property is required. string
Start date
TotalPrice This property is required. double
Total price of the ordered product (Net unit price x quantity)
Currencies This property is required. []GetInvoicesInvoiceLineItemCurrency
Currency details model
NetUnitPrice This property is required. float64
Unit price of the ordered product
OrderNo This property is required. string
Product of the item
PartNumber This property is required. string
Part number
Product This property is required. string
Product of the item
Quantity This property is required. float64
Quantity of the ordered product
TimeEnd This property is required. string
End date
TimeStart This property is required. string
Start date
TotalPrice This property is required. float64
Total price of the ordered product (Net unit price x quantity)
currencies This property is required. List<GetInvoicesInvoiceLineItemCurrency>
Currency details model
netUnitPrice This property is required. Double
Unit price of the ordered product
orderNo This property is required. String
Product of the item
partNumber This property is required. String
Part number
product This property is required. String
Product of the item
quantity This property is required. Double
Quantity of the ordered product
timeEnd This property is required. String
End date
timeStart This property is required. String
Start date
totalPrice This property is required. Double
Total price of the ordered product (Net unit price x quantity)
currencies This property is required. GetInvoicesInvoiceLineItemCurrency[]
Currency details model
netUnitPrice This property is required. number
Unit price of the ordered product
orderNo This property is required. string
Product of the item
partNumber This property is required. string
Part number
product This property is required. string
Product of the item
quantity This property is required. number
Quantity of the ordered product
timeEnd This property is required. string
End date
timeStart This property is required. string
Start date
totalPrice This property is required. number
Total price of the ordered product (Net unit price x quantity)
currencies This property is required. Sequence[ospgateway.GetInvoicesInvoiceLineItemCurrency]
Currency details model
net_unit_price This property is required. float
Unit price of the ordered product
order_no This property is required. str
Product of the item
part_number This property is required. str
Part number
product This property is required. str
Product of the item
quantity This property is required. float
Quantity of the ordered product
time_end This property is required. str
End date
time_start This property is required. str
Start date
total_price This property is required. float
Total price of the ordered product (Net unit price x quantity)
currencies This property is required. List<Property Map>
Currency details model
netUnitPrice This property is required. Number
Unit price of the ordered product
orderNo This property is required. String
Product of the item
partNumber This property is required. String
Part number
product This property is required. String
Product of the item
quantity This property is required. Number
Quantity of the ordered product
timeEnd This property is required. String
End date
timeStart This property is required. String
Start date
totalPrice This property is required. Number
Total price of the ordered product (Net unit price x quantity)

GetInvoicesInvoiceLineItemCurrency

CurrencyCode This property is required. string
Currency code
CurrencySymbol This property is required. string
Currency symbol
Name This property is required. string
Name of the currency
RoundDecimalPoint This property is required. double
Round decimal point
UsdConversion This property is required. double
USD conversion rate of the currency
CurrencyCode This property is required. string
Currency code
CurrencySymbol This property is required. string
Currency symbol
Name This property is required. string
Name of the currency
RoundDecimalPoint This property is required. float64
Round decimal point
UsdConversion This property is required. float64
USD conversion rate of the currency
currencyCode This property is required. String
Currency code
currencySymbol This property is required. String
Currency symbol
name This property is required. String
Name of the currency
roundDecimalPoint This property is required. Double
Round decimal point
usdConversion This property is required. Double
USD conversion rate of the currency
currencyCode This property is required. string
Currency code
currencySymbol This property is required. string
Currency symbol
name This property is required. string
Name of the currency
roundDecimalPoint This property is required. number
Round decimal point
usdConversion This property is required. number
USD conversion rate of the currency
currency_code This property is required. str
Currency code
currency_symbol This property is required. str
Currency symbol
name This property is required. str
Name of the currency
round_decimal_point This property is required. float
Round decimal point
usd_conversion This property is required. float
USD conversion rate of the currency
currencyCode This property is required. String
Currency code
currencySymbol This property is required. String
Currency symbol
name This property is required. String
Name of the currency
roundDecimalPoint This property is required. Number
Round decimal point
usdConversion This property is required. 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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi