GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves detailed information about a specific namespace in GitLab by its ID or URL-encoded path. It is useful for scenarios where you need to fetch metadata or configuration details of a particular namespace within a GitLab instance, such as for automation, reporting, or integration purposes.

Use Case Examples

  1. Fetch details of a project namespace by its ID to automate project management workflows.
  2. Retrieve namespace information to synchronize GitLab namespaces with an external system.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method HTTP method to use for the request.
Path Parameters Parameters to be included in the request path, specifically the 'id' of the namespace to retrieve.

Output

JSON

  • id - The unique identifier of the namespace.
  • name - The name of the namespace.
  • path - The URL-encoded path of the namespace.
  • kind - The type of namespace (e.g., user, group).
  • full_path - The full path of the namespace.
  • parent_id - The ID of the parent namespace, if any.
  • avatar_url - URL to the avatar image of the namespace.
  • web_url - The web URL to access the namespace in GitLab.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the 'id' path parameter is correctly set and URL-encoded if necessary.
  • Verify that the baseUrl is correct and accessible.
  • Check that the authentication token is valid and has sufficient permissions to access namespace information.
  • Common error messages include 404 Not Found if the namespace ID does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion