GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific GPG key associated with the authenticated user in GitLab. It is useful for managing user security by removing outdated or compromised GPG keys from the user's GitLab account. For example, a user can automate the removal of a GPG key by specifying its ID, ensuring their account only has valid keys.

Use Case Examples

  1. Deleting a GPG key by its ID to revoke its access.
  2. Automating cleanup of user GPG keys in GitLab for security maintenance.

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 but DELETE is used for this operation.
Path Parameters Parameters to be included in the request path, specifically the GPG key ID to delete.

Output

JSON

  • statusCode - HTTP response status code indicating the result of the delete operation.
  • body - Response body from the GitLab API after attempting to delete the GPG key.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the provided key_id is valid and exists; otherwise, the API will return an error indicating the key was not found.
  • Authentication errors may occur if the API key is missing or invalid; verify the API key credentials are correctly configured.
  • Network or baseUrl misconfiguration can cause request failures; confirm the baseUrl is correct and accessible.

Links

Discussion