@ediri/vultr
Version:
A Pulumi package for creating and managing Vultr cloud resources.
69 lines (68 loc) • 1.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get information about your Vultr account. This data source provides the balance, pending charges, last payment date, and last payment amount for your Vultr account.
*
* ## Example Usage
*
* Get the information for an account:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myAccount = vultr.getAccount({});
* ```
*/
export declare function getAccount(opts?: pulumi.InvokeOptions): Promise<GetAccountResult>;
/**
* A collection of values returned by getAccount.
*/
export interface GetAccountResult {
/**
* The access control list on your Vultr account.
*/
readonly acls: string[];
/**
* The current balance on your Vultr account.
*/
readonly balance: number;
/**
* The email address on your Vultr account.
*/
readonly email: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The amount of the last payment made on your Vultr account.
*/
readonly lastPaymentAmount: number;
/**
* The date of the last payment made on your Vultr account.
*/
readonly lastPaymentDate: string;
/**
* The name on your Vultr account.
*/
readonly name: string;
/**
* The pending charges on your Vultr account.
*/
readonly pendingCharges: number;
}
/**
* Get information about your Vultr account. This data source provides the balance, pending charges, last payment date, and last payment amount for your Vultr account.
*
* ## Example Usage
*
* Get the information for an account:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as vultr from "@ediri/vultr";
*
* const myAccount = vultr.getAccount({});
* ```
*/
export declare function getAccountOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountResult>;