GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves all snippets from the GitLab API (v4). It is useful for users who want to fetch code snippets stored in GitLab, potentially filtering them by creation date, pagination, or repository storage. Practical examples include automating the retrieval of shared code snippets for analysis, backup, or integration with other tools.

Use Case Examples

  1. Fetch all snippets created after a specific date to monitor recent code additions.
  2. Retrieve snippets page by page to process or display them in an external application.
  3. Filter snippets by repository storage to manage storage-specific data.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication when making the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters Optional filters and pagination parameters for the API request.

Output

JSON

  • id - Unique identifier of the snippet.
  • title - Title of the snippet.
  • file_name - Name of the file in the snippet.
  • description - Description of the snippet.
  • author
    • id - ID of the author who created the snippet.
    • name - Name of the author.
  • created_at - Timestamp when the snippet was created.
  • updated_at - Timestamp when the snippet was last updated.
  • visibility - Visibility level of the snippet (e.g., public, private).
  • web_url - URL to view the snippet in GitLab.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Authentication errors if the API key is missing or invalid. Ensure the GitLab API key credential is correctly configured.
  • Invalid query parameters may cause the API to return errors. Verify date formats and pagination values.
  • Network or base URL misconfiguration can lead to connection failures. Confirm the baseUrl is correct and accessible.

Links

Discussion