GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific SSH certificate associated with a GitLab group by its ID. It is useful for managing and revoking SSH certificates tied to groups in GitLab, ensuring security and access control.

Use Case Examples

  1. Deleting an SSH certificate from a group to revoke access.
  2. Automating cleanup of SSH certificates for groups no longer in use.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is relevant here.
Path Parameters Parameters for the API path including group ID and SSH certificate ID.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body from the API after attempting to delete the SSH certificate.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and SSH certificate ID are correct and exist in GitLab.
  • Verify that the API key has sufficient permissions to delete SSH certificates for the group.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error: 404 Not Found - The specified group or SSH certificate ID does not exist.
  • Common error: 401 Unauthorized - Authentication failed or API key is invalid.

Links

Discussion