Linode

v3.10.1 published on Tuesday, Aug 30, 2022 by Pulumi

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.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var account = Linode.GetAccount.Invoke();

});
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
	})
}
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 = pulumi.output(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 int

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

The provider-assigned unique ID for this managed resource.

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 int

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

The provider-assigned unique ID for this managed resource.

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 Integer

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

The provider-assigned unique ID for this managed resource.

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

The provider-assigned unique ID for this managed resource.

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 int

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

The provider-assigned unique ID for this managed resource.

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

The provider-assigned unique ID for this managed resource.

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
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes

This Pulumi package is based on the linode Terraform Provider.