GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve user count statistics via the `/api/v4/user_counts` endpoint. It is useful for scenarios where you need to gather metrics or analytics about GitLab users, such as monitoring user growth or activity within a GitLab instance.

Use Case Examples

  1. Fetching the total number of users in a GitLab instance for reporting purposes.
  2. Retrieving user count data to analyze user engagement trends over time.

Properties

Name Meaning
Skip Authentication Determines whether to bypass authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Parameter Schema Hidden property for the parameter schema of the request, specific to the operation.
Request Body Schema Hidden property for the request body schema, specific to the operation.
Request Path The API endpoint path for retrieving user counts, fixed to `/api/v4/user_counts`.

Output

JSON

  • user_counts - The JSON response containing user count statistics from the GitLab API.

Dependencies

  • GitLab API key credential for authentication (unless skipping authentication)

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to access user count data.
  • If skipping authentication, verify that the GitLab instance allows unauthenticated access to the `/api/v4/user_counts` endpoint.
  • Check the baseUrl property to ensure it points to the correct GitLab instance URL.
  • Common error messages may include authentication failures (401 Unauthorized) or permission errors (403 Forbidden), which can be resolved by verifying credentials and permissions.

Links

Discussion