API Docs: Secrets/OpenLDAP (#8521)

* API Docs: Secrets/OpenLDAP

- Update HTTP methods to POST for unsupported (GET) methods on:
  - /openldap/rotate-root
  - /openldap/rotate-role/:role_name

* Update website/pages/api-docs/secret/openldap/index.mdx

Co-Authored-By: Vishal Nayak <vishalnayak@users.noreply.github.com>

* Update website/pages/api-docs/secret/openldap/index.mdx

Co-Authored-By: Vishal Nayak <vishalnayak@users.noreply.github.com>

Co-authored-by: Vishal Nayak <vishalnayak@users.noreply.github.com>
This commit is contained in:
Brian Shumate
2020-03-20 12:00:39 -04:00
committed by GitHub
parent 8d078421ac
commit 7372fb69a3

View File

@@ -191,14 +191,14 @@ The `rotate-root` endpoint offers password rotation for the `binddn` entry used
| Method | Path |
| :----- | :---------------------- |
| `GET` | `/openldap/rotate-root` |
| `POST` | `/openldap/rotate-root` |
### Sample Get Request
### Sample Request
```sh
$ curl \
--header "X-Vault-Token: ..." \
--request GET \
--request POST \
http://127.0.0.1:8200/v1/openldap/rotate-root
```
@@ -208,13 +208,13 @@ The `rotate-role` endpoint offers manual rotation of static roles.
| Method | Path |
| :----- | :---------------------- |
| `GET` | `/openldap/rotate-role/:role_name` |
| `POST` | `/openldap/rotate-role/:role_name` |
### Sample Get Request
### Sample Request
```sh
$ curl \
--header "X-Vault-Token: ..." \
--request GET \
--request POST \
http://127.0.0.1:8200/v1/openldap/rotate-role/:role_name
```