GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows moving the repository storage of a specific snippet in GitLab by making a POST request to the GitLab API endpoint `/api/v4/snippets/{id}/repository_storage_moves`. It is useful for managing snippet storage locations programmatically, such as migrating snippet repositories between storage backends or optimizing storage usage.

Use Case Examples

  1. Move the repository storage of a snippet with a given ID to a different storage location in GitLab.
  2. Automate snippet repository storage management as part of a DevOps workflow.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used for the request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST for this operation.
Path Parameters The path parameters for the request, specifically the snippet ID to identify which snippet's repository storage to move.

Output

JSON

  • id - The ID of the snippet whose repository storage was moved.
  • status - The status or result of the repository storage move operation.
  • message - Any message returned by the API regarding the move operation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the snippet ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to perform repository storage moves on snippets.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests for this operation, which is uncommon.

Links

Discussion