GitLab API

GitlabTool

Actions1000

Overview

This node operation authorizes metric images for a specific alert within a project in GitLab's Alert Management system. It is useful for scenarios where you need to programmatically grant access or permissions to metric images related to alerts, such as in automated monitoring or alerting workflows.

Use Case Examples

  1. Authorize metric images for alert IID 23 in project ID 17 to enable visualization in alert dashboards.
  2. Automate the authorization process for metric images when new alerts are created in a GitLab project.

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 specify the project ID and alert IID for the authorization request.

Output

JSON

  • statusCode - HTTP status code of the authorization response
  • body - Response body containing authorization details or error messages

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and alert IID are correctly specified and exist in the GitLab instance.
  • Verify that the API key used has sufficient permissions to authorize metric images for alerts.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages may include 401 Unauthorized (invalid or missing API key), 404 Not Found (invalid project or alert IID), and 403 Forbidden (insufficient permissions).

Links

Discussion