GitLab API

GitlabTool

Actions1000

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, by specifying the project ID, model version ID, and file name, optionally including a file directory path and package status filter.

Use Case Examples

  1. Download a trained ML model file from a specific version in a GitLab project to use in deployment.
  2. Access metadata files associated with a particular ML model version for auditing or analysis.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for the request, including file directory path and package status filter.
Path Parameters Required path parameters identifying the project, model version, and file name.

Output

JSON

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

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID, model version ID, and file name are correctly specified to avoid 404 errors.
  • Check authentication credentials if access is denied or unauthorized errors occur.
  • Verify the base URL is correct if using a self-hosted GitLab instance.

Links

Discussion