Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getAccount

# Account Data Source

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/v3/go/aiven"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := aiven.LookupAccount(ctx, &aiven.LookupAccountArgs{
            Name: "<ACCOUNT_NAME>",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aiven as aiven

account1 = aiven.get_account(name="<ACCOUNT_NAME>")
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const account1 = pulumi.output(aiven.getAccount({
    name: "<ACCOUNT_NAME>",
}, { async: true }));

Using getAccount

function getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
def get_account(account_id: Optional[str] = None, create_time: Optional[str] = None, name: Optional[str] = None, owner_team_id: Optional[str] = None, tenant_id: Optional[str] = None, update_time: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetAccountResult
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)

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

public static class GetAccount {
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

defines an account name.

AccountId string

is an auto-generated unique account id.

CreateTime string

time of creation.

OwnerTeamId string

is an owner team id.

TenantId string

is a tenant id.

UpdateTime string

time of last update.

Name string

defines an account name.

AccountId string

is an auto-generated unique account id.

CreateTime string

time of creation.

OwnerTeamId string

is an owner team id.

TenantId string

is a tenant id.

UpdateTime string

time of last update.

name string

defines an account name.

accountId string

is an auto-generated unique account id.

createTime string

time of creation.

ownerTeamId string

is an owner team id.

tenantId string

is a tenant id.

updateTime string

time of last update.

name str

defines an account name.

account_id str

is an auto-generated unique account id.

create_time str

time of creation.

owner_team_id str

is an owner team id.

tenant_id str

is a tenant id.

update_time str

time of last update.

getAccount Result

The following output properties are available:

AccountId string

is an auto-generated unique account id.

CreateTime string

time of creation.

Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerTeamId string

is an owner team id.

TenantId string

is a tenant id.

UpdateTime string

time of last update.

AccountId string

is an auto-generated unique account id.

CreateTime string

time of creation.

Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerTeamId string

is an owner team id.

TenantId string

is a tenant id.

UpdateTime string

time of last update.

accountId string

is an auto-generated unique account id.

createTime string

time of creation.

id string

The provider-assigned unique ID for this managed resource.

name string
ownerTeamId string

is an owner team id.

tenantId string

is a tenant id.

updateTime string

time of last update.

account_id str

is an auto-generated unique account id.

create_time str

time of creation.

id str

The provider-assigned unique ID for this managed resource.

name str
owner_team_id str

is an owner team id.

tenant_id str

is a tenant id.

update_time str

time of last update.

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.