GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves feature flags from a GitLab project using the Unleash feature flagging system. It is useful for scenarios where you want to programmatically access feature flag configurations for a specific project in GitLab, potentially filtering by Unleash client instance ID and application name. For example, it can be used in CI/CD pipelines or automation workflows to dynamically adjust behavior based on feature flags.

Use Case Examples

  1. Fetch feature flags for a GitLab project to determine which features are enabled before deploying new code.
  2. Retrieve Unleash client-specific feature flags to customize application behavior during runtime.

Properties

Name Meaning
Skip Authentication 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 to filter the request, including instance_id (Unleash Client instance ID) and app_name (Unleash Client application name).
Path Parameters Path parameters required for the request, specifically the project_id which identifies the GitLab project.

Output

JSON

  • featureFlags - The list of feature flags retrieved from the specified GitLab project using the Unleash system.

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 GitLab API authentication credentials are valid and have sufficient permissions to access feature flags.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If query parameters instance_id or app_name are used, verify they are correctly formatted and valid for the Unleash client context.

Links

Discussion