GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the GitLab subscription details for a specific namespace by its ID using the GitLab API v4. It is useful for scenarios where you need to programmatically access subscription information related to a namespace in GitLab, such as for monitoring or integration purposes.

Use Case Examples

  1. Get subscription details of a GitLab namespace by providing the namespace ID.
  2. Use in automation workflows to check subscription status before performing further actions.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is 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.
Path Parameters Parameters to be included in the request path, specifically the namespace ID.

Output

JSON

  • subscription - The GitLab subscription details for the specified 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 access namespace subscription details.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the namespace ID does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion