Skip to content
Open
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-scim-tokens-usage.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
SCIM tokens management commands.

USAGE:
scw iam scim-tokens

FLAGS:
-h, --help help for scim-tokens

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

USAGE:
scw iam scim

FLAGS:
-h, --help help for scim

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
2 changes: 2 additions & 0 deletions cmd/scw/testdata/test-all-usage-iam-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ AVAILABLE COMMANDS:
rule Rules management commands
saml SAML management commands
saml-certificates SAML Certificates management commands
scim SCIM management commands
scim-tokens SCIM tokens management commands
security-settings Security settings management commands
ssh-key SSH keys management commands
user Users management commands
Expand Down
30 changes: 30 additions & 0 deletions docs/commands/iam.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ This API allows you to manage Identity and Access Management (IAM) across your S
- [Add a SAML certificate](#add-a-saml-certificate)
- [Delete a SAML certificate](#delete-a-saml-certificate)
- [List SAML certificates](#list-saml-certificates)
- [SCIM management commands](#scim-management-commands)
- [SCIM tokens management commands](#scim-tokens-management-commands)
- [Security settings management commands](#security-settings-management-commands)
- [Get security settings of an Organization](#get-security-settings-of-an-organization)
- [Update the security settings of an Organization](#update-the-security-settings-of-an-organization)
Expand Down Expand Up @@ -1067,6 +1069,34 @@ scw iam saml-certificates list <saml-id ...> [arg=value ...]



## SCIM management commands

SCIM management commands.

SCIM management commands.

**Usage:**

```
scw iam scim
```



## SCIM tokens management commands

SCIM tokens management commands.

SCIM tokens management commands.

**Usage:**

```
scw iam scim-tokens
```



## Security settings management commands

Security settings management commands.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ require (
github.com/mattn/go-isatty v0.0.20
github.com/moby/buildkit v0.26.2
github.com/opencontainers/go-digest v1.0.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251204173816-8c9da27861a7
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba h1:uROS5GNQhplrMMeuuSHC47/Nztx4CWP07JoQMykzPxQ=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251202131048-1c7b2248aaba/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251204173816-8c9da27861a7 h1:/Zoq/FLlyqtefHUReMg+kI5gqeiHqTH+HmS2lQpFvjc=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20251204173816-8c9da27861a7/go.mod h1:h/elW4JdNo225GP5FZHJ/RPyCNz79lxaeub3PyGzE9o=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g=
Expand Down
20 changes: 20 additions & 0 deletions internal/namespaces/iam/v1alpha1/iam_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ func GetGeneratedCommands() *core.Commands {
iamSaml(),
iamSamlCertificates(),
iamSecuritySettings(),
iamScim(),
iamScimTokens(),
iamSSHKeyList(),
iamSSHKeyCreate(),
iamSSHKeyGet(),
Expand Down Expand Up @@ -227,6 +229,24 @@ func iamSecuritySettings() *core.Command {
}
}

func iamScim() *core.Command {
return &core.Command{
Short: `SCIM management commands`,
Long: `SCIM management commands.`,
Namespace: "iam",
Resource: "scim",
}
}

func iamScimTokens() *core.Command {
return &core.Command{
Short: `SCIM tokens management commands`,
Long: `SCIM tokens management commands.`,
Namespace: "iam",
Resource: "scim-tokens",
}
}

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