1. Packages
  2. Packages
  3. Scaleway
  4. API Docs
  5. billing
  6. getBudgetAlert
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 Alert.

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = scaleway.billing.getBudgetAlert({
        alertId: "11111111-1111-1111-1111-111111111111",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    main = scaleway.billing.get_budget_alert(alert_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.LookupBudgetAlert(ctx, &billing.LookupBudgetAlertArgs{
    			AlertId: "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.GetBudgetAlert.Invoke(new()
        {
            AlertId = "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.GetBudgetAlertArgs;
    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.getBudgetAlert(GetBudgetAlertArgs.builder()
                .alertId("11111111-1111-1111-1111-111111111111")
                .build());
    
        }
    }
    
    variables:
      main:
        fn::invoke:
          function: scaleway:billing:getBudgetAlert
          arguments:
            alertId: 11111111-1111-1111-1111-111111111111
    
    Example coming soon!
    

    Using getBudgetAlert

    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 getBudgetAlert(args: GetBudgetAlertArgs, opts?: InvokeOptions): Promise<GetBudgetAlertResult>
    function getBudgetAlertOutput(args: GetBudgetAlertOutputArgs, opts?: InvokeOptions): Output<GetBudgetAlertResult>
    def get_budget_alert(alert_id: Optional[str] = None,
                         budget_id: Optional[str] = None,
                         organization_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetBudgetAlertResult
    def get_budget_alert_output(alert_id: pulumi.Input[Optional[str]] = None,
                         budget_id: pulumi.Input[Optional[str]] = None,
                         organization_id: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetBudgetAlertResult]
    func LookupBudgetAlert(ctx *Context, args *LookupBudgetAlertArgs, opts ...InvokeOption) (*LookupBudgetAlertResult, error)
    func LookupBudgetAlertOutput(ctx *Context, args *LookupBudgetAlertOutputArgs, opts ...InvokeOption) LookupBudgetAlertResultOutput

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

    public static class GetBudgetAlert 
    {
        public static Task<GetBudgetAlertResult> InvokeAsync(GetBudgetAlertArgs args, InvokeOptions? opts = null)
        public static Output<GetBudgetAlertResult> Invoke(GetBudgetAlertInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBudgetAlertResult> getBudgetAlert(GetBudgetAlertArgs args, InvokeOptions options)
    public static Output<GetBudgetAlertResult> getBudgetAlert(GetBudgetAlertArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:billing/getBudgetAlert:getBudgetAlert
      arguments:
        # arguments dictionary
    data "scaleway_billing_get_budget_alert" "name" {
        # arguments
    }

    The following arguments are supported:

    AlertId string
    The ID of the budget alert to retrieve.
    BudgetId string
    The ID of the budget. If not provided, it will be retrieved from the alert.
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    AlertId string
    The ID of the budget alert to retrieve.
    BudgetId string
    The ID of the budget. If not provided, it will be retrieved from the alert.
    OrganizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    alert_id string
    The ID of the budget alert to retrieve.
    budget_id string
    The ID of the budget. If not provided, it will be retrieved from the alert.
    organization_id string
    The organization ID. If not provided, the default organization configured in the provider is used.
    alertId String
    The ID of the budget alert to retrieve.
    budgetId String
    The ID of the budget. If not provided, it will be retrieved from the alert.
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.
    alertId string
    The ID of the budget alert to retrieve.
    budgetId string
    The ID of the budget. If not provided, it will be retrieved from the alert.
    organizationId string
    The organization ID. If not provided, the default organization configured in the provider is used.
    alert_id str
    The ID of the budget alert to retrieve.
    budget_id str
    The ID of the budget. If not provided, it will be retrieved from the alert.
    organization_id str
    The organization ID. If not provided, the default organization configured in the provider is used.
    alertId String
    The ID of the budget alert to retrieve.
    budgetId String
    The ID of the budget. If not provided, it will be retrieved from the alert.
    organizationId String
    The organization ID. If not provided, the default organization configured in the provider is used.

    getBudgetAlert Result

    The following output properties are available:

    AlertId string
    BudgetId string
    CreatedAt string
    The date and time of budget alert creation
    Id string
    The ID of the budget alert
    OrganizationId string
    Threshold int
    Threshold percentage above which the alert is sent
    UpdatedAt string
    The date and time when the budget alert was last updated
    AlertId string
    BudgetId string
    CreatedAt string
    The date and time of budget alert creation
    Id string
    The ID of the budget alert
    OrganizationId string
    Threshold int
    Threshold percentage above which the alert is sent
    UpdatedAt string
    The date and time when the budget alert was last updated
    alert_id string
    budget_id string
    created_at string
    The date and time of budget alert creation
    id string
    The ID of the budget alert
    organization_id string
    threshold number
    Threshold percentage above which the alert is sent
    updated_at string
    The date and time when the budget alert was last updated
    alertId String
    budgetId String
    createdAt String
    The date and time of budget alert creation
    id String
    The ID of the budget alert
    organizationId String
    threshold Integer
    Threshold percentage above which the alert is sent
    updatedAt String
    The date and time when the budget alert was last updated
    alertId string
    budgetId string
    createdAt string
    The date and time of budget alert creation
    id string
    The ID of the budget alert
    organizationId string
    threshold number
    Threshold percentage above which the alert is sent
    updatedAt string
    The date and time when the budget alert was last updated
    alert_id str
    budget_id str
    created_at str
    The date and time of budget alert creation
    id str
    The ID of the budget alert
    organization_id str
    threshold int
    Threshold percentage above which the alert is sent
    updated_at str
    The date and time when the budget alert was last updated
    alertId String
    budgetId String
    createdAt String
    The date and time of budget alert creation
    id String
    The ID of the budget alert
    organizationId String
    threshold Number
    Threshold percentage above which the alert is sent
    updatedAt String
    The date and time when the budget alert 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