GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation triggers a synchronization of a remote mirror for a specific project in GitLab. It is useful for developers or DevOps engineers who manage GitLab projects with remote mirrors and need to manually initiate a sync to ensure the mirror is up to date. For example, after pushing changes to a project, this operation can be used to sync the remote mirror to reflect those changes.

Use Case Examples

  1. Triggering a sync of a remote mirror for a project identified by its ID and mirror ID to ensure the mirror is current.
  2. Manually syncing a remote mirror after resolving issues with automatic mirroring.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, typically an API key credential.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request.
Path Parameters Parameters used in the API request path to specify the project and remote mirror IDs.

Output

JSON

  • status - The status of the sync operation.
  • message - Any message returned from the sync operation, such as success or error details.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the project ID and mirror ID are correctly specified and URL-encoded if necessary.
  • Verify that the authentication token or API key has sufficient permissions to trigger a remote mirror sync.
  • Check the base URL to confirm it points to the correct GitLab instance.
  • Common error messages may include authentication failures, invalid project or mirror IDs, or permission denied errors. Resolving these typically involves verifying credentials, IDs, and user permissions.

Links

Discussion