--- title: sshKey full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## sshKey-create ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/sshKey.create" \ -d '{ "name": "string", "description": "string", "publicKey": "string", "privateKey": "string" }' ``` ```js fetch("http://localhost:3000/api/sshKey.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## sshKey-remove ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/sshKey.remove" \ -d '{ "sshKeyId": "string" }' ``` ```js fetch("http://localhost:3000/api/sshKey.remove", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## sshKey-one ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/sshKey.one?sshKeyId=string" ``` ```js fetch("http://localhost:3000/api/sshKey.one?sshKeyId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## sshKey-all ### Authorization "} required={true}> In: `header` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/sshKey.all" ``` ```js fetch("http://localhost:3000/api/sshKey.all", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## sshKey-generate ### Authorization "} required={true}> In: `header` ### Request Body Value in: `"rsa" | "ed25519"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/sshKey.generate" \ -d '{ "type": "rsa" }' ``` ```js fetch("http://localhost:3000/api/sshKey.generate", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## sshKey-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/sshKey.update" \ -d '{ "name": "string", "description": "string", "lastUsedAt": "string", "sshKeyId": "string" }' ``` ```js fetch("http://localhost:3000/api/sshKey.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```