GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves details of a specific snippet repository storage move from the GitLab API. It is useful for users who need to track or manage storage moves of snippet repositories within GitLab, such as auditing storage migrations or verifying the status of a particular move by its ID.

Use Case Examples

  1. A DevOps engineer wants to check the status of a snippet repository storage move by providing its unique ID to ensure the move completed successfully.
  2. A developer automates monitoring of snippet repository storage moves to trigger notifications or further actions based on the move details.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request, useful for public or unauthenticated access scenarios.
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, defaulting to https://gitlab.com.
Method HTTP method used for the API request, defaulting to GET.
Path Parameters Collection of path parameters required for the API request, specifically the repository_storage_move_id which identifies the snippet repository storage move to retrieve.

Output

JSON

  • id - The unique identifier of the snippet repository storage move.
  • source_storage_name - The name of the source storage from which the snippet repository is moved.
  • destination_storage_name - The name of the destination storage to which the snippet repository is moved.
  • state - The current state of the storage move (e.g., pending, finished, failed).
  • created_at - Timestamp when the storage move was created.
  • updated_at - Timestamp when the storage move was last updated.
  • repository_storage_move_id - The ID of the snippet repository storage move provided as a path parameter.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the repository_storage_move_id path parameter is provided and is a valid integer; missing or invalid IDs will cause request failures.
  • If authentication is enabled, verify that the GitLab API key credential is correctly configured and has sufficient permissions to access snippet repository storage moves.
  • Check the baseUrl property to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include 404 Not Found if the specified repository_storage_move_id does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion