GitLab API

GitlabTool

Actions905

Overview

This node operation fetches feature flags for a specific project from the GitLab API's Unleash feature flag service. It is useful for retrieving client feature flag configurations based on a project ID, optionally filtered by Unleash client instance ID and application name. Practical use cases include dynamically adjusting application behavior based on feature flags managed in GitLab.

Use Case Examples

  1. Retrieve all feature flags for a given GitLab project to control feature rollout.
  2. Filter feature flags by Unleash client instance ID and app name to get client-specific configurations.

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 authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Parameter Schema Defines the parameters for the API request including path and query parameters such as project_id, instance_id, and app_name.
Request Body Schema Schema for the request body, null for this operation.
Request Path The API endpoint path with a placeholder for project_id.
Query Parameters Optional query parameters to filter the feature flags by instance_id and app_name.
Path Parameters Path parameter specifying the project ID for which to fetch feature flags.

Output

JSON

  • featureFlags - Array of feature flags returned from the GitLab Unleash API for the specified 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 for GitLab API are valid and have sufficient permissions.
  • Check the baseUrl to ensure it points to the correct GitLab instance if using a self-hosted GitLab.
  • If query parameters instance_id or app_name are used, confirm they are correctly specified to filter results as expected.

Links

Discussion