GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to increment usage data counters via a POST request to the /api/v4/usage_data/increment_counter endpoint. It is useful for tracking and incrementing usage metrics programmatically within GitLab, such as API usage or feature usage counters.

Use Case Examples

  1. Increment a specific usage counter in GitLab to monitor API call counts.
  2. Automate usage data tracking for GitLab features in a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Selects the authentication method to use for the API request.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request.

Output

JSON

  • response - The JSON response from the GitLab API after incrementing the usage data counter.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have the necessary permissions to increment usage data counters.
  • Verify the baseUrl is correct and accessible from the environment where the node runs.
  • Check that the request body matches the expected schema for incrementing usage data counters to avoid validation errors.

Links

Discussion