GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves details of a specific feature flag from a GitLab project using the GitLab API. It is useful for scenarios where you need to check the status or configuration of a particular feature flag within a project, such as for feature management or deployment control.

Use Case Examples

  1. Get the status of a feature flag named 'new-ui' in a project with ID '12345' to determine if the feature is enabled for users.
  2. Fetch feature flag details to audit or update feature toggles programmatically.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters to specify the project ID and feature flag name for the API request.

Output

JSON

  • id - The unique identifier of the feature flag.
  • name - The name of the feature flag.
  • description - Description of the feature flag.
  • active - Indicates if the feature flag is currently active.
  • version - Version number of the feature flag.
  • created_at - Timestamp when the feature flag was created.
  • updated_at - Timestamp when the feature flag was last updated.
  • scopes - List of scopes defining the feature flag's applicability.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and feature flag name are correctly specified; incorrect values will result in API errors.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials.
  • Network issues or incorrect base URL can cause request failures; confirm the base URL is correct and accessible.

Links

Discussion