Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of cli/namespace: add detailed flag to namespace list into release/1.13.x #20250

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #20243 to be assessed for backporting due to the inclusion of the label backport/1.13.x.

The below text is copied from the body of the original PR.


This enhances the namespace list command to include a detailed flag which will output additional data such as namespace IDs. This is very useful because without this you would either need to use curl or do a vault namespace lookup for every namespace you wanted the ID for in a loop. This lets you get all the information in one command:

$ vault namespace list -detailed
Keys    custom_metadata    id       path
----    ---------------    --       ----
bar/    map[]              yva5e    bar/
foo/    map[]              iZULg    foo/

$ vault namespace list -detailed -format=json
{
  "bar/": {
    "custom_metadata": {},
    "id": "yva5e",
    "path": "bar/"
  },
  "foo/": {
    "custom_metadata": {},
    "id": "iZULg",
    "path": "foo/"
  }
}

Overview of commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants