GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to export project relations in GitLab by sending a POST request to the GitLab API endpoint `/api/v4/projects/{id}/export_relations`. It is useful for automating the export of project-related data, such as issues, merge requests, and other linked resources, for backup or migration purposes.

Use Case Examples

  1. Exporting all relations of a specific GitLab project by providing the project ID.
  2. Automating project data export as part of a CI/CD pipeline to ensure project backups.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API 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 API request is sent.
Method The HTTP method used for the API request, default is POST for this operation.
Path Parameters Parameters included in the request path, specifically the project ID or URL-encoded path required to identify the project for export.

Output

JSON

  • id - The ID or URL-encoded path of the project used in the request path.
  • export_relations - The response data from the export relations API call, typically including exported project relations details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API base URL is correct and reachable.
  • Check that the authentication credentials are valid and have sufficient permissions to export project relations.
  • Common error messages include 401 Unauthorized (authentication failure), 404 Not Found (invalid project ID), and 403 Forbidden (insufficient permissions). Resolving these involves correcting credentials, project ID, or user permissions.

Links

Discussion