GitLab API icon

GitLab API

Gitlab

Actions917

Overview

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

Use Case Examples

  1. Download a model file from a specific ML model version in a GitLab project by providing the project ID, model version ID, and the file name.
  2. Fetch metadata or configuration files associated with a machine learning model version stored in GitLab.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Parameter Schema Defines the required and optional parameters for the API call, including project ID, model version ID, file name, optional file path, and package status.
Query Parameters Optional query parameters such as file directory path and package status to filter the request.
Path Parameters Path parameters including project ID, file name, and model version ID to specify the exact file to retrieve.

Output

JSON

  • fileContent - The content of the requested file from the ML model version.
  • fileName - The name of the file retrieved.
  • projectId - The ID or URL-encoded path of the GitLab project.
  • modelVersionId - The ID of the model version from which the file is retrieved.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID, model version ID, and file name are correctly specified; incorrect values will result in a 404 Not Found error.
  • If authentication is required and skipped, the request will fail with an authentication error; ensure proper API credentials are provided unless skipping authentication is intentional.
  • Check the base URL if using a self-hosted GitLab instance; incorrect base URL will cause connection failures.

Links

Discussion