aiven logo
Aiven v6.0.1, Mar 17 23

aiven.getAccount

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var account1 = Aiven.GetAccount.Invoke(new()
    {
        Name = "<ACCOUNT_NAME>",
    });

});
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.LookupAccount(ctx, &aiven.LookupAccountArgs{
			Name: "<ACCOUNT_NAME>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetAccountArgs;
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 account1 = AivenFunctions.getAccount(GetAccountArgs.builder()
            .name("<ACCOUNT_NAME>")
            .build());

    }
}
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 = aiven.getAccount({
    name: "<ACCOUNT_NAME>",
});
variables:
  account1:
    fn::invoke:
      Function: aiven:getAccount
      Arguments:
        name: <ACCOUNT_NAME>

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)
// Output-based functions aren't available in Java yet
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.

IsAccountOwner bool

If true, user is part of the owners team for this account

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.

IsAccountOwner bool

If true, user is part of the owners team for this account

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.

isAccountOwner Boolean

If true, user is part of the owners team for this account

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.

isAccountOwner boolean

If true, user is part of the owners team for this account

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.

is_account_owner bool

If true, user is part of the owners team for this account

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.

isAccountOwner Boolean

If true, user is part of the owners team for this account

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.