GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the transfer locations available for a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to find out to which namespaces or groups a project can be transferred. For example, a user managing multiple projects might want to programmatically check possible transfer destinations before moving a project.

Use Case Examples

  1. Retrieve transfer locations for a project with a given ID to automate project management workflows.
  2. Search for namespaces matching specific criteria to filter transfer locations.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public endpoints or testing.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to filter or paginate the results.
Path Parameters Path parameters required for the API call, specifically the project ID.

Output

JSON

  • id - The project ID or URL-encoded path used in the request.
  • transfer_locations - List of namespaces or groups where the project can be transferred.
  • search - Search criteria used to filter the namespaces.
  • page - Current page number of the paginated response.
  • per_page - Number of items per page in the response.

Dependencies

  • GitLab API credentials for authentication unless skipping authentication is enabled.

Troubleshooting

  • Ensure the project ID is correctly provided and URL-encoded if necessary to avoid 404 errors.
  • If authentication is required, verify that the GitLab API credentials are valid and have sufficient permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the correct endpoint is targeted.
  • Pagination parameters (page, per_page) should be valid integers to avoid request errors.

Links

Discussion