# REST Resource: users.sshPublicKeys

- [Resource: SshPublicKey](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1/users.sshPublicKeys#SshPublicKey)
  - [JSON representation](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1/users.sshPublicKeys#SshPublicKey.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1/users.sshPublicKeys#METHODS_SUMMARY)

## Resource: SshPublicKey

The SSH public key information associated with a Google account.

| JSON representation |
|---|
| ``` { "key": string, "expirationTimeUsec": string, "fingerprint": string, "name": string } ``` |

| Fields ||
|---|---|
| `key` | `string` Required. Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6. |
| `expirationTimeUsec` | `string (https://developers.google.com/discovery/v1/type-format format)` An expiration time in microseconds since epoch. |
| `fingerprint` | `string` Output only. The SHA-256 fingerprint of the SSH public key. |
| `name` | `string` Output only. The canonical resource name. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/compute/docs/oslogin/rest/v1/users.sshPublicKeys/create` | Create an SSH public key |
| ### `https://docs.cloud.google.com/compute/docs/oslogin/rest/v1/users.sshPublicKeys/delete` | Deletes an SSH public key. |
| ### `https://docs.cloud.google.com/compute/docs/oslogin/rest/v1/users.sshPublicKeys/get` | Retrieves an SSH public key. |
| ### `https://docs.cloud.google.com/compute/docs/oslogin/rest/v1/users.sshPublicKeys/patch` | Updates an SSH public key and returns the profile information. |