# Class AddPublicKeyRequest (1.16.0)

1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.1 1.9.5 1.8.0 1.7.2 1.6.1 1.5.0 1.4.3 1.3.3 1.2.2 1.1.0 1.0.1 0.2.2 0.1.0

    AddPublicKeyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for
AddPublicKey.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `environment` | `str` Environment this key should be added to, e.g. `users/me/environments/default`. |
| `key` | `str` Key that should be added to the environment. Supported formats are `ssh-dss` (see RFC4253), `ssh-rsa` (see RFC4253), `ecdsa-sha2-nistp256` (see RFC5656), `ecdsa-sha2-nistp384` (see RFC5656) and `ecdsa-sha2-nistp521` (see RFC5656). It should be structured as |