GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves information about repository storage moves for a specific snippet in GitLab. It is useful for tracking the storage migration history of a snippet's repository, which can help in managing storage resources or auditing changes. For example, a user can fetch the list of storage moves for a snippet by providing the snippet ID and optionally paginating through the results.

Use Case Examples

  1. Retrieve repository storage moves for snippet ID 12345 to audit storage changes.
  2. Fetch the first page of storage moves with 20 items per page for snippet ID 67890.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance to send the request to.
Method The HTTP method to use for the request.
Query Parameters Optional query parameters for pagination.
Path Parameters Path parameters required for the request, specifically the snippet ID.

Output

JSON

  • id - The unique identifier of the repository storage move.
  • state - The current state of the storage move.
  • source_storage - The original storage location of the snippet repository.
  • destination_storage - The target storage location for the snippet repository.
  • created_at - Timestamp when the storage move was created.
  • updated_at - Timestamp when the storage move was last updated.

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 move information.
  • Check the base URL to confirm it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Discussion