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
LookupAccountin the Go SDK.
public static class GetAccount {
public static Task<GetAccountResult> InvokeAsync(GetAccountArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- 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:
- Account
Id string - Display
Name 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.getIAMPolicydata 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.
- Unique
Id string The unique id of the service account.
- Project string
- Account
Id string - Display
Name 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.getIAMPolicydata 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.
- Unique
Id string The unique id of the service account.
- Project string
- account
Id string - display
Name 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.getIAMPolicydata 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.
- unique
Id 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.getIAMPolicydata 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-betaTerraform Provider.