GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves details of a specific trigger for a project in GitLab using the GitLab API v4. It is useful for scenarios where you need to programmatically access trigger information for CI/CD pipelines or automation workflows within a GitLab project. For example, you can use it to verify trigger configurations or audit trigger usage in a project.

Use Case Examples

  1. Get details of a trigger with ID 10 for project with ID 18 to check its configuration.
  2. Fetch trigger information to integrate with other automation tools or dashboards.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used, here it is GitLab API authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID and trigger ID for the API request.

Output

JSON

  • id - The unique identifier of the trigger.
  • description - Description of the trigger.
  • token - The token associated with the trigger.
  • created_at - Timestamp when the trigger was created.
  • updated_at - Timestamp when the trigger was last updated.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the project ID and trigger ID are correct and exist in the GitLab instance.
  • Check that the GitLab API credentials are valid and have sufficient permissions to access project triggers.
  • If skipping authentication, verify that the endpoint supports unauthenticated access, otherwise the request will fail.
  • Common error messages include 404 Not Found if the project or trigger does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion