GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves a specific project upload file from GitLab using the GitLab API v4. It is useful for scenarios where you need to access or download a project upload by specifying the project ID, a secret key, and the filename. For example, it can be used to programmatically fetch uploaded files related to a project for further processing or backup.

Use Case Examples

  1. Downloading a project upload file by providing the project ID, secret, and filename.
  2. Automating retrieval of project assets stored in GitLab uploads for integration with other systems.

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 upload file.

Output

JSON

  • id - The project ID associated with the upload.
  • secret - The secret key used to access the upload.
  • filename - The name of the uploaded file.
  • url - The URL to access the uploaded file.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, secret, and filename are correctly provided; otherwise, the API will return an error indicating the resource was not found.
  • If authentication is required and skipped, the request will fail with an authentication error.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.

Links

Discussion