add paths for import endpoints (#16401)

This commit is contained in:
Rachel Culpepper 2022-07-21 12:19:13 -04:00 committed by GitHub
parent bafc630b12
commit 133535fabe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,6 +96,10 @@ $ curl \
This endpoint imports existing key material into a new transit-managed encryption key.
To import key material into an existing key, see the `import_version/` endpoint.
| Method | Path |
| :----- | :--------------------------- |
| `POST` | `/transit/keys/:name/import` |
### Parameters
- `name` `(string: <required>)` Specifies the name of the encryption key to
@ -179,6 +183,10 @@ $ curl \
This endpoint imports new key material into an existing imported key.
| Method | Path |
| :----- | :----------------------------------- |
| `POST` | `/transit/keys/:name/import_version` |
~> **Note**: Keys whose material was generated by Vault do not support
importing key material. Only keys that were previously imported into
Vault can import new key material from an external source.
@ -224,6 +232,10 @@ $ curl \
This endpoint is used to retrieve the wrapping key to use for importing keys.
The returned key will be a 4096-bit RSA public key.
| Method | Path |
| :---- | :---------------------- |
| `GET` | `/transit/wrapping_key` |
### Sample Request
```shell-session