1. Packages
  2. Linode
  3. API Docs
  4. getAccount
Linode v4.9.0 published on Friday, Nov 17, 2023 by Pulumi

linode.getAccount

Explore with Pulumi AI

linode logo
Linode v4.9.0 published on Friday, Nov 17, 2023 by Pulumi

    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.

    Example Usage

    The following example shows how one might use this data source to access account details.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var account = Linode.GetAccount.Invoke();
    
    });
    
    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
    	})
    }
    
    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();
    
        }
    }
    
    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 = linode.getAccount({});
    
    variables:
      account:
        fn::invoke:
          Function: linode:getAccount
          Arguments: {}
    

    Using getAccount

    function getAccount(opts?: InvokeOptions): Promise<GetAccountResult>
    def get_account(opts: Optional[InvokeOptions] = None) -> GetAccountResult
    func GetAccount(ctx *Context, opts ...InvokeOption) (*GetAccountResult, error)

    > Note: This function is named GetAccount in the Go SDK.

    public static class GetAccount 
    {
        public static Task<GetAccountResult> InvokeAsync(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:

    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.

    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.

    FirstName string

    The first name of the person associated with this Account.

    Id string
    LastName 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.

    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.

    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.

    FirstName string

    The first name of the person associated with this Account.

    Id string
    LastName 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.

    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.

    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.

    firstName String

    The first name of the person associated with this Account.

    id String
    lastName 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.

    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.

    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.

    firstName string

    The first name of the person associated with this Account.

    id string
    lastName 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.

    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.

    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.

    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.

    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.

    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.

    firstName String

    The first name of the person associated with this Account.

    id String
    lastName 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.

    linode logo
    Linode v4.9.0 published on Friday, Nov 17, 2023 by Pulumi