GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific audit event from a GitLab project using the GitLab API v4. It is useful for monitoring and auditing changes or activities within a project by fetching detailed information about a particular audit event identified by its ID. For example, it can be used to track security-related events or administrative actions in a project.

Use Case Examples

  1. Fetch audit event details for a project to review changes made by users.
  2. Monitor specific audit events to ensure compliance with organizational policies.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID and audit event ID for the request.

Output

JSON

  • id - The unique identifier of the audit event.
  • author_id - ID of the user who triggered the audit event.
  • entity_id - ID of the entity related to the audit event.
  • entity_type - Type of the entity related to the audit event.
  • details - Detailed information about the audit event.
  • created_at - Timestamp when the audit event was created.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and audit event ID are correctly provided and exist in the GitLab instance.
  • Verify that the API key has sufficient permissions to access audit events.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the IDs are incorrect or 401 Unauthorized if authentication fails.

Links

Discussion