GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the public key of a specific remote mirror for a given project in GitLab. It is useful for scenarios where you need to access or verify the SSH public key associated with a remote mirror of a project, such as for security audits, synchronization setups, or integration with other systems.

Use Case Examples

  1. Fetch the public key of a remote mirror to verify its authenticity before syncing repositories.
  2. Retrieve the SSH public key to configure access permissions or automate deployment processes.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the request is sent.
Method The HTTP method used for the request, defaulting to GET.
Path Parameters Parameters required in the request path to identify the project and remote mirror.

Output

JSON

  • public_key - The SSH public key of the specified remote mirror.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and mirror ID are correctly specified and URL-encoded if necessary.
  • Verify that the API authentication token has sufficient permissions to access the project's remote mirrors.
  • Check the base URL to confirm it points to the correct GitLab instance.
  • Common error messages include 404 Not Found if the project or mirror does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion