GitLab API

GitlabTool

Actions1000

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 scenarios where you need to programmatically manage and authorize access to ML model files in a GitLab repository, such as automating deployment pipelines or managing model versioning securely.

Use Case Examples

  1. Authorize access to a file named 'model.pkl' in a specific ML model version within a GitLab project to enable secure download or usage in an automated workflow.
  2. Automate the authorization process for ML model files during CI/CD pipelines to ensure only authorized components can access the model files.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Type of authentication to use, 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, defaulting to GET with options including POST, PUT, DELETE, HEAD, PATCH.
Path Parameters Parameters required in the request path to identify the project, model version, and file name.

Output

JSON

  • statusCode - HTTP status code of the authorization request response
  • body - Response body containing authorization details or error messages

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, model version ID, and file name are correctly specified to avoid 404 Not Found errors.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to authorize file access.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct and accessible.

Discussion