GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the public key of a remote mirror for a specific project in GitLab using the GitLab API v4. It is useful for users who need to access or verify the public key associated with a remote mirror of a project, which can be important for security and synchronization purposes.

Use Case Examples

  1. A DevOps engineer wants to verify the SSH public key used by a remote mirror of a GitLab project to ensure secure data transfer.
  2. A developer needs to programmatically fetch the public key of a remote mirror to automate configuration or auditing tasks.

Properties

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

Output

JSON

  • public_key - The public key of the remote mirror retrieved from the GitLab API.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and mirror ID are correctly specified and URL-encoded if necessary.
  • Verify that the API authentication credentials are valid and have sufficient permissions to access the project's remote mirrors.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion