GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves a specific GPG key of the authenticated user from the GitLab API using the key's ID. It is useful for scenarios where you need to access details about a particular GPG key associated with a user's GitLab account, such as verifying key information or managing user security settings.

Use Case Examples

  1. Fetch details of a user's GPG key by providing the key ID to audit or display key information in an application.
  2. Use the operation to integrate GitLab user GPG key data into a security dashboard or user profile management system.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated access scenarios.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method HTTP method to use for the request, defaulting to GET.
Path Parameters Collection of path parameters required for the request, specifically the key_id which identifies the GPG key to retrieve.

Output

JSON

  • id - The unique identifier of the GPG key.
  • key - The actual GPG public key string.
  • created_at - Timestamp when the GPG key was created.
  • expires_at - Timestamp when the GPG key expires, if applicable.
  • can_edit - Boolean indicating if the key can be edited by the user.
  • can_delete - Boolean indicating if the key can be deleted by the user.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the key_id path parameter is provided and correctly formatted as an integer string; missing or invalid key_id will cause request failure.
  • If authentication is enabled, verify that the GitLab API token is valid and has sufficient permissions to access user GPG keys.
  • Check the baseUrl to ensure it points to a valid GitLab instance; incorrect URLs will result in connection errors.

Links

Discussion