curl --request GET \
--url https://api.ornn.com/v1/orchestrator/drives \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/v1/orchestrator/drives"
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/drives', 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/drives",
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/drives"
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/drives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/v1/orchestrator/drives")
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{
"drives": [
{
"id": "77777777-7777-4777-8777-777777777777",
"source_drive_id": null,
"name": "training-data",
"status": "active",
"size_bytes": 1073741824,
"file_count": 42,
"file_tree_status": "ready",
"content_epoch": 7,
"source": {
"status": "ready",
"region": "us-central1",
"read_only": false,
"github_repositories": []
},
"file_capabilities": {
"state": "ready",
"can_upload": true,
"message": null
},
"active_mount": null,
"active_mounts": [],
"created_at": "2026-10-01T12:00:00Z",
"updated_at": "2026-10-14T12:00:00Z"
}
],
"next_cursor": null
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"detail": {
"code": "storage_page_invalid",
"message": "Choose a page size from 1 to 100 and valid storage filters, or restart from the first page."
}
}{
"code": "<string>",
"detail": "<string>"
}List volumes
Lists one page of volumes owned by the API key’s creator in its organization, most recently updated first. Follow next_cursor with the same filters until it is null. A cursor is tied to its filters; change a filter and start again from the first page. With reservation_id, the endpoint instead returns the volume attached to that reservation and its attachment, and accepts no other query parameter.
curl --request GET \
--url https://api.ornn.com/v1/orchestrator/drives \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ornn.com/v1/orchestrator/drives"
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/drives', 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/drives",
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/drives"
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/drives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ornn.com/v1/orchestrator/drives")
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{
"drives": [
{
"id": "77777777-7777-4777-8777-777777777777",
"source_drive_id": null,
"name": "training-data",
"status": "active",
"size_bytes": 1073741824,
"file_count": 42,
"file_tree_status": "ready",
"content_epoch": 7,
"source": {
"status": "ready",
"region": "us-central1",
"read_only": false,
"github_repositories": []
},
"file_capabilities": {
"state": "ready",
"can_upload": true,
"message": null
},
"active_mount": null,
"active_mounts": [],
"created_at": "2026-10-01T12:00:00Z",
"updated_at": "2026-10-14T12:00:00Z"
}
],
"next_cursor": null
}{
"code": "<string>",
"detail": "<string>"
}{
"code": "<string>",
"detail": "<string>"
}{
"detail": {
"code": "storage_page_invalid",
"message": "Choose a page size from 1 to 100 and valid storage filters, or restart from the first page."
}
}{
"code": "<string>",
"detail": "<string>"
}ornn volumes list --limit 25 --format json.Authorizations
Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.
Query Parameters
Page size from 1 to 100. Defaults to 15.
1 <= x <= 100Opaque next_cursor from the previous page, sent with the same filters.
Case-insensitive text matched against volume name, ID, and region. At most 256 characters.
256Filter by whether the volume is mounted on a machine.
all, deployed, available An owned reservation. Returns that reservation's attached volume and attachment instead of a page. Cannot be combined with other query parameters.
Was this page helpful?