Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.OspGateway.getInvoicesInvoiceLines
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testInvoicesInvoiceLines = oci.OspGateway.getInvoicesInvoiceLines({
compartmentId: compartmentId,
internalInvoiceId: testInvoice.id,
ospHomeRegion: invoicesInvoiceLineOspHomeRegion,
});
import pulumi
import pulumi_oci as oci
test_invoices_invoice_lines = oci.OspGateway.get_invoices_invoice_lines(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.GetInvoicesInvoiceLines(ctx, &ospgateway.GetInvoicesInvoiceLinesArgs{
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 testInvoicesInvoiceLines = Oci.OspGateway.GetInvoicesInvoiceLines.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.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(compartmentId)
.internalInvoiceId(testInvoice.id())
.ospHomeRegion(invoicesInvoiceLineOspHomeRegion)
.build());
}
}
variables:
testInvoicesInvoiceLines:
fn::invoke:
Function: oci:OspGateway:getInvoicesInvoiceLines
Arguments:
compartmentId: ${compartmentId}
internalInvoiceId: ${testInvoice.id}
ospHomeRegion: ${invoicesInvoiceLineOspHomeRegion}
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:
- Compartment
Id string - The OCID of the compartment.
- Internal
Invoice stringId - The identifier of the invoice.
- Osp
Home stringRegion - The home region's public name of the logged in user.
- Filters
List<Get
Invoices Invoice Lines Filter>
- Compartment
Id string - The OCID of the compartment.
- Internal
Invoice stringId - The identifier of the invoice.
- Osp
Home stringRegion - The home region's public name of the logged in user.
- Filters
[]Get
Invoices Invoice Lines Filter
- compartment
Id String - The OCID of the compartment.
- internal
Invoice StringId - The identifier of the invoice.
- osp
Home StringRegion - The home region's public name of the logged in user.
- filters
List<Get
Invoices Invoice Lines Filter>
- compartment
Id string - The OCID of the compartment.
- internal
Invoice stringId - The identifier of the invoice.
- osp
Home stringRegion - The home region's public name of the logged in user.
- filters
Get
Invoices Invoice Lines Filter[]
- 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.
- filters
Sequence[ospgateway.
Get Invoices Invoice Lines Filter]
- compartment
Id String - The OCID of the compartment.
- internal
Invoice StringId - The identifier of the invoice.
- osp
Home StringRegion - The home region's public name of the logged in user.
- filters List<Property Map>
getInvoicesInvoiceLines Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Invoice stringId - Invoice
Line List<GetCollections Invoices Invoice Lines Invoice Line Collection> - The list of invoice_line_collection.
- Osp
Home stringRegion - Filters
List<Get
Invoices Invoice Lines Filter>
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Internal
Invoice stringId - Invoice
Line []GetCollections Invoices Invoice Lines Invoice Line Collection - The list of invoice_line_collection.
- Osp
Home stringRegion - Filters
[]Get
Invoices Invoice Lines Filter
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- internal
Invoice StringId - invoice
Line List<GetCollections Invoices Invoice Lines Invoice Line Collection> - The list of invoice_line_collection.
- osp
Home StringRegion - filters
List<Get
Invoices Invoice Lines Filter>
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- internal
Invoice stringId - invoice
Line GetCollections Invoices Invoice Lines Invoice Line Collection[] - The list of invoice_line_collection.
- osp
Home stringRegion - filters
Get
Invoices Invoice Lines Filter[]
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- internal_
invoice_ strid - invoice_
line_ Sequence[ospgateway.collections Get Invoices Invoice Lines Invoice Line Collection] - The list of invoice_line_collection.
- osp_
home_ strregion - filters
Sequence[ospgateway.
Get Invoices Invoice Lines Filter]
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- internal
Invoice StringId - invoice
Line List<Property Map>Collections - The list of invoice_line_collection.
- osp
Home StringRegion - filters List<Property Map>
Supporting Types
GetInvoicesInvoiceLinesFilter
GetInvoicesInvoiceLinesInvoiceLineCollection
- Items
List<Get
Invoices Invoice Lines Invoice Line Collection Item> - Invoice line list elements
- Items
[]Get
Invoices Invoice Lines Invoice Line Collection Item - Invoice line list elements
- items
List<Get
Invoices Invoice Lines Invoice Line Collection Item> - Invoice line list elements
- items
Get
Invoices Invoice Lines Invoice Line Collection Item[] - Invoice line list elements
- items
Sequence[ospgateway.
Get Invoices Invoice Lines Invoice Line Collection Item] - Invoice line list elements
- items List<Property Map>
- Invoice line list elements
GetInvoicesInvoiceLinesInvoiceLineCollectionItem
- Currencies
List<Get
Invoices Invoice Lines Invoice Line Collection Item Currency> - Currency details model
- Net
Unit doublePrice - Unit price of the ordered product
- Order
No string - Product of the item
- Part
Number string - Part number
- Product string
- Product of the item
- Quantity double
- Quantity of the ordered product
- Time
End string - End date
- Time
Start string - Start date
- Total
Price double - Total price of the ordered product (Net unit price x quantity)
- Currencies
[]Get
Invoices Invoice Lines Invoice Line Collection Item Currency - Currency details model
- Net
Unit float64Price - Unit price of the ordered product
- Order
No string - Product of the item
- Part
Number string - Part number
- Product string
- Product of the item
- Quantity float64
- Quantity of the ordered product
- Time
End string - End date
- Time
Start string - Start date
- Total
Price float64 - Total price of the ordered product (Net unit price x quantity)
- currencies
List<Get
Invoices Invoice Lines Invoice Line Collection Item Currency> - Currency details model
- net
Unit DoublePrice - Unit price of the ordered product
- order
No String - Product of the item
- part
Number String - Part number
- product String
- Product of the item
- quantity Double
- Quantity of the ordered product
- time
End String - End date
- time
Start String - Start date
- total
Price Double - Total price of the ordered product (Net unit price x quantity)
- currencies
Get
Invoices Invoice Lines Invoice Line Collection Item Currency[] - Currency details model
- net
Unit numberPrice - Unit price of the ordered product
- order
No string - Product of the item
- part
Number string - Part number
- product string
- Product of the item
- quantity number
- Quantity of the ordered product
- time
End string - End date
- time
Start string - Start date
- total
Price number - Total price of the ordered product (Net unit price x quantity)
- currencies
Sequence[ospgateway.
Get Invoices Invoice Lines Invoice Line Collection 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
- net
Unit NumberPrice - Unit price of the ordered product
- order
No String - Product of the item
- part
Number String - Part number
- product String
- Product of the item
- quantity Number
- Quantity of the ordered product
- time
End String - End date
- time
Start String - Start date
- total
Price Number - Total price of the ordered product (Net unit price x quantity)
GetInvoicesInvoiceLinesInvoiceLineCollectionItemCurrency
- Currency
Code string - Currency code
- Currency
Symbol string - Currency symbol
- Name string
- Name of the currency
- Round
Decimal doublePoint - Round decimal point
- Usd
Conversion double - USD conversion rate of the currency
- Currency
Code string - Currency code
- Currency
Symbol string - Currency symbol
- Name string
- Name of the currency
- Round
Decimal float64Point - Round decimal point
- Usd
Conversion float64 - USD conversion rate of the currency
- currency
Code String - Currency code
- currency
Symbol String - Currency symbol
- name String
- Name of the currency
- round
Decimal DoublePoint - Round decimal point
- usd
Conversion Double - USD conversion rate of the currency
- currency
Code string - Currency code
- currency
Symbol string - Currency symbol
- name string
- Name of the currency
- round
Decimal numberPoint - Round decimal point
- usd
Conversion 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
- currency
Code String - Currency code
- currency
Symbol String - Currency symbol
- name String
- Name of the currency
- round
Decimal NumberPoint - Round decimal point
- usd
Conversion 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.