GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to perform operations related to project repository storage moves. Specifically, the 'postApiV4ProjectRepositoryStorageMoves' operation sends a POST request to the GitLab API endpoint '/api/v4/project_repository_storage_moves' to initiate a repository storage move. This is useful for automating repository management tasks such as moving repositories between storage locations within GitLab.

Use Case Examples

  1. Automate moving a GitLab project repository to a different storage location via API.
  2. Integrate repository storage management into a CI/CD pipeline to optimize storage usage.

Properties

Name Meaning
Skip Authentication If true, the node will skip using 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 requests are sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the API request, defaulting to GET but set to POST for this operation.
Parameter Schema Defines the schema for the parameters sent in the request body, required for the POST operation.
Request Body Schema Schema for the request body content, used to validate the data sent in the POST request.
Request Path The API endpoint path for the repository storage move operation, fixed to '/api/v4/project_repository_storage_moves'.

Output

JSON

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

Dependencies

  • Requires GitLab API key credentials for authentication.

Troubleshooting

  • Ensure the GitLab API key has sufficient permissions to perform repository storage moves.
  • Verify the baseUrl is correct and accessible from the environment where the node runs.
  • Check that the request body matches the expected schema to avoid validation errors from the API.

Links

Discussion