Show / Hide Table of Contents

Class GetAccountKey

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

Methods

View Source

InvokeAsync(GetAccountKeyArgs, InvokeOptions)

Get service account public key. For more information, see the official documentation and API.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var myaccount = new Gcp.ServiceAccount.Account("myaccount", new Gcp.ServiceAccount.AccountArgs
    {
        AccountId = "dev-foo-account",
    });
    var mykeyKey = new Gcp.ServiceAccount.Key("mykeyKey", new Gcp.ServiceAccount.KeyArgs
    {
        ServiceAccountId = myaccount.Name,
    });
    var mykeyAccountKey = mykeyKey.Name.Apply(name => Gcp.ServiceAccount.GetAccountKey.InvokeAsync(new Gcp.ServiceAccount.GetAccountKeyArgs
    {
        Name = name,
        PublicKeyType = "TYPE_X509_PEM_FILE",
    }));
}

}

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

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