GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves secure files associated with a specific project in GitLab using the GitLab API. 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. Fetch secure files for a project by specifying the project ID and pagination parameters to handle large sets of files.
  2. Automate secure file retrieval in workflows that require secure credentials or assets stored in GitLab projects.

Properties

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

Output

JSON

  • secure_files - Array of secure files associated with the specified GitLab project
  • pagination
    • page - Current page number of the results
    • per_page - Number of items per page in the results
    • total - Total number of secure files available

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and accessible by the authenticated user to avoid authorization errors.
  • Verify that the GitLab API key credential is valid and 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 correctly specified.
  • Pagination parameters should be valid integers; invalid values may cause request failures.

Links

Discussion