GitLab API icon

GitLab API

Gitlab

Actions917

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 you need 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 a workflow.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used, here it is GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is POST for this operation.
Path Parameters The path parameters for the request, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the project for which the repository storage move is requested.
  • status - The status of the repository storage move operation.
  • message - Any message returned by the API regarding the move operation.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the project ID is correctly specified and URL-encoded if necessary.
  • Verify that the authentication credentials for GitLab API 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.
  • Common error messages may include authorization errors if credentials are invalid, or not found errors if the project ID does not exist.

Links

Discussion