GitLab API icon

GitLab API

Gitlab

Actions1062

Remote_mirrors → getApiV4ProjectsIdRemoteMirrorsMirrorIdPublicKey

AI-generated

Summary

Retrieves the public key of a specified remote mirror for a GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the project (path parameter).
  • mirror_id (required) — The ID of the remote mirror (path parameter).
  • skipAuthentication — If true, the request is made without authentication; otherwise the GitLab API credential is used. Default: false.

Output shape

string

The public key string returned by the GitLab API endpoint GET /projects/:id/remote_mirrors/:mirror_id/public_key.

Examples

Example 1: Fetch a mirror's public key

Set id (project ID or path) and mirror_id, keep defaults for method (GET) and authentication unless skipAuthentication is needed.

Links

Discussion