GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve usage data queries via the API endpoint `/api/v4/usage_data/queries`. It supports making HTTP requests with configurable methods and base URL, primarily designed to fetch usage data from GitLab for analytics or monitoring purposes. This is useful for users who want to automate the retrieval of GitLab usage statistics or integrate GitLab usage data into other workflows.

Use Case Examples

  1. Fetch usage data queries from GitLab to monitor API usage trends.
  2. Automate the collection of GitLab usage statistics for reporting.

Properties

Name Meaning
Skip Authentication Determines whether to skip 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 requests are sent.
Method The HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Parameter Schema Hidden property for the parameter schema of the request, used internally.
Request Body Schema Hidden property for the request body schema, used internally.
Request Path The API endpoint path for usage data queries, fixed to `/api/v4/usage_data/queries`.

Output

JSON

  • responseData - The JSON response data returned from the GitLab API containing usage data queries.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to access usage data.
  • Verify the base URL is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check the HTTP method is appropriate for the operation; typically, GET is used for retrieving usage data.
  • If authentication is skipped, ensure the API endpoint allows unauthenticated access, otherwise requests will fail.

Links

Discussion