GetProjectServiceAccount

Get the email address of a project’s unique Google Cloud Storage service account.

Each Google Cloud project has a unique service account for use with Google Cloud Storage. Only this special service account can be used to set up gcp.storage.Notification resources.

For more information see the API reference.

Using GetProjectServiceAccount

function getProjectServiceAccount(args: GetProjectServiceAccountArgs, opts?: InvokeOptions): Promise<GetProjectServiceAccountResult>
function  get_project_service_account(project=None, user_project=None, opts=None)
func GetProjectServiceAccount(ctx *Context, args *GetProjectServiceAccountArgs, opts ...InvokeOption) (*GetProjectServiceAccountResult, error)
public static class GetProjectServiceAccount {
    public static Task<GetProjectServiceAccountResult> InvokeAsync(GetProjectServiceAccountArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Project string

The project the unique service account was created for. If it is not provided, the provider project is used.

UserProject string

The project the lookup originates from. This field is used if you are making the request from a different account than the one you are finding the service account for.

Project string

The project the unique service account was created for. If it is not provided, the provider project is used.

UserProject string

The project the lookup originates from. This field is used if you are making the request from a different account than the one you are finding the service account for.

project string

The project the unique service account was created for. If it is not provided, the provider project is used.

userProject string

The project the lookup originates from. This field is used if you are making the request from a different account than the one you are finding the service account for.

project str

The project the unique service account was created for. If it is not provided, the provider project is used.

user_project str

The project the lookup originates from. This field is used if you are making the request from a different account than the one you are finding the service account for.

GetProjectServiceAccount Result

The following output properties are available:

EmailAddress string

The email address of the service account. This value is often used to refer to the service account in order to grant IAM permissions.

Id string

The provider-assigned unique ID for this managed resource.

Project string
UserProject string
EmailAddress string

The email address of the service account. This value is often used to refer to the service account in order to grant IAM permissions.

Id string

The provider-assigned unique ID for this managed resource.

Project string
UserProject string
emailAddress string

The email address of the service account. This value is often used to refer to the service account in order to grant IAM permissions.

id string

The provider-assigned unique ID for this managed resource.

project string
userProject string
email_address str

The email address of the service account. This value is often used to refer to the service account in order to grant IAM permissions.

id str

The provider-assigned unique ID for this managed resource.

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