Linode
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/v3/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
})
}
Coming soon!
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());
Coming soon!
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:
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
linode
Terraform Provider.