Update Sandbox Cluster
client.SandboxClusters.Update(ctx, sandboxClusterID, body) (*SandboxCluster, error)
PATCH/v1/sandbox_clusters/{sandbox_cluster_id}
Update Sandbox Cluster
package main
import (
"context"
"fmt"
"github.com/nirvana-labs/nirvana-go"
"github.com/nirvana-labs/nirvana-go/option"
"github.com/nirvana-labs/nirvana-go/sandbox_clusters"
)
func main() {
client := nirvana.NewClient(
option.WithAPIKey("My API Key"),
)
sandboxCluster, err := client.SandboxClusters.Update(
context.TODO(),
"sandbox_cluster_id",
sandbox_clusters.SandboxClusterUpdateParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", sandboxCluster.ID)
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"gateway_hostname": "gw.0123456789ab.example.com",
"instance_type": "n1-standard-8",
"name": "my-sandboxes",
"node_count": 3,
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"region": "us-sva-2",
"status": "ready",
"tags": [
"production",
"agents"
],
"updated_at": "2025-01-01T00:00:00Z"
}Returns Examples
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"gateway_hostname": "gw.0123456789ab.example.com",
"instance_type": "n1-standard-8",
"name": "my-sandboxes",
"node_count": 3,
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"region": "us-sva-2",
"status": "ready",
"tags": [
"production",
"agents"
],
"updated_at": "2025-01-01T00:00:00Z"
}