Go (SDK)
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Clusters.GetProjectClusterRequirements(ctx, "proj_lxWpD699qm6rk")
if err != nil {
log.Fatal(err)
}
if res.ClusterRequirements != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.clusters.getProjectClusterRequirements({
projectId: "proj_lxWpD699qm6rk",
});
console.log(result);
}
run();curl --request GET \
--url https://api.latitude.sh/projects/{project_id}/cluster/requirements \
--header 'Authorization: <api-key>'import requests
url = "https://api.latitude.sh/projects/{project_id}/cluster/requirements"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/projects/{project_id}/cluster/requirements', 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.latitude.sh/projects/{project_id}/cluster/requirements",
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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.latitude.sh/projects/{project_id}/cluster/requirements")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects/{project_id}/cluster/requirements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "proj_lxWpD699qm6rk",
"type": "cluster_requirements",
"attributes": {
"requirements_state": "awaiting_signature",
"requirements_due_date": "2026-11-20",
"requirements": {
"items": [
{
"id": "bios_smt",
"label": "BIOS: multithreading",
"category": "bios",
"check": "bios_smt"
}
],
"values": {
"bios_smt": {
"expected": "Disabled",
"note": "HPC jobs"
}
}
},
"node_groups": [
{
"id": "7",
"name": "gpu-b300",
"kind": "gpu",
"plan": "g4-b300-large",
"server_count": 16,
"os": "ubuntu_24_04_x64_lts",
"plan_name": "g4.b300.large",
"os_options": [
{
"slug": "ubuntu_24_04_x64_lts",
"name": "Ubuntu 24.04"
},
{
"slug": "rocky_9_x64",
"name": "Rocky Linux 9"
}
]
}
],
"node_group_options": {
"kinds": [
"gpu",
"cpu",
"storage",
"management",
"other"
],
"max_server_count": 1024,
"plans": [
{
"slug": "g4-b300-large",
"name": "g4.b300.large",
"os_options": [
{
"slug": "ubuntu_24_04_x64_lts",
"name": "Ubuntu 24.04"
},
{
"slug": "rocky_9_x64",
"name": "Rocky Linux 9"
}
]
}
]
},
"requirements_version": "3f1c9b2e7a4d8c06b5e9f2a1d7c3e8b04a6f9d2c1b7e5a3f8d0c4b6e2a9f7d1c",
"signoff": null
}
}
}{
"errors": [
{
"code": "PROJECT_NOT_A_CLUSTER",
"title": "Project Not A Cluster",
"detail": "This project is not a cluster",
"status": "404",
"meta": {}
}
]
}Clusters
Get cluster requirements
Shows your cluster’s requirements for review: the requirements and what is expected of each, the node groups, the version to sign and who signed. Only available for projects that have a GPU cluster; any other project answers 404 PROJECT_NOT_A_CLUSTER. While the requirements are a draft, their content is empty.
GET
/
projects
/
{project_id}
/
cluster
/
requirements
Go (SDK)
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Clusters.GetProjectClusterRequirements(ctx, "proj_lxWpD699qm6rk")
if err != nil {
log.Fatal(err)
}
if res.ClusterRequirements != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.clusters.getProjectClusterRequirements({
projectId: "proj_lxWpD699qm6rk",
});
console.log(result);
}
run();curl --request GET \
--url https://api.latitude.sh/projects/{project_id}/cluster/requirements \
--header 'Authorization: <api-key>'import requests
url = "https://api.latitude.sh/projects/{project_id}/cluster/requirements"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.latitude.sh/projects/{project_id}/cluster/requirements', 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.latitude.sh/projects/{project_id}/cluster/requirements",
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: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.latitude.sh/projects/{project_id}/cluster/requirements")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects/{project_id}/cluster/requirements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "proj_lxWpD699qm6rk",
"type": "cluster_requirements",
"attributes": {
"requirements_state": "awaiting_signature",
"requirements_due_date": "2026-11-20",
"requirements": {
"items": [
{
"id": "bios_smt",
"label": "BIOS: multithreading",
"category": "bios",
"check": "bios_smt"
}
],
"values": {
"bios_smt": {
"expected": "Disabled",
"note": "HPC jobs"
}
}
},
"node_groups": [
{
"id": "7",
"name": "gpu-b300",
"kind": "gpu",
"plan": "g4-b300-large",
"server_count": 16,
"os": "ubuntu_24_04_x64_lts",
"plan_name": "g4.b300.large",
"os_options": [
{
"slug": "ubuntu_24_04_x64_lts",
"name": "Ubuntu 24.04"
},
{
"slug": "rocky_9_x64",
"name": "Rocky Linux 9"
}
]
}
],
"node_group_options": {
"kinds": [
"gpu",
"cpu",
"storage",
"management",
"other"
],
"max_server_count": 1024,
"plans": [
{
"slug": "g4-b300-large",
"name": "g4.b300.large",
"os_options": [
{
"slug": "ubuntu_24_04_x64_lts",
"name": "Ubuntu 24.04"
},
{
"slug": "rocky_9_x64",
"name": "Rocky Linux 9"
}
]
}
]
},
"requirements_version": "3f1c9b2e7a4d8c06b5e9f2a1d7c3e8b04a6f9d2c1b7e5a3f8d0c4b6e2a9f7d1c",
"signoff": null
}
}
}{
"errors": [
{
"code": "PROJECT_NOT_A_CLUSTER",
"title": "Project Not A Cluster",
"detail": "This project is not a cluster",
"status": "404",
"meta": {}
}
]
}Was this page helpful?