GitLab API icon

GitLab API

Gitlab

Actions880

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 feature flag within a project, such as in deployment pipelines or feature management workflows.

Use Case Examples

  1. Fetch the status of a feature flag named 'new-ui' in a project with ID '12345' to decide whether to enable new UI features in an application.
  2. Retrieve feature flag details to audit or monitor feature usage in a GitLab project.

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 to which the API request is sent.
Method HTTP method used for the API request, defaulting to GET.
Path Parameters Parameters used in the API request path to specify the project ID and feature flag name.

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 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.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and feature flag name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the project and feature flags.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or feature flag does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion