GetAccount
This data source provides information about the current account.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(AliCloud.GetAccount.InvokeAsync());
this.CurrentAccountId = current.Apply(current => current.Id);
}
[Output("currentAccountId")]
public Output<string> CurrentAccountId { get; set; }
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
current = alicloud.get_account()
pulumi.export("currentAccountId", current.id)import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const current = pulumi.output(alicloud.getAccount({ async: true }));
export const currentAccountId = current.id;Using GetAccount
function getAccount(opts?: InvokeOptions): Promise<GetAccountResult>function get_account(opts=None)func GetAccount(ctx *Context, opts ...InvokeOption) (*GetAccountResult, error)public static class GetAccount {
public static Task<GetAccountResult> InvokeAsync(InvokeOptions? opts = null)
}GetAccount Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.