GitLab API

GitlabTool

Actions905

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. 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 to revoke their signing capability.
  2. Automating cleanup of GPG keys for users who no longer need them.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, defaulting to GitLab API key.
baseUrl The 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 if the GPG key deletion was successful.
  • statusCode - HTTP status code returned by the API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the user ID and GPG key ID are correct and exist in GitLab.
  • Verify that the API key has sufficient permissions to delete user GPG keys.
  • Check the base URL is correct for the GitLab instance being accessed.

Links

Discussion