Show / Hide Table of Contents

Class GetBillingAccount

Inheritance
System.Object
GetBillingAccount
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.Gcp.Organizations
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetBillingAccount

Methods

View Source

InvokeAsync(GetBillingAccountArgs, InvokeOptions)

Use this data source to get information about a Google Billing Account.

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var acct = Output.Create(Gcp.Organizations.GetBillingAccount.InvokeAsync(new Gcp.Organizations.GetBillingAccountArgs
    {
        DisplayName = "My Billing Account",
        Open = true,
    }));
    var myProject = new Gcp.Organizations.Project("myProject", new Gcp.Organizations.ProjectArgs
    {
        ProjectId = "your-project-id",
        OrgId = "1234567",
        BillingAccount = acct.Apply(acct => acct.Id),
    });
}

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