public sealed class GetSshPublicKeyRequest : IMessage<GetSshPublicKeyRequest>, IEquatable<GetSshPublicKeyRequest>, IDeepCloneable<GetSshPublicKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Login v1 API class GetSshPublicKeyRequest.
A request message for retrieving an SSH public key.
Required. The fingerprint of the public key to retrieve. Public keys are
identified by their SHA-256 fingerprint. The fingerprint of the public key
is in format users/{user}/sshPublicKeys/{fingerprint}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGetSshPublicKeyRequest\u003c/code\u003e class is used to retrieve an SSH public key, identified by its SHA-256 fingerprint, through the Google Cloud OS Login v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is a message type that implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e for data handling and object comparisons.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.OsLogin.V1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.OsLogin.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetSshPublicKeyRequest\u003c/code\u003e has two properties, \u003ccode\u003eName\u003c/code\u003e which is a string and holds the public key fingerprint, and the \u003ccode\u003eSshPublicKeyName\u003c/code\u003e which has a typed view over the name resource property.\u003c/p\u003e\n"],["\u003cp\u003eThere are 8 versions of the \u003ccode\u003eGetSshPublicKeyRequest\u003c/code\u003e available in the documentation, with version \u003ccode\u003e3.5.0\u003c/code\u003e being the latest.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Login v1 API - Class GetSshPublicKeyRequest (3.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.4.0/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.3.0/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.2.0/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.1.0/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/3.0.0/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/2.3.0/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/2.2.0/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest) \n\n public sealed class GetSshPublicKeyRequest : IMessage\u003cGetSshPublicKeyRequest\u003e, IEquatable\u003cGetSshPublicKeyRequest\u003e, IDeepCloneable\u003cGetSshPublicKeyRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Login v1 API class GetSshPublicKeyRequest.\n\nA request message for retrieving an SSH public key. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetSshPublicKeyRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetSshPublicKeyRequest](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetSshPublicKeyRequest](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetSshPublicKeyRequest](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.OsLogin.V1](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsLogin.V1.dll\n\nConstructors\n------------\n\n### GetSshPublicKeyRequest()\n\n public GetSshPublicKeyRequest()\n\n### GetSshPublicKeyRequest(GetSshPublicKeyRequest)\n\n public GetSshPublicKeyRequest(GetSshPublicKeyRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The fingerprint of the public key to retrieve. Public keys are\nidentified by their SHA-256 fingerprint. The fingerprint of the public key\nis in format `users/{user}/sshPublicKeys/{fingerprint}`.\n\n### SshPublicKeyName\n\n public SshPublicKeyName SshPublicKeyName { get; set; }\n\n[SshPublicKeyName](https://github.com/googleapis/google-cloud-dotnet/blob/fabcd3fcb58c76146b4e09ef3bb416d9a36db288/apis/Google.Cloud.OsLogin.Common/Google.Cloud.OsLogin.Common/CommonResourceNames.g.cs)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.OsLogin.V1/latest/Google.Cloud.OsLogin.V1.GetSshPublicKeyRequest#Google_Cloud_OsLogin_V1_GetSshPublicKeyRequest_Name) resource name property."]]