GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation cancels a bulk import process in GitLab by sending a POST request to the endpoint `/api/v4/bulk_imports/{import_id}/cancel`. It is useful for users who want to stop an ongoing GitLab migration or bulk import by specifying the import ID. For example, if a migration is taking too long or was started by mistake, this operation can be used to cancel it.

Use Case Examples

  1. Cancel a GitLab bulk import migration by providing the import ID to stop the process.
  2. Manage bulk import workflows by programmatically cancelling imports when needed.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or public endpoints.
Authentication Type of authentication to use, 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 but POST is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the import_id which identifies the bulk import to cancel.

Output

JSON

  • statusCode - HTTP response status code indicating the result of the cancel request.
  • body - Response body from the GitLab API, typically confirming the cancellation or providing error details.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the import_id path parameter is correctly provided and valid, as missing or incorrect IDs will cause errors.
  • Verify that the GitLab API key credential is correctly configured and has sufficient permissions to cancel bulk imports.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the request targets the correct server.

Links

Discussion