1. Packages
  2. Scaleway
  3. API Docs
  4. getBillingInvoices
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.getBillingInvoices

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    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 dictionary

    The following arguments are supported:

    InvoiceType string
    Invoices with the given type are listed. Valid values are periodic and purchase.
    StartedAfter string
    Invoices with a start date that are greater or equal to started_after are listed (RFC 3339 format).
    StartedBefore string
    Invoices with a start date that precedes started_before are listed (RFC 3339 format).
    InvoiceType string
    Invoices with the given type are listed. Valid values are periodic and purchase.
    StartedAfter string
    Invoices with a start date that are greater or equal to started_after are listed (RFC 3339 format).
    StartedBefore string
    Invoices with a start date that precedes started_before are listed (RFC 3339 format).
    invoiceType String
    Invoices with the given type are listed. Valid values are periodic and purchase.
    startedAfter String
    Invoices with a start date that are greater or equal to started_after are listed (RFC 3339 format).
    startedBefore String
    Invoices with a start date that precedes started_before are listed (RFC 3339 format).
    invoiceType string
    Invoices with the given type are listed. Valid values are periodic and purchase.
    startedAfter string
    Invoices with a start date that are greater or equal to started_after are listed (RFC 3339 format).
    startedBefore string
    Invoices with a start date that precedes started_before are listed (RFC 3339 format).
    invoice_type str
    Invoices with the given type are listed. Valid values are periodic and purchase.
    started_after str
    Invoices with a start date that are greater or equal to started_after are listed (RFC 3339 format).
    started_before str
    Invoices with a start date that precedes started_before are listed (RFC 3339 format).
    invoiceType String
    Invoices with the given type are listed. Valid values are periodic and purchase.
    startedAfter String
    Invoices with a start date that are greater or equal to started_after are listed (RFC 3339 format).
    startedBefore String
    Invoices with a start date that precedes started_before are 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.GetBillingInvoicesInvoice>
    List of found invoices
    OrganizationId string
    InvoiceType string
    The type of invoice.
    StartedAfter string
    StartedBefore string
    Id string
    The provider-assigned unique ID for this managed resource.
    Invoices []GetBillingInvoicesInvoice
    List of found invoices
    OrganizationId string
    InvoiceType string
    The type of invoice.
    StartedAfter string
    StartedBefore string
    id String
    The provider-assigned unique ID for this managed resource.
    invoices List<GetBillingInvoicesInvoice>
    List of found invoices
    organizationId String
    invoiceType String
    The type of invoice.
    startedAfter String
    startedBefore String
    id string
    The provider-assigned unique ID for this managed resource.
    invoices GetBillingInvoicesInvoice[]
    List of found invoices
    organizationId string
    invoiceType string
    The type of invoice.
    startedAfter string
    startedBefore string
    id str
    The provider-assigned unique ID for this managed resource.
    invoices Sequence[GetBillingInvoicesInvoice]
    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
    organizationId String
    invoiceType String
    The type of invoice.
    startedAfter String
    startedBefore String

    Supporting Types

    GetBillingInvoicesInvoice

    BillingPeriod string
    The billing period of the invoice in the YYYY-MM format.
    DueDate string
    The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
    Id string
    The associated invoice ID.
    InvoiceType string
    Invoices with the given type are listed. Valid values are periodic and purchase.
    IssuedDate string
    The date when the invoice was sent to the customer (RFC 3339 format).
    Number int
    The invoice number.
    OrganizationName string
    The organization name.
    SellerName string
    The name of the seller (Scaleway).
    StartDate string
    The start date of the billing period (RFC 3339 format).
    State string
    The state of the invoice.
    StopDate string
    The end date of the billing period (RFC 3339 format).
    TotalDiscount string
    The total discount amount of the invoice.
    TotalTax string
    The total tax amount of the invoice.
    TotalTaxed string
    The total amount, taxed.
    TotalUndiscount string
    The total amount of the invoice before applying the discount.
    TotalUntaxed string
    The total amount, untaxed.
    BillingPeriod string
    The billing period of the invoice in the YYYY-MM format.
    DueDate string
    The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
    Id string
    The associated invoice ID.
    InvoiceType string
    Invoices with the given type are listed. Valid values are periodic and purchase.
    IssuedDate string
    The date when the invoice was sent to the customer (RFC 3339 format).
    Number int
    The invoice number.
    OrganizationName string
    The organization name.
    SellerName string
    The name of the seller (Scaleway).
    StartDate string
    The start date of the billing period (RFC 3339 format).
    State string
    The state of the invoice.
    StopDate string
    The end date of the billing period (RFC 3339 format).
    TotalDiscount string
    The total discount amount of the invoice.
    TotalTax string
    The total tax amount of the invoice.
    TotalTaxed string
    The total amount, taxed.
    TotalUndiscount string
    The total amount of the invoice before applying the discount.
    TotalUntaxed string
    The total amount, untaxed.
    billingPeriod String
    The billing period of the invoice in the YYYY-MM format.
    dueDate String
    The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
    id String
    The associated invoice ID.
    invoiceType String
    Invoices with the given type are listed. Valid values are periodic and purchase.
    issuedDate String
    The date when the invoice was sent to the customer (RFC 3339 format).
    number Integer
    The invoice number.
    organizationName String
    The organization name.
    sellerName String
    The name of the seller (Scaleway).
    startDate String
    The start date of the billing period (RFC 3339 format).
    state String
    The state of the invoice.
    stopDate String
    The end date of the billing period (RFC 3339 format).
    totalDiscount String
    The total discount amount of the invoice.
    totalTax String
    The total tax amount of the invoice.
    totalTaxed String
    The total amount, taxed.
    totalUndiscount String
    The total amount of the invoice before applying the discount.
    totalUntaxed String
    The total amount, untaxed.
    billingPeriod string
    The billing period of the invoice in the YYYY-MM format.
    dueDate string
    The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
    id string
    The associated invoice ID.
    invoiceType string
    Invoices with the given type are listed. Valid values are periodic and purchase.
    issuedDate string
    The date when the invoice was sent to the customer (RFC 3339 format).
    number number
    The invoice number.
    organizationName string
    The organization name.
    sellerName string
    The name of the seller (Scaleway).
    startDate string
    The start date of the billing period (RFC 3339 format).
    state string
    The state of the invoice.
    stopDate string
    The end date of the billing period (RFC 3339 format).
    totalDiscount string
    The total discount amount of the invoice.
    totalTax string
    The total tax amount of the invoice.
    totalTaxed string
    The total amount, taxed.
    totalUndiscount string
    The total amount of the invoice before applying the discount.
    totalUntaxed 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 periodic and purchase.
    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.
    billingPeriod String
    The billing period of the invoice in the YYYY-MM format.
    dueDate String
    The payment time limit, set according to the Organization's payment conditions (RFC 3339 format).
    id String
    The associated invoice ID.
    invoiceType String
    Invoices with the given type are listed. Valid values are periodic and purchase.
    issuedDate String
    The date when the invoice was sent to the customer (RFC 3339 format).
    number Number
    The invoice number.
    organizationName String
    The organization name.
    sellerName String
    The name of the seller (Scaleway).
    startDate String
    The start date of the billing period (RFC 3339 format).
    state String
    The state of the invoice.
    stopDate String
    The end date of the billing period (RFC 3339 format).
    totalDiscount String
    The total discount amount of the invoice.
    totalTax String
    The total tax amount of the invoice.
    totalTaxed String
    The total amount, taxed.
    totalUndiscount String
    The total amount of the invoice before applying the discount.
    totalUntaxed String
    The total amount, untaxed.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse