curl --request GET \
--url https://api.sfcompute.com/preview/v2/instances/{id}/ssh \
--header 'Authorization: Bearer <token>'{
"hostname": "<string>",
"port": 1,
"host_keys": [
{
"key_type": "<string>",
"key": "AAAAC3NzaC1lZDI1NTE5AAAAI..."
}
],
"last_successful_key_update_at": 1738972800,
"last_attempted_key_update_at": 1738972800
}Retrieve SSH connection details for an instance.
curl --request GET \
--url https://api.sfcompute.com/preview/v2/instances/{id}/ssh \
--header 'Authorization: Bearer <token>'{
"hostname": "<string>",
"port": 1,
"host_keys": [
{
"key_type": "<string>",
"key": "AAAAC3NzaC1lZDI1NTE5AAAAI..."
}
],
"last_successful_key_update_at": 1738972800,
"last_attempted_key_update_at": 1738972800
}Documentation Index
Fetch the complete documentation index at: https://docs.sfcompute.com/llms.txt
Use this file to discover all available pages before exploring further.
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
A resource path like 'sfc:instance:acme:prod:my-instance' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
(inst_[0-9a-zA-Z_-]{1,21})|(sfc:instance:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})"inst_k3R-nX9vLm7Qp2Yw5Jd8F"
SSH connection details.
"24.125.89.203"
x >= 022
Show child attributes
Unix timestamp of the last successful host key refresh.
1738972800
Unix timestamp of the last attempted host key refresh.
1738972800