From b9a5a358954fca4cb1da782f1ab8143021f5ae51 Mon Sep 17 00:00:00 2001 From: Vishal Nayak Date: Tue, 23 Jan 2018 16:30:15 -0500 Subject: [PATCH] docs: Fix the expected type of metadata (#3835) --- website/source/api/auth/approle/index.html.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/website/source/api/auth/approle/index.html.md b/website/source/api/auth/approle/index.html.md index 77c587f68..b06451b49 100644 --- a/website/source/api/auth/approle/index.html.md +++ b/website/source/api/auth/approle/index.html.md @@ -281,7 +281,7 @@ itself, and also to delete the SecretID from the AppRole. ### Parameters - `role_name` `(string: )` - Name of the AppRole. -- `metadata` `(map: {})` - Metadata to be tied to the SecretID. This should be +- `metadata` `(string: "")` - Metadata to be tied to the SecretID. This should be a JSON-formatted string containing the metadata in key-value pairs. This metadata will be set on tokens issued with this SecretID, and is logged in audit logs _in plaintext_. @@ -294,9 +294,7 @@ itself, and also to delete the SecretID from the AppRole. ```json { - "metadata": { - "tag1": "production" - } + "metadata": "{ \"tag1\": \"production\" }" } ``` @@ -508,7 +506,7 @@ Assigns a "custom" SecretID against an existing AppRole. This is used in the - `role_name` `(string: )` - Name of the AppRole. - `secret_id` `(string: )` - SecretID to be attached to the Role. -- `metadata` `(map: {})` - Metadata to be tied to the SecretID. This should be +- `metadata` `(string: "")` - Metadata to be tied to the SecretID. This should be a JSON-formatted string containing the metadata in key-value pairs. This metadata will be set on tokens issued with this SecretID, and is logged in audit logs _in plaintext_.