Get started with Pulumi in a free one hour introductory workshop. Register Now

GetAccount

Provides information about a Linode account.

This data source should not be used in conjuction with the LINODE_DEBUG option. See the debugging notes for more details.

Attributes

The Linode Account resource exports the following attributes:

  • email - The email address for this Account, for account management communications, and may be used for other communications as configured.

  • first_name - The first name of the person associated with this Account.

  • last_name - The last name of the person associated with this Account.

  • company - The company name associated with this Account.

  • address_1 - First line of this Account’s billing address.

  • address_2 - Second line of this Account’s billing address.

  • phone - The phone number associated with this Account.

  • city - The city for this Account’s billing address.

  • state - 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.

  • country - The two-letter country code of this Account’s billing address.

  • zip - The zip code of this Account’s billing address.

  • balance - This Account’s balance, in US dollars.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var account = Output.Create(Linode.GetAccount.InvokeAsync());
    }

}
package main

import (
    "github.com/pulumi/pulumi-linode/sdk/v2/go/linode"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := linode.GetAccount(ctx, nil, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_linode as linode

account = linode.get_account()
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const account = pulumi.output(linode.getAccount({ async: true }));

Using GetAccount

function getAccount(opts?: InvokeOptions): Promise<GetAccountResult>
def get_account(opts: Optional[InvokeOptions] = None) -> GetAccountResult
func GetAccount(ctx *Context, opts ...InvokeOption) (*GetAccountResult, error)
public static class GetAccount {
    public static Task<GetAccountResult> InvokeAsync(InvokeOptions? opts = null)
}

GetAccount Result

The following output properties are available:

Address1 string
Address2 string
Balance int
City string
Company string
Country string
Email string
FirstName string
Id string

The provider-assigned unique ID for this managed resource.

LastName string
Phone string
State string
Zip string
Address1 string
Address2 string
Balance int
City string
Company string
Country string
Email string
FirstName string
Id string

The provider-assigned unique ID for this managed resource.

LastName string
Phone string
State string
Zip string
address1 string
address2 string
balance number
city string
company string
country string
email string
firstName string
id string

The provider-assigned unique ID for this managed resource.

lastName string
phone string
state string
zip string
address1 str
address2 str
balance int
city str
company str
country str
email str
first_name str
id str

The provider-assigned unique ID for this managed resource.

last_name str
phone str
state str
zip str

Package Details

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