GetAccount

Get the service account from a project. For more information see the official API documentation.

Using GetAccount

function getAccount(args: GetAccountArgs, opts?: InvokeOptions): Promise<GetAccountResult>
function  get_account(account_id=None, project=None, opts=None)
func LookupAccount(ctx *Context, args *LookupAccountArgs, opts ...InvokeOption) (*LookupAccountResult, error)

Note: This function is named LookupAccount in the Go SDK.

public static class GetAccount {
    public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

AccountId string

The Service account id. (This is the part of the service account’s email field that comes before the @ symbol.)

Project string

The ID of the project that the service account is present in. Defaults to the provider project configuration.

AccountId string

The Service account id. (This is the part of the service account’s email field that comes before the @ symbol.)

Project string

The ID of the project that the service account is present in. Defaults to the provider project configuration.

accountId string

The Service account id. (This is the part of the service account’s email field that comes before the @ symbol.)

project string

The ID of the project that the service account is present in. Defaults to the provider project configuration.

account_id str

The Service account id. (This is the part of the service account’s email field that comes before the @ symbol.)

project str

The ID of the project that the service account is present in. Defaults to the provider project configuration.

GetAccount Result

The following output properties are available:

AccountId string
DisplayName string

The display name for the service account.

Email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The fully-qualified name of the service account.

UniqueId string

The unique id of the service account.

Project string
AccountId string
DisplayName string

The display name for the service account.

Email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The fully-qualified name of the service account.

UniqueId string

The unique id of the service account.

Project string
accountId string
displayName string

The display name for the service account.

email string

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

id string

The provider-assigned unique ID for this managed resource.

name string

The fully-qualified name of the service account.

uniqueId string

The unique id of the service account.

project string
account_id str
display_name str

The display name for the service account.

email str

The e-mail address of the service account. This value should be referenced from any gcp.organizations.getIAMPolicy data sources that would grant the service account privileges.

id str

The provider-assigned unique ID for this managed resource.

name str

The fully-qualified name of the service account.

unique_id str

The unique id of the service account.

project 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.