GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific audit event from a GitLab project using the GitLab API. 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, a user can track security-related events or administrative actions in a project.

Use Case Examples

  1. Fetch audit event details for project ID 123 and audit event ID 456 to review changes made by users.
  2. Monitor audit logs for compliance and security purposes by retrieving specific audit events.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Path Parameters Parameters to specify the project ID and audit event ID for the API request.

Output

JSON

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

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 GitLab API key credential is valid and has sufficient permissions to access audit events.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to audit event data, which is uncommon.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion