GitLab API

GitlabTool

Actions1000

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 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 GitLab to trigger a downstream process.
  2. Automating notifications or logging when a container image is pushed or deleted in the registry.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the API request.
Authentication The authentication method used for the API request, typically a GitLab API key credential.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, such as GET, POST, PUT, DELETE, HEAD, or PATCH.
Parameter Schema Schema for the parameters sent with the API request, hidden and used internally.
Request Body Schema Schema for the request body sent with the API request, 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 sufficient permissions to post container registry events.
  • Verify the baseUrl is correct and accessible from the network where the node runs.
  • Check that the HTTP method is set to POST when sending events, as other methods may not be supported for this endpoint.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests to this endpoint, which is uncommon.

Links

Discussion