GitLab API

GitlabTool

Actions1000

Overview

This node operation allows users to authorize project imports in GitLab via the API endpoint `/api/v4/projects/import/authorize`. It is useful for automating the authorization process when importing projects into GitLab, especially in CI/CD pipelines or integration workflows where project import authorization needs to be handled programmatically.

Use Case Examples

  1. Automate project import authorization in GitLab to streamline migration workflows.
  2. Use in a CI/CD pipeline to authorize project imports before triggering further deployment steps.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the request.
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, specific to this operation.
Request Body Schema Hidden property for the request body schema, specific to this operation.
Request Path The API endpoint path for the operation, fixed to `/api/v4/projects/import/authorize`.

Output

JSON

  • response - The JSON response from the GitLab API for the project import authorization request.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the GitLab API credential is correctly configured and has the necessary permissions to authorize project imports.
  • Verify the baseUrl is correct and accessible from the environment where the node runs.
  • If skipping authentication, ensure the GitLab instance allows unauthenticated requests to this endpoint, otherwise the request will fail.

Links

Discussion