Scaleway logo
Audit Trail API

An event is a record of any activity related to your Scaleway resources, encompassing actions by users, applications, or Scaleway.


List events

GET
https://api.scaleway.com
/audit-trail/v1alpha1/regions/{region}/events

Retrieve the list of Audit Trail events for a Scaleway Organization and/or Project. You must specify the organization_id and optionally, the project_id.

List events › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams

List events › query Parameters

organization_id
​string · required

ID of the Organization containing the Audit Trail events.

project_id
​string

(Optional) ID of the Project containing the Audit Trail events.

resource_type
​scaleway.audit_trail.v1alpha1.ResourceType · enum

(Optional) Type of the Scaleway resource.

Enum values:
unknown_type
secm_secret
secm_secret_version
kube_cluster
kube_pool
kube_node
kube_acl
keym_key
Default: unknown_type
method_name
​string · pattern: ^[a-zA-Z][a-zA-Z0-9_…

(Optional) Name of the method of the API call performed.

status
​integer · uint32

(Optional) HTTP status code of the request. Returns either 200 if the request was successful or 403 if the permission was denied.

recorded_after
​string · date-time

(Optional) The recorded_after parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns one hour ago by default. (RFC 3339 format)

recorded_before
​string · date-time

(Optional) The recorded_before parameter defines the latest timestamp up to which Audit Trail events are retrieved. Returns now by default. (RFC 3339 format)

Enum values:
recorded_at_desc
recorded_at_asc
Default: recorded_at_desc
page_size
​integer · uint32
page_token
​string
product_name
​string · pattern: ^[a-z0-9]+(-[a-z0-9]…

(Optional) Name of the Scaleway product in a hyphenated format.

service_name
​string · pattern: ^scaleway(\.[a-zA-Z0…

(Optional) Name of the service of the API call performed.

resource_id
​string · pattern: ^[a-zA-Z0-9._-]+$

(Optional) ID of the Scaleway resource.

principal_id
​string

(Optional) ID of the User or IAM application at the origin of the event.

source_ip
​string

(Optional) IP address at the origin of the event.

List events › Responses

200

Single page of events matching the requested criteria.

next_page_token
​string | null

Page token to use in following calls to keep listing.


Create an export job

POST
https://api.scaleway.com
/audit-trail/v1alpha1/regions/{region}/export-jobs

Create an export job for a specified organization. This allows you to export audit trail events to a destination, such as an S3 bucket. The request requires the organization ID, a name for the export, and a destination configuration.

Create an export job › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams

Create an export job › Request Body

organization_id
​string

ID of the Organization to target.

name
​string · pattern: ^[a-zA-Z0-9]([-_.a-z…

Name of the export.

​

The configuration specifying the bucket where the audit trail events will be exported.

tags
​string[]

Tags of the export.

Create an export job › Responses

200
id
​string

ID of the export job. (UUID format)

srn
​string · pattern: ^srn://audit-trail\.…

The SRN of the export job.

organization_id
​string

ID of the targeted Organization. (UUID format)

name
​string

Name of the export job.

​

Destination in an S3 storage.

created_at
​string | null · date-time

Export job creation date. (RFC 3339 format)

last_run_at
​string | null · date-time

Last run of export job. (RFC 3339 format)

tags
​string[]

Tags of the export job.

Status of last export job.

region
​string

Region of the export job.


Delete an export job

DELETE
https://api.scaleway.com
/audit-trail/v1alpha1/regions/{region}/export-jobs/{export_job_id}

Deletes an export job for a specified id.

Delete an export job › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams
export_job_id
​string · required

ID of the export job.

Delete an export job › Responses

No data returned

Retrieve the list of Scaleway resources for which you have Audit Trail events

GET
https://api.scaleway.com
/audit-trail/v1alpha1/regions/{region}/products

Retrieve the list of Scaleway resources for which you have Audit Trail events › path Parameters

region
​string · enum · required

The region you want to target

Enum values:
fr-par
nl-ams

Retrieve the list of Scaleway resources for which you have Audit Trail events › query Parameters

organization_id
​string · required

ID of the Organization containing the Audit Trail events.

Retrieve the list of Scaleway resources for which you have Audit Trail events › Responses

200

List of all products integrated with Audit Trail.

total_count
​integer · uint64

Number of integrated products.