From 2fbc174c97cd24a25ec312016c3246e0739bc02f Mon Sep 17 00:00:00 2001 From: Clint Date: Wed, 22 Jan 2020 09:57:03 -0600 Subject: [PATCH] cleanup formatting on database index doc (#8207) --- .../pages/api-docs/secret/databases/index.mdx | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/website/pages/api-docs/secret/databases/index.mdx b/website/pages/api-docs/secret/databases/index.mdx index 154403fbb2..009b858731 100644 --- a/website/pages/api-docs/secret/databases/index.mdx +++ b/website/pages/api-docs/secret/databases/index.mdx @@ -62,7 +62,7 @@ list of additional parameters. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request POST \ @@ -85,7 +85,7 @@ This endpoint returns the configuration settings for a connection. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request GET \ @@ -118,7 +118,7 @@ are returned, not any values. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request LIST \ @@ -150,7 +150,7 @@ This endpoint deletes a connection. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request DELETE \ @@ -173,7 +173,7 @@ with the configuration stored in the barrier. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request POST \ @@ -197,7 +197,7 @@ password. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request POST \ @@ -264,7 +264,7 @@ This endpoint creates or updates a role definition. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request POST \ @@ -287,7 +287,7 @@ This endpoint queries the role definition. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ http://127.0.0.1:8200/v1/database/roles/my-role @@ -323,7 +323,7 @@ returned, not any values. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request LIST \ @@ -359,7 +359,7 @@ This endpoint deletes the role definition. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request DELETE \ @@ -382,7 +382,7 @@ role. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ http://127.0.0.1:8200/v1/database/creds/my-role @@ -444,7 +444,7 @@ Static Roles, please see the database-specific documentation. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request POST \ @@ -467,7 +467,7 @@ This endpoint queries the static role definition. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ http://127.0.0.1:8200/v1/database/static-roles/my-static-role @@ -477,12 +477,12 @@ $ curl \ ```json { - "data": { - "db_name": "mysql", + "data": { + "db_name": "mysql", "username":"static-user", "rotation_statements": ["ALTER USER "{{name}}" WITH PASSWORD '{{password}}';"], "rotation_period":"1h", - }, + }, } ``` @@ -497,7 +497,7 @@ returned, not any values. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request LIST \ @@ -530,7 +530,7 @@ This endpoint deletes the static role definition and revokes the database user. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ --request DELETE \ @@ -552,7 +552,7 @@ This endpoint returns the current credentials based on the named static role. ### Sample Request -``` +```console $ curl \ --header "X-Vault-Token: ..." \ http://127.0.0.1:8200/v1/database/static-creds/my-static-role @@ -564,7 +564,7 @@ $ curl \ { "data": { "username": "static-user", - "password": "132ae3ef-5a64-7499-351e-bfe59f3a2a21" + "password": "132ae3ef-5a64-7499-351e-bfe59f3a2a21", "last_vault_rotation": "2019-05-06T15:26:42.525302-05:00", "rotation_period": 30, "ttl": 28, @@ -590,7 +590,7 @@ change the stored password and reset the TTL of the Static Role's password. ### Sample Request -```shell +```console $ curl \ --header "X-Vault-Token: ..." \ --request POST \