GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific project upload file from GitLab using the project's ID, a secret key, and the filename. It is useful for accessing files uploaded to a GitLab project, such as images or documents, by specifying the unique identifiers. For example, it can be used to programmatically download a project asset for further processing or backup.

Use Case Examples

  1. Download a project upload file by providing the project ID, secret, and filename to automate file retrieval in CI/CD pipelines.
  2. Access project uploads to integrate GitLab project files with other systems or workflows.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to send the request to.
Method The HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the request path to identify the project 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 authentication token

Troubleshooting

  • Ensure the project ID, secret, and filename are correctly provided; otherwise, the request will fail.
  • If authentication is skipped, the request may be unauthorized unless the GitLab instance allows anonymous access.
  • Check the baseUrl to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the upload does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion