GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to exclude a specific namespace from storage limits in GitLab by making a POST request to the GitLab API endpoint `/api/v4/namespaces/{id}/storage/limit_exclusion`. It is useful for managing storage quotas in GitLab projects or groups by excluding certain namespaces from storage restrictions.

Use Case Examples

  1. Exclude a namespace with ID 123 from storage limits to prevent it from counting against storage quotas.
  2. Automate storage management by programmatically excluding namespaces from storage limits based on organizational policies.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the namespace ID to exclude from storage limits.

Output

JSON

  • id - The ID of the namespace for which the storage limit exclusion was applied.
  • storage_limit_exclusion - Details about the storage limit exclusion applied to the namespace.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the namespace ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to modify namespace storage settings.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages may include authentication failures, invalid namespace ID, or insufficient permissions. Verify credentials and input parameters to resolve these issues.

Links

Discussion