GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves information about repository storage moves for a specific project in GitLab using the GitLab API v4. It is useful for users who want to monitor or manage the storage migration status of a project's repository. For example, a DevOps engineer might use this to check if a repository has been moved to a different storage location within GitLab.

Use Case Examples

  1. Retrieve repository storage move details for project ID 12345 to monitor migration status.
  2. List all repository storage moves for a project with a URL-encoded path to audit storage usage.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Type of authentication to use, 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 API request, default is GET.
Query Parameters Optional query parameters to paginate the results, including page number and items per page.
Path Parameters Path parameters including the project ID or URL-encoded path to identify the project.

Output

JSON

  • id - The unique identifier of the repository storage move record.
  • source_storage - The original storage location of the repository.
  • destination_storage - The target storage location for the repository.
  • state - The current state of the storage move (e.g., 'finished', 'in_progress').
  • created_at - Timestamp when the storage move was created.
  • updated_at - Timestamp when the storage move was last updated.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct to avoid '404 Not Found' errors.
  • Verify that the GitLab API key credential has sufficient permissions to access project repository storage move information.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is reachable.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion