Create SSH access

Preview. A user name that opens SSH to the sandbox on its own, until it expires. It needs no key in the sandbox, so it is the whole credential: keep it secret. The answer has the command to run.

POST
/sandboxes/{sandbox_id}/ssh/access

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

sandbox_id*string

The id of the sandbox.

Request Body

application/json
  1. body
expires_in?integer
Range60 <= value <= 86400
Default3600

Response Body

A user name that opens SSH on its own, the command to run, and its end.

application/json
  1. response

A user name that opens SSH on its own. It carries its sandbox and its end, so the sandbox needs no key.

object?string
Default"sandbox.ssh_access"
sandbox_id*string
host*string
user*string
command*string
expires_at*integer
host_key?string
Default""
curl -X POST 'https://api.munito.ai/sandboxes/v1/sandboxes/string/ssh/access' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "object": "sandbox.ssh_access",
  "sandbox_id": "string",
  "host": "string",
  "user": "string",
  "command": "string",
  "expires_at": 0,
  "host_key": ""
}