1. Packages
  2. Packages
  3. Scaleway
  4. API Docs
  5. billing
  6. getBudget
Viewing docs for Scaleway v1.53.0
published on Friday, Jul 17, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.53.0
published on Friday, Jul 17, 2026 by pulumiverse

    Retrieves information about a Scaleway Budget.

    Use this data source to get details of an existing budget by its ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = scaleway.billing.getBudget({
        budgetId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    main = scaleway.billing.get_budget(budget_id="11111111-1111-1111-1111-111111111111")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/billing"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := billing.LookupBudget(ctx, &billing.LookupBudgetArgs{
    			BudgetId: "11111111-1111-1111-1111-111111111111",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = Scaleway.Billing.GetBudget.Invoke(new()
        {
            BudgetId = "11111111-1111-1111-1111-111111111111",
        });
    
    });
    
    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.GetBudgetArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 main = BillingFunctions.getBudget(GetBudgetArgs.builder()
                .budgetId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      main:
        fn::invoke:
          function: scaleway:billing:getBudget
          arguments:
            budgetId: 11111111-1111-1111-1111-111111111111
    
    Example coming soon!
    

    Using getBudget

    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 getBudget(args: GetBudgetArgs, opts?: InvokeOptions): Promise<GetBudgetResult>
    function getBudgetOutput(args: GetBudgetOutputArgs, opts?: InvokeOptions): Output<GetBudgetResult>
    def get_budget(budget_id: Optional[str] = None,
                   organization_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetBudgetResult
    def get_budget_output(budget_id: pulumi.Input[Optional[str]] = None,
                   organization_id: pulumi.Input[Optional[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetBudgetResult]
    func LookupBudget(ctx *Context, args *LookupBudgetArgs, opts ...InvokeOption) (*LookupBudgetResult, error)
    func LookupBudgetOutput(ctx *Context, args *LookupBudgetOutputArgs, opts ...InvokeOption) LookupBudgetResultOutput

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

    public static class GetBudget 
    {
        public static Task<GetBudgetResult> InvokeAsync(GetBudgetArgs args, InvokeOptions? opts = null)
        public static Output<GetBudgetResult> Invoke(GetBudgetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBudgetResult> getBudget(GetBudgetArgs args, InvokeOptions options)
    public static Output<GetBudgetResult> getBudget(GetBudgetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:billing/getBudget:getBudget
      arguments:
        # arguments dictionary
    data "scaleway_billing_get_budget" "name" {
        # arguments
    }

    The following arguments are supported:

    BudgetId string
    The ID of the budget to retrieve.
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    BudgetId string
    The ID of the budget to retrieve.
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    budget_id string
    The ID of the budget to retrieve.
    organization_id string
    The organization ID. If not provided, the default organization configured in the provider is used.
    budgetId String
    The ID of the budget to retrieve.
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.
    budgetId string
    The ID of the budget to retrieve.
    organizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    budget_id str
    The ID of the budget to retrieve.
    organization_id str
    The organization ID. If not provided, the default organization configured in the provider is used.
    budgetId String
    The ID of the budget to retrieve.
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.

    getBudget Result

    The following output properties are available:

    BudgetId string
    ConsumptionLimit int
    Cost limit for the budget in cents
    CreatedAt string
    The date and time of budget creation
    Enabled bool
    Whether the budget is enabled or not
    Id string
    The ID of the budget
    OrganizationId string
    UpdatedAt string
    The date and time when the budget was last updated
    BudgetId string
    ConsumptionLimit int
    Cost limit for the budget in cents
    CreatedAt string
    The date and time of budget creation
    Enabled bool
    Whether the budget is enabled or not
    Id string
    The ID of the budget
    OrganizationId string
    UpdatedAt string
    The date and time when the budget was last updated
    budget_id string
    consumption_limit number
    Cost limit for the budget in cents
    created_at string
    The date and time of budget creation
    enabled bool
    Whether the budget is enabled or not
    id string
    The ID of the budget
    organization_id string
    updated_at string
    The date and time when the budget was last updated
    budgetId String
    consumptionLimit Integer
    Cost limit for the budget in cents
    createdAt String
    The date and time of budget creation
    enabled Boolean
    Whether the budget is enabled or not
    id String
    The ID of the budget
    organizationId String
    updatedAt String
    The date and time when the budget was last updated
    budgetId string
    consumptionLimit number
    Cost limit for the budget in cents
    createdAt string
    The date and time of budget creation
    enabled boolean
    Whether the budget is enabled or not
    id string
    The ID of the budget
    organizationId string
    updatedAt string
    The date and time when the budget was last updated
    budget_id str
    consumption_limit int
    Cost limit for the budget in cents
    created_at str
    The date and time of budget creation
    enabled bool
    Whether the budget is enabled or not
    id str
    The ID of the budget
    organization_id str
    updated_at str
    The date and time when the budget was last updated
    budgetId String
    consumptionLimit Number
    Cost limit for the budget in cents
    createdAt String
    The date and time of budget creation
    enabled Boolean
    Whether the budget is enabled or not
    id String
    The ID of the budget
    organizationId String
    updatedAt String
    The date and time when the budget was last updated

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.53.0
    published on Friday, Jul 17, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial