digitalocean.getAccount
Explore with Pulumi AI
Get information on your DigitalOcean account.
Example Usage
Get the account
using System.Collections.Generic;
using System.Linq;
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 = 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:
- Droplet
Limit int The total number of droplets current user or team may have active at one time.
- Email string
The email address used by the current user to register for DigitalOcean.
- Email
Verified bool If true, the user has verified their account via email. False otherwise.
- Floating
Ip intLimit The total number of floating IPs the current user or team may have.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
This value is one of "active", "warning" or "locked".
- Status
Message string A human-readable message giving more details about the status of the account.
- Uuid string
The unique universal identifier for the current user.
- Droplet
Limit int The total number of droplets current user or team may have active at one time.
- Email string
The email address used by the current user to register for DigitalOcean.
- Email
Verified bool If true, the user has verified their account via email. False otherwise.
- Floating
Ip intLimit The total number of floating IPs the current user or team may have.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
This value is one of "active", "warning" or "locked".
- Status
Message string A human-readable message giving more details about the status of the account.
- Uuid string
The unique universal identifier for the current user.
- droplet
Limit Integer The total number of droplets current user or team may have active at one time.
- email String
The email address used by the current user to register for DigitalOcean.
- email
Verified Boolean If true, the user has verified their account via email. False otherwise.
- floating
Ip IntegerLimit The total number of floating IPs the current user or team may have.
- id String
The provider-assigned unique ID for this managed resource.
- status String
This value is one of "active", "warning" or "locked".
- status
Message String A human-readable message giving more details about the status of the account.
- uuid String
The unique universal identifier for the current user.
- droplet
Limit number The total number of droplets current user or team may have active at one time.
- email string
The email address used by the current user to register for DigitalOcean.
- email
Verified boolean If true, the user has verified their account via email. False otherwise.
- floating
Ip numberLimit The total number of floating IPs the current user or team may have.
- id string
The provider-assigned unique ID for this managed resource.
- status string
This value is one of "active", "warning" or "locked".
- status
Message string A human-readable message giving more details about the status of the account.
- uuid string
The unique universal identifier for the current user.
- droplet_
limit int The total number of droplets current user or team may have active at one time.
- email str
The email address used by the current user to register for DigitalOcean.
- email_
verified bool If true, the user has verified their account via email. False otherwise.
- floating_
ip_ intlimit The total number of floating IPs the current user or team may have.
- id str
The provider-assigned unique ID for this managed resource.
- status str
This value is one of "active", "warning" or "locked".
- status_
message str A human-readable message giving more details about the status of the account.
- uuid str
The unique universal identifier for the current user.
- droplet
Limit Number The total number of droplets current user or team may have active at one time.
- email String
The email address used by the current user to register for DigitalOcean.
- email
Verified Boolean If true, the user has verified their account via email. False otherwise.
- floating
Ip NumberLimit The total number of floating IPs the current user or team may have.
- id String
The provider-assigned unique ID for this managed resource.
- status String
This value is one of "active", "warning" or "locked".
- status
Message String A human-readable message giving more details about the status of the account.
- uuid String
The unique universal identifier for the current user.
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
digitalocean
Terraform Provider.