GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to upload or update files associated with a specific machine learning model version in a GitLab project. It is useful for managing ML model files directly within GitLab's model registry, enabling seamless integration and version control of ML assets. For example, a data scientist can use this node to programmatically update model files during a CI/CD pipeline.

Use Case Examples

  1. Uploading a new model file to a specific version of an ML model in a GitLab project.
  2. Updating an existing model file for a particular model version to reflect improvements or bug fixes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters required in the request path to identify the project, model version, and file name.

Output

JSON

  • response - The JSON response from the GitLab API after uploading or updating the file.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, model version ID, and file name are correctly specified to avoid 404 errors.
  • Authentication errors may occur if the API key is missing or invalid; verify the API key credentials.
  • HTTP method must be appropriate for the operation; typically PUT is used for updating files.

Links

Discussion