GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows users to add or manage a user cluster within a specific GitLab group by making a POST request to the GitLab API endpoint `/api/v4/groups/{id}/clusters/user`. It is useful for automating cluster management tasks in GitLab groups, such as adding a user cluster to a group programmatically.

Use Case Examples

  1. Automatically add a user cluster to a GitLab group when a new project is created.
  2. Manage user clusters in GitLab groups as part of a CI/CD pipeline.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to 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 group ID for this operation.

Output

JSON

  • id - The ID of the group for which the user cluster is being managed.
  • status - The status or result of the POST operation to add or manage the user cluster.

Dependencies

  • GitLab API authentication (an API key credential)

Troubleshooting

  • Ensure the group ID path parameter is correctly provided and valid; missing or incorrect ID will cause request failure.
  • Authentication errors may occur if the API key credential is missing or invalid; verify credentials are correctly set up.
  • HTTP method must be POST for this operation; using other methods may result in errors.

Links

Discussion