GitLab API

GitlabTool

Actions905

Overview

This node operation fetches feature flags from a specific GitLab project using the Unleash API. It is useful for retrieving feature flag configurations associated with a project, which can help in managing feature toggles and controlling feature rollout in applications integrated with GitLab and Unleash.

Use Case Examples

  1. Retrieve all feature flags for a given GitLab project to monitor which features are enabled or disabled.
  2. Fetch feature flags filtered by Unleash client instance ID or application name to customize feature management per client or app.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request.
Query Parameters Optional query parameters to filter the feature flags, including instance ID and application name.
Path Parameters Path parameters required for the API endpoint, specifically the project ID.

Output

JSON

  • featureFlags - Array of feature flags retrieved from the specified GitLab project.

Dependencies

  • Requires GitLab API credentials for authentication unless skipping authentication is enabled.

Troubleshooting

  • Ensure the project_id path parameter is correctly set; missing or incorrect project ID will cause request failures.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the project's feature flags.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion