Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse
scaleway.getBillingInvoices
Explore with Pulumi AI
Gets information about your Invoices.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumi/scaleway";
const my-invoices = scaleway.getBillingInvoices({
    invoiceType: "periodic",
});
import pulumi
import pulumi_scaleway as scaleway
my_invoices = scaleway.get_billing_invoices(invoice_type="periodic")
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := scaleway.GetBillingInvoices(ctx, &scaleway.GetBillingInvoicesArgs{
			InvoiceType: pulumi.StringRef("periodic"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() => 
{
    var my_invoices = Scaleway.GetBillingInvoices.Invoke(new()
    {
        InvoiceType = "periodic",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.ScalewayFunctions;
import com.pulumi.scaleway.inputs.GetBillingInvoicesArgs;
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 my-invoices = ScalewayFunctions.getBillingInvoices(GetBillingInvoicesArgs.builder()
            .invoiceType("periodic")
            .build());
    }
}
variables:
  my-invoices:
    fn::invoke:
      Function: scaleway:getBillingInvoices
      Arguments:
        invoiceType: periodic
Using getBillingInvoices
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 getBillingInvoices(args: GetBillingInvoicesArgs, opts?: InvokeOptions): Promise<GetBillingInvoicesResult>
function getBillingInvoicesOutput(args: GetBillingInvoicesOutputArgs, opts?: InvokeOptions): Output<GetBillingInvoicesResult>def get_billing_invoices(invoice_type: Optional[str] = None,
                         started_after: Optional[str] = None,
                         started_before: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetBillingInvoicesResult
def get_billing_invoices_output(invoice_type: Optional[pulumi.Input[str]] = None,
                         started_after: Optional[pulumi.Input[str]] = None,
                         started_before: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetBillingInvoicesResult]func GetBillingInvoices(ctx *Context, args *GetBillingInvoicesArgs, opts ...InvokeOption) (*GetBillingInvoicesResult, error)
func GetBillingInvoicesOutput(ctx *Context, args *GetBillingInvoicesOutputArgs, opts ...InvokeOption) GetBillingInvoicesResultOutput> Note: This function is named GetBillingInvoices in the Go SDK.
public static class GetBillingInvoices 
{
    public static Task<GetBillingInvoicesResult> InvokeAsync(GetBillingInvoicesArgs args, InvokeOptions? opts = null)
    public static Output<GetBillingInvoicesResult> Invoke(GetBillingInvoicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBillingInvoicesResult> getBillingInvoices(GetBillingInvoicesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: scaleway:index/getBillingInvoices:getBillingInvoices
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Invoice
Type string - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - Started
After string - Invoices with a start date that are greater or equal to 
started_afterare listed (RFC 3339 format). - Started
Before string - Invoices with a start date that precedes 
started_beforeare listed (RFC 3339 format). 
- Invoice
Type string - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - Started
After string - Invoices with a start date that are greater or equal to 
started_afterare listed (RFC 3339 format). - Started
Before string - Invoices with a start date that precedes 
started_beforeare listed (RFC 3339 format). 
- invoice
Type String - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - started
After String - Invoices with a start date that are greater or equal to 
started_afterare listed (RFC 3339 format). - started
Before String - Invoices with a start date that precedes 
started_beforeare listed (RFC 3339 format). 
- invoice
Type string - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - started
After string - Invoices with a start date that are greater or equal to 
started_afterare listed (RFC 3339 format). - started
Before string - Invoices with a start date that precedes 
started_beforeare listed (RFC 3339 format). 
- invoice_
type str - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - started_
after str - Invoices with a start date that are greater or equal to 
started_afterare listed (RFC 3339 format). - started_
before str - Invoices with a start date that precedes 
started_beforeare listed (RFC 3339 format). 
- invoice
Type String - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - started
After String - Invoices with a start date that are greater or equal to 
started_afterare listed (RFC 3339 format). - started
Before String - Invoices with a start date that precedes 
started_beforeare listed (RFC 3339 format). 
getBillingInvoices Result
The following output properties are available:
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Invoices
List<Pulumiverse.
Scaleway. Outputs. Get Billing Invoices Invoice>  - List of found invoices
 - Organization
Id string - Invoice
Type string - The type of invoice.
 - Started
After string - Started
Before string 
- Id string
 - The provider-assigned unique ID for this managed resource.
 - Invoices
[]Get
Billing Invoices Invoice  - List of found invoices
 - Organization
Id string - Invoice
Type string - The type of invoice.
 - Started
After string - Started
Before string 
- id String
 - The provider-assigned unique ID for this managed resource.
 - invoices
List<Get
Billing Invoices Invoice>  - List of found invoices
 - organization
Id String - invoice
Type String - The type of invoice.
 - started
After String - started
Before String 
- id string
 - The provider-assigned unique ID for this managed resource.
 - invoices
Get
Billing Invoices Invoice[]  - List of found invoices
 - organization
Id string - invoice
Type string - The type of invoice.
 - started
After string - started
Before string 
- id str
 - The provider-assigned unique ID for this managed resource.
 - invoices
Sequence[Get
Billing Invoices Invoice]  - List of found invoices
 - organization_
id str - invoice_
type str - The type of invoice.
 - started_
after str - started_
before str 
- id String
 - The provider-assigned unique ID for this managed resource.
 - invoices List<Property Map>
 - List of found invoices
 - organization
Id String - invoice
Type String - The type of invoice.
 - started
After String - started
Before String 
Supporting Types
GetBillingInvoicesInvoice   
- Billing
Period string - The billing period of the invoice in the YYYY-MM format.
 - Due
Date string - The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
 - Id string
 - The associated invoice ID.
 - Invoice
Type string - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - Issued
Date string - The date when the invoice was sent to the customer (RFC 3339 format).
 - Number int
 - The invoice number.
 - Organization
Name string - The organization name.
 - Seller
Name string - The name of the seller (Scaleway).
 - Start
Date string - The start date of the billing period (RFC 3339 format).
 - State string
 - The state of the invoice.
 - Stop
Date string - The end date of the billing period (RFC 3339 format).
 - Total
Discount string - The total discount amount of the invoice.
 - Total
Tax string - The total tax amount of the invoice.
 - Total
Taxed string - The total amount, taxed.
 - Total
Undiscount string - The total amount of the invoice before applying the discount.
 - Total
Untaxed string - The total amount, untaxed.
 
- Billing
Period string - The billing period of the invoice in the YYYY-MM format.
 - Due
Date string - The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
 - Id string
 - The associated invoice ID.
 - Invoice
Type string - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - Issued
Date string - The date when the invoice was sent to the customer (RFC 3339 format).
 - Number int
 - The invoice number.
 - Organization
Name string - The organization name.
 - Seller
Name string - The name of the seller (Scaleway).
 - Start
Date string - The start date of the billing period (RFC 3339 format).
 - State string
 - The state of the invoice.
 - Stop
Date string - The end date of the billing period (RFC 3339 format).
 - Total
Discount string - The total discount amount of the invoice.
 - Total
Tax string - The total tax amount of the invoice.
 - Total
Taxed string - The total amount, taxed.
 - Total
Undiscount string - The total amount of the invoice before applying the discount.
 - Total
Untaxed string - The total amount, untaxed.
 
- billing
Period String - The billing period of the invoice in the YYYY-MM format.
 - due
Date String - The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
 - id String
 - The associated invoice ID.
 - invoice
Type String - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - issued
Date String - The date when the invoice was sent to the customer (RFC 3339 format).
 - number Integer
 - The invoice number.
 - organization
Name String - The organization name.
 - seller
Name String - The name of the seller (Scaleway).
 - start
Date String - The start date of the billing period (RFC 3339 format).
 - state String
 - The state of the invoice.
 - stop
Date String - The end date of the billing period (RFC 3339 format).
 - total
Discount String - The total discount amount of the invoice.
 - total
Tax String - The total tax amount of the invoice.
 - total
Taxed String - The total amount, taxed.
 - total
Undiscount String - The total amount of the invoice before applying the discount.
 - total
Untaxed String - The total amount, untaxed.
 
- billing
Period string - The billing period of the invoice in the YYYY-MM format.
 - due
Date string - The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
 - id string
 - The associated invoice ID.
 - invoice
Type string - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - issued
Date string - The date when the invoice was sent to the customer (RFC 3339 format).
 - number number
 - The invoice number.
 - organization
Name string - The organization name.
 - seller
Name string - The name of the seller (Scaleway).
 - start
Date string - The start date of the billing period (RFC 3339 format).
 - state string
 - The state of the invoice.
 - stop
Date string - The end date of the billing period (RFC 3339 format).
 - total
Discount string - The total discount amount of the invoice.
 - total
Tax string - The total tax amount of the invoice.
 - total
Taxed string - The total amount, taxed.
 - total
Undiscount string - The total amount of the invoice before applying the discount.
 - total
Untaxed string - The total amount, untaxed.
 
- billing_
period str - The billing period of the invoice in the YYYY-MM format.
 - due_
date str - The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
 - id str
 - The associated invoice ID.
 - invoice_
type str - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - issued_
date str - The date when the invoice was sent to the customer (RFC 3339 format).
 - number int
 - The invoice number.
 - organization_
name str - The organization name.
 - seller_
name str - The name of the seller (Scaleway).
 - start_
date str - The start date of the billing period (RFC 3339 format).
 - state str
 - The state of the invoice.
 - stop_
date str - The end date of the billing period (RFC 3339 format).
 - total_
discount str - The total discount amount of the invoice.
 - total_
tax str - The total tax amount of the invoice.
 - total_
taxed str - The total amount, taxed.
 - total_
undiscount str - The total amount of the invoice before applying the discount.
 - total_
untaxed str - The total amount, untaxed.
 
- billing
Period String - The billing period of the invoice in the YYYY-MM format.
 - due
Date String - The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
 - id String
 - The associated invoice ID.
 - invoice
Type String - Invoices with the given type are listed. Valid values are 
periodicandpurchase. - issued
Date String - The date when the invoice was sent to the customer (RFC 3339 format).
 - number Number
 - The invoice number.
 - organization
Name String - The organization name.
 - seller
Name String - The name of the seller (Scaleway).
 - start
Date String - The start date of the billing period (RFC 3339 format).
 - state String
 - The state of the invoice.
 - stop
Date String - The end date of the billing period (RFC 3339 format).
 - total
Discount String - The total discount amount of the invoice.
 - total
Tax String - The total tax amount of the invoice.
 - total
Taxed String - The total amount, taxed.
 - total
Undiscount String - The total amount of the invoice before applying the discount.
 - total
Untaxed String - The total amount, untaxed.
 
Package Details
- Repository
 - scaleway pulumiverse/pulumi-scaleway
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
scalewayTerraform Provider.