curl --request GET \
--url https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connectable": true,
"ssh_host": "<string>",
"ssh_port": 123,
"ssh_command": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Get Connection Info
SSH coordinates for one RUNNING Slurm cluster deployment.
Team-member gated like the roster reads; ownership follows the same
visibility boundary (assert_job_visible_to_team normalizes every
cross-team/wrong-type/missing probe to a generic 404, so probing
other teams’ job ids distinguishes nothing). The payload carries
only the connect flags and coordinates — no release names or
namespaces.
curl --request GET \
--url https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/v1/slurm-clusters/{cluster_id}/connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connectable": true,
"ssh_host": "<string>",
"ssh_port": 123,
"ssh_command": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Authorizations
Response
Successful Response
SSH coordinates for one Slurm cluster deployment.
Same audience and same resolution as the Model Factory web UI's
connect box (modelFactoryClusters.ts listMyWorkloads, which calls
buildSlurmSshCommand with the tailnet fallback inputs nulled out):
RUNNING deployments get the login coordinates; non-RUNNING ones (the
ssh-proxy pod isn't up yet for a PENDING/DEPLOYING release) report
connectable=False with null fields.
ssh_command is the authoritative, fully-resolved copy-paste
command — identical to what the dashboard renders, with the same
bare username placeholder for the caller's cluster login.
ssh_port is Job.publicSshPort, and None means the DEFAULT
PORT 22, not "unknown" — same as the dashboard omitting -p. It is
never the chart-internal ssh-proxy hostPort (config.sshNodePort),
which backs only the tailnet-address fallback the customer surface
deliberately does not offer.
When an admin has set a full command override
(Job.publicSshCommand — jump hosts, custom identity files), that
command is returned verbatim and ssh_host/ssh_port are null:
the override is opaque and must not be decomposed into coordinates
that may not describe it.
Was this page helpful?