Add API documentation for plugable secret backends
Documents the API changes introduced in 0304c98d85404fe75a1b4a35d3c111931e062f41 and 08f7cf05268782a0dd8e4c41a4cc65fdf78d09f2 Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit c8dad44c326d9d2131f94babbc535e7f442db290) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -19,6 +19,14 @@ keywords: "API, Docker, rcli, REST, documentation"
|
||||
|
||||
* `DELETE /secrets/(name)` now returns status code 404 instead of 500 when the secret does not exist.
|
||||
* `POST /secrets/create` now returns status code 409 instead of 500 when creating an already existing secret.
|
||||
* `POST /secrets/create` now accepts a `Driver` struct, allowing the
|
||||
`Name` and driver-specific `Options` to be passed to store a secrets
|
||||
in an external secrets store. The `Driver` property can be omitted
|
||||
if the default (internal) secrets store is used.
|
||||
* `GET /secrets/(id)` and `GET /secrets` now return a `Driver` struct,
|
||||
containing the `Name` and driver-specific `Options` of the external
|
||||
secrets store used to store the secret. The `Driver` property is
|
||||
omitted if no external store is used.
|
||||
* `POST /secrets/(name)/update` now returns status code 400 instead of 500 when updating a secret's content which is not the labels.
|
||||
* `POST /nodes/(name)/update` now returns status code 400 instead of 500 when demoting last node fails.
|
||||
* `GET /networks/(id or name)` now takes an optional query parameter `scope` that will filter the network based on the scope (`local`, `swarm`, or `global`).
|
||||
|
||||
Reference in New Issue
Block a user