dots.v2.agents.sessions.sandbox.sizes.get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.agents.sessions.sandbox.sizes.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Sandbox_sizes_response>

Description

Read-only catalog the UI (and other clients) render as the size picker, instead of hardcoding the list. The set is the single source of truth shared with create-time validation and the default-size fallback, so every slug returned here is accepted by CreateSession as spec.sandbox.sizeSlug. Sizes are returned smallest-to-largest. Static and safe to cache; independent of team/session; no pagination.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.agents.sessions.sandbox.sizes.get();

Response Example

Show Response Example
{
  "sizes": [
    {
      "slug": "mars-2vcpu-4gb",
      "vcpus": 2,
      "memory_mb": 4096,
      "price_per_hour_usd": 3e-05,
      "price_per_month_usd": 93.744
    }
  ]
}

More Information

See /v2/agents/sessions/sandbox/sizes in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.