Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function getUserBySSHKeyId in keysAPIS.java #1176

Closed
joe-flumen opened this issue Oct 11, 2024 · 0 comments · Fixed by #1180
Closed

Add function getUserBySSHKeyId in keysAPIS.java #1176

joe-flumen opened this issue Oct 11, 2024 · 0 comments · Fixed by #1180

Comments

@joe-flumen
Copy link

In keysAPIS.java

Add API to get key by keyid, as from gitlab api docs

    /**
     * @param id The ID of the SSH key
     * @return The Key which includes the user who owns the key
     * @throws GitLabApiException If anything goes wrong
     */
    public Key getUserBySSHKeyId(Long id) throws GitLabApiException {
        Response response = get(Response.Status.OK, null, "keys", id);
        return response.readEntity(Key.class);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant