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.
- Public
Key stringType 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.
- Public
Key stringType 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.
- public
Key stringType 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_ strtype The output format of the public key requested. X509_PEM is the default output format.
GetAccountKey Result
The following output properties are available:
- 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_ strtype
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.