GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves wiki pages for a specific group from the GitLab API (version 4). It is useful for scenarios where you need to access or display wiki content associated with a GitLab group, such as in project documentation or knowledge base automation.

Use Case Examples

  1. Fetching all wiki pages of a GitLab group to display in an internal dashboard.
  2. Automating the retrieval of wiki content for backup or synchronization purposes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters Optional query parameters for the API request, such as 'with_content' to include the content of wiki pages.
Path Parameters Path parameters required for the API request, specifically the 'id' of the group whose wikis are being retrieved.

Output

JSON

  • id - The unique identifier of the wiki page.
  • title - The title of the wiki page.
  • content - The content of the wiki page, included if 'with_content' query parameter is true.
  • format - The format of the wiki page content (e.g., markdown).
  • slug - The URL-friendly identifier of the wiki page.
  • created_at - The timestamp when the wiki page was created.
  • updated_at - The timestamp when the wiki page was last updated.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the 'id' path parameter is correctly set to a valid GitLab group ID; otherwise, the API request will fail.
  • If authentication is skipped, the API may reject the request depending on the GitLab instance's access settings.
  • Verify that the 'baseUrl' is correct and accessible, especially if using a self-hosted GitLab instance.
  • Common error messages include 401 Unauthorized (check API credentials), 404 Not Found (invalid group ID or no wikis available), and 400 Bad Request (invalid query parameters).

Links

Discussion