From 04063d0f5fbb63508003157c4e9873c22e23e267 Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Thu, 17 Aug 2023 19:41:27 -0400 Subject: [PATCH] backport of commit 614f50de6611d650a60a28afc85283afd47a8369 (#22435) Co-authored-by: Brian Shumate --- website/content/api-docs/auth/approle.mdx | 58 ++++++++++++++++++++++- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/website/content/api-docs/auth/approle.mdx b/website/content/api-docs/auth/approle.mdx index 5aba07866..cc731a550 100644 --- a/website/content/api-docs/auth/approle.mdx +++ b/website/content/api-docs/auth/approle.mdx @@ -398,7 +398,34 @@ $ curl \ http://127.0.0.1:8200/v1/auth/approle/role/application1/secret-id/lookup ``` -## Destroy AppRole secret ID +### Sample Response + +```json +{ + "request_id": "74752925-f309-6859-3d2d-0fcded95150e", + "lease_id": "", + "renewable": false, + "lease_duration": 0, + "data": { + "cidr_list": [], + "creation_time": "2023-02-10T18:17:27.089757383Z", + "expiration_time": "0001-01-01T00:00:00Z", + "last_updated_time": "2023-02-10T18:17:27.089757383Z", + "metadata": { + "tag1": "production" + }, + "secret_id_accessor": "2be760a4-86bb-2fa9-1637-1b7fa9ba2896", + "secret_id_num_uses": 0, + "secret_id_ttl": 0, + "token_bound_cidrs": [] + }, + "wrap_info": null, + "warnings": null, + "auth": null +} +``` + +## Destroy AppRole Secret ID Destroy an AppRole secret ID. @@ -460,7 +487,34 @@ $ curl \ http://127.0.0.1:8200/v1/auth/approle/role/application1/secret-id-accessor/lookup ``` -## Destroy AppRole secret ID accessor +### Sample Response + +```json +{ + "request_id": "72836cd1-139c-fe66-1402-8bb5ca4044b8", + "lease_id": "", + "renewable": false, + "lease_duration": 0, + "data": { + "cidr_list": [], + "creation_time": "2023-02-10T18:17:27.089757383Z", + "expiration_time": "0001-01-01T00:00:00Z", + "last_updated_time": "2023-02-10T18:17:27.089757383Z", + "metadata": { + "tag1": "production" + }, + "secret_id_accessor": "2be760a4-86bb-2fa9-1637-1b7fa9ba2896", + "secret_id_num_uses": 0, + "secret_id_ttl": 0, + "token_bound_cidrs": [] + }, + "wrap_info": null, + "warnings": null, + "auth": null +} +``` + +## Destroy AppRole Secret ID Accessor Destroy an AppRole secret ID by its accessor.