GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific file from a machine learning model version stored in the GitLab project's ML model registry. It is useful for accessing files related to ML models, such as model artifacts or metadata, directly from the GitLab API. For example, users can download a model file by specifying the project ID, model version ID, file path, and file name.

Use Case Examples

  1. Download a model file named 'model.pkl' from a specific version of an ML model in a GitLab project.
  2. Access metadata files stored within the ML model version directory in the GitLab ML model registry.

Properties

Name Meaning
Skip Authentication Determines whether to skip 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, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters Optional query parameters for the request, including 'path' for the file directory path and 'status' for the 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 - The content of the requested file from the ML model version.
  • statusCode - HTTP status code of the API response.
  • headers - HTTP headers returned by the API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, model version ID, and file name are correctly specified to avoid 404 Not Found errors.
  • Check that the authentication credentials are valid and have sufficient permissions to access the ML model registry.
  • Verify the base URL is correct if using a self-hosted GitLab instance.
  • If skipping authentication, ensure the requested resource is publicly accessible.

Links

Discussion