GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific file from a machine learning model version stored in a GitLab project's package registry. It is useful for accessing files related to ML models, such as model binaries or metadata, directly from GitLab's ML model registry. Practical examples include downloading a trained model file for deployment or analysis.

Use Case Examples

  1. Download a model file by specifying the project ID, model version ID, and file name.
  2. Fetch metadata files associated with a specific ML model version in a GitLab project.

Properties

Name Meaning
Skip Authentication Option to bypass 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 the request, including 'path' for file directory path and 'status' for package status.
Path Parameters Required path parameters including 'id' (project ID or URL-encoded path), 'file_name' (name of the file to retrieve), and 'model_version_id' (ID of the model version).

Output

JSON

  • fileContent - Content of the requested file from the ML model version.

Dependencies

  • Requires GitLab API key credential for authentication unless skipping authentication.

Troubleshooting

  • Ensure the project ID, model version ID, and file name are correctly specified to avoid 404 errors.
  • Check authentication credentials if receiving authorization errors.
  • Verify the base URL is correct for self-hosted GitLab instances.

Links

Discussion