GitLab API

GitlabTool

Actions905

Overview

This node operation handles the authorization for importing projects into GitLab via the GitLab API. It is useful in scenarios where users want to programmatically authorize project imports, such as migrating projects from other sources or automating project setup workflows in GitLab.

Use Case Examples

  1. Automating project import authorization in a CI/CD pipeline.
  2. Migrating multiple projects into GitLab with automated authorization steps.

Properties

Name Meaning
Skip Authentication If set to true, the node skips the authentication step, allowing unauthenticated requests.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication. Hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET. Options include GET, POST, PUT, DELETE, HEAD, PATCH.
Parameter Schema Hidden property for the parameter schema of the request, relevant for the postApiV4ProjectsImportAuthorize operation.
Request Body Schema Hidden property for the request body schema, relevant for the postApiV4ProjectsImportAuthorize operation.
Request Path Hidden property specifying the API endpoint path for the import authorization, set to /api/v4/projects/import/authorize.

Output

JSON

  • response - The JSON response from the GitLab API after attempting to authorize the project import.

Dependencies

  • GitLab API authentication credentials

Troubleshooting

  • Ensure the GitLab API credentials are correctly configured and have sufficient permissions to authorize project imports.
  • If skipping authentication, verify that the GitLab instance allows unauthenticated requests for this endpoint, otherwise the request will fail.
  • Check that the baseUrl is correctly set to the target GitLab instance URL to avoid connection errors.

Links

Discussion