GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the triggers associated with a specific GitLab project using the GitLab API v4. It is useful for automating workflows that need to access or manage project triggers, such as CI/CD pipeline triggers, in GitLab projects. For example, it can be used to list all triggers for a project to monitor or audit them programmatically.

Use Case Examples

  1. Retrieve all triggers for a project with ID 18 to display or process them in an automation workflow.
  2. Paginate through triggers by specifying page and per_page query parameters to handle large sets of triggers.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
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.
Parameter Schema Defines the parameters for the API call including project ID (path), page number, and items per page (query).
Request Body Schema Schema for the request body, null for this GET operation.
Request Path API endpoint path with project ID placeholder.
Query Parameters Optional query parameters to control pagination: page number and items per page.
Path Parameters Path parameter specifying the project ID or URL-encoded path.

Output

JSON

  • triggers - List of triggers associated with the specified GitLab project.

Dependencies

  • GitLab API key credential for authentication

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 instead of gitlab.com.
  • Handle pagination properly by using the page and per_page query parameters to avoid missing triggers or overloading the response.

Links

Discussion