GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the GitLab subscription details for a specific namespace by its ID. It is useful for scenarios where you need to programmatically access subscription information of a GitLab namespace, such as monitoring subscription status or integrating subscription data into other workflows.

Use Case Examples

  1. Get subscription details for a namespace with ID 12345 to check its subscription status.
  2. Use in automation to fetch GitLab namespace subscription info before performing billing or access control tasks.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
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, default is GET.
Path Parameters Parameters to be included in the request path, specifically the 'id' of the namespace to fetch subscription details for.

Output

JSON

  • subscription - The GitLab subscription details for the specified namespace ID

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the 'id' path parameter is correctly set and corresponds to an existing namespace in GitLab.
  • If authentication is enabled, verify that the GitLab API key credential is valid and has sufficient permissions to access namespace subscription data.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct and reachable.
  • Common error messages include 404 Not Found if the namespace ID does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion