GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to perform operations related to snippet repository storage moves, specifically supporting the POST method to initiate storage moves for snippet repositories. It is useful for automating repository management tasks within GitLab, such as migrating snippet storage locations programmatically.

Use Case Examples

  1. Automate moving snippet repository storage in GitLab to a new storage location.
  2. Integrate snippet repository storage moves into a CI/CD pipeline for GitLab projects.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the 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 requests are sent.
Method The HTTP method to use for the API request, defaulting to GET but supporting POST, PUT, DELETE, HEAD, and PATCH.
Parameter Schema Defines the schema for the parameters sent in the request body for the POST operation on snippet repository storage moves.
Request Body Schema Defines the schema for the request body content for the POST operation.
Request Path The API endpoint path for snippet repository storage moves, fixed to /api/v4/snippet_repository_storage_moves.

Output

JSON

  • response - The JSON response from the GitLab API after performing the snippet repository storage move operation.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to perform snippet repository storage moves.
  • Verify the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab server.
  • Check that the request body matches the expected schema for the snippet repository storage move operation to avoid validation errors.

Links

Discussion