Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
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 dictionaryThe 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:
- Account
Id string - Account id
- Create
Time string - Time of creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Account name
- Owner
Team stringId - Owner team id
- Primary
Billing stringGroup Id - Billing group id
- Tenant
Id string - Tenant id
- Update
Time string - Time of last update
- Account
Id string - Account id
- Create
Time string - Time of creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Account name
- Owner
Team stringId - Owner team id
- Primary
Billing stringGroup Id - Billing group id
- Tenant
Id string - Tenant id
- Update
Time string - Time of last update
- account
Id String - Account id
- create
Time String - Time of creation
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Account name
- owner
Team StringId - Owner team id
- primary
Billing StringGroup Id - Billing group id
- tenant
Id String - Tenant id
- update
Time String - Time of last update
- account
Id string - Account id
- create
Time string - Time of creation
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Account name
- owner
Team stringId - Owner team id
- primary
Billing stringGroup Id - Billing group id
- tenant
Id string - Tenant id
- update
Time 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_ strid - Owner team id
- primary_
billing_ strgroup_ id - Billing group id
- tenant_
id str - Tenant id
- update_
time str - Time of last update
- account
Id String - Account id
- create
Time String - Time of creation
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Account name
- owner
Team StringId - Owner team id
- primary
Billing StringGroup Id - Billing group id
- tenant
Id String - Tenant id
- update
Time String - Time of last update
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
