Skip to content

Commit 359b1d1

Browse files
feat(iam): add support for organization resource (#4740)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 9863042 commit 359b1d1

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Organization-wide management commands.
4+
5+
USAGE:
6+
scw iam organization
7+
8+
FLAGS:
9+
-h, --help help for organization
10+
11+
GLOBAL FLAGS:
12+
-c, --config string The path to the config file
13+
-D, --debug Enable debug mode
14+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15+
-p, --profile string The config profile to use

cmd/scw/testdata/test-all-usage-iam-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ AVAILABLE COMMANDS:
1111
group Groups management commands
1212
jwt JWTs management commands
1313
log Log management commands
14+
organization Organization-wide management commands
1415
permission-set Permission sets management commands
1516
policy Policies management commands
1617
rule Rules management commands

docs/commands/iam.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This API allows you to manage Identity and Access Management (IAM) across your S
3131
- [Log management commands](#log-management-commands)
3232
- [Get a log](#get-a-log)
3333
- [List logs](#list-logs)
34+
- [Organization-wide management commands](#organization-wide-management-commands)
3435
- [Permission sets management commands](#permission-sets-management-commands)
3536
- [List permission sets](#list-permission-sets)
3637
- [Policies management commands](#policies-management-commands)
@@ -629,6 +630,20 @@ scw iam log list [arg=value ...]
629630

630631

631632

633+
## Organization-wide management commands
634+
635+
Organization-wide management commands.
636+
637+
Organization-wide management commands.
638+
639+
**Usage:**
640+
641+
```
642+
scw iam organization
643+
```
644+
645+
646+
632647
## Permission sets management commands
633648

634649
Permission sets management commands.

internal/namespaces/iam/v1alpha1/iam_cli.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func GetGeneratedCommands() *core.Commands {
3030
iamPermissionSet(),
3131
iamJwt(),
3232
iamLog(),
33+
iamOrganization(),
3334
iamSSHKeyList(),
3435
iamSSHKeyCreate(),
3536
iamSSHKeyGet(),
@@ -176,6 +177,15 @@ func iamLog() *core.Command {
176177
}
177178
}
178179

180+
func iamOrganization() *core.Command {
181+
return &core.Command{
182+
Short: `Organization-wide management commands`,
183+
Long: `Organization-wide management commands.`,
184+
Namespace: "iam",
185+
Resource: "organization",
186+
}
187+
}
188+
179189
func iamSSHKeyList() *core.Command {
180190
return &core.Command{
181191
Short: `List SSH keys`,

0 commit comments

Comments
 (0)