GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves a specific secure file from a GitLab project using the GitLab API. It is useful for scenarios where you need to access or manage secure files stored within a project, such as downloading or inspecting secure files associated with a project in GitLab.

Use Case Examples

  1. Fetching a secure file by its ID from a project to verify its contents.
  2. Automating the retrieval of secure files for backup or audit purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters for the API path, including 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 the secure file belongs to.
  • file_type - The type of the secure file.
  • file_name - The original file name of the secure file.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and secure file ID are correct and exist in the GitLab project.
  • Verify that the API key used for authentication has sufficient permissions to access secure files.
  • 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