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
@@ -52,6 +65,14 @@ data "scaleway_audit_trail_event" "find_by_product_name" {
52
65
-`resource_type` - (Optional) Type of the scaleway resources associated with the listed events. Possible values are: `secm_secret`, `secm_secret_version`, `kube_cluster`, `kube_pool`, `kube_node`, `kube_acl`, `keym_key`, `iam_user`, `iam_application`, `iam_group`, `iam_policy`, `iam_api_key`, `iam_ssh_key`, `iam_rule`, `iam_saml`, `iam_saml_certificate`, `secret_manager_secret`, `secret_manager_version`, `key_manager_key`, `account_user`, `account_organization`, `account_project`, `instance_server`, `instance_placement_group`, `instance_security_group`, `instance_volume`, `instance_snapshot`, `instance_image`, `apple_silicon_server`, `baremetal_server`, `baremetal_setting`, `ipam_ip`, `sbs_volume`, `sbs_snapshot`, `load_balancer_lb`, `load_balancer_ip`, `load_balancer_frontend`, `load_balancer_backend`, `load_balancer_route`, `load_balancer_acl`, `load_balancer_certificate`, `sfs_filesystem`, or `vpc_private_network`.
53
66
-`resource_id` - (Optional) ID of the Scaleway resource associated with the listed events.
54
67
-`product_name` - (Optional) Name of the Scaleway product in a hyphenated format.
68
+
-`service_name` - (Optional) Name of the service of the API call performed.
69
+
-`method_name` - (Optional) Name of the method of the API call performed.
70
+
-`principal_id` - (Optional) ID of the User or IAM application at the origin of the event.
71
+
-`source_ip` - (Optional) IP address at the origin of the event.
72
+
-`status` - (Optional) HTTP status code of the request.
73
+
-`recorded_after` - (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default (Format ISO 8601).
74
+
-`recorded_before` - (Optional) The `recorded_before` parameter defines the latest timestamp up to which Audit Trail events are retrieved. Must be later than recorded_after. Returns `now` by default (Format ISO 8601).
75
+
-`order_by` - (Optional) Defines the order in which events are returned. Possible values are `recorded_at_asc` and `recorded_at_desc`. Default value: `recorded_at_desc`.
55
76
56
77
57
78
## Attributes Reference
@@ -77,4 +98,3 @@ In addition to all arguments above, the following attributes are exported:
77
98
-`request_id` - Unique identifier of the request at the origin of the event. (UUID format)
78
99
-`request_body` - Request at the origin of the event.
79
100
-`status_code` - HTTP status code resulting of the API call.
Description: "Scaleway product associated with the listed events in a hyphenated format",
59
60
Optional: true,
60
61
},
62
+
"service_name": {
63
+
Type: schema.TypeString,
64
+
Description: "Name of the service of the API call performed",
65
+
Optional: true,
66
+
},
67
+
"method_name": {
68
+
Type: schema.TypeString,
69
+
Description: "Name of the method of the API call performed",
70
+
Optional: true,
71
+
},
72
+
"principal_id": {
73
+
Type: schema.TypeString,
74
+
Description: "ID of the User or IAM application at the origin of the event",
75
+
Optional: true,
76
+
},
77
+
"source_ip": {
78
+
Type: schema.TypeString,
79
+
Description: "IP address at the origin of the event",
80
+
Optional: true,
81
+
},
82
+
"status": {
83
+
Type: schema.TypeInt,
84
+
Description: "HTTP status code of the request",
85
+
Optional: true,
86
+
},
87
+
"recorded_after": {
88
+
Type: schema.TypeString,
89
+
Description: "The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default (Format ISO 8601)",
90
+
Optional: true,
91
+
},
92
+
"recorded_before": {
93
+
Type: schema.TypeString,
94
+
Description: "The `recorded_before` parameter defines the latest timestamp up to which Audit Trail events are retrieved. Must be later than recorded_after. Returns `now` by default (Format ISO 8601)",
95
+
Optional: true,
96
+
},
97
+
"order_by": {
98
+
Type: schema.TypeString,
99
+
Description: "Defines the order in which events are returned. Default value: recorded_at_desc",
0 commit comments