GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves feature flags for a specific project from the GitLab Unleash API. It is useful for scenarios where you want to programmatically access feature flag configurations associated with a GitLab project, such as for monitoring, auditing, or integrating feature flag data into other workflows.

Use Case Examples

  1. Fetch all feature flags for a given GitLab project to display their status in a dashboard.
  2. Retrieve feature flags to automate deployment decisions based on feature availability.

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 request is sent.
Method The HTTP method used for the API request.
Query Parameters Optional query parameters for the API request, including instance_id (the instance ID of Unleash Client) and app_name (the application name of Unleash Client).
Path Parameters Path parameters for the API request, specifically the project_id which identifies the GitLab project whose feature flags are being retrieved.

Output

JSON

  • featureFlags - Array of feature flags retrieved from 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 to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • If skipping authentication, confirm that the API endpoint allows unauthenticated access, otherwise the request will fail.

Links

Discussion