Skip to content

Commit 03dad56

Browse files
Monitobremyleone
andauthored
feat(iam): enable iam v1alpha1 by default (#2668)
Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent f9eaf86 commit 03dad56

File tree

54 files changed

+2052
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2052
-7
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create project.
4+
5+
USAGE:
6+
scw account project create [arg=value ...]
7+
8+
ARGS:
9+
[name] The name of the project
10+
[description] The description of the project
11+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
12+
13+
FLAGS:
14+
-h, --help help for create
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete project.
4+
5+
USAGE:
6+
scw account project delete [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
11+
FLAGS:
12+
-h, --help help for delete
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get project.
4+
5+
USAGE:
6+
scw account project get [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
11+
FLAGS:
12+
-h, --help help for get
13+
14+
GLOBAL FLAGS:
15+
-c, --config string The path to the config file
16+
-D, --debug Enable debug mode
17+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
18+
-p, --profile string The config profile to use
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List projects.
4+
5+
USAGE:
6+
scw account project list [arg=value ...]
7+
8+
ARGS:
9+
[name] The name of the project
10+
[order-by] The sort order of the returned projects (created_at_asc | created_at_desc | name_asc | name_desc)
11+
[project-ids.{index}] Filter out by a list of project ID
12+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
13+
14+
FLAGS:
15+
-h, --help help for list
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update project.
4+
5+
USAGE:
6+
scw account project update [arg=value ...]
7+
8+
ARGS:
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
[name] The name of the project
11+
[description] The description of the project
12+
13+
FLAGS:
14+
-h, --help help for update
15+
16+
GLOBAL FLAGS:
17+
-c, --config string The path to the config file
18+
-D, --debug Enable debug mode
19+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
20+
-p, --profile string The config profile to use
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Project management commands.
4+
5+
USAGE:
6+
scw account project <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create project
10+
delete Delete project
11+
get Get project
12+
list List projects
13+
update Update project
14+
15+
FLAGS:
16+
-h, --help help for project
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
23+
24+
Use "scw account project [command] --help" for more information about a command.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
This API allows you to manage projects.
4+
5+
USAGE:
6+
scw account <command>
7+
8+
AVAILABLE COMMANDS:
9+
project Project management commands
10+
ssh-key SSH keys management commands
11+
12+
FLAGS:
13+
-h, --help help for account
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use
20+
21+
Use "scw account [command] --help" for more information about a command.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Account API
3+
This API allows you to manage projects.
44

55
USAGE:
66
scw account <command>
77

88
AVAILABLE COMMANDS:
9+
project Project management commands
910
ssh-key SSH keys management commands
1011

1112
FLAGS:
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create an API key.
4+
5+
USAGE:
6+
scw iam api-key create [arg=value ...]
7+
8+
ARGS:
9+
[application-id] ID of application principal
10+
[user-id] ID of user principal
11+
[expires-at] Expiration date of the API key
12+
[default-project-id] The default project ID to use with object storage
13+
[description] The description of the API key (max length is 200 chars)
14+
15+
FLAGS:
16+
-h, --help help for create
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
23+
24+
SEE ALSO:
25+
# List all API keys
26+
scw iam api-key list
27+
28+
# Delete an API key
29+
scw iam api-key delete
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete an API key.
4+
5+
USAGE:
6+
scw iam api-key delete <access-key ...> [arg=value ...]
7+
8+
EXAMPLES:
9+
Delete a given API key
10+
scw iam api-key delete SCW00000000000
11+
12+
ARGS:
13+
access-key Access key to delete
14+
15+
FLAGS:
16+
-h, --help help for delete
17+
18+
GLOBAL FLAGS:
19+
-c, --config string The path to the config file
20+
-D, --debug Enable debug mode
21+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
22+
-p, --profile string The config profile to use
23+
24+
SEE ALSO:
25+
# List all API keys
26+
scw iam api-key list
27+
28+
# Create an API key
29+
scw iam api-key create

0 commit comments

Comments
 (0)