GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdAuditEventsAuditEventId

AI-generated

Summary

Retrieve a single audit event by its ID from a specific GitLab project identified by its project ID.

Inputs

  • id (required) — The ID of the GitLab project to retrieve the audit event from.
  • audit_event_id (required) — The ID of the audit event within the specified project.
  • baseUrl — The base URL of the GitLab instance, defaulting to https://gitlab.com.
  • skipAuthentication — Whether to skip authentication for the API request (generally false).

Output shape

a single JSON object representing the audit event details

Returns the detailed data of a single audit event matching the provided audit_event_id for the specified project. Relies on successful authentication unless explicitly skipped.

Examples

Example 1: Fetch an audit event with ID 42 from project with ID 7 on gitlab.com

Set 'id' to '7' and 'audit_event_id' to '42'. Use default 'baseUrl' and ensure authentication is enabled.

Links

Discussion