Skip to content

Commit 9fddf4d

Browse files
committed
feat(logs): Onboard access-token commands
relates to STACKITCLI-293
1 parent d65f218 commit 9fddf4d

20 files changed

+1352
-2
lines changed

docs/stackit_beta_logs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ stackit beta logs [flags]
3030
### SEE ALSO
3131

3232
* [stackit beta](./stackit_beta.md) - Contains beta STACKIT CLI commands
33+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
3334
* [stackit beta logs instance](./stackit_beta_logs_instance.md) - Provides functionality for Logs instances
3435

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## stackit beta logs access-token
2+
3+
Provides functionality for Logs access-tokens
4+
5+
### Synopsis
6+
7+
Provides functionality for Logs access-tokens.
8+
9+
```
10+
stackit beta logs access-token [flags]
11+
```
12+
13+
### Options
14+
15+
```
16+
-h, --help Help for "stackit beta logs access-token"
17+
```
18+
19+
### Options inherited from parent commands
20+
21+
```
22+
-y, --assume-yes If set, skips all confirmation prompts
23+
--async If set, runs the command asynchronously
24+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
25+
-p, --project-id string Project ID
26+
--region string Target region for region-specific requests
27+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
28+
```
29+
30+
### SEE ALSO
31+
32+
* [stackit beta logs](./stackit_beta_logs.md) - Provides functionality for Logs
33+
* [stackit beta logs access-token create](./stackit_beta_logs_access-token_create.md) - Creates a log access token
34+
* [stackit beta logs access-token delete](./stackit_beta_logs_access-token_delete.md) - Deletes a log access token
35+
* [stackit beta logs access-token delete-all](./stackit_beta_logs_access-token_delete-all.md) - Deletes all log access token
36+
* [stackit beta logs access-token delete-all-expired](./stackit_beta_logs_access-token_delete-all-expired.md) - Deletes all expired log access token
37+
* [stackit beta logs access-token describe](./stackit_beta_logs_access-token_describe.md) - Shows details of a logs access token
38+
* [stackit beta logs access-token list](./stackit_beta_logs_access-token_list.md) - Lists all access tokens of a project
39+
* [stackit beta logs access-token update](./stackit_beta_logs_access-token_update.md) - Updates a access token
40+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## stackit beta logs access-token create
2+
3+
Creates a log access token
4+
5+
### Synopsis
6+
7+
Creates a log access token.
8+
9+
```
10+
stackit beta logs access-token create [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Create a access token with the display name "access-token-1" for the instance "xxx" with read and write permissions
17+
$ stackit logs access-token create --display-name access-token-1 --instance-id xxx --permissions read,write
18+
19+
Create a write only access token with a description
20+
$ stackit logs access-token create --display-name access-token-2 --instance-id xxx --permissions write --description "Access token for service"
21+
22+
Create a read only access token which expires in 30 days
23+
$ stackit logs access-token create --display-name access-token-3 --instance-id xxx --permissions read --lifetime 30
24+
```
25+
26+
### Options
27+
28+
```
29+
--description string Description of the access token
30+
--display-name string Display name for the access token
31+
-h, --help Help for "stackit beta logs access-token create"
32+
--instance-id string ID of the logs instance
33+
--lifetime int Lifetime of the access token in days [1 - 180]
34+
--permissions strings Permissions of the access token ["read" "write"]
35+
```
36+
37+
### Options inherited from parent commands
38+
39+
```
40+
-y, --assume-yes If set, skips all confirmation prompts
41+
--async If set, runs the command asynchronously
42+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
43+
-p, --project-id string Project ID
44+
--region string Target region for region-specific requests
45+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
46+
```
47+
48+
### SEE ALSO
49+
50+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
51+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit beta logs access-token delete-all-expired
2+
3+
Deletes all expired log access token
4+
5+
### Synopsis
6+
7+
Deletes all expired log access token.
8+
9+
```
10+
stackit beta logs access-token delete-all-expired [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete all expired access tokens in instance "xxx"
17+
$ stackit logs access-token delete --instance-id xxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta logs access-token delete-all-expired"
24+
--instance-id string ID of the logs instance
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
33+
-p, --project-id string Project ID
34+
--region string Target region for region-specific requests
35+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
41+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit beta logs access-token delete-all
2+
3+
Deletes all log access token
4+
5+
### Synopsis
6+
7+
Deletes all log access token.
8+
9+
```
10+
stackit beta logs access-token delete-all [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete all access tokens in instance "xxx"
17+
$ stackit logs access-token delete --instance-id xxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta logs access-token delete-all"
24+
--instance-id string ID of the logs instance
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
33+
-p, --project-id string Project ID
34+
--region string Target region for region-specific requests
35+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
41+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## stackit beta logs access-token delete
2+
3+
Deletes a log access token
4+
5+
### Synopsis
6+
7+
Deletes a log access token.
8+
9+
```
10+
stackit beta logs access-token delete ACCESS_TOKEN_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Delete access token with ID "xxx"
17+
$ stackit logs access-token delete xxx
18+
```
19+
20+
### Options
21+
22+
```
23+
-h, --help Help for "stackit beta logs access-token delete"
24+
--instance-id string ID of the logs instance
25+
```
26+
27+
### Options inherited from parent commands
28+
29+
```
30+
-y, --assume-yes If set, skips all confirmation prompts
31+
--async If set, runs the command asynchronously
32+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
33+
-p, --project-id string Project ID
34+
--region string Target region for region-specific requests
35+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
36+
```
37+
38+
### SEE ALSO
39+
40+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
41+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
## stackit beta logs access-token describe
2+
3+
Shows details of a logs access token
4+
5+
### Synopsis
6+
7+
Shows details of a logs access token.
8+
9+
```
10+
stackit beta logs access-token describe ACCESS_TOKEN_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Show details of a logs access token with ID "xxx"
17+
$ stackit logs access-token describe xxx
18+
19+
Show details of a logs access token with ID "xxx" in JSON format
20+
$ stackit logs access-token describe xxx --output-format json
21+
```
22+
23+
### Options
24+
25+
```
26+
-h, --help Help for "stackit beta logs access-token describe"
27+
--instance-id string ID of the logs instance
28+
```
29+
30+
### Options inherited from parent commands
31+
32+
```
33+
-y, --assume-yes If set, skips all confirmation prompts
34+
--async If set, runs the command asynchronously
35+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
36+
-p, --project-id string Project ID
37+
--region string Target region for region-specific requests
38+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
39+
```
40+
41+
### SEE ALSO
42+
43+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
44+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## stackit beta logs access-token list
2+
3+
Lists all access tokens of a project
4+
5+
### Synopsis
6+
7+
Lists all access tokens of a project.
8+
9+
```
10+
stackit beta logs access-token list [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Lists all access tokens of the instance "xxx"
17+
$ stackit logs access-token list --instance-id xxx
18+
19+
Lists all access tokens in JSON format
20+
$ stackit logs access-token list --instance-id xxx --output-format json
21+
22+
Lists up to 10 access-token
23+
$ stackit logs access-token list --instance-id xxx --limit 10
24+
```
25+
26+
### Options
27+
28+
```
29+
-h, --help Help for "stackit beta logs access-token list"
30+
--instance-id string ID of the logs instance
31+
--limit int Maximum number of entries to list
32+
```
33+
34+
### Options inherited from parent commands
35+
36+
```
37+
-y, --assume-yes If set, skips all confirmation prompts
38+
--async If set, runs the command asynchronously
39+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
40+
-p, --project-id string Project ID
41+
--region string Target region for region-specific requests
42+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
43+
```
44+
45+
### SEE ALSO
46+
47+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
48+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## stackit beta logs access-token update
2+
3+
Updates a access token
4+
5+
### Synopsis
6+
7+
Updates a access token.
8+
9+
```
10+
stackit beta logs access-token update ACCESS_TOKEN_ID [flags]
11+
```
12+
13+
### Examples
14+
15+
```
16+
Update access token with ID "xxx" with new name "access-token-1"
17+
$ stackit logs access-token update xxx --display-name access-token-1
18+
19+
Update access token with ID "xxx" with new description "Access token for Service XY"
20+
$ stackit logs access-token update xxx --description "Access token for Service XY"
21+
```
22+
23+
### Options
24+
25+
```
26+
--description string Description of the access token
27+
--display-name string Display name for the access token
28+
-h, --help Help for "stackit beta logs access-token update"
29+
--instance-id string ID of the logs instance
30+
```
31+
32+
### Options inherited from parent commands
33+
34+
```
35+
-y, --assume-yes If set, skips all confirmation prompts
36+
--async If set, runs the command asynchronously
37+
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
38+
-p, --project-id string Project ID
39+
--region string Target region for region-specific requests
40+
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
41+
```
42+
43+
### SEE ALSO
44+
45+
* [stackit beta logs access-token](./stackit_beta_logs_access-token.md) - Provides functionality for Logs access-tokens
46+

0 commit comments

Comments
 (0)