GitLab API

GitlabTool

Actions905

Overview

This node operation performs a POST request to the GitLab API endpoint `/api/v4/groups/{id}/export` to export a specified group by its ID. It is useful for automating the export of group data from GitLab, which can be beneficial for backup, migration, or auditing purposes.

Use Case Examples

  1. Export a GitLab group by providing its group ID to automate backups.
  2. Trigger group export as part of a CI/CD pipeline to archive group data.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, defaulting to POST for this operation.
Path Parameters The path parameters for the request, specifically the group ID to export.

Output

JSON

  • id - The ID of the group being exported.
  • export_status - The status of the export process.
  • export_start_time - The timestamp when the export started.
  • export_end_time - The timestamp when the export finished.

Dependencies

  • Requires GitLab API key authentication to authorize the request.

Troubleshooting

  • Ensure the provided group ID is valid and accessible with the authenticated user’s permissions.
  • If authentication is skipped, the request may fail due to lack of authorization.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common errors include 404 Not Found if the group ID does not exist, or 401 Unauthorized if authentication fails.

Links

Discussion