1. Packages
  2. Aiven Provider
  3. API Docs
  4. getBillingGroup
Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi
aiven logo
Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi

    Gets information about a billing group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const exampleBillingGroup = aiven.getBillingGroup({
        billingGroupId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    example_billing_group = aiven.get_billing_group(billing_group_id="1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.LookupBillingGroup(ctx, &aiven.LookupBillingGroupArgs{
    			BillingGroupId: "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleBillingGroup = Aiven.GetBillingGroup.Invoke(new()
        {
            BillingGroupId = "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aiven.AivenFunctions;
    import com.pulumi.aiven.inputs.GetBillingGroupArgs;
    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 exampleBillingGroup = AivenFunctions.getBillingGroup(GetBillingGroupArgs.builder()
                .billingGroupId("1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d")
                .build());
    
        }
    }
    
    variables:
      exampleBillingGroup:
        fn::invoke:
          function: aiven:getBillingGroup
          arguments:
            billingGroupId: 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
    

    Using getBillingGroup

    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 getBillingGroup(args: GetBillingGroupArgs, opts?: InvokeOptions): Promise<GetBillingGroupResult>
    function getBillingGroupOutput(args: GetBillingGroupOutputArgs, opts?: InvokeOptions): Output<GetBillingGroupResult>
    def get_billing_group(billing_group_id: Optional[str] = None,
                          timeouts: Optional[GetBillingGroupTimeouts] = None,
                          opts: Optional[InvokeOptions] = None) -> GetBillingGroupResult
    def get_billing_group_output(billing_group_id: Optional[pulumi.Input[str]] = None,
                          timeouts: Optional[pulumi.Input[GetBillingGroupTimeoutsArgs]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetBillingGroupResult]
    func LookupBillingGroup(ctx *Context, args *LookupBillingGroupArgs, opts ...InvokeOption) (*LookupBillingGroupResult, error)
    func LookupBillingGroupOutput(ctx *Context, args *LookupBillingGroupOutputArgs, opts ...InvokeOption) LookupBillingGroupResultOutput

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

    public static class GetBillingGroup 
    {
        public static Task<GetBillingGroupResult> InvokeAsync(GetBillingGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetBillingGroupResult> Invoke(GetBillingGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBillingGroupResult> getBillingGroup(GetBillingGroupArgs args, InvokeOptions options)
    public static Output<GetBillingGroupResult> getBillingGroup(GetBillingGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aiven:index/getBillingGroup:getBillingGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BillingGroupId string
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    Timeouts GetBillingGroupTimeouts
    BillingGroupId string
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    Timeouts GetBillingGroupTimeouts
    billingGroupId String
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    timeouts GetBillingGroupTimeouts
    billingGroupId string
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    timeouts GetBillingGroupTimeouts
    billing_group_id str
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    timeouts GetBillingGroupTimeouts
    billingGroupId String
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    timeouts Property Map

    getBillingGroup Result

    The following output properties are available:

    AccountId string
    Account ID. Deprecated: Use parent_id instead. This field will be removed in the next major release.

    Deprecated: Use parent_id instead. This field will be removed in the next major release.

    AddressLines List<string>
    Address lines 1 and 2. For example, street, PO box, or building.
    BillingContactEmails List<string>
    List of billing groups contact email addresses.
    BillingCurrency string
    Billing currency. The possible values are AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, NZD, SEK, SGD and USD.
    BillingEmails List<string>
    List of project billing email addresses.
    BillingExtraText string
    Extra text to be included in all project invoices, e.g. purchase order or cost center number.
    BillingGroupId string
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    CardId string
    Credit card ID.
    City string
    Address city.
    Company string
    Name of a company.
    CopyFromBillingGroup string
    Billing group ID.
    CountryCode string
    Two letter country code for billing country.
    Id string
    Resource ID, equal to billing_group_id.
    Name string
    Billing group name.
    ParentId string
    Link a billing group to an existing organization by using its ID.
    State string
    Address state or province.
    VatId string
    EU VAT Identification Number.
    ZipCode string
    Address zip code.
    Timeouts GetBillingGroupTimeouts
    AccountId string
    Account ID. Deprecated: Use parent_id instead. This field will be removed in the next major release.

    Deprecated: Use parent_id instead. This field will be removed in the next major release.

    AddressLines []string
    Address lines 1 and 2. For example, street, PO box, or building.
    BillingContactEmails []string
    List of billing groups contact email addresses.
    BillingCurrency string
    Billing currency. The possible values are AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, NZD, SEK, SGD and USD.
    BillingEmails []string
    List of project billing email addresses.
    BillingExtraText string
    Extra text to be included in all project invoices, e.g. purchase order or cost center number.
    BillingGroupId string
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    CardId string
    Credit card ID.
    City string
    Address city.
    Company string
    Name of a company.
    CopyFromBillingGroup string
    Billing group ID.
    CountryCode string
    Two letter country code for billing country.
    Id string
    Resource ID, equal to billing_group_id.
    Name string
    Billing group name.
    ParentId string
    Link a billing group to an existing organization by using its ID.
    State string
    Address state or province.
    VatId string
    EU VAT Identification Number.
    ZipCode string
    Address zip code.
    Timeouts GetBillingGroupTimeouts
    accountId String
    Account ID. Deprecated: Use parent_id instead. This field will be removed in the next major release.

    Deprecated: Use parent_id instead. This field will be removed in the next major release.

    addressLines List<String>
    Address lines 1 and 2. For example, street, PO box, or building.
    billingContactEmails List<String>
    List of billing groups contact email addresses.
    billingCurrency String
    Billing currency. The possible values are AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, NZD, SEK, SGD and USD.
    billingEmails List<String>
    List of project billing email addresses.
    billingExtraText String
    Extra text to be included in all project invoices, e.g. purchase order or cost center number.
    billingGroupId String
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    cardId String
    Credit card ID.
    city String
    Address city.
    company String
    Name of a company.
    copyFromBillingGroup String
    Billing group ID.
    countryCode String
    Two letter country code for billing country.
    id String
    Resource ID, equal to billing_group_id.
    name String
    Billing group name.
    parentId String
    Link a billing group to an existing organization by using its ID.
    state String
    Address state or province.
    vatId String
    EU VAT Identification Number.
    zipCode String
    Address zip code.
    timeouts GetBillingGroupTimeouts
    accountId string
    Account ID. Deprecated: Use parent_id instead. This field will be removed in the next major release.

    Deprecated: Use parent_id instead. This field will be removed in the next major release.

    addressLines string[]
    Address lines 1 and 2. For example, street, PO box, or building.
    billingContactEmails string[]
    List of billing groups contact email addresses.
    billingCurrency string
    Billing currency. The possible values are AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, NZD, SEK, SGD and USD.
    billingEmails string[]
    List of project billing email addresses.
    billingExtraText string
    Extra text to be included in all project invoices, e.g. purchase order or cost center number.
    billingGroupId string
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    cardId string
    Credit card ID.
    city string
    Address city.
    company string
    Name of a company.
    copyFromBillingGroup string
    Billing group ID.
    countryCode string
    Two letter country code for billing country.
    id string
    Resource ID, equal to billing_group_id.
    name string
    Billing group name.
    parentId string
    Link a billing group to an existing organization by using its ID.
    state string
    Address state or province.
    vatId string
    EU VAT Identification Number.
    zipCode string
    Address zip code.
    timeouts GetBillingGroupTimeouts
    account_id str
    Account ID. Deprecated: Use parent_id instead. This field will be removed in the next major release.

    Deprecated: Use parent_id instead. This field will be removed in the next major release.

    address_lines Sequence[str]
    Address lines 1 and 2. For example, street, PO box, or building.
    billing_contact_emails Sequence[str]
    List of billing groups contact email addresses.
    billing_currency str
    Billing currency. The possible values are AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, NZD, SEK, SGD and USD.
    billing_emails Sequence[str]
    List of project billing email addresses.
    billing_extra_text str
    Extra text to be included in all project invoices, e.g. purchase order or cost center number.
    billing_group_id str
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    card_id str
    Credit card ID.
    city str
    Address city.
    company str
    Name of a company.
    copy_from_billing_group str
    Billing group ID.
    country_code str
    Two letter country code for billing country.
    id str
    Resource ID, equal to billing_group_id.
    name str
    Billing group name.
    parent_id str
    Link a billing group to an existing organization by using its ID.
    state str
    Address state or province.
    vat_id str
    EU VAT Identification Number.
    zip_code str
    Address zip code.
    timeouts GetBillingGroupTimeouts
    accountId String
    Account ID. Deprecated: Use parent_id instead. This field will be removed in the next major release.

    Deprecated: Use parent_id instead. This field will be removed in the next major release.

    addressLines List<String>
    Address lines 1 and 2. For example, street, PO box, or building.
    billingContactEmails List<String>
    List of billing groups contact email addresses.
    billingCurrency String
    Billing currency. The possible values are AUD, CAD, CHF, DKK, EUR, GBP, JPY, NOK, NZD, SEK, SGD and USD.
    billingEmails List<String>
    List of project billing email addresses.
    billingExtraText String
    Extra text to be included in all project invoices, e.g. purchase order or cost center number.
    billingGroupId String
    The ID of the billing group. To set up proper dependencies please refer to this variable as a reference.
    cardId String
    Credit card ID.
    city String
    Address city.
    company String
    Name of a company.
    copyFromBillingGroup String
    Billing group ID.
    countryCode String
    Two letter country code for billing country.
    id String
    Resource ID, equal to billing_group_id.
    name String
    Billing group name.
    parentId String
    Link a billing group to an existing organization by using its ID.
    state String
    Address state or province.
    vatId String
    EU VAT Identification Number.
    zipCode String
    Address zip code.
    timeouts Property Map

    Supporting Types

    GetBillingGroupTimeouts

    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Aiven v6.48.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate