GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to retrieve application statistics from the endpoint `/api/v4/application/statistics`. It is useful for scenarios where users need to gather statistical data about their GitLab application usage, such as monitoring usage metrics or integrating GitLab statistics into other workflows.

Use Case Examples

  1. A DevOps engineer automates the retrieval of GitLab application statistics to monitor system health and usage trends.
  2. A project manager integrates GitLab statistics into a dashboard to track project activity and resource allocation.

Properties

Name Meaning
Skip Authentication Determines whether to skip the authentication process 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 The HTTP method used for the API request.
Parameter Schema Hidden property for the parameter schema of the API request, specific to the operation.
Request Body Schema Hidden property for the request body schema of the API request, specific to the operation.
Request Path The API endpoint path for retrieving application statistics, hidden from the user.

Output

JSON

  • statistics - The JSON object containing the application statistics retrieved from the GitLab API.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the baseUrl is correctly set to the GitLab instance URL; incorrect URLs will cause connection failures.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access application statistics.
  • Common error messages may include HTTP 401 Unauthorized if authentication fails, or HTTP 404 Not Found if the endpoint path is incorrect or the API version is unsupported.

Links

Discussion