GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific metric image associated with an alert in GitLab's Alert Management system. It is useful for managing and cleaning up alert-related metric images within a GitLab project, especially when certain metric images are no longer relevant or need to be removed for maintenance or organizational purposes. For example, a user can delete outdated or incorrect metric images linked to alerts in a project to keep the alert data accurate and up to date.

Use Case Examples

  1. Deleting a metric image from an alert in a GitLab project to remove obsolete data.
  2. Removing a specific metric image associated with an alert to correct an error or update alert visuals.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
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 DELETE is used for this operation.
Path Parameters Parameters required in the URL path to identify the project, alert, and metric image to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response
  • message - Response message indicating success or failure of the deletion

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID, alert IID, and metric image ID are correct and exist in the GitLab project.
  • Verify that the API key used has sufficient permissions to delete alert metric images.
  • Check the base URL to ensure it points to the correct GitLab instance if using a self-hosted GitLab.
  • Common error messages include 404 Not Found if the resource does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion