GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves relation imports for a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to fetch import relationships of a project, such as tracking project import status or managing project dependencies.

Use Case Examples

  1. Fetching relation imports for a project by its ID to monitor import progress.
  2. Using the node to automate project import data retrieval for reporting or integration purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
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 be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the project used to fetch relation imports
  • relationImports - The data returned from the GitLab API about the project's relation imports

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in path parameters is correct and accessible with the provided authentication.
  • If authentication is skipped, verify that the endpoint supports unauthenticated access.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 401 Unauthorized if authentication fails, 404 Not Found if the project ID is invalid, and 400 Bad Request if parameters are malformed.

Links

Discussion