GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves secure files associated with a specific project in GitLab using the GitLab API v4. It is useful for automating the management and retrieval of secure files stored within GitLab projects, such as certificates, keys, or other sensitive files. For example, it can be used in CI/CD pipelines to fetch secure files needed for deployment or testing.

Use Case Examples

  1. Fetching secure files for a project to use in a deployment pipeline.
  2. Listing secure files to audit or manage project secrets.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination: page number and items per page.
Path Parameters Path parameters specifying the project ID or URL-encoded path to identify the project.

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.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID or path is correct and accessible by the authenticated user to avoid 404 errors.
  • Verify that the API token or authentication credentials have sufficient permissions to access secure files.
  • Check the base URL if using a self-hosted GitLab instance to avoid connection errors.

Links

Discussion