GitLab API icon

GitLab API

Gitlab

Actions917

Overview

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

Use Case Examples

  1. Automate downloading a secure file from a GitLab project for deployment purposes.
  2. Integrate secure file retrieval into a CI/CD pipeline to use secure credentials or certificates.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters used in the API request path to specify the project ID and secure file ID.

Output

JSON

  • id - The ID of the secure file.
  • name - The name of the secure file.
  • size - The size of the secure file in bytes.
  • created_at - Timestamp when the secure file was created.
  • updated_at - Timestamp when the secure file was last updated.
  • project_id - The ID of the project to which the secure file belongs.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and secure file ID are correct and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to access secure files in the project.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the secure file or project does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion