GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation authorizes access to a specific file within a machine learning model version stored in a GitLab project. It is useful for managing permissions and access control for ML model files in GitLab's ML model registry. For example, it can be used to programmatically authorize access to a model file before downloading or using it in a pipeline.

Use Case Examples

  1. Authorizing access to a model file before deployment.
  2. Granting temporary access to a specific ML model version file for collaboration.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is 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.
Path Parameters Parameters required in the request path to identify the project, model version, and file.

Output

JSON

  • authorization_status - Status of the authorization request.
  • authorized_file_url - URL to access the authorized file, if authorization is successful.

Dependencies

  • GitLab API key credential for authentication

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 invalid or missing; verify credentials.
  • Permission denied errors indicate the user does not have rights to authorize the file; check user permissions in GitLab.

Links

Discussion