GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves feature flags for a specific project from the GitLab API (version 4). It is useful for managing and monitoring feature flags within GitLab projects, allowing users to filter flags by their enabled or disabled state and paginate through results. Practical applications include automating feature flag audits, integrating feature flag data into dashboards, or triggering workflows based on feature flag states.

Use Case Examples

  1. Fetch all feature flags for a project with ID '123'.
  2. Retrieve only enabled feature flags for a project, showing 10 flags per page.
  3. Paginate through disabled feature flags to review them in batches.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, default is GET.
Query Parameters Optional query parameters to filter and paginate the feature flags.
Path Parameters Path parameters specifying the project ID for which to retrieve feature flags.

Output

JSON

  • featureFlags
    • `` - Array of feature flag objects returned by the GitLab API for the specified project.

Dependencies

  • GitLab API key credential for authentication.

Troubleshooting

  • Ensure the project ID is correctly specified and URL-encoded if necessary.
  • Verify that the API key credential has sufficient permissions to access project feature flags.
  • Check the base URL to confirm it points to the correct GitLab instance.
  • If filtering by scope, use only the allowed values 'enabled' or 'disabled'.
  • Pagination parameters should be valid integers; otherwise, the API may return errors or unexpected results.

Links

Discussion