1. Packages
  2. Aiven Provider
  3. API Docs
  4. getAccount
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    The Account data source provides information about the existing Aiven Account.

    Example Usage

    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var account1 = Output.Create(Aiven.GetAccount.InvokeAsync(new Aiven.GetAccountArgs
            {
                Name = "<ACCOUNT_NAME>",
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v4/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.LookupAccount(ctx, &GetAccountArgs{
    			Name: "<ACCOUNT_NAME>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const account1 = pulumi.output(aiven.getAccount({
        name: "<ACCOUNT_NAME>",
    }));
    
    import pulumi
    import pulumi_aiven as aiven
    
    account1 = aiven.get_account(name="<ACCOUNT_NAME>")
    

    Example coming soon!

    Using getAccount

    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 getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
    function getAccountOutput(args: GetAccountOutputArgs, opts?: InvokeOptions): Output<GetAccountResult>
    def get_account(name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAccountResult
    def get_account_output(name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]
    func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)
    func LookupAccountOutput(ctx *Context, args *LookupAccountOutputArgs, opts ...InvokeOption) LookupAccountResultOutput

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

    public static class GetAccount 
    {
        public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
        public static Output<GetAccountResult> Invoke(GetAccountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
    public static Output<GetAccountResult> getAccount(GetAccountArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aiven:index/getAccount:getAccount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Account name
    Name string
    Account name
    name String
    Account name
    name string
    Account name
    name str
    Account name
    name String
    Account name

    getAccount Result

    The following output properties are available:

    AccountId string
    Account id
    CreateTime string
    Time of creation
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Account name
    OwnerTeamId string
    Owner team id
    PrimaryBillingGroupId string
    Billing group id
    TenantId string
    Tenant id
    UpdateTime string
    Time of last update
    AccountId string
    Account id
    CreateTime string
    Time of creation
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Account name
    OwnerTeamId string
    Owner team id
    PrimaryBillingGroupId string
    Billing group id
    TenantId string
    Tenant id
    UpdateTime string
    Time of last update
    accountId String
    Account id
    createTime String
    Time of creation
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Account name
    ownerTeamId String
    Owner team id
    primaryBillingGroupId String
    Billing group id
    tenantId String
    Tenant id
    updateTime String
    Time of last update
    accountId string
    Account id
    createTime string
    Time of creation
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Account name
    ownerTeamId string
    Owner team id
    primaryBillingGroupId string
    Billing group id
    tenantId string
    Tenant id
    updateTime string
    Time of last update
    account_id str
    Account id
    create_time str
    Time of creation
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Account name
    owner_team_id str
    Owner team id
    primary_billing_group_id str
    Billing group id
    tenant_id str
    Tenant id
    update_time str
    Time of last update
    accountId String
    Account id
    createTime String
    Time of creation
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Account name
    ownerTeamId String
    Owner team id
    primaryBillingGroupId String
    Billing group id
    tenantId String
    Tenant id
    updateTime String
    Time of last update

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v4.5.2 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.