GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific metric image associated with an alert in a GitLab project. It is useful for managing alert-related metric images by removing outdated or unnecessary images from a project's alert management system. For example, a user can delete a metric image by specifying the project ID, alert IID, and metric image ID.

Use Case Examples

  1. Deleting a metric image from an alert in a GitLab project to clean up alert data.
  2. Removing a specific metric image that is no longer relevant to an alert in a project.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
baseUrl 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 request path to identify the project, alert, and metric image to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the delete operation, typically empty or confirmation message.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID, alert IID, and metric image ID are correctly specified; incorrect values will cause the delete operation to fail.
  • Authentication errors may occur if the GitLab API credential is missing or invalid; verify the credential configuration.
  • HTTP method must be set to DELETE for this operation; using other methods will not perform the delete action.

Links

Discussion