You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieve information about a log, specified by the `log_id` parameter. The log's full details, including `id`, `ip`, `user_agent`, `action`, `bearer_id`, `resource_type` and `resource_id` are returned in the response.
4
+
5
+
USAGE:
6
+
scw iam log get <log-id ...> [arg=value ...]
7
+
8
+
ARGS:
9
+
log-id ID of the log
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")
List logs available for given Organization. You must define the `organization_id` in the query path of your request.
4
+
5
+
USAGE:
6
+
scw iam log list [arg=value ...]
7
+
8
+
ARGS:
9
+
[order-by=created_at_asc] Criteria for sorting results (created_at_asc | created_at_desc)
10
+
[created-after] Defined whether or not to filter out logs created after this timestamp
11
+
[created-before] Defined whether or not to filter out logs created before this timestamp
12
+
[action] Defined whether or not to filter out by a specific action (unknown_action | created | updated | deleted)
13
+
[resource-type] Defined whether or not to filter out by a specific type of resource (unknown_resource_type | api_key | user | application | group | policy)
14
+
[search] Defined whether or not to filter out log by bearer ID or resource ID
15
+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
16
+
17
+
FLAGS:
18
+
-h, --help help for list
19
+
20
+
GLOBAL FLAGS:
21
+
-c, --config string The path to the config file
22
+
-D, --debug Enable debug mode
23
+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
@@ -570,6 +573,55 @@ scw iam jwt list <audience-id ...> [arg=value ...]
570
573
571
574
572
575
576
+
## Log management commands
577
+
578
+
Log management commands.
579
+
580
+
581
+
### Get a log
582
+
583
+
Retrieve information about a log, specified by the `log_id` parameter. The log's full details, including `id`, `ip`, `user_agent`, `action`, `bearer_id`, `resource_type` and `resource_id` are returned in the response.
584
+
585
+
**Usage:**
586
+
587
+
```
588
+
scw iam log get <log-id ...> [arg=value ...]
589
+
```
590
+
591
+
592
+
**Args:**
593
+
594
+
| Name || Description |
595
+
|------|---|-------------|
596
+
| log-id | Required | ID of the log |
597
+
598
+
599
+
600
+
### List logs
601
+
602
+
List logs available for given Organization. You must define the `organization_id` in the query path of your request.
| created-after || Defined whether or not to filter out logs created after this timestamp |
617
+
| created-before || Defined whether or not to filter out logs created before this timestamp |
618
+
| action | One of: `unknown_action`, `created`, `updated`, `deleted`| Defined whether or not to filter out by a specific action |
619
+
| resource-type | One of: `unknown_resource_type`, `api_key`, `user`, `application`, `group`, `policy`| Defined whether or not to filter out by a specific type of resource |
620
+
| search || Defined whether or not to filter out log by bearer ID or resource ID |
621
+
| organization-id || Organization ID to use. If none is passed the default organization ID will be used |
Long: `Retrieve information about a log, specified by the `+"`"+`log_id`+"`"+` parameter. The log's full details, including `+"`"+`id`+"`"+`, `+"`"+`ip`+"`"+`, `+"`"+`user_agent`+"`"+`, `+"`"+`action`+"`"+`, `+"`"+`bearer_id`+"`"+`, `+"`"+`resource_type`+"`"+` and `+"`"+`resource_id`+"`"+` are returned in the response.`,
0 commit comments