GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows moving the repository storage of a specific GitLab snippet by its ID. It is useful for managing snippet storage locations within GitLab, such as migrating snippet repositories to different storage backends or optimizing storage usage.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Select the authentication method, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters to be included in the request path, 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 of the repository storage move operation.
  • message - Any message returned from the API regarding the move operation.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the snippet ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the authentication credentials (GitLab API key) are correctly configured and have sufficient permissions to perform repository storage moves.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include authentication failures, invalid snippet ID, or insufficient permissions. Resolving these typically involves correcting credentials, verifying snippet existence, and ensuring proper API access rights.

Links

Discussion