GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation downloads a secure file from a specified GitLab project using the GitLab API. It is useful for automating the retrieval of secure files stored within GitLab projects, such as certificates, keys, or other sensitive files that need to be accessed programmatically.

Use Case Examples

  1. Automatically download a secure file from a GitLab project to use in a deployment pipeline.
  2. Fetch secure files for backup or auditing purposes from GitLab projects.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET.
Path Parameters Parameters used in the request path to specify the project and secure file to download.

Output

JSON

  • data - The downloaded secure file content or metadata returned from the GitLab API.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and secure file ID are correct and accessible by the authenticated user.
  • If authentication is skipped, the request may fail due to lack of permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common errors include 404 Not Found if the project or secure file does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion