GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to retrieve storage information for a specific project identified by its ID. It is useful for scenarios where users need to access project storage details programmatically, such as monitoring storage usage or managing project resources within GitLab.

Use Case Examples

  1. Retrieve storage details of a GitLab project by providing the project ID.
  2. Automate storage monitoring for multiple projects by iterating over project IDs and fetching their storage info.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication to use, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Path Parameters Parameters to be included in the request path, specifically the project ID in this operation.

Output

JSON

  • id - The ID of the project whose storage information is retrieved.
  • storage - Details about the project's storage usage and limits.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and exists in the GitLab instance.
  • If authentication is enabled, verify that the GitLab API key credential is correctly configured and has sufficient permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include 404 Not Found if the project ID does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion