Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ ARGS:
[product-name] (Optional) Name of the Scaleway product in a hyphenated format
[service-name] (Optional) Name of the service of the API call performed
[resource-id] (Optional) ID of the Scaleway resource
[principal-id] (Optional) ID of the User or IAM application at the origin of the event
[source-ip] (Optional) IP address at the origin of the event
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams)

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/audit-trail.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ scw audit-trail event list [arg=value ...]
| product-name | | (Optional) Name of the Scaleway product in a hyphenated format |
| service-name | | (Optional) Name of the service of the API call performed |
| resource-id | | (Optional) ID of the Scaleway resource |
| principal-id | | (Optional) ID of the User or IAM application at the origin of the event |
| source-ip | | (Optional) IP address at the origin of the event |
| organization-id | | Organization ID to use. If none is passed the default organization ID will be used |
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams` | Region to target. If none is passed will use default region from the config |

Expand Down
14 changes: 14 additions & 0 deletions internal/namespaces/audit_trail/v1alpha1/audit_trail_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,20 @@ func auditTrailEventList() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "principal-id",
Short: `(Optional) ID of the User or IAM application at the origin of the event`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "source-ip",
Short: `(Optional) IP address at the origin of the event`,
Required: false,
Deprecated: false,
Positional: false,
},
core.OrganizationIDArgSpec(),
core.RegionArgSpec(
scw.RegionFrPar,
Expand Down
Loading