From e34d3bb415346a03509e7c199b9ce051928f2571 Mon Sep 17 00:00:00 2001 From: Yong Zhang <15604715+yongzhang@users.noreply.github.com> Date: Sat, 3 Feb 2024 09:35:05 +0800 Subject: [PATCH] Fix example scope id for role grants (#4348) * Rename example scope id * revert newline at eof --- internal/cmd/commands/rolescmd/funcs.go | 6 +++--- website/content/docs/commands/roles/add-grant-scopes.mdx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cmd/commands/rolescmd/funcs.go b/internal/cmd/commands/rolescmd/funcs.go index 8c97ebfaea..b3e175c550 100644 --- a/internal/cmd/commands/rolescmd/funcs.go +++ b/internal/cmd/commands/rolescmd/funcs.go @@ -147,7 +147,7 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string { "", ` Adds grant scopes to a role given its ID. The "grant-scope-id" flag can be specified multiple times. Example:`, "", - ` $ boundary roles add-grant-scopes -id o_1234567890 -grant-scope-id "this" -grant-scope-id "children"`, + ` $ boundary roles add-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"`, "", "", }) @@ -158,7 +158,7 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string { "", ` Sets the complete set of grant scopes on a role given its ID. The "grant-scope-id" flag can be specified multiple times. Example:`, "", - ` $ boundary roles set-grant-scopes -id o_1234567890 -grant-scope-id "this" -grant-scope-id "children"`, + ` $ boundary roles set-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"`, "", "", }) @@ -169,7 +169,7 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string { "", ` Removes grant scopes from a role given its ID. The "grant-scope-id" flags can be specified multiple times. Example:`, "", - ` $ boundary roles remove-grant-scopes -id o_1234567890 -grant-scope-id "this" -grant-scope-id "children"`, + ` $ boundary roles remove-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"`, "", "", }) diff --git a/website/content/docs/commands/roles/add-grant-scopes.mdx b/website/content/docs/commands/roles/add-grant-scopes.mdx index 0face6fded..085a0fc26c 100644 --- a/website/content/docs/commands/roles/add-grant-scopes.mdx +++ b/website/content/docs/commands/roles/add-grant-scopes.mdx @@ -14,7 +14,7 @@ You can specify multiple grant scopes per role. ## Example -This example adds a grant to a role with the ID `o_1234567890` in the current scope and any children scopes: +This example adds a grant to a role with the ID `r_1234567890` in the current scope and any children scopes: ```shell-session $ boundary roles add-grant-scopes -id r_1234567890 -grant-scope-id "this" -grant-scope-id "children"