GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves feature flags for a specific project in GitLab using the GitLab API. It is useful for scenarios where you need to manage or monitor feature flags within a project, such as enabling or disabling features dynamically based on project settings. For example, a developer or DevOps engineer might use this to fetch all enabled or disabled feature flags for a project to automate deployment or testing workflows.

Use Case Examples

  1. Fetch all feature flags for a project by providing the project ID.
  2. Filter feature flags by their scope (enabled or disabled) to get only the relevant flags.
  3. Paginate through feature flags using page and per_page parameters to handle large sets of flags.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request (boolean). Defaults to false.
Authentication The authentication method used for the API request, hidden unless Skip Authentication is false. Defaults to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent. Defaults to https://gitlab.com.
Method The HTTP method used for the API request. Defaults to GET.
Query Parameters Optional query parameters to filter and paginate the feature flags.
Path Parameters Path parameters required for the API request.

Output

JSON

  • feature_flags - List of feature flags for the specified project, including their details such as name, state, and description.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID is correctly provided in the path parameters; otherwise, the API request will fail.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project's feature flags.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion