GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific GPG key associated with a user in GitLab. It is useful for managing user security keys by removing outdated or compromised GPG keys from a user's profile. For example, an administrator can automate the removal of a user's GPG key by specifying the user ID and the key ID.

Use Case Examples

  1. Deleting a GPG key for a user by providing the user ID and the GPG key ID.
  2. Automating cleanup of GPG keys for users who no longer need certain keys.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is 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 for the API path including user ID and GPG key ID.

Output

JSON

  • success - Indicates whether the GPG key deletion was successful.
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • Requires GitLab API key credential for authentication.

Troubleshooting

  • Ensure the user ID and GPG key ID are correct and exist in GitLab to avoid 404 errors.
  • Check that the API key has sufficient permissions to delete user GPG keys.
  • If authentication is skipped, the request will likely fail due to lack of authorization.

Links

Discussion