# Sandbox Clusters

## Create Sandbox Cluster

`client.SandboxClusters.New(ctx, body) (*Operation, error)`

**post** `/v1/sandbox_clusters`

Create a Sandbox Cluster to run sandboxes on. The infrastructure it runs on is provisioned in a project the platform manages.

### Parameters

- `body SandboxClusterNewParams`

  - `InstanceType param.Field[string]`

    Instance type of the nodes the sandboxes run on.

  - `Name param.Field[string]`

    Name of the Sandbox Cluster. Unique within its project.

  - `NodeCount param.Field[int64]`

    Number of nodes the sandboxes run on.

  - `ProjectID param.Field[string]`

    ID of the project to create the Sandbox Cluster in.

  - `Region param.Field[RegionName]`

    Region the resource is in.

  - `Tags param.Field[[]string]`

    Tags to attach to the Sandbox Cluster.

### Returns

- `type Operation struct{…}`

  Operation details.

  - `ID string`

    Unique identifier for the Operation.

  - `CreatedAt Time`

    When the Operation was created.

  - `Details OperationDetails`

    Structured details about what an operation is changing.

    - `Changes OperationChanges`

      Map of changed field names to their from/to diffs. Keys depend on the parent operation's kind+type.

      - `From OperationFieldDiffFromUnion`

        Previous value.

        - `string`

        - `float64`

        - `bool`

        - `type OperationFieldDiffFromArray []string`

      - `To OperationFieldDiffToUnion`

        New value.

        - `string`

        - `float64`

        - `bool`

        - `type OperationFieldDiffToArray []string`

  - `Kind OperationKind`

    Kind of Operation.

    - `const OperationKindVM OperationKind = "vm"`

    - `const OperationKindVolume OperationKind = "volume"`

    - `const OperationKindVPC OperationKind = "vpc"`

    - `const OperationKindFirewallRule OperationKind = "firewall_rule"`

    - `const OperationKindNKSCluster OperationKind = "nks_cluster"`

    - `const OperationKindNKSNodePool OperationKind = "nks_node_pool"`

    - `const OperationKindSandboxCluster OperationKind = "sandbox_cluster"`

    - `const OperationKindBucket OperationKind = "bucket"`

  - `ProjectID string`

    Project ID the Operation belongs to.

  - `ResourceID string`

    ID of the resource that the Operation is acting on.

  - `Status OperationStatus`

    Status of the Operation.

    - `const OperationStatusPending OperationStatus = "pending"`

    - `const OperationStatusRunning OperationStatus = "running"`

    - `const OperationStatusDone OperationStatus = "done"`

    - `const OperationStatusFailed OperationStatus = "failed"`

    - `const OperationStatusUnknown OperationStatus = "unknown"`

  - `Type OperationType`

    Type of Operation.

    - `const OperationTypeCreate OperationType = "create"`

    - `const OperationTypeUpdate OperationType = "update"`

    - `const OperationTypeDelete OperationType = "delete"`

    - `const OperationTypeRestart OperationType = "restart"`

  - `UpdatedAt Time`

    When the Operation was updated.

### Example

```go
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"
  "github.com/nirvana-labs/nirvana-go/shared"
)

func main() {
  client := nirvana.NewClient(
    option.WithAPIKey("My API Key"),
  )
  operation, err := client.SandboxClusters.New(context.TODO(), sandbox_clusters.SandboxClusterNewParams{
    InstanceType: "n1-standard-8",
    Name: "my-sandboxes",
    NodeCount: 3,
    ProjectID: "123e4567-e89b-12d3-a456-426614174000",
    Region: shared.RegionNameUsSva2,
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", operation.ID)
}
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-01-01T00:00:00Z",
  "details": {
    "changes": {
      "foo": {
        "from": "string",
        "to": "string"
      }
    }
  },
  "kind": "vm",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "resource_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "type": "create",
  "updated_at": "2025-01-01T00:00:00Z"
}
```

## Get Sandbox Cluster

`client.SandboxClusters.Get(ctx, sandboxClusterID) (*SandboxCluster, error)`

**get** `/v1/sandbox_clusters/{sandbox_cluster_id}`

Get a Sandbox Cluster

### Parameters

- `sandboxClusterID string`

### Returns

- `type SandboxCluster struct{…}`

  A cluster sandboxes run on, in one region.

  - `ID string`

    Unique identifier for the Sandbox Cluster.

  - `CreatedAt Time`

    When the Sandbox Cluster was created.

  - `GatewayHostname string`

    Hostname sandboxes' endpoints are served on over HTTPS, to allow in outbound firewalls. Null until assigned; a recreated Sandbox Cluster gets a new one.

  - `InstanceType string`

    Instance type of the nodes the sandboxes run on.

  - `Name string`

    Name of the Sandbox Cluster.

  - `NodeCount int64`

    Number of nodes the sandboxes run on.

  - `ProjectID string`

    ID of the project the Sandbox Cluster is in.

  - `Region RegionName`

    Region the resource is in.

    - `const RegionNameUsSva2 RegionName = "us-sva-2"`

    - `const RegionNameUsWdc1 RegionName = "us-wdc-1"`

  - `Status ResourceStatus`

    Status of the resource.

    - `const ResourceStatusPending ResourceStatus = "pending"`

    - `const ResourceStatusCreating ResourceStatus = "creating"`

    - `const ResourceStatusUpdating ResourceStatus = "updating"`

    - `const ResourceStatusReady ResourceStatus = "ready"`

    - `const ResourceStatusDeleting ResourceStatus = "deleting"`

    - `const ResourceStatusDeleted ResourceStatus = "deleted"`

    - `const ResourceStatusError ResourceStatus = "error"`

    - `const ResourceStatusSuspended ResourceStatus = "suspended"`

  - `Tags []string`

    Tags attached to the Sandbox Cluster.

  - `UpdatedAt Time`

    When the Sandbox Cluster was last updated.

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/nirvana-labs/nirvana-go"
  "github.com/nirvana-labs/nirvana-go/option"
)

func main() {
  client := nirvana.NewClient(
    option.WithAPIKey("My API Key"),
  )
  sandboxCluster, err := client.SandboxClusters.Get(context.TODO(), "sandbox_cluster_id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", sandboxCluster.ID)
}
```

#### Response

```json
{
  "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"
}
```

## Update Sandbox Cluster

`client.SandboxClusters.Update(ctx, sandboxClusterID, body) (*SandboxCluster, error)`

**patch** `/v1/sandbox_clusters/{sandbox_cluster_id}`

Update a Sandbox Cluster's name and tags

### Parameters

- `sandboxClusterID string`

- `body SandboxClusterUpdateParams`

  - `Name param.Field[string]`

    Name of the Sandbox Cluster. Unique within its project.

  - `Tags param.Field[[]string]`

    Tags to attach to the Sandbox Cluster.

### Returns

- `type SandboxCluster struct{…}`

  A cluster sandboxes run on, in one region.

  - `ID string`

    Unique identifier for the Sandbox Cluster.

  - `CreatedAt Time`

    When the Sandbox Cluster was created.

  - `GatewayHostname string`

    Hostname sandboxes' endpoints are served on over HTTPS, to allow in outbound firewalls. Null until assigned; a recreated Sandbox Cluster gets a new one.

  - `InstanceType string`

    Instance type of the nodes the sandboxes run on.

  - `Name string`

    Name of the Sandbox Cluster.

  - `NodeCount int64`

    Number of nodes the sandboxes run on.

  - `ProjectID string`

    ID of the project the Sandbox Cluster is in.

  - `Region RegionName`

    Region the resource is in.

    - `const RegionNameUsSva2 RegionName = "us-sva-2"`

    - `const RegionNameUsWdc1 RegionName = "us-wdc-1"`

  - `Status ResourceStatus`

    Status of the resource.

    - `const ResourceStatusPending ResourceStatus = "pending"`

    - `const ResourceStatusCreating ResourceStatus = "creating"`

    - `const ResourceStatusUpdating ResourceStatus = "updating"`

    - `const ResourceStatusReady ResourceStatus = "ready"`

    - `const ResourceStatusDeleting ResourceStatus = "deleting"`

    - `const ResourceStatusDeleted ResourceStatus = "deleted"`

    - `const ResourceStatusError ResourceStatus = "error"`

    - `const ResourceStatusSuspended ResourceStatus = "suspended"`

  - `Tags []string`

    Tags attached to the Sandbox Cluster.

  - `UpdatedAt Time`

    When the Sandbox Cluster was last updated.

### Example

```go
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)
}
```

#### Response

```json
{
  "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"
}
```

## Delete Sandbox Cluster

`client.SandboxClusters.Delete(ctx, sandboxClusterID) (*Operation, error)`

**delete** `/v1/sandbox_clusters/{sandbox_cluster_id}`

Delete a Sandbox Cluster, with its sandboxes and the infrastructure they run on.

### Parameters

- `sandboxClusterID string`

### Returns

- `type Operation struct{…}`

  Operation details.

  - `ID string`

    Unique identifier for the Operation.

  - `CreatedAt Time`

    When the Operation was created.

  - `Details OperationDetails`

    Structured details about what an operation is changing.

    - `Changes OperationChanges`

      Map of changed field names to their from/to diffs. Keys depend on the parent operation's kind+type.

      - `From OperationFieldDiffFromUnion`

        Previous value.

        - `string`

        - `float64`

        - `bool`

        - `type OperationFieldDiffFromArray []string`

      - `To OperationFieldDiffToUnion`

        New value.

        - `string`

        - `float64`

        - `bool`

        - `type OperationFieldDiffToArray []string`

  - `Kind OperationKind`

    Kind of Operation.

    - `const OperationKindVM OperationKind = "vm"`

    - `const OperationKindVolume OperationKind = "volume"`

    - `const OperationKindVPC OperationKind = "vpc"`

    - `const OperationKindFirewallRule OperationKind = "firewall_rule"`

    - `const OperationKindNKSCluster OperationKind = "nks_cluster"`

    - `const OperationKindNKSNodePool OperationKind = "nks_node_pool"`

    - `const OperationKindSandboxCluster OperationKind = "sandbox_cluster"`

    - `const OperationKindBucket OperationKind = "bucket"`

  - `ProjectID string`

    Project ID the Operation belongs to.

  - `ResourceID string`

    ID of the resource that the Operation is acting on.

  - `Status OperationStatus`

    Status of the Operation.

    - `const OperationStatusPending OperationStatus = "pending"`

    - `const OperationStatusRunning OperationStatus = "running"`

    - `const OperationStatusDone OperationStatus = "done"`

    - `const OperationStatusFailed OperationStatus = "failed"`

    - `const OperationStatusUnknown OperationStatus = "unknown"`

  - `Type OperationType`

    Type of Operation.

    - `const OperationTypeCreate OperationType = "create"`

    - `const OperationTypeUpdate OperationType = "update"`

    - `const OperationTypeDelete OperationType = "delete"`

    - `const OperationTypeRestart OperationType = "restart"`

  - `UpdatedAt Time`

    When the Operation was updated.

### Example

```go
package main

import (
  "context"
  "fmt"

  "github.com/nirvana-labs/nirvana-go"
  "github.com/nirvana-labs/nirvana-go/option"
)

func main() {
  client := nirvana.NewClient(
    option.WithAPIKey("My API Key"),
  )
  operation, err := client.SandboxClusters.Delete(context.TODO(), "sandbox_cluster_id")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", operation.ID)
}
```

#### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "created_at": "2025-01-01T00:00:00Z",
  "details": {
    "changes": {
      "foo": {
        "from": "string",
        "to": "string"
      }
    }
  },
  "kind": "vm",
  "project_id": "123e4567-e89b-12d3-a456-426614174000",
  "resource_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "pending",
  "type": "create",
  "updated_at": "2025-01-01T00:00:00Z"
}
```

## List Sandbox Clusters

`client.SandboxClusters.List(ctx, query) (*Cursor[SandboxCluster], error)`

**get** `/v1/sandbox_clusters`

List the Sandbox Clusters in a project

### Parameters

- `query SandboxClusterListParams`

  - `ProjectID param.Field[string]`

    Project ID of resources to request

  - `Cursor param.Field[string]`

    Pagination cursor returned by a previous request. Only valid for the same sort order.

  - `Limit param.Field[int64]`

    Maximum number of items to return

  - `Name param.Field[string]`

    Filter by a case-insensitive substring of the Sandbox Cluster name

  - `Region param.Field[string]`

    Filter by region

  - `Sort param.Field[string]`

    Comma-separated sort terms in precedence order, each field:asc or field:desc. Fields: created_at, updated_at

  - `Tags param.Field[[]string]`

    Filter by tags. Repeat the parameter to require several tags; a Sandbox Cluster must carry all of them.

### Returns

- `type SandboxCluster struct{…}`

  A cluster sandboxes run on, in one region.

  - `ID string`

    Unique identifier for the Sandbox Cluster.

  - `CreatedAt Time`

    When the Sandbox Cluster was created.

  - `GatewayHostname string`

    Hostname sandboxes' endpoints are served on over HTTPS, to allow in outbound firewalls. Null until assigned; a recreated Sandbox Cluster gets a new one.

  - `InstanceType string`

    Instance type of the nodes the sandboxes run on.

  - `Name string`

    Name of the Sandbox Cluster.

  - `NodeCount int64`

    Number of nodes the sandboxes run on.

  - `ProjectID string`

    ID of the project the Sandbox Cluster is in.

  - `Region RegionName`

    Region the resource is in.

    - `const RegionNameUsSva2 RegionName = "us-sva-2"`

    - `const RegionNameUsWdc1 RegionName = "us-wdc-1"`

  - `Status ResourceStatus`

    Status of the resource.

    - `const ResourceStatusPending ResourceStatus = "pending"`

    - `const ResourceStatusCreating ResourceStatus = "creating"`

    - `const ResourceStatusUpdating ResourceStatus = "updating"`

    - `const ResourceStatusReady ResourceStatus = "ready"`

    - `const ResourceStatusDeleting ResourceStatus = "deleting"`

    - `const ResourceStatusDeleted ResourceStatus = "deleted"`

    - `const ResourceStatusError ResourceStatus = "error"`

    - `const ResourceStatusSuspended ResourceStatus = "suspended"`

  - `Tags []string`

    Tags attached to the Sandbox Cluster.

  - `UpdatedAt Time`

    When the Sandbox Cluster was last updated.

### Example

```go
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"),
  )
  page, err := client.SandboxClusters.List(context.TODO(), sandbox_clusters.SandboxClusterListParams{
    ProjectID: "project_id",
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", page)
}
```

#### Response

```json
{
  "items": [
    {
      "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"
    }
  ],
  "pagination": {
    "next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
    "previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
    "total_count": 125
  }
}
```

## Domain Types

### Sandbox Cluster

- `type SandboxCluster struct{…}`

  A cluster sandboxes run on, in one region.

  - `ID string`

    Unique identifier for the Sandbox Cluster.

  - `CreatedAt Time`

    When the Sandbox Cluster was created.

  - `GatewayHostname string`

    Hostname sandboxes' endpoints are served on over HTTPS, to allow in outbound firewalls. Null until assigned; a recreated Sandbox Cluster gets a new one.

  - `InstanceType string`

    Instance type of the nodes the sandboxes run on.

  - `Name string`

    Name of the Sandbox Cluster.

  - `NodeCount int64`

    Number of nodes the sandboxes run on.

  - `ProjectID string`

    ID of the project the Sandbox Cluster is in.

  - `Region RegionName`

    Region the resource is in.

    - `const RegionNameUsSva2 RegionName = "us-sva-2"`

    - `const RegionNameUsWdc1 RegionName = "us-wdc-1"`

  - `Status ResourceStatus`

    Status of the resource.

    - `const ResourceStatusPending ResourceStatus = "pending"`

    - `const ResourceStatusCreating ResourceStatus = "creating"`

    - `const ResourceStatusUpdating ResourceStatus = "updating"`

    - `const ResourceStatusReady ResourceStatus = "ready"`

    - `const ResourceStatusDeleting ResourceStatus = "deleting"`

    - `const ResourceStatusDeleted ResourceStatus = "deleted"`

    - `const ResourceStatusError ResourceStatus = "error"`

    - `const ResourceStatusSuspended ResourceStatus = "suspended"`

  - `Tags []string`

    Tags attached to the Sandbox Cluster.

  - `UpdatedAt Time`

    When the Sandbox Cluster was last updated.

### Sandbox Cluster List

- `type SandboxClusterList struct{…}`

  - `Items []SandboxCluster`

    - `ID string`

      Unique identifier for the Sandbox Cluster.

    - `CreatedAt Time`

      When the Sandbox Cluster was created.

    - `GatewayHostname string`

      Hostname sandboxes' endpoints are served on over HTTPS, to allow in outbound firewalls. Null until assigned; a recreated Sandbox Cluster gets a new one.

    - `InstanceType string`

      Instance type of the nodes the sandboxes run on.

    - `Name string`

      Name of the Sandbox Cluster.

    - `NodeCount int64`

      Number of nodes the sandboxes run on.

    - `ProjectID string`

      ID of the project the Sandbox Cluster is in.

    - `Region RegionName`

      Region the resource is in.

      - `const RegionNameUsSva2 RegionName = "us-sva-2"`

      - `const RegionNameUsWdc1 RegionName = "us-wdc-1"`

    - `Status ResourceStatus`

      Status of the resource.

      - `const ResourceStatusPending ResourceStatus = "pending"`

      - `const ResourceStatusCreating ResourceStatus = "creating"`

      - `const ResourceStatusUpdating ResourceStatus = "updating"`

      - `const ResourceStatusReady ResourceStatus = "ready"`

      - `const ResourceStatusDeleting ResourceStatus = "deleting"`

      - `const ResourceStatusDeleted ResourceStatus = "deleted"`

      - `const ResourceStatusError ResourceStatus = "error"`

      - `const ResourceStatusSuspended ResourceStatus = "suspended"`

    - `Tags []string`

      Tags attached to the Sandbox Cluster.

    - `UpdatedAt Time`

      When the Sandbox Cluster was last updated.

  - `Pagination Pagination`

    Pagination response details.

    - `NextCursor string`

    - `PreviousCursor string`

    - `TotalCount int64`

# Cost

## Estimate Sandbox Cluster Create Cost

`client.SandboxClusters.Cost.New(ctx, body) (*CostQuote, error)`

**post** `/v1/sandbox_clusters/cost`

Return a priced cost quote for the proposed Sandbox Cluster.

### Parameters

- `body CostNewParams`

  - `InstanceType param.Field[string]`

    Instance type of the nodes the sandboxes run on.

  - `Name param.Field[string]`

    Name of the Sandbox Cluster. Unique within its project.

  - `NodeCount param.Field[int64]`

    Number of nodes the sandboxes run on.

  - `ProjectID param.Field[string]`

    ID of the project to create the Sandbox Cluster in.

  - `Region param.Field[RegionName]`

    Region the resource is in.

  - `Tags param.Field[[]string]`

    Tags to attach to the Sandbox Cluster.

### Returns

- `type CostQuote struct{…}`

  Cost quote returned by POST /cost. current_summary and updated_summary hold the org billing summary now and with this resource; omitted when the caller cannot view billing.

  - `Currency string`

    Currency the quote is denominated in. Always "USD" in v1.

  - `MonthlyTotal string`

    Arbitrary-precision decimal serialized as a string (e.g. "58.40").

  - `PricedAt Time`

    Timestamp the quote was priced at.

  - `UsageDimensions []CostQuoteUsageDimension`

    Priced rows, one per usage dimension emitted by the resource.

    - `Dimension string`

      Usage dimension being priced (e.g. compute_vcpu, storage_abs_gb).

    - `DimensionDisplayName string`

      User-facing label for the dimension (e.g. "vCPU (hours)").

    - `MonthlyAmount string`

      Arbitrary-precision decimal serialized as a string (e.g. "58.40").

    - `Quantity int64`

      Quantity of the dimension being priced.

    - `UnitPrice string`

      Arbitrary-precision decimal serialized as a string (e.g. "58.40").

  - `CurrentSummary OrganizationBillingSummary`

    Forward-looking billing summary for an organization. All costs are run-rate projections from the organization's current active usage ("≈ $X/mo at current usage").

    - `DailyCost string`

      Arbitrary-precision decimal serialized as a string (e.g. "58.40").

    - `EffectiveBalance string`

      Arbitrary-precision decimal serialized as a string (e.g. "58.40").

    - `MonthlyCost string`

      Arbitrary-precision decimal serialized as a string (e.g. "58.40").

    - `RechargeThresholdDays string`

      Arbitrary-precision decimal serialized as a string (e.g. "58.40").

    - `EstimatedNextChargeAt Time`

      Projected date the balance reaches the recharge threshold at the current run-rate. Null when there is no active usage (never charges).

    - `RunwayMonths string`

      Arbitrary-precision decimal serialized as a string (e.g. "58.40").

  - `UpdatedSummary OrganizationBillingSummary`

    Forward-looking billing summary for an organization. All costs are run-rate projections from the organization's current active usage ("≈ $X/mo at current usage").

### Example

```go
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"
  "github.com/nirvana-labs/nirvana-go/shared"
)

func main() {
  client := nirvana.NewClient(
    option.WithAPIKey("My API Key"),
  )
  costQuote, err := client.SandboxClusters.Cost.New(context.TODO(), sandbox_clusters.CostNewParams{
    InstanceType: "n1-standard-8",
    Name: "my-sandboxes",
    NodeCount: 3,
    ProjectID: "123e4567-e89b-12d3-a456-426614174000",
    Region: shared.RegionNameUsSva2,
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", costQuote.Currency)
}
```

#### Response

```json
{
  "currency": "USD",
  "monthly_total": "-69125",
  "priced_at": "2025-01-01T00:00:00Z",
  "usage_dimensions": [
    {
      "dimension": "compute_vcpu",
      "dimension_display_name": "vCPU (hours)",
      "monthly_amount": "-69125",
      "quantity": 4,
      "unit_price": "-69125"
    }
  ],
  "current_summary": {
    "daily_cost": "-69125",
    "effective_balance": "-69125",
    "monthly_cost": "-69125",
    "recharge_threshold_days": "-69125",
    "estimated_next_charge_at": "2025-01-01T00:00:00Z",
    "runway_months": "-69125"
  },
  "updated_summary": {
    "daily_cost": "-69125",
    "effective_balance": "-69125",
    "monthly_cost": "-69125",
    "recharge_threshold_days": "-69125",
    "estimated_next_charge_at": "2025-01-01T00:00:00Z",
    "runway_months": "-69125"
  }
}
```
