GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific GPG key associated with the authenticated user in GitLab. It is useful for managing and revoking GPG keys that are no longer needed or compromised. For example, a user can remove an old or compromised GPG key from their GitLab account to maintain security.

Use Case Examples

  1. Deleting a GPG key by specifying its key ID to revoke its access.
  2. Automating the cleanup of unused GPG keys in a user's GitLab profile.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, 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 relevant here.
Path Parameters Parameters to be included in the request path, specifically the key_id of the GPG key to delete.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the key_id parameter is provided and valid; missing or incorrect key_id will cause the request to fail.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly set.
  • HTTP method must be DELETE for this operation; using other methods may result in errors.

Links

Discussion