Get Sandbox SSHInfo
GET
/v1/sandbox/{sandboxId}/ssh/infoGET
/v1/sandbox/{sandboxId}/ssh/infoYour instance endpoint, shown on the instance page in the dashboard. Each instance has its own host; there is no shared API host.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
sandboxId | path | string | Yes | |
tenantId | query | string | No |
Responses
200 Get SSH connection info for a sandbox
| Property | Type | Description |
|---|---|---|
enabled | boolean | |
connectionString | string | |
host | string | |
port | integer | |
hostFingerprint | string |
default An unexpected error response.
| Property | Type | Description |
|---|---|---|
code | integer | |
message | string | |
details | object[] |
Request
curl -X GET "http://localhost:8089/v1/sandbox/{sandboxId}/ssh/info" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"const response = await fetch("http://localhost:8089/v1/sandbox/{sandboxId}/ssh/info", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
});
const data = await response.json();import requests
response = requests.get(
"http://localhost:8089/v1/sandbox/{sandboxId}/ssh/info",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
)
data = response.json()Response
{
"enabled": true,
"connectionString": "string",
"host": "string",
"port": 0,
"hostFingerprint": "string"
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
