GitLab API

GitlabTool

Actions1000

Overview

This node operation performs an authorized POST request to the GitLab API endpoint `/api/v4/groups/import/authorize`. It is used to authorize the import of groups into GitLab, which is useful in scenarios where group data needs to be migrated or imported securely into a GitLab instance.

Use Case Examples

  1. Authorizing a group import during a migration process from another GitLab instance or external system.
  2. Automating group import authorization as part of a CI/CD pipeline setup.

Properties

Name Meaning
Skip Authentication Determines whether to skip the authentication step 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 request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST for this operation.
Parameter Schema Hidden property for the parameter schema of the request, not user-editable.
Request Body Schema Hidden property for the request body schema, not user-editable.
Request Path The API endpoint path for the group import authorization request, fixed to `/api/v4/groups/import/authorize`.

Output

JSON

  • statusCode - HTTP status code returned by the API request
  • body - Response body containing the authorization details or error information from the GitLab API

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • If authentication fails, ensure the GitLab API key is valid and has sufficient permissions.
  • If the request returns an error, verify the base URL is correct and the GitLab instance supports the import authorization endpoint.
  • Check network connectivity to the GitLab instance if requests time out or fail to connect.

Links

Discussion