Coderunners API
Create, upload, deploy, run and promote Coderunners.
Base path: /v1/workspaces/{workspace_id}/coderunners
Coderunner is the deploy path for functions, jobs, schedules, and services. No App is required. See Developers for gf deploy and MCP.
See also: Coderunner
Auth
All routes: Authorization: Bearer <JWT>. Forwarded to Coderunner with x-client-key (workspace id) and x-userid.
An M2M token can create, change, upload to, deploy, stop, promote or delete Coderunners, bind one to an environment, or configure and deploy a Git source, only if its client holds the coderunners:deploy scope; otherwise 403 with X-Groundfloor-Reason: m2m_scope_required. Code an M2M client supplies is then subject to code provenance.
Mint a short-lived CR JWT for testing from curl or Postman:
POST /v1/workspaces/{workspace_id}/coderunner/dev-tokenPermission: write. A read-only member, or a token that only carries read, gets 403; an M2M token always gets 403 (m2m_not_allowed). Every mint is recorded in the audit log.
Response: token, expires_in (seconds; 300 by default), base_url (the public Coderunner API URL to call with the token), workspace_id (send as the x-client-key header) and user_id (send as x-userid). Tokens can't be revoked, so treat one like any other bearer and let it expire.
List / create
| Method | Path | Permission | Notes |
|---|---|---|---|
GET | /v1/workspaces/{workspace_id}/coderunners | read | Query: environment_id, app_id |
POST | same | write | Body below. Returns 201; 409 with X-Groundfloor-Reason: plan_limit when the workspace is at its plan's limit of Coderunners (plan limits) |
Create body:
| Field | Required | Default | Notes |
|---|---|---|---|
title | Yes | 1-120 characters (name is accepted as an alias) | |
runtime | No | node | A language slug from GET …/coderunners/languages |
workload_type | No | function | function | job | schedule | service |
slug | No | Derived from title | Lowercase letters, digits and hyphens, up to 63 characters. A slug already used in the workspace is 409 |
environment_id | No | The active dev environment (or the only active one) | |
app_id | No | none | Links the coderunner to an App; doesn't change how it deploys |
schedule | No | none | Cron expression, for workload_type: schedule |
description | No | none | Up to 2,000 characters |
persistent_disk | No | none | {"size_gb": 1-5}, for function and service only. See Persistent disk |
Workspace site auth is not required.
GET /v1/workspaces/{workspace_id}/coderunners/languagesLists the languages Coderunner supports; use the runtime slugs it returns. Permission: read
Get / update / delete / status
| Method | Path | Permission |
|---|---|---|
GET | …/coderunners/{id} | read |
PATCH | …/coderunners/{id} | write |
DELETE | …/coderunners/{id} | delete. Needs ?confirm_delete_disk_data=true when the Coderunner has a persistent disk |
GET | …/coderunners/{id}/status | read |
PUT | …/coderunners/{id}/environment | write. See Bind to an environment |
GET / list / status flatten workload_type, schedule, last_job_name, and last_job_status from the manifest. Responses also carry persistent_disk and persistent_disk_deployed_gb (see Persistent disk), secrets and platform_environment (see Secrets and platform variables), and code_provenance (see Code provenance).
PATCH takes title (or name), description, app_id, and persistent_disk with confirm_delete_disk_data. Fields you leave out are unchanged.
status also returns deployment_status, the state of the current deployment: 1 pending, 2 processing, 3 deployed, 4 failed, 5 deleting, 6 deleted, 7 stopped, or null when unknown. deployment_status_message gives the reason, usually when it failed. While the current deployment has failed, an app address or custom domain that routes to it answers 503 instead of an empty response.
Bind to an environment
PUT /v1/workspaces/{workspace_id}/coderunners/{id}/environment{ "environment_id": "…" }Sets the environment of a Coderunner whose environment_id is null, so its code gets its environment's ID. Returns the updated Coderunner. Permission: write; an M2M token also needs coderunners:deploy.
- Permanent. A Coderunner bound to a different environment can't be moved (
409). Sending the environment it already has returns it unchanged. - Nothing running changes. The next deploy gives the workload its environment's ID (
GROUNDFLOOR_ENVIRONMENT_ID) and applies the usual code provenance checks. To run the code in another environment, create a Coderunner there or promote into it. - Git source. If the Coderunner has a Git source, push deploys stop (
provenance_blocked) until a workspace member saves the Git source again.
| Status | X-Groundfloor-Reason | When |
|---|---|---|
403 | m2m_scope_required | An M2M token without coderunners:deploy |
403 | m2m_scope_escalation | An M2M token on a Coderunner that runs with wider credentials than the calling client (a workload identity, or an attached client with more scopes) |
404 | environment_not_found | The environment isn't in this workspace. Without a reason header: the Coderunner wasn't found |
409 | coderunner_environment_already_bound | The Coderunner is already bound to a different environment |
409 | environment_not_active | The environment is suspended. Resume it, or pick an active one |
410 | The Coderunner is archived |
Versions and upload
| Method | Path | Purpose | Permission |
|---|---|---|---|
POST | …/{id}/upload | Multipart ZIP → new version (max 64 MiB) | write |
GET | …/{id}/versions | List versions | read |
GET | …/{id}/versions/{version_id} | Get version | read |
GET | …/{id}/versions/{version_id}/download | Download package | read |
DELETE | …/{id}/versions/{version_id} | Delete version. With a persistent disk, needs ?confirm_delete_disk_data=true | write; also delete with a disk |
POST | …/{id}/definition | Ensure upstream definition. 409 disk_definition_exists when a definition already exists and a persistent disk is deployed | write |
Deploy and run
POST /v1/workspaces/{workspace_id}/coderunners/{id}/deployBody (optional): version_id, cpu, memory, envVariable, minReplicas, maxReplicas (or replicas to set both at once — this is the autoscaling band for function/service; each is 0-100 and at most your plan's instances per service), schedule, suspended, confirm_code_provenance (see Code provenance).
With a persistent disk, each of minReplicas, maxReplicas and replicas can be only 0 or 1; a higher value is 422 with X-Groundfloor-Reason: disk_requires_single_replica. Stored settings above 1 are lowered to 1 without an error. The deploy also creates, grows or removes the disk to match persistent_disk.
cpu is cores or millicores and memory a size with a unit (250m, 0.5, 256Mi, 1Gi), greater than 0 and at most the per-instance maximum for your cell. Anything else is 422; the error states the maximum (cpu must be at most <N> cores, memory must be at most <N>Gi). The same check applies to coderunner.deploy.cpu and coderunner.deploy.memory when you create or update a manifest. See Size limits.
A deploy above your plan's CPU, memory or instances per service is 409 with X-Groundfloor-Reason: plan_limit, unless the Coderunner is already stored at that size or larger; see Plan limits.
envVariable can't carry secrets: a key that looks like a credential is rejected with 422 and the offending keys are named in the response. That covers names ending in _PASSWORD, _SECRET, _PRIVATE_KEY, _API_KEY, _ACCESS_KEY or _SECRET_KEY, common database connection names (DATABASE_URL, POSTGRES_PASSWORD, MONGODB_URI and similar) and anything starting with MANAGED_DB_. Read those at runtime instead; see Secret references (removed).
POST /v1/workspaces/{workspace_id}/coderunners/{id}/runBody (optional): the event JSON object itself, forwarded as-is to the handler — do not wrap it in payload. A non-object body is 422. Targeting is query-only: ?deployment_id= or ?version_id=; with neither, the current deployment runs. ?deployment_url= is still accepted but no longer useful: a Function or Job invoke URL is ignored and the Coderunner's own deployment runs instead. Use deployment_id.
curl -sS -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"hello":"world"}' \
"https://platform.groundfloor.cloud/v1/workspaces/$WORKSPACE_ID/coderunners/$CODERUNNER_ID/run"Groundfloor calls your Coderunner with its own short-lived token; your token is never passed on.
| Method | Path | Permission |
|---|---|---|
GET | …/{id}/deployment (optional ?version_id= adds version_deployment_id, the deployment recorded for that version) | read |
GET | …/{id}/deployments/{deployment_id} | read |
DELETE | …/{id}/deployments/{deployment_id} | write. With a persistent disk, also delete and ?confirm_delete_disk_data=true |
GET | …/{id}/logs/{job_id} | read |
Permission for deploy/run: write
deployment_url (on the Coderunner's manifest.coderunner, status, the deployment views, versions and the deploy response) is where to call the deployment:
| Workload | deployment_url |
|---|---|
function, job | Its invoke URL, the same value as invoke_url. null while nothing is deployed or when invoke access is off |
service | The service's own URL |
schedule | null: Schedules have no URL |
The same responses carry invoke_url and invoke_access for functions and jobs (null for services and schedules).
Invoke URL
Functions and jobs are called at their invoke URL, on its own host:
POST https://invoke.groundfloor.cloud/v1/coderunners/{coderunner_id}Legacy app_kind: coderunner apps use POST https://invoke.groundfloor.cloud/v1/apps/{app_id}. These routes answer only on invoke.groundfloor.cloud, never on the API host, and only POST (plus OPTIONS for CORS) is accepted.
Body: one JSON object, sent as Content-Type: application/json, passed to the handler as-is. The path suffix, query string and headers you send are not passed on; the workspace and deployment come from the Coderunner itself.
| Workload | Success |
|---|---|
function | The function's response, with only Content-Type, Cache-Control, ETag, Last-Modified and Content-Language kept, plus X-Content-Type-Options: nosniff, Content-Security-Policy: sandbox; default-src 'none' and Referrer-Policy: no-referrer. Functions can't stream partial results |
job | 202 with {"execution_id": "…"}; the run continues in the background. See executions |
CORS: Access-Control-Allow-Origin: *, methods POST, OPTIONS, headers Authorization, Content-Type, no credentials.
Invoke access
invoke_access | Caller |
|---|---|
token | Authorization: Bearer with a workspace member's token or an M2M token, either with write on the Coderunner's workspace. App users' (Shell or standalone app sign-in) and workload identity tokens are 403, and so is an M2M token for another workspace. Default for every new Coderunner |
public | Anyone; any Authorization header is ignored and never forwarded. Functions only |
off | Nobody: the URL is 404 and invoke_url is null |
A function created before invoke URLs existed reads as public; a job without a setting reads as token.
GET /v1/workspaces/{workspace_id}/coderunners/{id}/invoke
PUT /v1/workspaces/{workspace_id}/coderunners/{id}/invokePUT body: { "access": "off" | "token" | "public" }. Both return { "access", "invoke_url", "workload_type" }. Permission: read / write; an M2M token also needs coderunners:deploy. Each change is audited as coderunner.invoke_access_changed. Sending the current value changes nothing. Widening access (off to token or public, token to public) is refused while the workspace is suspended (423); narrowing it always works. Legacy coderunner apps: GET / PUT …/apps/{app_id}/coderunner/invoke, same rules.
| Status | When |
|---|---|
409 | Not a function or job: services and schedules have no invoke URL |
422 | public for a job |
PUT …/invoke is the only way to change access. A create (POST …/coderunners) whose manifest sets coderunner.invoke.access to anything other than token is 422, and so is a legacy app manifest update (PATCH …/apps/{app_id}) that changes the stored value. Other manifest saves keep the stored access.
Invoke errors and limits
Errors are fixed sentences in detail; the function's own error text is never returned.
| Status | When |
|---|---|
400 | The body isn't a JSON object |
401 | Access is token and no valid token was sent |
402 | The Free organization is paused because it used up its free usage |
403 | Access is token and the token can't write to this workspace, belongs to another workspace, or is an app user's or workload identity token |
404 | Unknown ID, access off, a service (call its service URL), or not the invoke host |
409 | Nothing deployed, or a schedule |
413 | Body over the request limit |
415 | Body not sent as application/json |
423 | The workspace is suspended |
429 | Over a rate or running-at-once limit. Retry-After is set |
502 | The function failed, timed out, or its response was over the limit |
503 | The platform is busy. Retry-After is set |
Default limits, which can differ by region:
| Limit | Default |
|---|---|
| Request body | 1 MiB |
| Function response | 1.5 MiB. Over it: 502, or, once part of the body was sent, the connection is closed early |
| Time | 100 s for the whole call, response included |
| Per caller, per coderunner | 60 a minute (per token; per IP address for public calls) |
| Per coderunner | 600 a minute for a function, 10 a minute for a job |
| Per IP address | 300 a minute to one coderunner and 600 a minute across all, counted before the token is checked |
| Running at once | About 20 per workspace and per organization; at most 10 of them without a token |
Functions can't stream and can't verify raw-body webhook signatures (Stripe, GitHub): the handler gets parsed JSON. Receive those webhooks, or return large outputs, with a service.
Secret references (removed)
Deploys no longer take secrets. A non-empty secrets, Secrets, envSecrets, env_secrets or inject_secret_keys in the body of a deploy, a Git deploy, a promotion or a redeploy is refused with 422, and nothing is deployed. The field names are matched in any letter case, with or without _ or -. Absent, null or empty values are accepted and ignored, so "secrets": {} still works.
{ "detail": [ { "type": "secret_refs_removed", "msg": "Deploy-time secret references (secrets / inject_secret_keys) have been removed. Read secrets at runtime instead: …" } ] }| Status | detail[].type | When |
|---|---|---|
422 | secret_refs_removed | The body names secrets with a non-empty value |
Read secrets at runtime instead: the Coderunner calls GET /v1/workspaces/{workspace_id}/secrets/{key} with a token for its attached M2M client, which needs the secrets:read scope. Pass environment_id to choose the environment (GROUNDFLOOR_ENVIRONMENT_ID is the Coderunner's own). Your deploy needs no secrets field. See Configuration and secrets and Secrets.
The only secrets Groundfloor puts in the container are the attached client's GROUNDFLOOR_M2M_CLIENT_ID and GROUNDFLOOR_M2M_CLIENT_SECRET, filled by the platform; they are listed below.
Secrets and platform variables
A Coderunner (GET …/coderunners, GET …/coderunners/{id}) and its deployment views (GET …/{id}/deployment, GET …/{id}/deployments/{deployment_id}) list, by name only, the secrets it runs with and the plain variables the platform sets:
"secrets": {
"GROUNDFLOOR_M2M_CLIENT_ID": { "source": "platform", "value": "" },
"GROUNDFLOOR_M2M_CLIENT_SECRET": { "source": "platform", "value": "" }
},
"platform_environment": { "CONTROLPLANE_URL": { "source": "platform", "value": "" } }| Field | Notes |
|---|---|
secrets | source: "platform": the attached M2M client's credentials, present only while a client is attached. The empty value means the platform fills it from that client at deploy time; you never set GROUNDFLOOR_* names yourself |
platform_environment | Plain variables the platform sets, with an empty value: CONTROLPLANE_URL while an M2M client is attached |
Values are never returned. Once this change has reached your region, the two secrets are also kept out of the deployment's configuration.
Code provenance
Groundfloor records who supplied each version: a workspace member, an M2M client (with the scopes it held at the time), or unknown for code uploaded before this was recorded. Code from an M2M client is never deployed with credentials wider than that client's, unless a workspace member confirms it.
code_provenance on GET …/coderunners and GET …/coderunners/{id} (null when no code was uploaded):
| Field | Notes |
|---|---|
deployed_version_id, deployed | The deployed version and its suppliers (null when nothing is deployed) |
latest_version_id, latest | The latest uploaded version and its suppliers |
Each supplier has kind (human, m2m or unknown), and for m2m m2m_client_id and the scopes it held then. endorsed_by is set when a member confirmed the code; members also see endorsed_by_display_name and endorsed_by_email.
Rule. A version may run under a Coderunner's credentials when every supplier is a member, the attached M2M client itself, or an M2M client that held every scope the attached client holds now. A bound workload identity is wider than any M2M supplier. unknown counts as an M2M client with no scopes, so older code is refused only on a Coderunner whose attached client holds a scope or that has a workload identity bound. A Git source counts whoever configured it as a supplier.
| Status | X-Groundfloor-Reason | When | What to do |
|---|---|---|---|
403 | m2m_code_provenance | Deploy (including start), Git deploy, push webhook or promote of code that fails the rule | Upload again as a member, or, as a member, send confirm_code_provenance: true |
409 | m2m_code_provenance_confirm_required | Attaching an M2M client (PUT …/{id}/m2m), binding a workload identity (PUT …/{id}/workload-identity), or adding a scope to an attached client (PATCH …/m2m/clients/{id}), when the deployed or latest version, or the Git source, would fail the rule | Send the request again with confirm_code_provenance: true |
- Confirming a deploy records the version as supplied by you (
endorsed_by) and is audited ascoderunner.code_provenance_confirmed. An M2M client sendingconfirm_code_provenance: truegets403m2m_code_provenance. - Confirming an attach, bind or scope endorses only the deployed version; versions that aren't deployed stay unendorsed. An affected Git source gets
provenance_blocked: true: pushes are refused until a member saves it again (PUT …/git-source). - A stop is never refused. Removing a scope, detaching, and changes that widen nothing never ask.
Public front door
Service workloads are served from a stable public host. You can take one off the public front door, and put it back, without redeploying:
| Method | Path | Permission |
|---|---|---|
GET | …/coderunners/{id}/public | read |
PUT | …/coderunners/{id}/public | write |
PUT body: { "enabled": false }. Both return { "enabled": true, "host": "…" }. With enabled: false the service's branded host and any custom domains stop resolving; the host is kept, so enabled: true restores the same URL. Turning a service off still works on a frozen workspace; turning it back on does not (423). Only service workloads can be switched; other workloads return 400.
Git source
| Method | Path | Permission |
|---|---|---|
GET / PUT / PATCH / DELETE | …/{id}/git-source | read / write |
POST | …/{id}/git-source/deploy | write (202) |
PUT creates the git source, or replaces it if one exists. Body:
| Field | Required | Notes |
|---|---|---|
repo_url | Yes | https URLs only |
ref | No | Defaults to main |
subdir | No | Subdirectory to build from |
secret_key | No | Name of a workspace secret holding a token for private repos |
The create response includes webhook_secret once; PATCH accepts the same fields (all optional) plus rotate_webhook_secret: true, which mints a new secret and returns it in that response. Webhook: POST /v1/webhooks/git/{source_id}, verified with a GitHub X-Hub-Signature-256 signature. POST …/git-source/deploy returns 409 while a git deploy is already running, and 404 if no git source is configured.
The git source carries provenance_blocked: true while push deploys are paused after a confirmed code provenance change. Pushes are then refused (403 m2m_code_provenance) until a member saves the source again with PUT. A member can still deploy it by hand with POST …/git-source/deploy and {"confirm_code_provenance": true}; that doesn't resume push deploys.
Domains
Custom domains belong to Apps, not Coderunners. The …/{id}/domains routes here always return 400 ("Custom domains are available on Apps, not standalone coderunners."). To give a service a domain, make it the primary_coderunner_id of a standalone App and use the App's domain routes. A Coderunner on its own is reached at its Deployment URL.
Compare and promote
GET /v1/workspaces/{workspace_id}/coderunners/compare?source_environment_id=&target_environment_id=
POST /v1/workspaces/{workspace_id}/coderunners/promotePromote body:
| Field | Required | Notes |
|---|---|---|
source_environment_id | Yes | Must differ from the target; both environments must be active |
target_environment_id | Yes | |
pairs[] | Yes | At least one. Each pair: source_coderunner_id (required), optional target_coderunner_id (created in the target environment if omitted) and version_id |
dry_run | No | Default false. A dry run is synchronous and starts no work |
confirm_code_provenance | No | Members only. Promote pairs whose code fails the code provenance rule anyway (audited) |
Response: {source_environment_id, target_environment_id, dry_run, promoted[], failed[], background}. Each result has source_coderunner_id, target_coderunner_id, version_id, deployment_id, created_target, error, reason (for a pair Groundfloor refused itself, the same code as X-Groundfloor-Reason, such as m2m_code_provenance or plan_limit; otherwise null) and a status of accepted (the promote continues in the background; background is true), completed or failed. Poll compare or the target's deployment status to see the outcome.
Creating the target Coderunner counts against your plan's Coderunners per workspace. At the limit, that pair is in failed[] with the plan message in error; the other pairs still run.
A target created for a source with a persistent disk asks for a disk of the same size, which its first deploy creates empty. Data is never copied. The new disk counts toward the plan storage limit; if it doesn't fit, that pair is in failed[] with the plan message.
Limits
| Limit | Value |
|---|---|
ZIP upload (…/upload) | 64 MiB; larger is 413, an empty ZIP is 400 |
replicas, minReplicas, maxReplicas | 0-100, and at most your plan's instances per service |
cpu, memory | Your cell's maximum (422) and your plan's limit (409), whichever is lower |
| Coderunners per workspace | Your plan's limit (409 on create) |
Duplicate slug on create | 409 |
Credential-shaped envVariable keys | 422 (see Deploy and run) |
persistent_disk.size_gb | 1-5, grow only (see Persistent disk) |
Plan limits
Your organization's plan limits each Coderunner's CPU and memory per instance, its instances, and how many Coderunners a workspace has; see Quotas and limits for the numbers, and GET /v1/workspaces/{workspace_id}/limits for the values that apply to a workspace.
- Create (
POST …/coderunners) is refused when the workspace already has as many Coderunners as the plan allows. Every Coderunner that isn't archived counts, in every environment, as do legacy Coderunner apps. - Deploy (
POST …/{id}/deploy) is checked one setting at a time:cpu,memory, and the highest ofminReplicas,maxReplicasandreplicas. Settings you leave out use the Coderunner's stored values. A value within the plan is allowed. A value above the plan is allowed only if it's no larger than the stored one, so a Coderunner set larger before the limits applied can redeploy at the same size or smaller. The cell's maximum still applies (422), even to a stored size: if the maximum was lowered below it, send a smallercpuormemory, or leave it out to deploy at the maximum. - Redeploys from a git push and promotions reuse the stored size and aren't refused for size.
A refusal is 409 with the header X-Groundfloor-Reason: plan_limit and a detail naming the plan and the limit, such as Your Free plan allows up to 0.5 vCPU per service. Contact us to change your plan. Check the header rather than the sentence. Nothing is created or deployed.
Persistent disk
A function or service Coderunner can have one persistent disk, mounted at /data in the container. It keeps files across restarts, redeploys and scaling to zero. See Persistent disk for how it behaves.
| Request | Body | Result |
|---|---|---|
| Create with a disk | POST …/coderunners with "persistent_disk": {"size_gb": 2} | The disk is created, empty, by the first deploy |
| Add or grow | PATCH …/coderunners/{id} with "persistent_disk": {"size_gb": 3} | Saved now; takes effect at the next deploy |
| Remove | PATCH …/coderunners/{id} with "persistent_disk": null, "confirm_delete_disk_data": true | The disk and its data are deleted at the next deploy. Needs the workspace delete permission as well as write (403 without it) |
| Leave unchanged | Omit persistent_disk |
size_gb is a whole number of GB (1 GB = 1024³ bytes) from 1 to 5. Nothing redeploys on its own: deploy the Coderunner to apply a change. DELETE …/coderunners/{id} on a Coderunner that has a disk, or has asked for one, deletes the disk and its data with it, and needs ?confirm_delete_disk_data=true (otherwise 409 disk_removal_requires_confirmation).
Deleting a version (DELETE …/{id}/versions/{version_id}) or a deployment (DELETE …/{id}/deployments/{deployment_id}) of a Coderunner that holds a disk (asked for, deployed, or being deployed) may delete the disk's data too. Both need the workspace delete permission (403 without it) and ?confirm_delete_disk_data=true (otherwise 409 disk_removal_requires_confirmation).
Adding, growing and removing a disk are recorded in the activity log as coderunner.disk_set and coderunner.disk_removed, and the deploy that deletes a disk as coderunner.disk_deleted.
Responses carry:
| Field | Notes |
|---|---|
persistent_disk | {"size_gb": 2, "mount_path": "/data"}, the disk the Coderunner asks for, or null |
persistent_disk_deployed_gb | Size of the disk that exists now, from the last deploy, or null when there is none. Differs from persistent_disk until the next deploy |
Refusals carry the reason in X-Groundfloor-Reason, with a sentence in detail:
| Status | X-Groundfloor-Reason | When |
|---|---|---|
422 | disk_not_supported_for_type | The Coderunner is a job or schedule |
422 | disk_size_out_of_range | size_gb isn't 1 to 5 |
409 | disk_shrink_not_allowed | size_gb is smaller than the current disk. To shrink, remove it and add a new one |
409 | disk_removal_requires_confirmation | persistent_disk: null without confirm_delete_disk_data: true, or deleting the Coderunner, a version or a deployment without ?confirm_delete_disk_data=true |
403 | Removing the disk, or deleting a version or deployment of a Coderunner with a disk, without the workspace delete permission | |
409 | disk_definition_exists | POST …/{id}/definition while a definition exists and a disk is deployed. Remove the disk and deploy, or delete the Coderunner |
422 | disk_requires_single_replica | A deploy asks for more than 1 instance while the Coderunner has a disk |
409 | plan_limit | Adding or growing would go over the organization's plan storage limit, shared with files. detail reads like "Your Free plan allows up to 1 GB of storage for files and persistent disks (0.5 GB in use). Contact us to change your plan." |
402 | free_usage_cap_reached | Adding or growing while a Free organization is paused because it used up its free usage. Removing is always allowed |
The disk is billed as storage (storage_gb_days) for its size over the time it exists, from the deploy that creates it until the deploy that removes it or the Coderunner is deleted, whether the Coderunner is running or stopped. While a deploy that adds or grows the disk is in progress, the larger size is billed until a deploy confirms it. Read the storage left with GET /v1/workspaces/{workspace_id}/limits.
Runners and executions
| Method | Path | Purpose | Permission |
|---|---|---|---|
GET | /v1/workspaces/{workspace_id}/runners | List deployments | read |
GET | …/runners/{runner_id} | Get runner | read |
POST | …/runners/{runner_id}/restart | Restart | write |
GET | /v1/workspaces/{workspace_id}/executions | List executions | read |
Related
- M2M API — attach a client (
PUT …/coderunners/{id}/m2m) thenPOST …/m2m/token - Apps API
- Process log API