GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve information about services configured for a specific project. It is useful for automating workflows that require fetching project service details from GitLab, such as monitoring integrations or managing project configurations programmatically. For example, it can be used to get all services enabled for a project by specifying the project ID.

Use Case Examples

  1. Retrieve all services for a GitLab project by providing the project ID to automate monitoring of project integrations.
  2. Use in CI/CD pipelines to dynamically fetch and adjust project service settings based on retrieved data.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters included in the API request path, specifically the project ID for this operation.

Output

JSON

  • services - Array of service objects configured for the specified GitLab project.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID is correctly provided and exists in the GitLab instance to avoid 404 errors.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access project services.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the API endpoint is reachable.

Links

Discussion