Aiven v6.28.0 published on Friday, Nov 15, 2024 by Pulumi
aiven.getAccount
Explore with Pulumi AI
The Account data source provides information about the existing Aiven Account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const account1 = aiven.getAccount({
name: "<ACCOUNT_NAME>",
});
import pulumi
import pulumi_aiven as aiven
account1 = aiven.get_account(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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var account1 = Aiven.GetAccount.Invoke(new()
{
Name = "<ACCOUNT_NAME>",
});
});
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());
}
}
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:
- Account
Id string - Account id
- Create
Time string - Time of creation
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Account boolOwner - If true, user is part of the owners team for this account
- 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.
- Is
Account boolOwner - If true, user is part of the owners team for this account
- 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.
- is
Account BooleanOwner - If true, user is part of the owners team for this account
- 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.
- is
Account booleanOwner - If true, user is part of the owners team for this account
- 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.
- is_
account_ boolowner - If true, user is part of the owners team for this account
- 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.
- is
Account BooleanOwner - If true, user is part of the owners team for this account
- 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
aiven
Terraform Provider.