GitLab API icon

GitLab API

Gitlab

Actions880

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 GitLab project, such as downloading or inspecting secure files associated with a project.

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, useful for public or unauthenticated access.
Authentication Type of authentication to use, default is GitLab API key authentication.
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 to specify the project ID and secure file ID to retrieve.

Output

JSON

  • id - The unique identifier 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.
  • file_type - The type 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 instance.
  • Verify that the API key credential has sufficient permissions to access secure files in the project.
  • If skipping authentication, confirm that the GitLab instance allows unauthenticated access to secure files.
  • Check the base URL to ensure it points to the correct GitLab instance.

Links

Discussion