Show / Hide Table of Contents

Class GetDefaultServiceAccount

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

Methods

View Source

InvokeAsync(GetDefaultServiceAccountArgs, InvokeOptions)

Use this data source to retrieve default service account for this project

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var @default = Output.Create(Gcp.Compute.GetDefaultServiceAccount.InvokeAsync());
    this.DefaultAccount = @default.Apply(@default => @default.Email);
}

[Output("defaultAccount")]
public Output<string> DefaultAccount { get; set; }
}

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

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