public sealed class GetServiceAccountKeyRequest : IMessage<GetServiceAccountKeyRequest>, IEquatable<GetServiceAccountKeyRequest>, IDeepCloneable<GetServiceAccountKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Identity and Access Management (IAM) v1 API class GetServiceAccountKeyRequest.
Required. The resource name of the service account key in the following format:
projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}.
Using - as a wildcard for the PROJECT_ID will infer the project from
the account. The ACCOUNT value can be the email address or the
unique_id of the service account.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGetServiceAccountKeyRequest\u003c/code\u003e class is used to request a specific service account key within the Google Cloud Identity and Access Management (IAM) v1 API, with the latest version being 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message handling, equality checks, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a resource name in the format \u003ccode\u003eprojects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}\u003c/code\u003e to identify the service account key, and the \u003ccode\u003eACCOUNT\u003c/code\u003e can be the email or the unique ID.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows for the specification of a \u003ccode\u003ePublicKeyType\u003c/code\u003e to control the output format of the public key, defaulting to \u003ccode\u003eTYPE_NONE\u003c/code\u003e where the public key is not returned.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKeyName\u003c/code\u003e property offers a typed view of the resource name, and there are two constructors available for instantiation: a default constructor and one that takes another \u003ccode\u003eGetServiceAccountKeyRequest\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,[]]