GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves feature flags from a GitLab project using the Unleash feature flagging system via the GitLab API v4. It is useful for scenarios where you want to programmatically access feature flag configurations for a specific project in GitLab, such as for monitoring, automation, or integration with other systems.

Use Case Examples

  1. Fetch feature flags for a project to dynamically enable or disable features in an application based on GitLab's feature flag settings.
  2. Integrate GitLab feature flags into a CI/CD pipeline to conditionally run deployment steps based on feature flag states.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for the request, including instance_id (Unleash Client instance ID) and app_name (Unleash Client application name).
Path Parameters Path parameters for the request, specifically the project_id which identifies the GitLab project.

Output

JSON

  • featureFlags - The list of feature flags retrieved for the specified GitLab project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project_id path parameter is correctly set and corresponds to an existing GitLab project.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project's feature flags.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include authentication failures, 404 not found if the project_id is invalid, or 400 bad request if query parameters are malformed.

Links

Discussion