GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves 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 details of a particular feature flag within a project, such as in feature management or deployment automation workflows.

Use Case Examples

  1. Get the status of a feature flag named 'new-ui' in a project with ID '12345' to decide whether to enable new UI features for users.
  2. Fetch feature flag details to audit or log feature usage in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to send the API request to.
Method The HTTP method to use for the API request.
Path Parameters Parameters to specify the project ID and feature flag name for the API request.

Output

JSON

  • id - The ID 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.
  • scopes - Scopes or environments where the feature flag is applied.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and feature flag name are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the API key or token is invalid or missing; verify credentials.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • API rate limits or permission issues may cause request failures; ensure the API token has sufficient permissions.

Links

Discussion