GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the GPG keys associated with the authenticated GitLab user via the GitLab API v4. It is useful for scenarios where you need to manage or verify the user's GPG keys programmatically, such as in automation workflows for security audits or user profile management.

Use Case Examples

  1. Fetch the current user's GPG keys to display or process them in a workflow.
  2. Automate the retrieval of GPG keys for verification or backup purposes.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip using authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API requests are sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters Optional query parameters to control pagination of the GPG keys list.

Output

JSON

  • gpg_keys - Array of GPG key objects associated with the user, including details such as key ID, key content, and creation date.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has the necessary permissions to access user GPG keys.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check query parameters for valid pagination values to avoid empty or incomplete results.

Links

Discussion