GitLab API

GitlabTool

Actions905

Overview

This node operation allows moving a project's repository storage in GitLab by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/repository_storage_moves`. It is useful for managing GitLab project repositories, especially when needing to change the storage location of a repository within GitLab's infrastructure. For example, it can be used to migrate a repository to a different storage shard or disk for performance or organizational reasons.

Use Case Examples

  1. Move a GitLab project repository to a new storage location by specifying the project ID and the target storage in the request body.
  2. Automate repository storage management in GitLab for multiple projects by integrating this node in an n8n workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API access.
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 POST for this operation.
Path Parameters Parameters to be included in the request path, specifically the project ID here.

Output

JSON

  • status - HTTP response status code indicating the result of the repository storage move request.
  • data - Response data from GitLab API about the repository storage move operation, including details of the move.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to perform repository storage moves.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • If the API returns an error, review the response message for details such as invalid parameters or insufficient permissions.

Links

Discussion