Skip to content

Commit 03dad56

Browse files
Monitobremyleone
andauthored
feat(iam): enable iam v1alpha1 by default (#2668)
Co-authored-by: Rémy Léone <[email protected]>
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
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
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
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
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
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
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.
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

+2-1
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:
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
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get an API key.
4+
5+
USAGE:
6+
scw iam api-key get <access-key ...> [arg=value ...]
7+
8+
ARGS:
9+
access-key Access key to search for
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List API keys.
4+
5+
USAGE:
6+
scw iam api-key list [arg=value ...]
7+
8+
ARGS:
9+
[order-by=created_at_asc] Criteria for sorting results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | expires_at_asc | expires_at_desc | access_key_asc | access_key_desc)
10+
[application-id] ID of an application bearer
11+
[user-id] ID of a user bearer
12+
[editable] Filter out editable API keys or not
13+
organization-id=<retrieved from config> ID of organization
14+
15+
FLAGS:
16+
-h, --help help for list
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Update an API key.
4+
5+
USAGE:
6+
scw iam api-key update <access-key ...> [arg=value ...]
7+
8+
ARGS:
9+
access-key Access key to update
10+
[default-project-id] The new default project ID to set
11+
[description] The new description to update
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
API keys management commands.
4+
5+
USAGE:
6+
scw iam api-key <command>
7+
8+
AVAILABLE COMMANDS:
9+
create Create an API key
10+
delete Delete an API key
11+
get Get an API key
12+
list List API keys
13+
update Update an API key
14+
15+
FLAGS:
16+
-h, --help help for api-key
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 iam api-key [command] --help" for more information about a command.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Create a new application.
4+
5+
USAGE:
6+
scw iam application create [arg=value ...]
7+
8+
ARGS:
9+
name=<generated> Name of application to create (max length is 64 chars)
10+
[description] Description of application (max length is 200 chars)
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete an application.
4+
5+
USAGE:
6+
scw iam application delete <application-id ...> [arg=value ...]
7+
8+
ARGS:
9+
application-id ID of application to delete
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Get an existing application.
4+
5+
USAGE:
6+
scw iam application get <application-id ...> [arg=value ...]
7+
8+
ARGS:
9+
application-id ID of application to find
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
List applications of an organization.
4+
5+
USAGE:
6+
scw iam application list [arg=value ...]
7+
8+
ARGS:
9+
[order-by=created_at_asc] Criteria for sorting results (created_at_asc | created_at_desc | updated_at_asc | updated_at_desc | name_asc | name_desc)
10+
[name] Name of application to filter
11+
[editable] Filter out editable applications or not
12+
[application-ids.{index}] Filter out by a list of ID
13+
organization-id=<retrieved from config> ID of organization to filter
14+
15+
FLAGS:
16+
-h, --help help for list
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

0 commit comments

Comments
 (0)