GitLab API icon

GitLab API

Gitlab

Actions880

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 artifacts or other resources stored within the project uploads. For example, a user can fetch a particular uploaded file by providing the project ID, the secret associated with the upload, and the filename to download or process the file further.

Use Case Examples

  1. Fetching a project upload file to display or download it in an automation workflow.
  2. Verifying the existence of a specific uploaded file in a GitLab project by retrieving it via the API.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to 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 specific upload file: project ID, secret key, and filename.

Output

JSON

  • id - The project ID used in the request path
  • secret - The secret key used to authenticate the upload access
  • filename - The filename of the project upload being accessed
  • fileContent - The content or metadata of the requested upload file

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID, secret, and filename are correctly provided and match an existing upload in the GitLab project.
  • If authentication is required, verify that the GitLab API key credential is valid and has sufficient permissions.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common errors include 404 Not Found if the upload does not exist or 401 Unauthorized if authentication fails.

Links

Discussion