GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the triggers associated with a specific project in GitLab using the GitLab API v4. It is useful for scenarios where you need to manage or monitor project triggers, such as automation or CI/CD pipeline triggers, by fetching their details programmatically.

Use Case Examples

  1. Fetch all triggers for a project with ID 18 to monitor or audit trigger configurations.
  2. Retrieve triggers for a project to integrate with other automation workflows or tools.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for pagination, including page number and items per page.
Path Parameters Path parameters required for the request, specifically the project ID or URL-encoded path.

Output

JSON

  • triggers - List of triggers associated with the specified project

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access project triggers.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 401 Unauthorized (invalid or missing authentication), 404 Not Found (project ID does not exist), and 403 Forbidden (insufficient permissions).

Links

Discussion