Show / Hide Table of Contents

Class GetAccount

Inheritance
System.Object
GetAccount
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud
Assembly: Pulumi.AliCloud.dll
Syntax
public static class GetAccount

Methods

View Source

InvokeAsync(InvokeOptions)

This data source provides information about the current account.

{{% examples %}}

Example Usage

{{% example %}}

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; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetAccountResult> InvokeAsync(InvokeOptions options = null)
Parameters
Type Name Description
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetAccountResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.