Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open
cryptops
Commits
7af2244a
Commit
7af2244a
authored
Dec 22, 2017
by
Maarten de Waard
🤘🏻
Browse files
use same name for URL parameters
parent
26ae762e
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/api_documentation.rst
View file @
7af2244a
...
...
@@ -31,12 +31,12 @@ Encryption keys
``GET /encryption/keys``
List luks password slots
``POST/PUT /encryption/keys/{slot}``
``POST/PUT /encryption/keys/{slot
-id
}``
Add/change a luks slot to a new password. {slot} corresponds to a slot id
listed by ``GET /encryption/keys``.
Post data: ``{"password": password, "new-password": new-password}``
``DELETE /encryption/keys/{slot}``
``DELETE /encryption/keys/{slot
-id
}``
Delete a password from a luks slot
SSH keys with access to the initrd:
...
...
@@ -47,10 +47,10 @@ SSH keys with access to the initrd:
Add a key to the authorized_keys file
Post data: ``{"ssh-key": ssh-key}``
``PUT /ssh/keys/{id}``
``PUT /ssh/keys/{
key-
id}``
Change a key in the authorized_keys file
Post data: ``{"ssh-key": ssh-key}``
``DELETE /ssh/keys/{key}``
``DELETE /ssh/keys/{key
-id
}``
Delete the key with id {key} from the autorized_keys file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment