GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves bulk import data from the GitLab API (v4). It is useful for users who want to programmatically access information about bulk imports in their GitLab instance, such as migration statuses and details. Practical examples include monitoring migration progress, filtering imports by status, and paginating through large sets of import records.

Use Case Examples

  1. Fetch the first page of bulk imports sorted by creation date descending.
  2. Retrieve bulk imports filtered by status 'finished' to check completed migrations.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request.
Query Parameters Optional query parameters to filter and paginate the bulk imports.

Output

JSON

  • bulk_imports - Array of bulk import records retrieved from the GitLab API.

Dependencies

  • GitLab API key credential for authentication

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 points to a valid GitLab instance.
  • Check query parameters for valid values, especially 'status' and 'sort'.
  • Common error messages include authentication failures (401 Unauthorized) and invalid parameter errors (400 Bad Request). Resolving these involves correcting credentials and query parameters respectively.

Links

Discussion