DigitalOcean

Pulumi Official
Package maintained by Pulumi
v4.14.0 published on Friday, Jun 17, 2022 by Pulumi

getAccount

Get information on your DigitalOcean account.

Example Usage

using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;

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

}
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 java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = Output.of(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.