Skip to content

Add function getUserBySSHKeyId in keysAPIS.java #1176

@joe-flumen

Description

@joe-flumen

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions