# LoginProfile

- [JSON representation](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#SCHEMA_REPRESENTATION)
- [SecurityKey](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#SecurityKey)
  - [JSON representation](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#SecurityKey.SCHEMA_REPRESENTATION)
- [UniversalTwoFactor](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#UniversalTwoFactor)
  - [JSON representation](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#UniversalTwoFactor.SCHEMA_REPRESENTATION)
- [WebAuthn](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#WebAuthn)
  - [JSON representation](https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#WebAuthn.SCHEMA_REPRESENTATION)

The user profile information used for logging in to a virtual machine on Google Compute Engine.

| JSON representation |
|---|
| ``` { "name": string, "posixAccounts": [ { object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/Shared.Types/PosixAccount`) } ], "sshPublicKeys": { string: { object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/Shared.Types/SshPublicKey`) }, ... }, "securityKeys": [ { object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#SecurityKey`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. A unique user ID. |
| `posixAccounts[]` | ``object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/Shared.Types/PosixAccount`)`` The list of POSIX accounts associated with the user. |
| `sshPublicKeys` | ``map (key: string, value: object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/Shared.Types/SshPublicKey`))`` A map from SSH public key fingerprint to the associated key object. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `securityKeys[]` | ``object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#SecurityKey`)`` The registered security key credentials for a user. |

## SecurityKey

The credential information for a Google registered security key.

| JSON representation |
|---|
| ``` { "publicKey": string, "privateKey": string, // Union field `protocol_type` can be only one of the following: "universalTwoFactor": { object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#UniversalTwoFactor`) }, "webAuthn": { object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#WebAuthn`) } // End of list of possible types for union field `protocol_type`. "deviceNickname": string } ``` |

| Fields ||
|---|---|
| `publicKey` | `string` Public key text in SSH format, defined by [RFC4253]() section 6.6. |
| `privateKey` | `string` Hardware-backed private key text in SSH format. |
| Union field `protocol_type`. The FIDO protocol type used to register this credential. `protocol_type` can be only one of the following: ||
| `universalTwoFactor` | ``object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#UniversalTwoFactor`)`` The U2F protocol type. |
| `webAuthn` | ``object (`https://docs.cloud.google.com/compute/docs/oslogin/rest/v1beta/LoginProfile#WebAuthn`)`` The Web Authentication protocol type. |
| `deviceNickname` | `string` The security key nickname explicitly set by the user. |

## UniversalTwoFactor

Security key information specific to the U2F protocol.

| JSON representation |
|---|
| ``` { "appId": string } ``` |

| Fields ||
|---|---|
| `appId` | `string` Application ID for the U2F protocol. |

## WebAuthn

Security key information specific to the Web Authentication protocol.

| JSON representation |
|---|
| ``` { "rpId": string } ``` |

| Fields ||
|---|---|
| `rpId` | `string` Relying party ID for Web Authentication. |