Generate a new SSH keypair for a Tugboat Repository

Arguments

  • repo - Required
    The ID of the repository for which to generate a new SSH keypair

Example

socket.emit('tugboat', 'repos', 'keygen', args, callback);

Output

json

single

{
    "updatedAt": "2017-02-17T20:33:38.452Z",
    "createdAt": "2017-02-17T20:33:38.452Z",
    "name": "my-github-project",
    "agent": "dev.tugboat.qa",
    "_id": "58a75e22ddccc30001a26086",
    "size": 0,
    "quota": 0,
    "admins": [],
    "users": [],
    "project": "58a758b534f0210001cf9439",
    "id": "58a75e22ddccc30001a26086"
}

array

[
    {
        "updatedAt": "2017-02-17T20:33:38.452Z",
        "createdAt": "2017-02-17T20:33:38.452Z",
        "name": "my-github-project",
        "agent": "dev.tugboat.qa",
        "_id": "58a75e22ddccc30001a26086",
        "size": 0,
        "quota": 0,
        "admins": [],
        "users": [],
        "project": "58a758b534f0210001cf9439",
        "id": "58a75e22ddccc30001a26086"
    }
]

Errors

  • 1005: No Repositories Found
    Returned if the requested repositories do not exist, or the requestor does not have permission to update them.

  • 1006: No Repository ID Provided
    The required repo argument was not included in the request.

results matching ""

    No results matching ""