Linode v4.22.0 published on Tuesday, Jun 25, 2024 by Pulumi
linode.getAccount
Explore with Pulumi AI
Provides information about a Linode account.
Due to the sensitive nature of the data exposed by this data source, it should not be used in conjunction with the LINODE_DEBUG
option. See the debugging notes for more details.
Example Usage
The following example shows how one might use this data source to access account details.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const account = linode.getAccount({});
import pulumi
import pulumi_linode as linode
account = linode.get_account()
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetAccount(ctx, nil, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var account = Linode.GetAccount.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
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 account = LinodeFunctions.getAccount();
}
}
variables:
account:
fn::invoke:
Function: linode:getAccount
Arguments: {}
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(opts?: InvokeOptions): Promise<GetAccountResult>
function getAccountOutput(opts?: InvokeOptions): Output<GetAccountResult>
def get_account(opts: Optional[InvokeOptions] = None) -> GetAccountResult
def get_account_output(opts: Optional[InvokeOptions] = None) -> Output[GetAccountResult]
func GetAccount(ctx *Context, opts ...InvokeOption) (*GetAccountResult, error)
func GetAccountOutput(ctx *Context, opts ...InvokeOption) GetAccountResultOutput
> Note: This function is named GetAccount
in the Go SDK.
public static class GetAccount
{
public static Task<GetAccountResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetAccountResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountResult> getAccount(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: linode:index/getAccount:getAccount
arguments:
# arguments dictionary
getAccount Result
The following output properties are available:
- Active
Since string - When this account was first activated.
- Address1 string
- First line of this Account's billing address.
- Address2 string
- Second line of this Account's billing address.
- Balance double
- This Account's balance, in US dollars.
- Capabilities List<string>
- A set containing all the capabilities of the current Account.
- City string
- The city for this Account's billing address.
- Company string
- The company name associated with this Account.
- Country string
- The two-letter country code of this Account's billing address.
- Email string
- The email address for this Account, for account management communications, and may be used for other communications as configured.
- Euuid string
- First
Name string - The first name of the person associated with this Account.
- Id string
- Last
Name string - The last name of the person associated with this Account.
- Phone string
- The phone number associated with this Account.
- State string
- If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
- Zip string
- The zip code of this Account's billing address.
- Active
Since string - When this account was first activated.
- Address1 string
- First line of this Account's billing address.
- Address2 string
- Second line of this Account's billing address.
- Balance float64
- This Account's balance, in US dollars.
- Capabilities []string
- A set containing all the capabilities of the current Account.
- City string
- The city for this Account's billing address.
- Company string
- The company name associated with this Account.
- Country string
- The two-letter country code of this Account's billing address.
- Email string
- The email address for this Account, for account management communications, and may be used for other communications as configured.
- Euuid string
- First
Name string - The first name of the person associated with this Account.
- Id string
- Last
Name string - The last name of the person associated with this Account.
- Phone string
- The phone number associated with this Account.
- State string
- If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
- Zip string
- The zip code of this Account's billing address.
- active
Since String - When this account was first activated.
- address1 String
- First line of this Account's billing address.
- address2 String
- Second line of this Account's billing address.
- balance Double
- This Account's balance, in US dollars.
- capabilities List<String>
- A set containing all the capabilities of the current Account.
- city String
- The city for this Account's billing address.
- company String
- The company name associated with this Account.
- country String
- The two-letter country code of this Account's billing address.
- email String
- The email address for this Account, for account management communications, and may be used for other communications as configured.
- euuid String
- first
Name String - The first name of the person associated with this Account.
- id String
- last
Name String - The last name of the person associated with this Account.
- phone String
- The phone number associated with this Account.
- state String
- If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
- zip String
- The zip code of this Account's billing address.
- active
Since string - When this account was first activated.
- address1 string
- First line of this Account's billing address.
- address2 string
- Second line of this Account's billing address.
- balance number
- This Account's balance, in US dollars.
- capabilities string[]
- A set containing all the capabilities of the current Account.
- city string
- The city for this Account's billing address.
- company string
- The company name associated with this Account.
- country string
- The two-letter country code of this Account's billing address.
- email string
- The email address for this Account, for account management communications, and may be used for other communications as configured.
- euuid string
- first
Name string - The first name of the person associated with this Account.
- id string
- last
Name string - The last name of the person associated with this Account.
- phone string
- The phone number associated with this Account.
- state string
- If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
- zip string
- The zip code of this Account's billing address.
- active_
since str - When this account was first activated.
- address1 str
- First line of this Account's billing address.
- address2 str
- Second line of this Account's billing address.
- balance float
- This Account's balance, in US dollars.
- capabilities Sequence[str]
- A set containing all the capabilities of the current Account.
- city str
- The city for this Account's billing address.
- company str
- The company name associated with this Account.
- country str
- The two-letter country code of this Account's billing address.
- email str
- The email address for this Account, for account management communications, and may be used for other communications as configured.
- euuid str
- first_
name str - The first name of the person associated with this Account.
- id str
- last_
name str - The last name of the person associated with this Account.
- phone str
- The phone number associated with this Account.
- state str
- If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
- zip str
- The zip code of this Account's billing address.
- active
Since String - When this account was first activated.
- address1 String
- First line of this Account's billing address.
- address2 String
- Second line of this Account's billing address.
- balance Number
- This Account's balance, in US dollars.
- capabilities List<String>
- A set containing all the capabilities of the current Account.
- city String
- The city for this Account's billing address.
- company String
- The company name associated with this Account.
- country String
- The two-letter country code of this Account's billing address.
- email String
- The email address for this Account, for account management communications, and may be used for other communications as configured.
- euuid String
- first
Name String - The first name of the person associated with this Account.
- id String
- last
Name String - The last name of the person associated with this Account.
- phone String
- The phone number associated with this Account.
- state String
- If billing address is in the United States, this is the State portion of the Account's billing address. If the address is outside the US, this is the Province associated with the Account's billing address.
- zip String
- The zip code of this Account's billing address.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.