GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves repository storage moves for a specific snippet in GitLab using the GitLab API. It is useful for tracking the storage migration history of a snippet's repository, which can help in managing storage resources or auditing changes.

Use Case Examples

  1. A developer wants to check the storage move history of a snippet to understand where its repository has been stored over time.
  2. A DevOps engineer uses this operation to monitor snippet repository storage moves for compliance and resource allocation.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination.
Path Parameters Path parameters including the snippet ID to specify which snippet's repository storage moves to retrieve.

Output

JSON

  • id - The unique identifier of the snippet.
  • repository_storage_moves - List of repository storage move records for the snippet, detailing storage migration history.

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 access snippet repository storage moves.
  • Check the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab server.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion