Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getInvoicesInvoiceLines

This data source provides the list of Invoices Invoice Lines in Oracle Cloud Infrastructure Osp Gateway service.

Returns the invoice product list by invoice id

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testInvoicesInvoiceLines = Oci.OspGateway.GetInvoicesInvoiceLines.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        InternalInvoiceId = oci_osp_gateway_invoice.Test_invoice.Id,
        OspHomeRegion = @var.Invoices_invoice_line_osp_home_region,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/OspGateway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := OspGateway.GetInvoicesInvoiceLines(ctx, &ospgateway.GetInvoicesInvoiceLinesArgs{
			CompartmentId:     _var.Compartment_id,
			InternalInvoiceId: oci_osp_gateway_invoice.Test_invoice.Id,
			OspHomeRegion:     _var.Invoices_invoice_line_osp_home_region,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetInvoicesInvoiceLinesArgs;
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 testInvoicesInvoiceLines = OspGatewayFunctions.getInvoicesInvoiceLines(GetInvoicesInvoiceLinesArgs.builder()
            .compartmentId(var_.compartment_id())
            .internalInvoiceId(oci_osp_gateway_invoice.test_invoice().id())
            .ospHomeRegion(var_.invoices_invoice_line_osp_home_region())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_invoices_invoice_lines = oci.OspGateway.get_invoices_invoice_lines(compartment_id=var["compartment_id"],
    internal_invoice_id=oci_osp_gateway_invoice["test_invoice"]["id"],
    osp_home_region=var["invoices_invoice_line_osp_home_region"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInvoicesInvoiceLines = oci.OspGateway.getInvoicesInvoiceLines({
    compartmentId: _var.compartment_id,
    internalInvoiceId: oci_osp_gateway_invoice.test_invoice.id,
    ospHomeRegion: _var.invoices_invoice_line_osp_home_region,
});
variables:
  testInvoicesInvoiceLines:
    Fn::Invoke:
      Function: oci:OspGateway:getInvoicesInvoiceLines
      Arguments:
        compartmentId: ${var.compartment_id}
        internalInvoiceId: ${oci_osp_gateway_invoice.test_invoice.id}
        ospHomeRegion: ${var.invoices_invoice_line_osp_home_region}

Using getInvoicesInvoiceLines

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 getInvoicesInvoiceLines(args: GetInvoicesInvoiceLinesArgs, opts?: InvokeOptions): Promise<GetInvoicesInvoiceLinesResult>
function getInvoicesInvoiceLinesOutput(args: GetInvoicesInvoiceLinesOutputArgs, opts?: InvokeOptions): Output<GetInvoicesInvoiceLinesResult>
def get_invoices_invoice_lines(compartment_id: Optional[str] = None,
                               filters: Optional[Sequence[_ospgateway.GetInvoicesInvoiceLinesFilter]] = None,
                               internal_invoice_id: Optional[str] = None,
                               osp_home_region: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetInvoicesInvoiceLinesResult
def get_invoices_invoice_lines_output(compartment_id: Optional[pulumi.Input[str]] = None,
                               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_ospgateway.GetInvoicesInvoiceLinesFilterArgs]]]] = None,
                               internal_invoice_id: Optional[pulumi.Input[str]] = None,
                               osp_home_region: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetInvoicesInvoiceLinesResult]
func GetInvoicesInvoiceLines(ctx *Context, args *GetInvoicesInvoiceLinesArgs, opts ...InvokeOption) (*GetInvoicesInvoiceLinesResult, error)
func GetInvoicesInvoiceLinesOutput(ctx *Context, args *GetInvoicesInvoiceLinesOutputArgs, opts ...InvokeOption) GetInvoicesInvoiceLinesResultOutput

> Note: This function is named GetInvoicesInvoiceLines in the Go SDK.

public static class GetInvoicesInvoiceLines 
{
    public static Task<GetInvoicesInvoiceLinesResult> InvokeAsync(GetInvoicesInvoiceLinesArgs args, InvokeOptions? opts = null)
    public static Output<GetInvoicesInvoiceLinesResult> Invoke(GetInvoicesInvoiceLinesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInvoicesInvoiceLinesResult> getInvoicesInvoiceLines(GetInvoicesInvoiceLinesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:OspGateway/getInvoicesInvoiceLines:getInvoicesInvoiceLines
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment.

InternalInvoiceId string

The identifier of the invoice.

OspHomeRegion string

The home region's public name of the logged in user.

Filters List<GetInvoicesInvoiceLinesFilter>
CompartmentId string

The OCID of the compartment.

InternalInvoiceId string

The identifier of the invoice.

OspHomeRegion string

The home region's public name of the logged in user.

Filters []GetInvoicesInvoiceLinesFilter
compartmentId String

The OCID of the compartment.

internalInvoiceId String

The identifier of the invoice.

ospHomeRegion String

The home region's public name of the logged in user.

filters List<GetInvoicesInvoiceLinesFilter>
compartmentId string

The OCID of the compartment.

internalInvoiceId string

The identifier of the invoice.

ospHomeRegion string

The home region's public name of the logged in user.

filters GetInvoicesInvoiceLinesFilter[]
compartment_id str

The OCID of the compartment.

internal_invoice_id str

The identifier of the invoice.

osp_home_region str

The home region's public name of the logged in user.

filters GetInvoicesInvoiceLinesFilter]
compartmentId String

The OCID of the compartment.

internalInvoiceId String

The identifier of the invoice.

ospHomeRegion String

The home region's public name of the logged in user.

filters List<Property Map>

getInvoicesInvoiceLines Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

InternalInvoiceId string
InvoiceLineCollections List<GetInvoicesInvoiceLinesInvoiceLineCollection>

The list of invoice_line_collection.

OspHomeRegion string
Filters List<GetInvoicesInvoiceLinesFilter>
CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

InternalInvoiceId string
InvoiceLineCollections []GetInvoicesInvoiceLinesInvoiceLineCollection

The list of invoice_line_collection.

OspHomeRegion string
Filters []GetInvoicesInvoiceLinesFilter
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

internalInvoiceId String
invoiceLineCollections List<GetInvoicesInvoiceLinesInvoiceLineCollection>

The list of invoice_line_collection.

ospHomeRegion String
filters List<GetInvoicesInvoiceLinesFilter>
compartmentId string
id string

The provider-assigned unique ID for this managed resource.

internalInvoiceId string
invoiceLineCollections GetInvoicesInvoiceLinesInvoiceLineCollection[]

The list of invoice_line_collection.

ospHomeRegion string
filters GetInvoicesInvoiceLinesFilter[]
compartment_id str
id str

The provider-assigned unique ID for this managed resource.

internal_invoice_id str
invoice_line_collections GetInvoicesInvoiceLinesInvoiceLineCollection]

The list of invoice_line_collection.

osp_home_region str
filters GetInvoicesInvoiceLinesFilter]
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

internalInvoiceId String
invoiceLineCollections List<Property Map>

The list of invoice_line_collection.

ospHomeRegion String
filters List<Property Map>

Supporting Types

GetInvoicesInvoiceLinesFilter

Name string

Name of the currency

Values List<string>
Regex bool
Name string

Name of the currency

Values []string
Regex bool
name String

Name of the currency

values List<String>
regex Boolean
name string

Name of the currency

values string[]
regex boolean
name str

Name of the currency

values Sequence[str]
regex bool
name String

Name of the currency

values List<String>
regex Boolean

GetInvoicesInvoiceLinesInvoiceLineCollection

items List<Property Map>

Invoice line list elements

GetInvoicesInvoiceLinesInvoiceLineCollectionItem

Currencies List<GetInvoicesInvoiceLinesInvoiceLineCollectionItemCurrency>

Currency details model

NetUnitPrice double

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 []GetInvoicesInvoiceLinesInvoiceLineCollectionItemCurrency

Currency details model

NetUnitPrice float64

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<GetInvoicesInvoiceLinesInvoiceLineCollectionItemCurrency>

Currency details model

netUnitPrice Double

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 GetInvoicesInvoiceLinesInvoiceLineCollectionItemCurrency[]

Currency details model

netUnitPrice number

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 GetInvoicesInvoiceLinesInvoiceLineCollectionItemCurrency]

Currency details model

net_unit_price float

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

netUnitPrice Number

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)

GetInvoicesInvoiceLinesInvoiceLineCollectionItemCurrency

CurrencyCode string

Currency code

CurrencySymbol string

Currency symbol

Name string

Name of the currency

RoundDecimalPoint double

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

RoundDecimalPoint float64

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

roundDecimalPoint Double

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

roundDecimalPoint number

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_point float

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

roundDecimalPoint Number

Round decimal point

usdConversion Number

USD conversion rate of the currency

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.