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
15 changes: 15 additions & 0 deletions cmd/scw/testdata/test-all-usage-iam-organization-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
Organization-wide management commands.

USAGE:
scw iam organization

FLAGS:
-h, --help help for organization

GLOBAL FLAGS:
-c, --config string The path to the config file
-D, --debug Enable debug mode
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
-p, --profile string The config profile to use
1 change: 1 addition & 0 deletions cmd/scw/testdata/test-all-usage-iam-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ AVAILABLE COMMANDS:
group Groups management commands
jwt JWTs management commands
log Log management commands
organization Organization-wide management commands
permission-set Permission sets management commands
policy Policies management commands
rule Rules management commands
Expand Down
15 changes: 15 additions & 0 deletions docs/commands/iam.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ This API allows you to manage Identity and Access Management (IAM) across your S
- [Log management commands](#log-management-commands)
- [Get a log](#get-a-log)
- [List logs](#list-logs)
- [Organization-wide management commands](#organization-wide-management-commands)
- [Permission sets management commands](#permission-sets-management-commands)
- [List permission sets](#list-permission-sets)
- [Policies management commands](#policies-management-commands)
Expand Down Expand Up @@ -629,6 +630,20 @@ scw iam log list [arg=value ...]



## Organization-wide management commands

Organization-wide management commands.

Organization-wide management commands.

**Usage:**

```
scw iam organization
```



## Permission sets management commands

Permission sets management commands.
Expand Down
10 changes: 10 additions & 0 deletions internal/namespaces/iam/v1alpha1/iam_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func GetGeneratedCommands() *core.Commands {
iamPermissionSet(),
iamJwt(),
iamLog(),
iamOrganization(),
iamSSHKeyList(),
iamSSHKeyCreate(),
iamSSHKeyGet(),
Expand Down Expand Up @@ -176,6 +177,15 @@ func iamLog() *core.Command {
}
}

func iamOrganization() *core.Command {
return &core.Command{
Short: `Organization-wide management commands`,
Long: `Organization-wide management commands.`,
Namespace: "iam",
Resource: "organization",
}
}

func iamSSHKeyList() *core.Command {
return &core.Command{
Short: `List SSH keys`,
Expand Down
Loading