Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id` which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that he secret key is only showed once. Make sure that you copy and store both keys somewhere safe.
Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id`, which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that the secret key is only shown once. Make sure that you copy and store both keys somewhere safe.

USAGE:
scw iam api-key create [arg=value ...]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Update an user's password.
Update an user's password. Private Beta feature.

USAGE:
scw iam user update-password <user-id ...> [arg=value ...]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ USAGE:
ARGS:
user-id ID of the user to update
[tags.{index}] New tags for the user (maximum of 10 tags)
[email] New email for the user (only available on Members)
[email] IAM member email

FLAGS:
-h, --help help for update
Expand Down
2 changes: 1 addition & 1 deletion cmd/scw/testdata/test-all-usage-iam-user-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ AVAILABLE COMMANDS:
get Get a given user
list List users of an Organization
update Update a user
update-password Update an user's password
update-password Update an user's password. Private Beta feature.

FLAGS:
-h, --help help for user
Expand Down
10 changes: 5 additions & 5 deletions docs/commands/iam.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ This API allows you to manage Identity and Access Management (IAM) across your S
- [Get a given user](#get-a-given-user)
- [List users of an Organization](#list-users-of-an-organization)
- [Update a user](#update-a-user)
- [Update an user's password](#update-an-user's-password)
- [Update an user's password. Private Beta feature.](#update-an-user's-password.-private-beta-feature.)


## API keys management commands
Expand All @@ -68,7 +68,7 @@ API keys management commands.

### Create an API key

Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id` which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that he secret key is only showed once. Make sure that you copy and store both keys somewhere safe.
Create an API key. You must specify the `application_id` or the `user_id` and the description. You can also specify the `default_project_id`, which is the Project ID of your preferred Project, to use with Object Storage. The `access_key` and `secret_key` values are returned in the response. Note that the secret key is only shown once. Make sure that you copy and store both keys somewhere safe.

**Usage:**

Expand Down Expand Up @@ -1146,13 +1146,13 @@ scw iam user update <user-id ...> [arg=value ...]
|------|---|-------------|
| user-id | Required | ID of the user to update |
| tags.{index} | | New tags for the user (maximum of 10 tags) |
| email | | New email for the user (only available on Members) |
| email | | IAM member email |



### Update an user's password
### Update an user's password. Private Beta feature.

Update an user's password.
Update an user's password. Private Beta feature.

**Usage:**

Expand Down
8 changes: 4 additions & 4 deletions internal/namespaces/iam/v1alpha1/iam_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func iamUserUpdate() *core.Command {
},
{
Name: "email",
Short: `New email for the user (only available on Members)`,
Short: `IAM member email`,
Required: false,
Deprecated: false,
Positional: false,
Expand Down Expand Up @@ -678,8 +678,8 @@ func iamUserCreate() *core.Command {

func iamUserUpdatePassword() *core.Command {
return &core.Command{
Short: `Update an user's password`,
Long: `Update an user's password.`,
Short: `Update an user's password. Private Beta feature.`,
Long: `Update an user's password. Private Beta feature.`,
Namespace: "iam",
Resource: "user",
Verb: "update-password",
Expand Down Expand Up @@ -2041,7 +2041,7 @@ func iamAPIKeyList() *core.Command {
func iamAPIKeyCreate() *core.Command {
return &core.Command{
Short: `Create an API key`,
Long: `Create an API key. You must specify the ` + "`" + `application_id` + "`" + ` or the ` + "`" + `user_id` + "`" + ` and the description. You can also specify the ` + "`" + `default_project_id` + "`" + ` which is the Project ID of your preferred Project, to use with Object Storage. The ` + "`" + `access_key` + "`" + ` and ` + "`" + `secret_key` + "`" + ` values are returned in the response. Note that he secret key is only showed once. Make sure that you copy and store both keys somewhere safe.`,
Long: `Create an API key. You must specify the ` + "`" + `application_id` + "`" + ` or the ` + "`" + `user_id` + "`" + ` and the description. You can also specify the ` + "`" + `default_project_id` + "`" + `, which is the Project ID of your preferred Project, to use with Object Storage. The ` + "`" + `access_key` + "`" + ` and ` + "`" + `secret_key` + "`" + ` values are returned in the response. Note that the secret key is only shown once. Make sure that you copy and store both keys somewhere safe.`,
Namespace: "iam",
Resource: "api-key",
Verb: "create",
Expand Down
Loading