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
header
AuthorizationBearer <token>Your Munito API key.
sandbox_id*stringThe id of the sandbox.
application/json- body
expires_in?integerRange
60 <= value <= 86400Default
3600A user name that opens SSH on its own, the command to run, and its end.
application/json- response
A user name that opens SSH on its own. It carries its sandbox and its end, so the sandbox needs no key.
object?stringDefault
"sandbox.ssh_access"sandbox_id*stringhost*stringuser*stringcommand*stringexpires_at*integerhost_key?stringDefault
""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": ""
}