GetAccountKey

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

Using GetAccountKey

function getAccountKey(args: GetAccountKeyArgs, opts?: InvokeOptions): Promise<GetAccountKeyResult>
function  get_account_key(name=None, project=None, public_key_type=None, opts=None)
func GetAccountKey(ctx *Context, args *GetAccountKeyArgs, opts ...InvokeOption) (*GetAccountKeyResult, error)
public static class GetAccountKey {
    public static Task<GetAccountKeyResult> InvokeAsync(GetAccountKeyArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the service account key. This must have format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{KEYID}, where {ACCOUNT} is the email address or unique id of the service account.

Project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

PublicKeyType string

The output format of the public key requested. X509_PEM is the default output format.

Name string

The name of the service account key. This must have format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{KEYID}, where {ACCOUNT} is the email address or unique id of the service account.

Project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

PublicKeyType string

The output format of the public key requested. X509_PEM is the default output format.

name string

The name of the service account key. This must have format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{KEYID}, where {ACCOUNT} is the email address or unique id of the service account.

project string

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

publicKeyType string

The output format of the public key requested. X509_PEM is the default output format.

name str

The name of the service account key. This must have format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{KEYID}, where {ACCOUNT} is the email address or unique id of the service account.

project str

The ID of the project that the service account will be created in. Defaults to the provider project configuration.

public_key_type str

The output format of the public key requested. X509_PEM is the default output format.

GetAccountKey Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

KeyAlgorithm string
Name string
PublicKey string

The public key, base64 encoded

Project string
PublicKeyType string
Id string

The provider-assigned unique ID for this managed resource.

KeyAlgorithm string
Name string
PublicKey string

The public key, base64 encoded

Project string
PublicKeyType string
id string

The provider-assigned unique ID for this managed resource.

keyAlgorithm string
name string
publicKey string

The public key, base64 encoded

project string
publicKeyType string
id str

The provider-assigned unique ID for this managed resource.

key_algorithm str
name str
public_key str

The public key, base64 encoded

project str
public_key_type str

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.