curl --request GET \
--url https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access', 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.ornn.com/v1/orchestrator/reservations/{reservation_id}/access",
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.ornn.com/v1/orchestrator/reservations/{reservation_id}/access"
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.ornn.com/v1/orchestrator/reservations/{reservation_id}/access")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access")
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{
"targets": [
{
"node_id": "33333333-3333-4333-8333-333333333333",
"virtual_machine_id": null,
"ssh": {
"username": "tenant",
"host": "203.0.113.10",
"port": 22,
"network_mode": "public"
}
}
]
}Get reservation SSH access
Discovers SSH targets for VM and Bare Metal reservations, including VMs delivered directly without a separately managed guest. Use this operation to discover connections instead of inferring access from provisioningType or waiting for the VM list to become nonempty. Each target returns its node ID, optional managed VM ID, and nullable ssh connection details. Use ssh.username, ssh.host, and ssh.port to connect with your installed key. A private target requires your organization’s private network connection. A null ssh means the connection details are not available yet. This read does not assess readiness or perform an SSH login. Completed or cancelled reservations return no targets. Kubernetes and Slurm use cluster access.
curl --request GET \
--url https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access', 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.ornn.com/v1/orchestrator/reservations/{reservation_id}/access",
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.ornn.com/v1/orchestrator/reservations/{reservation_id}/access"
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.ornn.com/v1/orchestrator/reservations/{reservation_id}/access")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/v1/orchestrator/reservations/{reservation_id}/access")
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{
"targets": [
{
"node_id": "33333333-3333-4333-8333-333333333333",
"virtual_machine_id": null,
"ssh": {
"username": "tenant",
"host": "203.0.113.10",
"port": 22,
"network_mode": "public"
}
}
]
}targets with non-null ssh, connect with ssh -p <ssh.port> <ssh.username>@<ssh.host> using your installed SSH key. For network_mode: "private", connect to your organization’s private network first. A null ssh means connection details are not available yet; poll with a deadline.
Connection details do not confirm readiness or key installation. Check key delivery, then verify the SSH login. Run nvidia-smi -L on an NVIDIA machine; expect one entry per GPU you reserved.
An ended reservation returns no targets. Kubernetes and Slurm use their cluster access instructions.Authorizations
Send an organization API key as a bearer token.
Was this page helpful?