DigitalOcean

v4.16.0 published on Wednesday, Sep 28, 2022 by Pulumi

getAccount

Get information on your DigitalOcean account.

Example Usage

Get the account

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

return await Deployment.RunAsync(() => 
{
    var example = DigitalOcean.GetAccount.Invoke();

});
package main

import (
	"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := digitalocean.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.digitalocean.DigitaloceanFunctions;
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 example = DigitaloceanFunctions.getAccount();

    }
}
import pulumi
import pulumi_digitalocean as digitalocean

example = digitalocean.get_account()
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";

const example = pulumi.output(digitalocean.getAccount());
variables:
  example:
    Fn::Invoke:
      Function: digitalocean: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: digitalocean:index/getAccount:getAccount
  arguments:
    # arguments dictionary

getAccount Result

The following output properties are available:

DropletLimit int
Email string
EmailVerified bool
FloatingIpLimit int
Id string

The provider-assigned unique ID for this managed resource.

Status string
StatusMessage string
Uuid string
DropletLimit int
Email string
EmailVerified bool
FloatingIpLimit int
Id string

The provider-assigned unique ID for this managed resource.

Status string
StatusMessage string
Uuid string
dropletLimit Integer
email String
emailVerified Boolean
floatingIpLimit Integer
id String

The provider-assigned unique ID for this managed resource.

status String
statusMessage String
uuid String
dropletLimit number
email string
emailVerified boolean
floatingIpLimit number
id string

The provider-assigned unique ID for this managed resource.

status string
statusMessage string
uuid string
droplet_limit int
email str
email_verified bool
floating_ip_limit int
id str

The provider-assigned unique ID for this managed resource.

status str
status_message str
uuid str
dropletLimit Number
email String
emailVerified Boolean
floatingIpLimit Number
id String

The provider-assigned unique ID for this managed resource.

status String
statusMessage String
uuid String

Package Details

Repository
https://github.com/pulumi/pulumi-digitalocean
License
Apache-2.0
Notes

This Pulumi package is based on the digitalocean Terraform Provider.