GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation interacts with the GitLab API to stop stale environments for a specific project. It is useful in scenarios where you want to programmatically manage and clean up environments that are no longer active or needed in a GitLab project, helping maintain a tidy and efficient project environment setup.

Use Case Examples

  1. Automatically stop stale environments in a CI/CD pipeline after a deployment.
  2. Clean up old environments in a project to save resources and reduce clutter.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to be included in the request path, specifically the project ID or URL-encoded path.

Output

JSON

  • status - HTTP response status code indicating the result of the stop stale environments request.
  • data - Response data from the GitLab API after stopping stale environments.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to stop environments.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include authentication failures, permission denied, or invalid project ID errors. Verify credentials and project access rights to resolve these.

Links

Discussion