GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a specific GPG key associated with the authenticated user in GitLab. It is useful for managing user security keys 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 retains 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 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, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to DELETE for this operation.
Path Parameters The path parameter key_id specifying the ID of the GPG key to delete.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the key_id path parameter is provided and valid; missing or incorrect key_id will cause the API call to fail.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials are correctly configured.
  • Network or baseUrl misconfiguration can lead to connection failures; confirm the baseUrl is correct and accessible.

Links

Discussion