GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves bulk import data from the GitLab API (version 4). It is useful for scenarios where users need to fetch information about bulk import jobs, such as their status, sorting order, and pagination details. For example, a user can get a list of bulk imports filtered by status or sorted by creation date.

Use Case Examples

  1. Fetch the first page of bulk imports with 20 items per page, sorted by creation date in descending order.
  2. Retrieve bulk imports filtered by status 'finished' to monitor completed import jobs.

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 to send requests to.
Method HTTP method to use for the request.
Query Parameters Optional query parameters to filter and paginate the bulk imports.

Output

JSON

  • id - Unique identifier of the bulk import.
  • status - Current status of the bulk import.
  • created_at - Timestamp when the bulk import was created.
  • updated_at - Timestamp when the bulk import was last updated.
  • user_id - Identifier of the user who initiated the bulk import.
  • entity_type - Type of entity being imported.
  • source_version - Version of the source from which data is imported.
  • correlation_id - Correlation identifier for tracking the import.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to access bulk import data.
  • Verify the baseUrl is correct and accessible from the n8n instance.
  • Check query parameters for valid values, especially 'status' and 'sort' which have limited allowed values.
  • Common error messages include authentication failures (401 Unauthorized) and invalid query parameters (400 Bad Request). Resolving these involves correcting credentials and parameter values respectively.

Links

Discussion