GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows sending events to the GitLab Container Registry via the GitLab API. It is useful for automating interactions with container registry events, such as triggering workflows or notifications based on container registry activity. For example, it can be used to post custom events to the container registry event endpoint to integrate with CI/CD pipelines or monitoring systems.

Use Case Examples

  1. Posting a container registry event to trigger a downstream process in a CI/CD pipeline.
  2. Sending container registry event data to an external monitoring or alerting system.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Select the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method HTTP method to use for the request, such as GET, POST, PUT, DELETE, HEAD, or PATCH.
Parameter Schema Schema for parameters to be sent with the request, hidden and used internally.
Request Body Schema Schema for the request body to be sent, hidden and used internally.
Request Path The API endpoint path for posting container registry events, fixed to /api/v4/container_registry_event/events.

Output

JSON

  • response - The JSON response returned from the GitLab API after posting the container registry event.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is valid and has the necessary permissions to post container registry events.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check that the HTTP method is set to POST when posting events, as other methods may not be supported for this endpoint.
  • If authentication is skipped, ensure the endpoint allows unauthenticated requests, otherwise the request will fail with an authentication error.

Links

Discussion