GitLab API

GitlabTool

Actions1000

Overview

This node operation updates the Harbor service integration settings for a specific GitLab project using the GitLab API. It is useful for managing and configuring Harbor container registry integration within GitLab projects programmatically. For example, a user can update Harbor service settings such as enabling or disabling the integration or modifying its parameters for a project identified by its ID.

Use Case Examples

  1. Updating Harbor service integration settings for a GitLab project with ID 12345.
  2. Automating the configuration of Harbor integration across multiple GitLab projects.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, default is GET but can be set to PUT for this operation.
Path Parameters Parameters included in the API request path, specifically the project ID for this operation.

Output

JSON

  • response - The JSON response from the GitLab API after updating the Harbor service integration.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is valid and exists in the GitLab instance.
  • Verify that the API key used for authentication has sufficient permissions to update project service integrations.
  • Check the baseUrl to confirm it points to the correct GitLab instance.
  • If skipping authentication, ensure the API endpoint allows unauthenticated requests, otherwise the request will fail.

Links

Discussion