GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific group upload file from GitLab using the group's ID, a secret key, and the filename. It is useful for accessing files uploaded to a GitLab group, such as images or documents, by specifying the unique secret and filename associated with the upload.

Use Case Examples

  1. A user wants to download a specific image uploaded to a GitLab group by providing the group's ID, the secret key of the upload, and the filename.
  2. An automation workflow needs to fetch a document uploaded to a GitLab group for further processing or archiving.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Type of authentication used, 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, defaulting to GET.
Path Parameters Parameters required in the request path to identify the group upload file, including the group's ID, the secret key, and the filename.

Output

JSON

  • id - The ID of the group from which the upload is retrieved.
  • secret - The 32-character secret key associated with the group upload.
  • filename - The filename of the group upload being accessed.
  • fileContent - The content or data of the uploaded file retrieved from the group.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID, secret, and filename are correctly provided and match an existing upload; otherwise, the request will fail.
  • If authentication is required and skipped, the request may be unauthorized or denied.
  • Verify the base URL is correct for the GitLab instance being accessed.
  • Common error messages include 404 Not Found if the upload does not exist, 401 Unauthorized if authentication fails, and 400 Bad Request if parameters are missing or invalid.

Links

Discussion