godo.HostedAgents.ListSandboxSizes()
Generated on 25 Nov 2026
from godo version
v1.246.0
Usage
client.HostedAgents.ListSandboxSizes(ctx context.Context) (*godo.HostedAgentSandboxSizesResponse, *godo.Response, error)Description
ListSandboxSizes returns the customer-selectable sandbox (microVM) size
catalog. The set is the single source of truth shared with create-time
validation; every returned slug is accepted as spec.sandbox.sizeSlug.
Sizes are ordered smallest-to-largest. The catalog is static and independent
of team/session; there is no pagination.
This method sends a GET request to /v2/harness-runtime/sessions/sandbox/sizes.
Returns
- *godo.HostedAgentSandboxSizesResponse
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.HostedAgentSandboxSizesResponse
HostedAgentSandboxSizesResponse is returned by ListSandboxSizes.
Sizes[]godo.HostedAgentSandboxSizeSizesis ordered smallest-to-largest.
Request Sample
More Information
See GET /v2/harness-runtime/sessions/sandbox/sizes in the API reference for additional detail on responses, headers, parameters, and more.
See the Go package documentation for the source of this method.