1. Packages
  2. Scaleway
  3. API Docs
  4. billing
  5. getConsumptions
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.billing.getConsumptions

Explore with Pulumi AI

Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

Gets information about your Consumptions.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.billing.BillingFunctions;
import com.pulumi.scaleway.billing.inputs.GetConsumptionsArgs;
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) {
        // Find your detailed monthly consumption list
        final var my-consumption = BillingFunctions.getConsumptions(GetConsumptionsArgs.builder()
            .organizationId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
            .build());

    }
}
Copy
variables:
  # Find your detailed monthly consumption list
  my-consumption:
    fn::invoke:
      function: scaleway:billing:getConsumptions
      arguments:
        organizationId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Copy

Using getConsumptions

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 getConsumptions(args: GetConsumptionsArgs, opts?: InvokeOptions): Promise<GetConsumptionsResult>
function getConsumptionsOutput(args: GetConsumptionsOutputArgs, opts?: InvokeOptions): Output<GetConsumptionsResult>
Copy
def get_consumptions(project_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetConsumptionsResult
def get_consumptions_output(project_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetConsumptionsResult]
Copy
func GetConsumptions(ctx *Context, args *GetConsumptionsArgs, opts ...InvokeOption) (*GetConsumptionsResult, error)
func GetConsumptionsOutput(ctx *Context, args *GetConsumptionsOutputArgs, opts ...InvokeOption) GetConsumptionsResultOutput
Copy

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

public static class GetConsumptions 
{
    public static Task<GetConsumptionsResult> InvokeAsync(GetConsumptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetConsumptionsResult> Invoke(GetConsumptionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetConsumptionsResult> getConsumptions(GetConsumptionsArgs args, InvokeOptions options)
public static Output<GetConsumptionsResult> getConsumptions(GetConsumptionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: scaleway:billing/getConsumptions:getConsumptions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the consumption list is associated with.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the project the consumption list is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the consumption list is associated with.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the project the consumption list is associated with.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the project the consumption list is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the project the consumption list is associated with.

getConsumptions Result

The following output properties are available:

Consumptions List<Pulumiverse.Scaleway.Billing.Outputs.GetConsumptionsConsumption>
List of found consumptions
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ProjectId string
The project ID of the consumption.
UpdatedAt string
The last consumption update date.
Consumptions []GetConsumptionsConsumption
List of found consumptions
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
ProjectId string
The project ID of the consumption.
UpdatedAt string
The last consumption update date.
consumptions List<GetConsumptionsConsumption>
List of found consumptions
id String
The provider-assigned unique ID for this managed resource.
organizationId String
projectId String
The project ID of the consumption.
updatedAt String
The last consumption update date.
consumptions GetConsumptionsConsumption[]
List of found consumptions
id string
The provider-assigned unique ID for this managed resource.
organizationId string
projectId string
The project ID of the consumption.
updatedAt string
The last consumption update date.
consumptions Sequence[GetConsumptionsConsumption]
List of found consumptions
id str
The provider-assigned unique ID for this managed resource.
organization_id str
project_id str
The project ID of the consumption.
updated_at str
The last consumption update date.
consumptions List<Property Map>
List of found consumptions
id String
The provider-assigned unique ID for this managed resource.
organizationId String
projectId String
The project ID of the consumption.
updatedAt String
The last consumption update date.

Supporting Types

GetConsumptionsConsumption

BilledQuantity This property is required. string
The consumed quantity.
CategoryName This property is required. string
The name of the consumption category.
ProductName This property is required. string
The product name.
ProjectId This property is required. string
project_id) The ID of the project the consumption list is associated with.
Sku This property is required. string
The unique identifier of the product.
Unit This property is required. string
The unit of consumed quantity.
Value This property is required. string
The monetary value of the consumption.
BilledQuantity This property is required. string
The consumed quantity.
CategoryName This property is required. string
The name of the consumption category.
ProductName This property is required. string
The product name.
ProjectId This property is required. string
project_id) The ID of the project the consumption list is associated with.
Sku This property is required. string
The unique identifier of the product.
Unit This property is required. string
The unit of consumed quantity.
Value This property is required. string
The monetary value of the consumption.
billedQuantity This property is required. String
The consumed quantity.
categoryName This property is required. String
The name of the consumption category.
productName This property is required. String
The product name.
projectId This property is required. String
project_id) The ID of the project the consumption list is associated with.
sku This property is required. String
The unique identifier of the product.
unit This property is required. String
The unit of consumed quantity.
value This property is required. String
The monetary value of the consumption.
billedQuantity This property is required. string
The consumed quantity.
categoryName This property is required. string
The name of the consumption category.
productName This property is required. string
The product name.
projectId This property is required. string
project_id) The ID of the project the consumption list is associated with.
sku This property is required. string
The unique identifier of the product.
unit This property is required. string
The unit of consumed quantity.
value This property is required. string
The monetary value of the consumption.
billed_quantity This property is required. str
The consumed quantity.
category_name This property is required. str
The name of the consumption category.
product_name This property is required. str
The product name.
project_id This property is required. str
project_id) The ID of the project the consumption list is associated with.
sku This property is required. str
The unique identifier of the product.
unit This property is required. str
The unit of consumed quantity.
value This property is required. str
The monetary value of the consumption.
billedQuantity This property is required. String
The consumed quantity.
categoryName This property is required. String
The name of the consumption category.
productName This property is required. String
The product name.
projectId This property is required. String
project_id) The ID of the project the consumption list is associated with.
sku This property is required. String
The unique identifier of the product.
unit This property is required. String
The unit of consumed quantity.
value This property is required. String
The monetary value of the consumption.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse