GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves usage data queries from the GitLab API, specifically from the endpoint `/api/v4/usage_data/queries`. It is useful for scenarios where users want to fetch analytics or usage statistics related to GitLab usage data queries. For example, it can be used to monitor API usage or analyze query patterns within a GitLab instance.

Use Case Examples

  1. Fetching usage data queries to analyze API consumption over time.
  2. Retrieving usage statistics for auditing or reporting purposes in GitLab.

Properties

Name Meaning
Skip Authentication Determines whether to skip the authentication process 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.

Output

JSON

  • data - The main response data containing the usage data queries retrieved from the GitLab API.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has the necessary permissions to access usage data queries.
  • Verify the baseUrl is correct and points to a valid GitLab instance.
  • If skipping authentication, ensure the endpoint is accessible without authentication, otherwise requests will fail.
  • Common error messages may include authentication failures (401 Unauthorized) or endpoint not found (404 Not Found), which can be resolved by checking credentials and API path correctness.

Links

Discussion