HTTP API

Limits

1 routes your API key can call. Each says who may call it; every example assumes KEY is your API key. What only the dashboard does (signing in, making API keys, connecting accounts) isn't listed here: it's in the full OpenAPI spec.

GET/v1/workspaces/{wid}/limits

The workspace's limits and how near it is to them (members and API keys; a key also gets its own)

People and API keys

ParameterInTypeAbout
widInpathTypestringAboutWorkspace id

Answer · 200

  • limitsLimitsrequired
    • max_sandboxesinteger

      Sandboxes the workspace may have running at once

    • running_sandboxesinteger
    • monthly_spend_limit_microsinteger | null

      null: no spend limit

    • allowed_regionsarray | null

      Where every sandbox of the workspace may start, as the routing rules allow together (region codes, the first allow rule's order first); null: anywhere

    • allowed_providersarray | null

      The providers the routing rules allow; null: any

    • denied_providersarray | null

      Providers the routing rules never use; null: none

    • default_routestring | null

      The route requests without one take; null: none

    • default_orderarray | null

      Providers tried first by default; null: none

    • lock_routeboolean

      Requests may not change the route, order or fallbacks

    • annex_accounts"after" | "first" | "only" | "off"

      Where Annex's own provider accounts (Annex credit) go: after the workspace's own (the default), first, only (no own accounts), or off

    • max_vcpuinteger | null

      Maximum vCPUs one sandbox may actually receive; null: no workspace ceiling

    • max_memory_gibinteger | null

      Maximum GiB of memory one sandbox may actually receive; null: no workspace ceiling

    • alert_memory_pctinteger | null

      Memory percent at which a sandbox alerts (its log and email), once each time it crosses; null: off

    • alert_cpu_pctinteger | null

      CPU percent at which a sandbox alerts, once each time it crosses; null: off

    • operating_hoursOperatingHours | null

      When workspace compute may run and whether schedule-paused sandboxes auto-resume; null: any time

    • month_spend_microsinteger

      Annex's estimate for this calendar month (UTC), up to a minute old

    • currency"USD"
    • rulesRule[]

      The routing rules allowed_regions, allowed_providers and denied_providers are compiled from (GET …/rules)

    • rules_problemstring | null

      Why the rules can't be applied (a region gone from the catalogue); starts are refused until the owner fixes them. null when they apply

    • api_keyobject | null

      The calling API key's own; null for a person

Terminal
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/limits' \
  -H 'Authorization: Bearer anx_live_…'