Aiven

Pulumi Official
Package maintained by Pulumi
v5.2.0 published on Wednesday, Jul 20, 2022 by Pulumi

getAccount

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/v5/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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var account1 = Output.of(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 = pulumi.output(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
Name string
name String
name string
name str
name String

getAccount Result

The following output properties are available:

AccountId string
CreateTime string
Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerTeamId string
PrimaryBillingGroupId string
TenantId string
UpdateTime string
AccountId string
CreateTime string
Id string

The provider-assigned unique ID for this managed resource.

Name string
OwnerTeamId string
PrimaryBillingGroupId string
TenantId string
UpdateTime string
accountId String
createTime String
id String

The provider-assigned unique ID for this managed resource.

name String
ownerTeamId String
primaryBillingGroupId String
tenantId String
updateTime String
accountId string
createTime string
id string

The provider-assigned unique ID for this managed resource.

name string
ownerTeamId string
primaryBillingGroupId string
tenantId string
updateTime string
account_id str
create_time str
id str

The provider-assigned unique ID for this managed resource.

name str
owner_team_id str
primary_billing_group_id str
tenant_id str
update_time str
accountId String
createTime String
id String

The provider-assigned unique ID for this managed resource.

name String
ownerTeamId String
primaryBillingGroupId String
tenantId String
updateTime String

Package Details

Repository
https://github.com/pulumi/pulumi-aiven
License
Apache-2.0
Notes

This Pulumi package is based on the aiven Terraform Provider.