GitLab API

GitlabTool

Actions905

Overview

This node operation performs a POST request to the GitLab API endpoint for moving the repository storage of a specific snippet. It is useful for managing snippet storage locations within GitLab, such as migrating snippet repositories to different storage backends or locations.

Use Case Examples

  1. A user wants to move the storage of a snippet repository identified by its ID to a new storage location within GitLab.
  2. Automating snippet repository storage management as part of a DevOps workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the request, default is POST for this operation.
Path Parameters Collection of path parameters required for the API call, specifically the snippet ID to identify which snippet's repository storage to move.

Output

JSON

  • id - The ID of the snippet whose repository storage is being moved.
  • status - The status of the repository storage move operation.
  • message - Any message returned by 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 API key credential has sufficient permissions to perform repository storage moves on snippets.
  • Check the base URL to confirm it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If skipping authentication, ensure the endpoint is accessible without authentication, which is uncommon for this operation.

Links

Discussion