GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve feature information via the /api/v4/features endpoint. It is useful for workflows that need to access GitLab feature flags or feature-related data programmatically, such as automation scripts for DevOps or project management.

Use Case Examples

  1. Retrieve the list of GitLab features to check which features are enabled for a project or group.
  2. Automate monitoring of GitLab feature availability in an enterprise environment.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request.
Parameter Schema Hidden property for the schema of parameters for the getApiV4Features operation.
Request Body Schema Hidden property for the schema of the request body for the getApiV4Features operation.
Request Path Hidden property specifying the API endpoint path for the getApiV4Features operation, defaulting to /api/v4/features.

Output

JSON

  • features - The JSON response containing the list or details of GitLab features retrieved from the API.

Dependencies

  • Requires GitLab API credentials for authenticated requests unless Skip Authentication is enabled.

Troubleshooting

  • If authentication fails, verify that the GitLab API credentials are correctly configured and have the necessary permissions.
  • If the API request fails, check the baseUrl to ensure it points to a valid GitLab instance.
  • Ensure the HTTP method is set correctly; for retrieving features, GET is typically used.
  • If the response is empty or unexpected, verify the API endpoint path and parameters.

Discussion