{"openapi":"3.0.3","info":{"title":"Kube Workspaces API","description":"API for managing container-based workspaces in Kubernetes","version":"1.0.0"},"servers":[{"url":"http://localhost:8080"}],"paths":{"/healthz":{"get":{"tags":["health"],"summary":"check health","description":"Health check endpoint","operationId":"health#check","responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckResponseBody"},"example":{"status":"ok"}}}}}}},"/v1/executions":{"get":{"tags":["executions"],"summary":"list executions","description":"List execution records visible to the actor","operationId":"executions#list","parameters":[{"name":"namespace","in":"query","description":"Filter by namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Filter by namespace","example":"Omnis omnis distinctio temporibus."},"example":"Nam rerum."},{"name":"workspace_name","in":"query","description":"Filter by workspace name","allowEmptyValue":true,"schema":{"type":"string","description":"Filter by workspace name","example":"Quos totam voluptatem optio voluptates."},"example":"Molestias voluptatem quis explicabo."},{"name":"actor_id","in":"query","description":"Filter by actor","allowEmptyValue":true,"schema":{"type":"string","description":"Filter by actor","example":"Blanditiis omnis at."},"example":"Et dolor laboriosam libero qui."},{"name":"since","in":"query","description":"RFC3339 lower bound","allowEmptyValue":true,"schema":{"type":"string","description":"RFC3339 lower bound","example":"1984-02-25T03:57:10Z","format":"date-time"},"example":"1975-07-01T20:24:53Z"},{"name":"limit","in":"query","description":"Max results","allowEmptyValue":true,"schema":{"type":"integer","description":"Max results","default":100,"example":186,"format":"int64","minimum":1,"maximum":1000},"example":715}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExecutionRecord"},"example":[{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1971-07-21T13:28:58Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1998-10-31T06:36:27Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"},{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1971-07-21T13:28:58Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1998-10-31T06:36:27Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"},{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1971-07-21T13:28:58Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1998-10-31T06:36:27Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"}]},"example":[{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1971-07-21T13:28:58Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1998-10-31T06:36:27Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"},{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1971-07-21T13:28:58Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1998-10-31T06:36:27Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"},{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1971-07-21T13:28:58Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1998-10-31T06:36:27Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"},{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1971-07-21T13:28:58Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1998-10-31T06:36:27Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"}]}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Aspernatur harum corporis velit laboriosam repellat."},"example":"Quibusdam ea aut doloremque."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Sint aliquid aut in consequatur nihil excepturi."},"example":"Sit aperiam."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Et quia deleniti."},"example":"Omnis et."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Impedit earum ea autem."},"example":"Ea dolore cum ut cumque."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Magnam voluptatem error et mollitia laborum."},"example":"Minima rerum eligendi."}}}}}},"/v1/executions/start":{"post":{"tags":["executions"],"summary":"start executions","description":"Execute one bounded root (Linux) or SYSTEM (Windows) command or script in an eligible running agent-equipped VM and return its recorded outcome synchronously","operationId":"executions#start","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartRequestBody"},"example":{"args":["Officiis nostrum corrupti ut.","Repudiandae perferendis consequatur veritatis nemo esse.","Quo fugit consequatur non ipsa placeat reiciendis."],"cwd":"C:\\Temp","deadline_seconds":6,"executable":"C:\\Windows\\System32\\cmd.exe","namespace":"team-a","script":{"body":"k","cwd":"o9m","name":"21o"},"workspace_name":"vm-1"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionCommand"},"example":{"admission_time":"2026-10-17T00:00:00Z","denial":"transport lost; do not rerun","durability":"none","duration_ms":120,"execution_id":"exec_9f82","exit_code":0,"mode":"ephemeral","namespace":"team-a","outcome":"succeeded","recording_id":"rec_9f82","state":"succeeded","stderr":"UXVpIG1vbGVzdGlhZSBxdWkgZXN0Lg==","stdout":"RXQgZG9sb3JlcyBjdWxwYSBlc3Qu","truncated":false,"workspace_name":"vm-1","workspace_uid":"abc123"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Rerum dolorem est id ea sunt."},"example":"Mollitia voluptatem ratione."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Nobis tenetur consequuntur alias eius."},"example":"Voluptate est illum adipisci quisquam sint."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Tempore quasi quam quis odit nobis."},"example":"Voluptas aliquam illo nam eos excepturi."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Ipsa nobis a velit maiores facilis."},"example":"Id velit voluptatum a."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Labore molestiae aut quia illum consequatur."},"example":"Temporibus praesentium sit illo facilis nesciunt voluptas."}}}}}},"/v1/executions/status":{"get":{"tags":["executions"],"summary":"status executions","description":"Get execution management status (policy + storage readiness)","operationId":"executions#status","responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionStatus"},"example":{"allow_elevated":false,"durable":false,"enabled":false,"issuer_ready":false,"storage_available":false,"storage_mode":"disabled"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Temporibus vero voluptatibus."},"example":"Architecto voluptas."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Dolore et ut."},"example":"Quod quis culpa nobis ipsam et."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Rerum unde."},"example":"Ut iusto magni aut."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Aspernatur pariatur laborum."},"example":"Quis recusandae ipsum."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Dolor vel veniam dolor saepe."},"example":"Vel ad nesciunt eligendi vitae tenetur est."}}}}}},"/v1/executions/{execution_id}":{"get":{"tags":["executions"],"summary":"get executions","description":"Get an execution record and its last known outcome","operationId":"executions#get","parameters":[{"name":"execution_id","in":"path","description":"Execution identifier","required":true,"schema":{"type":"string","description":"Execution identifier","example":"exec_9f82"},"example":"exec_9f82"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionRecord"},"example":{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"1976-07-12T12:44:06Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"1983-10-24T15:01:06Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Voluptatum adipisci."},"example":"Nobis soluta."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Repellendus sed ut."},"example":"Quos voluptatem nemo voluptatem."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Facilis sit consequatur dolores laborum commodi sapiente."},"example":"Consequatur vel."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Pariatur praesentium nemo cumque possimus."},"example":"Rem commodi magnam et."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Deserunt molestiae quia."},"example":"Est quod aliquid."}}}}}},"/v1/executions/{execution_id}/recording":{"get":{"tags":["executions"],"summary":"manifest executions","description":"Verify recording integrity and audit protected playback access","operationId":"executions#manifest","parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","example":"Eius architecto aperiam necessitatibus recusandae."},"example":"Culpa quia nemo."}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionRecordingManifest"},"example":{"chunks":6588500273510265547,"plaintext_bytes":7977233161665104523,"recording_id":"Et sit sunt magni quisquam sunt.","verified":true}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Dolorum modi et voluptas cupiditate quis."},"example":"Deleniti sit velit minus aut a."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Ipsa vitae esse velit."},"example":"Hic unde omnis aut consequatur."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Ducimus et sed distinctio."},"example":"Maxime iste."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Fugit voluptatum perferendis fuga est aut delectus."},"example":"Repellat rerum."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Aut aut repellat ex id at cum."},"example":"Necessitatibus officia temporibus."}}}}}},"/v1/executions/{execution_id}/recording/chunks/{index}":{"get":{"tags":["executions"],"summary":"chunk executions","description":"Read a verified recording chunk with fresh scoped recording-read permission","operationId":"executions#chunk","parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","example":"Laborum consequatur doloremque error."},"example":"Aut deleniti non non."},{"name":"index","in":"path","required":true,"schema":{"type":"integer","example":4048711698760286348,"format":"int64"},"example":13976922730900252819}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecutionRecordingChunk"},"example":{"data":"UmVydW0gZGlzdGluY3RpbyB2ZXJvLg==","index":0}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Quis adipisci odio maxime."},"example":"Et molestiae quis in."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Aperiam in culpa."},"example":"Consequatur dignissimos vitae possimus."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Quam alias quae."},"example":"Placeat debitis quaerat."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Exercitationem dignissimos."},"example":"Corporis ut ad itaque adipisci."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Voluptas iste sit reprehenderit."},"example":"Quia qui."}}}}}},"/v1/images":{"get":{"tags":["images"],"summary":"list images","description":"List available workspace images","operationId":"images#list","responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Image"},"example":[{"category":"IDE","cr_name":"code-server","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Aliquam harum nulla.","Quidem dicta neque quia in.","Laboriosam quod eum minima quo ratione.","Quia in dolores suscipit non aut ut."],"default_container_init":{"default_user":"r","mode":"injected","run_as_user":"qov"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Sequi totam ratione ut minus dolorum.","memory_request":"Facilis velit fugit odit modi repudiandae.","name":"Code Server (VS Code)","persistent_root_disk":true,"persistent_root_disk_size":"Id reiciendis tenetur consectetur consequatur.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_repository":"Nam id.","source_repository_commit":"Quo enim repellendus repellat odio odit.","source_repository_path":"Quia voluptas rerum consequatur.","source_repository_ref":"Adipisci minus est itaque ut doloremque.","source_repository_url":"Dolores non.","source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"Natus ut a enim.","workspace_types":["container"]},{"category":"IDE","cr_name":"code-server","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Aliquam harum nulla.","Quidem dicta neque quia in.","Laboriosam quod eum minima quo ratione.","Quia in dolores suscipit non aut ut."],"default_container_init":{"default_user":"r","mode":"injected","run_as_user":"qov"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Sequi totam ratione ut minus dolorum.","memory_request":"Facilis velit fugit odit modi repudiandae.","name":"Code Server (VS Code)","persistent_root_disk":true,"persistent_root_disk_size":"Id reiciendis tenetur consectetur consequatur.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_repository":"Nam id.","source_repository_commit":"Quo enim repellendus repellat odio odit.","source_repository_path":"Quia voluptas rerum consequatur.","source_repository_ref":"Adipisci minus est itaque ut doloremque.","source_repository_url":"Dolores non.","source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"Natus ut a enim.","workspace_types":["container"]}]},"example":[{"category":"IDE","cr_name":"code-server","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Aliquam harum nulla.","Quidem dicta neque quia in.","Laboriosam quod eum minima quo ratione.","Quia in dolores suscipit non aut ut."],"default_container_init":{"default_user":"r","mode":"injected","run_as_user":"qov"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Sequi totam ratione ut minus dolorum.","memory_request":"Facilis velit fugit odit modi repudiandae.","name":"Code Server (VS Code)","persistent_root_disk":true,"persistent_root_disk_size":"Id reiciendis tenetur consectetur consequatur.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_repository":"Nam id.","source_repository_commit":"Quo enim repellendus repellat odio odit.","source_repository_path":"Quia voluptas rerum consequatur.","source_repository_ref":"Adipisci minus est itaque ut doloremque.","source_repository_url":"Dolores non.","source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"Natus ut a enim.","workspace_types":["container"]},{"category":"IDE","cr_name":"code-server","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Aliquam harum nulla.","Quidem dicta neque quia in.","Laboriosam quod eum minima quo ratione.","Quia in dolores suscipit non aut ut."],"default_container_init":{"default_user":"r","mode":"injected","run_as_user":"qov"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Sequi totam ratione ut minus dolorum.","memory_request":"Facilis velit fugit odit modi repudiandae.","name":"Code Server (VS Code)","persistent_root_disk":true,"persistent_root_disk_size":"Id reiciendis tenetur consectetur consequatur.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_repository":"Nam id.","source_repository_commit":"Quo enim repellendus repellat odio odit.","source_repository_path":"Quia voluptas rerum consequatur.","source_repository_ref":"Adipisci minus est itaque ut doloremque.","source_repository_url":"Dolores non.","source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"Natus ut a enim.","workspace_types":["container"]},{"category":"IDE","cr_name":"code-server","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Aliquam harum nulla.","Quidem dicta neque quia in.","Laboriosam quod eum minima quo ratione.","Quia in dolores suscipit non aut ut."],"default_container_init":{"default_user":"r","mode":"injected","run_as_user":"qov"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Sequi totam ratione ut minus dolorum.","memory_request":"Facilis velit fugit odit modi repudiandae.","name":"Code Server (VS Code)","persistent_root_disk":true,"persistent_root_disk_size":"Id reiciendis tenetur consectetur consequatur.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_repository":"Nam id.","source_repository_commit":"Quo enim repellendus repellat odio odit.","source_repository_path":"Quia voluptas rerum consequatur.","source_repository_ref":"Adipisci minus est itaque ut doloremque.","source_repository_url":"Dolores non.","source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"Natus ut a enim.","workspace_types":["container"]}]}}}}},"post":{"tags":["images"],"summary":"create images","description":"Create a new image","operationId":"images#create","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateImagePayload"},"example":{"category":"IDE","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Fuga harum.","Sint soluta et.","Quibusdam voluptatem optio quas voluptatibus."],"default_container_init":{"default_user":"p","mode":"injected","run_as_user":"xy_m"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Aspernatur incidunt veniam nemo.","memory_request":"Dolor cumque dicta rerum sunt.","name":"Code Server (VS Code)","persistent_root_disk":true,"persistent_root_disk_size":"Voluptate autem omnis aliquid.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":true,"needs_noop_sw":false,"preserve_path_prefix":false,"rewrite_host_absolute_paths":true,"tls_insecure":false,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"windows11-amd64-v1","workspace_types":["container"]}}}},"responses":{"201":{"description":"Created response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Image"},"example":{"category":"IDE","cr_name":"code-server","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Aut unde quia explicabo numquam qui quae.","Tempore aliquid fugit dicta rerum nisi voluptatum.","Doloremque qui possimus reprehenderit aliquid est adipisci."],"default_container_init":{"default_user":"j","mode":"baked-in","run_as_user":"t"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Vero accusantium et quo aliquid neque.","memory_request":"Et sit.","name":"Code Server (VS Code)","persistent_root_disk":false,"persistent_root_disk_size":"Et expedita optio voluptas voluptatem.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":true,"preserve_path_prefix":true,"rewrite_host_absolute_paths":false,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"source_repository":"Velit quis fugiat minima quo eaque.","source_repository_commit":"Et modi optio rerum.","source_repository_path":"Labore et corporis.","source_repository_ref":"Odio voluptate nulla ipsam.","source_repository_url":"Cupiditate eaque natus facere deserunt incidunt placeat.","source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"Et consequuntur doloribus commodi quo labore.","workspace_types":["container"]}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"default_port must be between 1 and 65535"},"example":"default_port must be between 1 and 65535"}}},"409":{"description":"already_exists: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"image \"code-server\" already exists"},"example":"image \"code-server\" already exists"}}}}}},"/v1/namespaces":{"get":{"tags":["namespaces"],"summary":"list namespaces","description":"List available namespaces","operationId":"namespaces#list","responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Namespace"},"example":[{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"},{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"},{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"},{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"}]},"example":[{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"},{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"},{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"}]}}}}}},"/v1/sshkeys":{"get":{"tags":["sshkeys"],"summary":"list sshkeys","description":"List the user's SSH public keys","operationId":"sshkeys#list","parameters":[{"name":"namespace","in":"query","description":"Filter by namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Filter by namespace","example":"chris-at-fordham-id-au"},"example":"chris-at-fordham-id-au"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Sshkey"},"example":[{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"},{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"}]},"example":[{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"},{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"},{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"},{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"}]}}}}},"post":{"tags":["sshkeys"],"summary":"create sshkeys","description":"Store a new SSH public key","operationId":"sshkeys#create","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSSHKeyPayload"},"example":{"key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-ed25519 AAAA... user@host"}}}},"responses":{"201":{"description":"Created response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sshkey"},"example":{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"public_key must be a valid SSH public key"},"example":"public_key must be a valid SSH public key"}}},"409":{"description":"already_exists: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"ssh key \"laptop-2025\" already exists"},"example":"ssh key \"laptop-2025\" already exists"}}}}}},"/v1/sshkeys/{name}":{"delete":{"tags":["sshkeys"],"summary":"delete sshkeys","description":"Delete an SSH public key","operationId":"sshkeys#delete","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","example":"chris-at-fordham-id-au"},"example":"chris-at-fordham-id-au"},{"name":"name","in":"path","description":"SSH key name","required":true,"schema":{"type":"string","description":"SSH key name","example":"laptop-2025"},"example":"laptop-2025"}],"responses":{"204":{"description":"No Content response."},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"ssh key \"laptop-2025\" not found"},"example":"ssh key \"laptop-2025\" not found"}}}}},"get":{"tags":["sshkeys"],"summary":"get sshkeys","description":"Get an SSH public key by name","operationId":"sshkeys#get","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","example":"chris-at-fordham-id-au"},"example":"chris-at-fordham-id-au"},{"name":"name","in":"path","description":"SSH key name","required":true,"schema":{"type":"string","description":"SSH key name","example":"laptop-2025"},"example":"laptop-2025"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sshkey"},"example":{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"}}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"ssh key \"laptop-2025\" not found"},"example":"ssh key \"laptop-2025\" not found"}}}}}},"/v1/vm-gpu-profiles":{"get":{"tags":["workspaces"],"summary":"gpu_profiles workspaces","description":"List validated operator-declared Windows VM GPU profiles; device availability is determined by scheduling","operationId":"workspaces#gpu_profiles","responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VMGPUProfile"},"example":[{"count":1502724297522503364,"display_name":"Sit inventore et molestias quasi.","experimental":true,"guest_driver_version":"Rerum non illum tenetur omnis qui iste.","id":"Aliquid dignissimos voluptatem qui earum iure.","kind":"mediated","node_selector":{"Eligendi veniam.":"Et fugiat velit quia accusantium consequatur.","Occaecati fugit consequatur.":"Dolor accusantium placeat iusto reprehenderit sit."},"resource_name":"Ut optio amet quibusdam rerum eaque praesentium."},{"count":1502724297522503364,"display_name":"Sit inventore et molestias quasi.","experimental":true,"guest_driver_version":"Rerum non illum tenetur omnis qui iste.","id":"Aliquid dignissimos voluptatem qui earum iure.","kind":"mediated","node_selector":{"Eligendi veniam.":"Et fugiat velit quia accusantium consequatur.","Occaecati fugit consequatur.":"Dolor accusantium placeat iusto reprehenderit sit."},"resource_name":"Ut optio amet quibusdam rerum eaque praesentium."},{"count":1502724297522503364,"display_name":"Sit inventore et molestias quasi.","experimental":true,"guest_driver_version":"Rerum non illum tenetur omnis qui iste.","id":"Aliquid dignissimos voluptatem qui earum iure.","kind":"mediated","node_selector":{"Eligendi veniam.":"Et fugiat velit quia accusantium consequatur.","Occaecati fugit consequatur.":"Dolor accusantium placeat iusto reprehenderit sit."},"resource_name":"Ut optio amet quibusdam rerum eaque praesentium."},{"count":1502724297522503364,"display_name":"Sit inventore et molestias quasi.","experimental":true,"guest_driver_version":"Rerum non illum tenetur omnis qui iste.","id":"Aliquid dignissimos voluptatem qui earum iure.","kind":"mediated","node_selector":{"Eligendi veniam.":"Et fugiat velit quia accusantium consequatur.","Occaecati fugit consequatur.":"Dolor accusantium placeat iusto reprehenderit sit."},"resource_name":"Ut optio amet quibusdam rerum eaque praesentium."}]},"example":[{"count":1502724297522503364,"display_name":"Sit inventore et molestias quasi.","experimental":true,"guest_driver_version":"Rerum non illum tenetur omnis qui iste.","id":"Aliquid dignissimos voluptatem qui earum iure.","kind":"mediated","node_selector":{"Eligendi veniam.":"Et fugiat velit quia accusantium consequatur.","Occaecati fugit consequatur.":"Dolor accusantium placeat iusto reprehenderit sit."},"resource_name":"Ut optio amet quibusdam rerum eaque praesentium."},{"count":1502724297522503364,"display_name":"Sit inventore et molestias quasi.","experimental":true,"guest_driver_version":"Rerum non illum tenetur omnis qui iste.","id":"Aliquid dignissimos voluptatem qui earum iure.","kind":"mediated","node_selector":{"Eligendi veniam.":"Et fugiat velit quia accusantium consequatur.","Occaecati fugit consequatur.":"Dolor accusantium placeat iusto reprehenderit sit."},"resource_name":"Ut optio amet quibusdam rerum eaque praesentium."}]}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Architecto velit aut quaerat."},"example":"Et inventore temporibus."}}}}}},"/v1/volumes":{"get":{"tags":["volumes"],"summary":"list volumes","description":"List all volumes","operationId":"volumes#list","parameters":[{"name":"namespace","in":"query","description":"Filter by namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Filter by namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Volume"},"example":[{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"vm-disk"},{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"vm-disk"},{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"vm-disk"}]},"example":[{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"vm-disk"},{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"vm-disk"}]}}}}},"post":{"tags":["volumes"],"summary":"create volumes","description":"Create a new volume (PVC)","operationId":"volumes#create","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVolumePayload"},"example":{"access_mode":"ReadWriteOnce","name":"my-data","namespace":"workspaces","size":"10Gi","storage_class":"standard","type":"vm-disk"}}}},"responses":{"201":{"description":"Created response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Volume"},"example":{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"pvc"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"size must be a valid resource quantity"},"example":"size must be a valid resource quantity"}}},"409":{"description":"already_exists: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"volume \"my-workspace-data\" already exists"},"example":"volume \"my-workspace-data\" already exists"}}}}}},"/v1/volumes/{name}":{"delete":{"tags":["volumes"],"summary":"delete volumes","description":"Delete a volume","operationId":"volumes#delete","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Volume name","required":true,"schema":{"type":"string","description":"Volume name","example":"my-workspace-data"},"example":"my-workspace-data"}],"responses":{"204":{"description":"No Content response."},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"volume \"my-workspace-data\" not found"},"example":"volume \"my-workspace-data\" not found"}}}}},"get":{"tags":["volumes"],"summary":"get volumes","description":"Get a volume by name","operationId":"volumes#get","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Volume name","required":true,"schema":{"type":"string","description":"Volume name","example":"my-workspace-data"},"example":"my-workspace-data"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Volume"},"example":{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"pvc"}}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"volume \"my-workspace-data\" not found"},"example":"volume \"my-workspace-data\" not found"}}}}}},"/v1/workspaces":{"get":{"tags":["workspaces"],"summary":"list workspaces","description":"List all workspaces","operationId":"workspaces#list","parameters":[{"name":"namespace","in":"query","description":"Filter by namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Filter by namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Workspace"},"example":[{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}]},"example":[{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Facilis eveniet quo tempore hic voluptates harum.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}]}}}}},"post":{"tags":["workspaces"],"summary":"create workspaces","description":"Create a new workspace","operationId":"workspaces#create","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspacePayload"},"example":{"container":{"args":["Nemo mollitia perferendis at aliquam est officiis.","Aut voluptas accusamus corrupti unde non.","Animi voluptatibus veniam dolorem.","Molestiae nisi molestias."],"command":["Animi praesentium.","Exercitationem voluptas nesciunt atque id.","Tempore quas officia blanditiis quam sequi omnis.","Voluptatem quis necessitatibus rerum."],"cpu_limit":"2","cpu_request":"500m","gpu_request":"1","gpu_vendor":"nvidia.com/gpu","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"code-server","port":8080},"container_init":{"default_user":"x","mode":"baked-in","run_as_user":"jp","user_data":"4t3","user_data_secret":"vp4"},"env":[{"name":"PASSWORD","value":"changeme"}],"image_pull_policy":"Always","name":"my-workspace","namespace":"workspaces","node_selector":{"nvidia.com/gpu":"true"},"shared_memory":true,"tolerations":[{"effect":"NoSchedule","key":"nvidia.com/gpu","operator":"Equal","value":"true"}],"type":"container","vm_options":{"gpu_profile":"r1w","import_cert_config_map_name":"Et quis quis voluptatem.","import_secret_name":"Itaque perspiciatis qui non.","root_disk_size":"Rerum sunt odit tempore.","storage_class_name":"Repellendus eum quia velit eaque itaque."},"volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"responses":{"201":{"description":"Created response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"},"example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":false,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"stopped":false,"type":"container","vm_gpu_profile":{"count":947154413370386596,"display_name":"Aut autem perspiciatis qui molestiae.","experimental":false,"guest_driver_version":"Dolorum quia sit.","id":"Aut culpa ut.","kind":"mediated","node_selector":{"Et illo voluptas.":"Eos autem quaerat repellendus quia.","Ipsa voluptatem eligendi eos quod.":"Nam nobis dolorem neque animi."},"resource_name":"Consequatur provident velit animi."},"vm_profile":"Fugiat in.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"container.image must be a valid container image"},"example":"container.image must be a valid container image"}}},"409":{"description":"already_exists: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" already exists"},"example":"workspace \"my-workspace\" already exists"}}}}}},"/v1/workspaces/{name}":{"delete":{"tags":["workspaces"],"summary":"delete workspaces","description":"Delete a workspace","operationId":"workspaces#delete","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"204":{"description":"No Content response."},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}},"get":{"tags":["workspaces"],"summary":"get workspaces","description":"Get a workspace by name","operationId":"workspaces#get","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"},"example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":false,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"stopped":false,"type":"container","vm_gpu_profile":{"count":947154413370386596,"display_name":"Aut autem perspiciatis qui molestiae.","experimental":false,"guest_driver_version":"Dolorum quia sit.","id":"Aut culpa ut.","kind":"mediated","node_selector":{"Et illo voluptas.":"Eos autem quaerat repellendus quia.","Ipsa voluptatem eligendi eos quod.":"Nam nobis dolorem neque animi."},"resource_name":"Consequatur provident velit animi."},"vm_profile":"Velit rem exercitationem.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/agent-upgrades":{"post":{"tags":["agentupgrades"],"summary":"start agentupgrades","description":"Admit a single explicit upgrade; returns 202 with the durable attempt identity","operationId":"agentupgrades#start","parameters":[{"name":"namespace","in":"query","allowEmptyValue":true,"required":true,"schema":{"type":"string","default":"workspaces","example":"team-a","pattern":"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$","maxLength":63},"example":"team-a"},{"name":"name","in":"path","required":true,"schema":{"type":"string","example":"vm-1","pattern":"^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$","maxLength":253},"example":"vm-1"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpgradeStartPayload2"},"example":{"allow_reboot":false,"expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","expected_revocation_epoch":4,"expected_vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","idempotency_key":"run-2026-10-19-001","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpgradeAttempt"},"example":{"actor_id":"user-uid-1","admitted_at":"2026-10-19T00:00:00Z","allow_reboot":false,"attempt_id":"upg_9f82c1a0b3d4e5f60718293a","awaiting_reboot_at":"1984-09-29T01:55:28Z","cancel_requested":false,"error_code":"","execution_id":"exec_9f82","expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","installing_at":"1976-11-10T08:25:51Z","journal_sequence":0,"namespace":"team-a","predecessor_manifest_sha256":"c4debafeb724848fe796b00dc4a65a7e1bcb10ed06e4eadd21481527a2755f28","predecessor_target_id":"windows11-amd64-v1","prepared_at":"1993-07-16T06:34:21Z","recording_id":"rec_9f82","recording_url":"/v1/executions/exec_9f82/recording","rollback_requested_at":"1982-11-14T20:27:45Z","rolling_back_at":"1971-12-13T03:18:51Z","staging_at":"1982-07-07T09:30:51Z","state":"admitted","status_url":"/v1/workspaces/vm-1/agent-upgrades/upg_9f82c1a0b3d4e5f60718293a?namespace=team-a","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","terminal_at":"2000-02-16T18:55:54Z","updated_at":"1995-01-10T08:20:33Z","verifying_at":"1980-04-13T23:56:52Z","vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","workspace_name":"vm-1","workspace_uid":"abc123"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Fugit ipsa ipsam repudiandae eos vel."},"example":"Dolore quia."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Occaecati ipsam et."},"example":"Consequuntur debitis eos aut."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Aut fuga doloremque quod."},"example":"Consequatur sed ipsum aut vitae."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Esse eaque officia."},"example":"Voluptatem repellat sunt."}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"Eum assumenda placeat sunt earum voluptas."},"example":"Porro nulla aut temporibus laboriosam ut."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Quia molestiae."},"example":"Voluptate molestiae quam et nobis nulla."}}}}}},"/v1/workspaces/{name}/agent-upgrades/availability":{"get":{"tags":["agentupgrades"],"summary":"availability agentupgrades","description":"Fresh availability for one workspace; administrative access required","operationId":"agentupgrades#availability","parameters":[{"name":"namespace","in":"query","allowEmptyValue":true,"schema":{"type":"string","default":"workspaces","example":"Et molestiae et sed."},"example":"Non harum."},{"name":"name","in":"path","required":true,"schema":{"type":"string","example":"Eum et dignissimos sed."},"example":"Quis pariatur repellendus hic iusto in."}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpgradeAvailability"},"example":{"active_attempt_id":"upg_9f82c1a0b3d4e5f60718293a","admissible":false,"deny_reason":"policy_disabled","inventory_available":false,"policy_enabled":false,"storage_available":false,"vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","workspace_eligible":false}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Rem voluptatum odio ratione omnis distinctio."},"example":"Velit blanditiis similique."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Vel necessitatibus maiores similique."},"example":"Expedita qui pariatur omnis porro iusto."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Magni exercitationem commodi earum natus."},"example":"Explicabo quasi doloribus consequatur quia eum consequatur."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Similique est earum veritatis et est culpa."},"example":"Et qui id."}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"Totam quod quidem eius omnis voluptatibus eos."},"example":"Omnis quia."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Et animi corporis."},"example":"Dolores quaerat nostrum."}}}}}},"/v1/workspaces/{name}/agent-upgrades/{attempt_id}":{"get":{"tags":["agentupgrades"],"summary":"status agentupgrades","description":"Protected attempt metadata/progress/outcome and independently authorized recording links","operationId":"agentupgrades#status","parameters":[{"name":"namespace","in":"query","allowEmptyValue":true,"schema":{"type":"string","default":"workspaces","example":"Voluptas sit dolore maxime."},"example":"Beatae dolorem consectetur explicabo eum quia."},{"name":"name","in":"path","required":true,"schema":{"type":"string","example":"Exercitationem sed."},"example":"Tempora expedita."},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","example":"upg_5737484ff28e58759a640936","pattern":"^upg_[0-9a-f]{24}$"},"example":"upg_a3f20d447450cd796e661df2"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpgradeAttempt"},"example":{"actor_id":"user-uid-1","admitted_at":"2026-10-19T00:00:00Z","allow_reboot":false,"attempt_id":"upg_9f82c1a0b3d4e5f60718293a","awaiting_reboot_at":"1978-08-15T08:32:27Z","cancel_requested":false,"error_code":"","execution_id":"exec_9f82","expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","installing_at":"1976-12-17T11:32:31Z","journal_sequence":0,"namespace":"team-a","predecessor_manifest_sha256":"a9f5f70f3fb581883002287feb2432e1c8534595d70dcdb239b85d2de33138df","predecessor_target_id":"windows11-amd64-v1","prepared_at":"2002-06-18T10:19:02Z","recording_id":"rec_9f82","recording_url":"/v1/executions/exec_9f82/recording","rollback_requested_at":"2013-08-06T17:17:51Z","rolling_back_at":"1981-02-20T05:08:38Z","staging_at":"2005-03-31T02:47:39Z","state":"admitted","status_url":"/v1/workspaces/vm-1/agent-upgrades/upg_9f82c1a0b3d4e5f60718293a?namespace=team-a","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","terminal_at":"1982-09-12T04:25:22Z","updated_at":"2004-02-24T19:54:45Z","verifying_at":"1987-06-04T20:35:56Z","vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","workspace_name":"vm-1","workspace_uid":"abc123"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Rerum neque quam rerum et harum laudantium."},"example":"Qui laboriosam aliquam tempora rerum est."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Dolorem vel facilis pariatur."},"example":"Odio aliquam."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Eaque sunt."},"example":"Voluptatum harum voluptatum minus."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Impedit voluptas quidem culpa dolores repellendus."},"example":"Repellendus aliquam dicta molestiae et."}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"Aut vel iure inventore."},"example":"Sed eaque rerum rerum quis."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Fuga voluptas eum expedita dolorem tenetur provident."},"example":"Dignissimos dolor ut quod perspiciatis."}}}}}},"/v1/workspaces/{name}/agent-upgrades/{attempt_id}/cancel":{"post":{"tags":["agentupgrades"],"summary":"cancel agentupgrades","description":"Request safe cancellation; never promises to kill an active MSI transaction","operationId":"agentupgrades#cancel","parameters":[{"name":"namespace","in":"query","allowEmptyValue":true,"schema":{"type":"string","default":"workspaces","example":"Voluptas sed dolores quis."},"example":"Nesciunt sequi porro explicabo illum est doloremque."},{"name":"name","in":"path","required":true,"schema":{"type":"string","example":"Corporis non."},"example":"Omnis nihil quae."},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","example":"upg_7f350a3a6ac34b106f8f7113","pattern":"^upg_[0-9a-f]{24}$"},"example":"upg_d12db9230c7d7f434e92e51b"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpgradeAttempt"},"example":{"actor_id":"user-uid-1","admitted_at":"2026-10-19T00:00:00Z","allow_reboot":false,"attempt_id":"upg_9f82c1a0b3d4e5f60718293a","awaiting_reboot_at":"1971-07-14T05:03:34Z","cancel_requested":false,"error_code":"","execution_id":"exec_9f82","expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","installing_at":"1972-02-09T08:35:36Z","journal_sequence":0,"namespace":"team-a","predecessor_manifest_sha256":"d8469c6d5c149d7bbd016bbaa792d6d59407cc813f80160f7cb452c814442635","predecessor_target_id":"windows11-amd64-v1","prepared_at":"2011-04-21T21:12:40Z","recording_id":"rec_9f82","recording_url":"/v1/executions/exec_9f82/recording","rollback_requested_at":"2005-07-13T10:59:01Z","rolling_back_at":"1989-02-26T12:54:20Z","staging_at":"1972-11-23T13:18:03Z","state":"admitted","status_url":"/v1/workspaces/vm-1/agent-upgrades/upg_9f82c1a0b3d4e5f60718293a?namespace=team-a","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","terminal_at":"1975-10-28T10:14:19Z","updated_at":"2001-01-11T15:56:08Z","verifying_at":"2003-04-30T11:11:43Z","vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","workspace_name":"vm-1","workspace_uid":"abc123"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Ut est atque est consequatur."},"example":"Porro quam consequuntur architecto."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Fuga nulla quo praesentium dicta."},"example":"Illo deserunt est aspernatur."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Sint quia aut ullam quo."},"example":"Tempore quod id non laudantium."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Nostrum labore eum."},"example":"Ratione facere eum debitis eius."}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"In nisi tempore repudiandae."},"example":"Molestiae voluptatum nam et et velit."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Autem sunt."},"example":"Qui ut sit perferendis."}}}}}},"/v1/workspaces/{name}/agent-upgrades/{attempt_id}/rollback":{"post":{"tags":["agentupgrades"],"summary":"rollback agentupgrades","description":"Admit a separate, explicit rollback to that attempt's pinned previous payload","operationId":"agentupgrades#rollback","parameters":[{"name":"namespace","in":"query","allowEmptyValue":true,"schema":{"type":"string","default":"workspaces","example":"Magni non."},"example":"Corporis dolorem cupiditate et praesentium ut est."},{"name":"name","in":"path","required":true,"schema":{"type":"string","example":"Consequatur porro qui."},"example":"Beatae facere commodi tempora ex illum rerum."},{"name":"attempt_id","in":"path","required":true,"schema":{"type":"string","example":"upg_15e4be09807ce5f14f36843b","pattern":"^upg_[0-9a-f]{24}$"},"example":"upg_04b6704600565899223e3f28"}],"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpgradeAttempt"},"example":{"actor_id":"user-uid-1","admitted_at":"2026-10-19T00:00:00Z","allow_reboot":false,"attempt_id":"upg_9f82c1a0b3d4e5f60718293a","awaiting_reboot_at":"1975-01-19T14:33:16Z","cancel_requested":false,"error_code":"","execution_id":"exec_9f82","expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","installing_at":"1975-04-17T08:18:02Z","journal_sequence":0,"namespace":"team-a","predecessor_manifest_sha256":"258decf8ce774f41b550815da8c2c8c619ec8b108b4dd5a86d64340cc0348865","predecessor_target_id":"windows11-amd64-v1","prepared_at":"1997-09-09T07:50:35Z","recording_id":"rec_9f82","recording_url":"/v1/executions/exec_9f82/recording","rollback_requested_at":"1990-09-10T02:02:14Z","rolling_back_at":"1995-04-07T20:04:07Z","staging_at":"2000-04-17T12:35:45Z","state":"admitted","status_url":"/v1/workspaces/vm-1/agent-upgrades/upg_9f82c1a0b3d4e5f60718293a?namespace=team-a","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","terminal_at":"2013-03-15T17:40:23Z","updated_at":"1982-05-10T23:03:04Z","verifying_at":"2000-04-13T08:19:43Z","vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","workspace_name":"vm-1","workspace_uid":"abc123"}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Eius illum."},"example":"Ab optio aut architecto eligendi fugiat."}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"Ea ex officia."},"example":"Ut quas sit fugiat."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Quo et quia ad quia."},"example":"Eaque ut."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Dolorum ipsum."},"example":"Aut quasi voluptates."}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"Ullam recusandae et et."},"example":"Atque deserunt."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Sed voluptatem et quam."},"example":"Est nostrum vitae fuga."}}}}}},"/v1/workspaces/{name}/agent/attach":{"post":{"tags":["agent"],"summary":"attach agent","description":"Attach a controller to a workspace's guest agent session, minting a short-lived ticket","operationId":"agent#attach","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAttachPayload2"},"example":{"participant":"chris-laptop"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTicket"},"example":{"id":"8ec18121f4c2409aa7c025487f4e310c","protocol":1,"ticket":"8ec18121f4c2409aa7c025487f4e310c.eyJ3b3Jrc3BhY2VVaWQiOiJ3cy0xIn0.c2ln","ttl_ms":60000}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"agent sessions are only available for VM workspaces"},"example":"agent sessions are only available for VM workspaces"}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/agent/release":{"post":{"tags":["agent"],"summary":"release agent","description":"Release a workspace guest agent session by its server-side id (best-effort; unknown ids report ok)","operationId":"agent#release","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"},{"name":"X-KW-Agent-Session","in":"header","description":"Server-side session identifier from attach","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Server-side session identifier from attach","example":"8ec18121f4c2409aa7c025487f4e310c"},"example":"8ec18121f4c2409aa7c025487f4e310c"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRelease"},"example":{"ok":true}}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/agent/renew":{"post":{"tags":["agent"],"summary":"renew agent","description":"Renew a workspace guest agent session by its server-side id (X-KW-Agent-Session header)","operationId":"agent#renew","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"},{"name":"X-KW-Agent-Session","in":"header","description":"Server-side session identifier from attach","allowEmptyValue":true,"required":true,"schema":{"type":"string","description":"Server-side session identifier from attach","example":"8ec18121f4c2409aa7c025487f4e310c"},"example":"8ec18121f4c2409aa7c025487f4e310c"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRenew"},"example":{"protocol":1,"ttl_ms":60000}}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"agent session for workspace \"my-workspace\" not found"},"example":"agent session for workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/agent/status":{"get":{"tags":["agent"],"summary":"status agent","description":"Report live agent session state for a workspace","operationId":"agent#status","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStatus"},"example":{"active":true,"protocol":1,"sessions":1}}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/clone":{"post":{"tags":["workspaces"],"summary":"clone workspaces","description":"Clone an existing workspace under a new name, copying its spec and volume mounts","operationId":"workspaces#clone","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Source workspace name","required":true,"schema":{"type":"string","description":"Source workspace name","example":"my-workspace"},"example":"my-workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneRequestBody"},"example":{"cpu_limit":"1","cpu_request":"500m","image":"codercom/code-server:4.96.2","memory_limit":"2Gi","memory_request":"512Mi","new_name":"my-workspace-clone","port":8080}}}},"responses":{"201":{"description":"Created response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"},"example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"SYSTEM","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"stopped":false,"type":"container","vm_gpu_profile":{"count":947154413370386596,"display_name":"Aut autem perspiciatis qui molestiae.","experimental":false,"guest_driver_version":"Dolorum quia sit.","id":"Aut culpa ut.","kind":"mediated","node_selector":{"Et illo voluptas.":"Eos autem quaerat repellendus quia.","Ipsa voluptatem eligendi eos quod.":"Nam nobis dolorem neque animi."},"resource_name":"Consequatur provident velit animi."},"vm_profile":"Est aliquam.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"new_name must differ from name"},"example":"new_name must differ from name"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}},"409":{"description":"already_exists: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace-clone\" already exists"},"example":"workspace \"my-workspace-clone\" already exists"}}}}}},"/v1/workspaces/{name}/credentials":{"get":{"tags":["workspaces"],"summary":"credentials workspaces","description":"Retrieve this Windows workspace's unique initial credentials; namespace editors/admins only","operationId":"workspaces#credentials","parameters":[{"name":"namespace","in":"query","allowEmptyValue":true,"schema":{"type":"string","default":"workspaces","example":"Et impedit."},"example":"Itaque iure quos neque dolor reiciendis."},{"name":"name","in":"path","required":true,"schema":{"type":"string","example":"Iure natus."},"example":"Praesentium natus ea sunt."}],"responses":{"200":{"description":"OK response.","headers":{"Cache-Control":{"schema":{"type":"string","example":"Dolores et sequi harum."},"example":"Fugiat dignissimos fugit fuga quia."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInitialCredentials2"},"example":{"password":"At necessitatibus optio amet tempore et.","username":"Ea sed voluptatem."}}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Pariatur consequatur animi aut eaque."},"example":"Ut assumenda."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Tempore et porro ratione soluta nam."},"example":"Autem amet est harum praesentium."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Rerum ex."},"example":"Pariatur doloremque."}}}}}},"/v1/workspaces/{name}/display":{"get":{"tags":["display"],"summary":"capability display","description":"Advertise whether a workspace participates in shared display sessions and with which limits","operationId":"display#capability","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayCapability"},"example":{"controller_present":true,"enabled":false,"handshake_timeout_ms":10000,"max_height":2160,"max_participants":8,"max_width":4096,"participant_ttl_ms":900000,"participants":2,"protocol":1,"transports":["rfb","tier1"]}}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/display/control/acquire":{"post":{"tags":["display"],"summary":"acquire display","description":"Acquire control of a workspace's shared display session, demoting the current controller to observer when force is set","operationId":"display#acquire","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayControlPayload2"},"example":{"force":true,"participant_id":"97f8c4b7a2","to":"3a2d5f8c7f"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayControl"},"example":{"controller":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},"released":false,"was_held":true}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"participant \"97f8c4b7a2\" is already the controller"},"example":"participant \"97f8c4b7a2\" is already the controller"}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"display session for workspace \"my-workspace\" has no participant \"97f8c4b7a2\""},"example":"display session for workspace \"my-workspace\" has no participant \"97f8c4b7a2\""}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"display for workspace \"my-workspace\" is controlled by another participant"},"example":"display for workspace \"my-workspace\" is controlled by another participant"}}}}}},"/v1/workspaces/{name}/display/control/release":{"post":{"tags":["display"],"summary":"release display","description":"Release control of a workspace's shared display session, leaving observers attached","operationId":"display#release","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayControlPayload3"},"example":{"force":true,"participant_id":"97f8c4b7a2","to":"3a2d5f8c7f"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayControl"},"example":{"controller":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},"released":false,"was_held":true}}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"display session for workspace \"my-workspace\" has no participant \"97f8c4b7a2\""},"example":"display session for workspace \"my-workspace\" has no participant \"97f8c4b7a2\""}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"participant \"97f8c4b7a2\" is not the current controller"},"example":"participant \"97f8c4b7a2\" is not the current controller"}}}}}},"/v1/workspaces/{name}/display/control/transfer":{"post":{"tags":["display"],"summary":"transfer display","description":"Transfer control from the current controller to a named observer, keeping all observers attached","operationId":"display#transfer","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayControlPayload4"},"example":{"force":true,"participant_id":"97f8c4b7a2","to":"3a2d5f8c7f"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayControl"},"example":{"controller":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},"released":false,"was_held":true}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"transfer target must be an observer participant"},"example":"transfer target must be an observer participant"}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"display session for workspace \"my-workspace\" has no participant \"3a2d5f8c7f\""},"example":"display session for workspace \"my-workspace\" has no participant \"3a2d5f8c7f\""}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"participant \"97f8c4b7a2\" is not the current controller"},"example":"participant \"97f8c4b7a2\" is not the current controller"}}}}}},"/v1/workspaces/{name}/display/join":{"post":{"tags":["display"],"summary":"join display","description":"Join a workspace's shared display session as an observer or, when free, as the controller","operationId":"display#join","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinDisplayPayload2"},"example":{"role":"controller"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayJoin"},"example":{"capability":{"controller_present":true,"enabled":false,"handshake_timeout_ms":10000,"max_height":2160,"max_participants":8,"max_width":4096,"participant_ttl_ms":900000,"participants":2,"protocol":1,"transports":["rfb","tier1"]},"participant":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"}}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"cannot join as controller: display is occupied"},"example":"cannot join as controller: display is occupied"}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"display for workspace \"my-workspace\" is controlled by another participant"},"example":"display for workspace \"my-workspace\" is controlled by another participant"}}},"429":{"description":"capacity: Too Many Requests response.","content":{"application/json":{"schema":{"type":"string","example":"display session for workspace \"my-workspace\" is full (max 8 participants)"},"example":"display session for workspace \"my-workspace\" is full (max 8 participants)"}}}}}},"/v1/workspaces/{name}/display/sessions/{participant_id}":{"delete":{"tags":["display"],"summary":"leave display","description":"Leave a workspace's shared display session, releasing control when the departing participant held it","operationId":"display#leave","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"},{"name":"participant_id","in":"path","description":"Participant identifier to remove","required":true,"schema":{"type":"string","description":"Participant identifier to remove","example":"97f8c4b7a2"},"example":"97f8c4b7a2"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeaveResponseBody"},"example":{"ok":true}}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"display session for workspace \"my-workspace\" has no participant \"97f8c4b7a2\""},"example":"display session for workspace \"my-workspace\" has no participant \"97f8c4b7a2\""}}}}}},"/v1/workspaces/{name}/display/status":{"get":{"tags":["display"],"summary":"status display","description":"Report live membership and control state of a workspace's shared display session","operationId":"display#status","parameters":[{"name":"namespace","in":"query","description":"Workspace namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayStatus"},"example":{"controller":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},"enabled":false,"epoch":"8f2ac64d91","observers":[{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"}],"participants":3,"protocol":1}}}},"401":{"description":"unauthorized: Unauthorized response.","content":{"application/json":{"schema":{"type":"string","example":"authentication required"},"example":"authentication required"}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"no access to workspace namespace"},"example":"no access to workspace namespace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/gpu-profile":{"put":{"tags":["workspaces"],"summary":"set_gpu_profile workspaces","description":"Add, change or remove a Windows GPU profile only while its VM is fully stopped; preserves root/EFI/TPM/identity. Empty profile_id restores software graphics.","operationId":"workspaces#set_gpu_profile","parameters":[{"name":"namespace","in":"query","allowEmptyValue":true,"schema":{"type":"string","default":"workspaces","example":"Praesentium recusandae."},"example":"Deleniti rerum iusto laudantium."},{"name":"name","in":"path","required":true,"schema":{"type":"string","example":"Aut aliquid vel molestias atque."},"example":"Qui est."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetGpuProfileRequestBody"},"example":{"profile_id":"vf5"}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"},"example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":false,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"stopped":false,"type":"container","vm_gpu_profile":{"count":947154413370386596,"display_name":"Aut autem perspiciatis qui molestiae.","experimental":false,"guest_driver_version":"Dolorum quia sit.","id":"Aut culpa ut.","kind":"mediated","node_selector":{"Et illo voluptas.":"Eos autem quaerat repellendus quia.","Ipsa voluptatem eligendi eos quod.":"Nam nobis dolorem neque animi."},"resource_name":"Consequatur provident velit animi."},"vm_profile":"Laudantium laborum eius.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"Dolorem voluptate."},"example":"Voluptates laboriosam doloremque."}}},"403":{"description":"forbidden: Forbidden response.","content":{"application/json":{"schema":{"type":"string","example":"Molestias praesentium ea."},"example":"Eius ea esse sint occaecati."}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"Consequatur fugit veniam earum sit aspernatur."},"example":"Nobis voluptatem laboriosam est et itaque aperiam."}}},"409":{"description":"conflict: Conflict response.","content":{"application/json":{"schema":{"type":"string","example":"Ratione consequatur rem sapiente."},"example":"Illo et repellendus et iusto temporibus."}}},"503":{"description":"unavailable: Service Unavailable response.","content":{"application/json":{"schema":{"type":"string","example":"Nobis molestias incidunt consequuntur."},"example":"Unde occaecati doloribus perspiciatis laudantium."}}}}}},"/v1/workspaces/{name}/reset":{"post":{"tags":["workspaces"],"summary":"reset workspaces","description":"Reset a workspace by re-provisioning it from its image","operationId":"workspaces#reset","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"},"example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"stopped":false,"type":"container","vm_gpu_profile":{"count":947154413370386596,"display_name":"Aut autem perspiciatis qui molestiae.","experimental":false,"guest_driver_version":"Dolorum quia sit.","id":"Aut culpa ut.","kind":"mediated","node_selector":{"Et illo voluptas.":"Eos autem quaerat repellendus quia.","Ipsa voluptatem eligendi eos quod.":"Nam nobis dolorem neque animi."},"resource_name":"Consequatur provident velit animi."},"vm_profile":"Porro vitae.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"400":{"description":"invalid: Bad Request response.","content":{"application/json":{"schema":{"type":"string","example":"cannot reset a vm workspace"},"example":"cannot reset a vm workspace"}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/start":{"post":{"tags":["workspaces"],"summary":"start workspaces","description":"Start a stopped workspace","operationId":"workspaces#start","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"},"example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":true,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"stopped":false,"type":"container","vm_gpu_profile":{"count":947154413370386596,"display_name":"Aut autem perspiciatis qui molestiae.","experimental":false,"guest_driver_version":"Dolorum quia sit.","id":"Aut culpa ut.","kind":"mediated","node_selector":{"Et illo voluptas.":"Eos autem quaerat repellendus quia.","Ipsa voluptatem eligendi eos quod.":"Nam nobis dolorem neque animi."},"resource_name":"Consequatur provident velit animi."},"vm_profile":"Dolorem fugit.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}},"/v1/workspaces/{name}/stop":{"post":{"tags":["workspaces"],"summary":"stop workspaces","description":"Stop a running workspace","operationId":"workspaces#stop","parameters":[{"name":"namespace","in":"query","description":"Namespace","allowEmptyValue":true,"schema":{"type":"string","description":"Namespace","default":"workspaces","example":"workspaces"},"example":"workspaces"},{"name":"name","in":"path","description":"Workspace name","required":true,"schema":{"type":"string","description":"Workspace name","example":"my-workspace"},"example":"my-workspace"}],"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"},"example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":false,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"selkies"},"stopped":false,"type":"container","vm_gpu_profile":{"count":947154413370386596,"display_name":"Aut autem perspiciatis qui molestiae.","experimental":false,"guest_driver_version":"Dolorum quia sit.","id":"Aut culpa ut.","kind":"mediated","node_selector":{"Et illo voluptas.":"Eos autem quaerat repellendus quia.","Ipsa voluptatem eligendi eos quod.":"Nam nobis dolorem neque animi."},"resource_name":"Consequatur provident velit animi."},"vm_profile":"Dolor hic.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}}}},"404":{"description":"not_found: Not Found response.","content":{"application/json":{"schema":{"type":"string","example":"workspace \"my-workspace\" not found"},"example":"workspace \"my-workspace\" not found"}}}}}}},"components":{"schemas":{"AgentAttachPayload":{"type":"object","properties":{"name":{"type":"string","description":"Workspace name","example":"my-workspace"},"namespace":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"participant":{"type":"string","description":"Viewer-chosen participant label, echoed in session records. Not an authorization boundary","example":"chris-laptop"}},"description":"Payload for attaching a controller to a workspace's guest agent session","example":{"name":"my-workspace","namespace":"workspaces","participant":"chris-laptop"},"required":["name"]},"AgentAttachPayload2":{"type":"object","properties":{"participant":{"type":"string","description":"Viewer-chosen participant label, echoed in session records. Not an authorization boundary","example":"chris-laptop"}},"example":{"participant":"chris-laptop"}},"AgentRelease":{"type":"object","properties":{"ok":{"type":"boolean","description":"Whether the session is gone (unknown ids report ok: best-effort release)","example":true}},"description":"Result of releasing a workspace guest agent session","example":{"ok":true},"required":["ok"]},"AgentRenew":{"type":"object","properties":{"protocol":{"type":"integer","description":"Agent ticket/API revision","example":1,"format":"int64"},"ttl_ms":{"type":"integer","description":"Renewed lifetime in milliseconds","example":60000,"format":"int64"}},"description":"Result of renewing a workspace guest agent session","example":{"protocol":1,"ttl_ms":60000},"required":["ttl_ms","protocol"]},"AgentStatus":{"type":"object","properties":{"active":{"type":"boolean","description":"Whether at least one live agent session is bound to this workspace","example":true},"protocol":{"type":"integer","description":"Agent ticket/API revision","example":1,"format":"int64"},"sessions":{"type":"integer","description":"Live (unexpired) session count for this workspace","example":1,"format":"int64"}},"description":"Live agent session state for a workspace: whether any unexpired attach session exists","example":{"active":true,"protocol":1,"sessions":1},"required":["active","sessions","protocol"]},"AgentTicket":{"type":"object","properties":{"id":{"type":"string","description":"Opaque server-side session identifier for renew/release correlation. Never sent to the guest","example":"8ec18121f4c2409aa7c025487f4e310c"},"protocol":{"type":"integer","description":"Agent ticket/API revision","example":1,"format":"int64"},"ticket":{"type":"string","description":"Signed bearer ticket (id.payload.signature) to present in the agent attach message","example":"8ec18121f4c2409aa7c025487f4e310c.eyJ3b3Jrc3BhY2VVaWQiOiJ3cy0xIn0.c2ln"},"ttl_ms":{"type":"integer","description":"Ticket/session lifetime in milliseconds; renew at half of it","example":60000,"format":"int64"}},"description":"Short-lived attach ticket for a workspace guest agent session","example":{"id":"8ec18121f4c2409aa7c025487f4e310c","protocol":1,"ticket":"8ec18121f4c2409aa7c025487f4e310c.eyJ3b3Jrc3BhY2VVaWQiOiJ3cy0xIn0.c2ln","ttl_ms":60000},"required":["id","ticket","ttl_ms","protocol"]},"AgentUpgradeAttempt":{"type":"object","properties":{"actor_id":{"type":"string","description":"UID of the administrator that admitted the attempt","example":"user-uid-1"},"admitted_at":{"type":"string","description":"RFC3339 admission timestamp","example":"2026-10-19T00:00:00Z","format":"date-time"},"allow_reboot":{"type":"boolean","description":"Whether the admitted attempt may run the bounded reboot sequence","example":false},"attempt_id":{"type":"string","description":"Server-minted attempt identifier","example":"upg_9f82c1a0b3d4e5f60718293a","pattern":"^upg_[0-9a-f]{24}$"},"awaiting_reboot_at":{"type":"string","example":"1992-05-09T15:20:23Z","format":"date-time"},"cancel_requested":{"type":"boolean","description":"An administrator requested safe-boundary cancellation","example":false},"error_code":{"type":"string","description":"Bounded machine-readable failure code","example":""},"execution_id":{"type":"string","description":"Linked execution admission record (recording authorization)","example":"exec_9f82"},"expected_installed_inventory_sha256":{"type":"string","example":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","pattern":"^[0-9a-f]{64}$"},"installing_at":{"type":"string","example":"2011-05-13T17:24:38Z","format":"date-time"},"journal_sequence":{"type":"integer","description":"Last reconciled guest journal sequence","example":0,"format":"int64"},"namespace":{"type":"string","example":"team-a"},"predecessor_manifest_sha256":{"type":"string","description":"Pinned rollback predecessor manifest digest","example":"530ab67305d1e010f07263bb68cdf11d7daaeb09986cee662b856a788ef0bd41","pattern":"^[0-9a-f]{64}$"},"predecessor_target_id":{"type":"string","description":"Pinned rollback predecessor target","example":"windows11-amd64-v1"},"prepared_at":{"type":"string","example":"2009-03-22T08:30:26Z","format":"date-time"},"recording_id":{"type":"string","description":"Protected attempt recording","example":"rec_9f82"},"recording_url":{"type":"string","description":"Independently authorized recording link","example":"/v1/executions/exec_9f82/recording"},"rollback_requested_at":{"type":"string","example":"2014-06-22T05:37:24Z","format":"date-time"},"rolling_back_at":{"type":"string","example":"2015-04-21T07:51:29Z","format":"date-time"},"staging_at":{"type":"string","example":"1978-08-29T17:25:18Z","format":"date-time"},"state":{"type":"string","description":"Attempt lifecycle state","example":"admitted","enum":["admitted","staging","prepared","installing","verifying","succeeded","awaiting_reboot","rollback_pending","rolling_back","rolled_back","cancelled","failed","manual_recovery_required","unknown","recording_lost"]},"status_url":{"type":"string","description":"Canonical status URL for this attempt","example":"/v1/workspaces/vm-1/agent-upgrades/upg_9f82c1a0b3d4e5f60718293a?namespace=team-a"},"target_id":{"type":"string","example":"windows11-amd64-v2"},"target_manifest_sha256":{"type":"string","example":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","pattern":"^[0-9a-f]{64}$"},"terminal_at":{"type":"string","example":"2002-10-22T02:09:38Z","format":"date-time"},"updated_at":{"type":"string","example":"1979-06-21T14:08:25Z","format":"date-time"},"verifying_at":{"type":"string","example":"1999-01-04T12:09:04Z","format":"date-time"},"vm_uid":{"type":"string","description":"Controller-owned VM UID the reservation is bound to","example":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f"},"workspace_name":{"type":"string","example":"vm-1"},"workspace_uid":{"type":"string","example":"abc123"}},"description":"Admitted agent upgrade attempt with phase progress and outcome","example":{"actor_id":"user-uid-1","admitted_at":"2026-10-19T00:00:00Z","allow_reboot":false,"attempt_id":"upg_9f82c1a0b3d4e5f60718293a","awaiting_reboot_at":"1997-10-12T02:55:05Z","cancel_requested":false,"error_code":"","execution_id":"exec_9f82","expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","installing_at":"1973-07-13T22:32:36Z","journal_sequence":0,"namespace":"team-a","predecessor_manifest_sha256":"dc767ed0fe0e4882dd5b7b3b86e5985badc2f8f64e60d1ea89ee15d2502ea03c","predecessor_target_id":"windows11-amd64-v1","prepared_at":"1998-01-26T11:20:03Z","recording_id":"rec_9f82","recording_url":"/v1/executions/exec_9f82/recording","rollback_requested_at":"1994-02-22T00:46:56Z","rolling_back_at":"1983-10-26T21:22:46Z","staging_at":"1979-12-11T01:59:36Z","state":"admitted","status_url":"/v1/workspaces/vm-1/agent-upgrades/upg_9f82c1a0b3d4e5f60718293a?namespace=team-a","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","terminal_at":"2001-06-23T14:23:29Z","updated_at":"1983-07-14T21:27:51Z","verifying_at":"1979-11-30T11:30:30Z","vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","workspace_name":"vm-1","workspace_uid":"abc123"},"required":["attempt_id","namespace","workspace_name","workspace_uid","vm_uid","actor_id","state","target_id","target_manifest_sha256","expected_installed_inventory_sha256","allow_reboot","cancel_requested","execution_id","recording_id","recording_url","status_url","journal_sequence","admitted_at","updated_at"]},"AgentUpgradeAvailability":{"type":"object","properties":{"active_attempt_id":{"type":"string","description":"Reservation-holding attempt for this VM, when present","example":"upg_9f82c1a0b3d4e5f60718293a"},"admissible":{"type":"boolean","description":"A start request would be admitted right now","example":false},"deny_reason":{"type":"string","description":"Why start would be denied; empty when admissible","example":"policy_disabled","enum":["","policy_disabled","storage_unavailable","eligibility_unavailable","workspace_not_eligible","attempt_active"]},"inventory_available":{"type":"boolean","description":"Fresh authenticated guest inventory is available (guest integration)","example":false},"policy_enabled":{"type":"boolean","description":"Platform policy admits agent upgrades","example":false},"storage_available":{"type":"boolean","description":"Durable attempt/recording storage is ready","example":false},"vm_uid":{"type":"string","description":"Resolved controller-owned VM UID, when eligible","example":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f"},"workspace_eligible":{"type":"boolean","description":"Workspace resolves as an eligible running Windows VM","example":false}},"description":"Fresh agent-upgrade availability for one workspace","example":{"active_attempt_id":"upg_9f82c1a0b3d4e5f60718293a","admissible":false,"deny_reason":"policy_disabled","inventory_available":false,"policy_enabled":false,"storage_available":false,"vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","workspace_eligible":false},"required":["policy_enabled","storage_available","workspace_eligible","inventory_available","admissible","deny_reason"]},"AgentUpgradeStartPayload":{"type":"object","properties":{"allow_reboot":{"type":"boolean","description":"Permit the recorded bounded reboot sequence","default":false,"example":false},"expected_installed_inventory_sha256":{"type":"string","description":"Client-observed installed inventory digest (re-verified before install)","example":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","pattern":"^[0-9a-f]{64}$"},"expected_revocation_epoch":{"type":"integer","description":"Client-observed execution revocation epoch","example":4,"format":"int64"},"expected_vm_uid":{"type":"string","description":"Client-observed VM UID; must match the current controller-owned UID","example":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,255}$"},"idempotency_key":{"type":"string","description":"Client-chosen key; an identical replay returns the original attempt","example":"run-2026-10-19-001","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"name":{"type":"string","example":"vm-1","pattern":"^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$","maxLength":253},"namespace":{"type":"string","default":"workspaces","example":"team-a","pattern":"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$","maxLength":63},"target_id":{"type":"string","description":"Operator-approved immutable target","example":"windows11-amd64-v2","pattern":"^[a-z0-9][a-z0-9._-]{0,127}$"},"target_manifest_sha256":{"type":"string","description":"Expected signed manifest digest for the target","example":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","pattern":"^[0-9a-f]{64}$"}},"description":"Admit a single explicit agent upgrade. Clients cannot submit URLs, hashes of payloads, install directories or installer flags.","example":{"allow_reboot":false,"expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","expected_revocation_epoch":4,"expected_vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","idempotency_key":"run-2026-10-19-001","name":"vm-1","namespace":"team-a","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"required":["namespace","name","target_id","target_manifest_sha256","expected_vm_uid","expected_revocation_epoch","expected_installed_inventory_sha256","idempotency_key","allow_reboot"]},"AgentUpgradeStartPayload2":{"type":"object","properties":{"allow_reboot":{"type":"boolean","description":"Permit the recorded bounded reboot sequence","default":false,"example":false},"expected_installed_inventory_sha256":{"type":"string","description":"Client-observed installed inventory digest (re-verified before install)","example":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","pattern":"^[0-9a-f]{64}$"},"expected_revocation_epoch":{"type":"integer","description":"Client-observed execution revocation epoch","example":4,"format":"int64"},"expected_vm_uid":{"type":"string","description":"Client-observed VM UID; must match the current controller-owned UID","example":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,255}$"},"idempotency_key":{"type":"string","description":"Client-chosen key; an identical replay returns the original attempt","example":"run-2026-10-19-001","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},"target_id":{"type":"string","description":"Operator-approved immutable target","example":"windows11-amd64-v2","pattern":"^[a-z0-9][a-z0-9._-]{0,127}$"},"target_manifest_sha256":{"type":"string","description":"Expected signed manifest digest for the target","example":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","pattern":"^[0-9a-f]{64}$"}},"example":{"allow_reboot":false,"expected_installed_inventory_sha256":"810151abf0615815b24e01967ec665e0eb583500f1eb5fa456361935b22b183b","expected_revocation_epoch":4,"expected_vm_uid":"0d3f9a7e-6b1c-4f2a-9e8d-1a2b3c4d5e6f","idempotency_key":"run-2026-10-19-001","target_id":"windows11-amd64-v2","target_manifest_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"required":["target_id","target_manifest_sha256","expected_vm_uid","expected_revocation_epoch","expected_installed_inventory_sha256","idempotency_key","allow_reboot"]},"CheckResponseBody":{"type":"object","properties":{"status":{"type":"string","description":"Health status","example":"ok"}},"example":{"status":"ok"},"required":["status"]},"CloneRequestBody":{"type":"object","properties":{"cpu_limit":{"type":"string","description":"Override the CPU limit on the clone","example":"1"},"cpu_request":{"type":"string","description":"Override the CPU request on the clone","example":"500m"},"image":{"type":"string","description":"Override the container image on the clone","example":"codercom/code-server:4.96.2"},"memory_limit":{"type":"string","description":"Override the memory limit on the clone","example":"2Gi"},"memory_request":{"type":"string","description":"Override the memory request on the clone","example":"512Mi"},"new_name":{"type":"string","description":"Name for the cloned workspace","example":"my-workspace-clone","pattern":"^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$","maxLength":63},"port":{"type":"integer","description":"Override the container port on the clone","example":8080,"format":"int64"}},"example":{"cpu_limit":"1","cpu_request":"500m","image":"codercom/code-server:4.96.2","memory_limit":"2Gi","memory_request":"512Mi","new_name":"my-workspace-clone","port":8080},"required":["new_name"]},"ContainerInitDefaults":{"type":"object","properties":{"default_user":{"type":"string","description":"Explicit account for default-user and SSH key resolution","example":"naz","pattern":"^[a-z_][a-z0-9_-]{0,31}$"},"mode":{"type":"string","example":"baked-in","enum":["disabled","injected","baked-in"]},"run_as_user":{"type":"string","description":"Non-root application identity after injected provisioning","example":"e","pattern":"^[a-z_][a-z0-9_-]{0,31}$"}},"description":"Opt-in container initialization; omitted preserves ordinary image startup","example":{"default_user":"pu9i","mode":"injected","run_as_user":"k"},"required":["mode"]},"ContainerState":{"type":"object","properties":{"message":{"type":"string","description":"Details about the state","example":"Container started successfully"},"reason":{"type":"string","description":"Reason for the state","example":"Started"},"started_at":{"type":"string","description":"Time the container started","example":"2025-01-02T15:04:05Z"},"state":{"type":"string","description":"Current state: running, waiting, terminated","example":"running","enum":["running","waiting","terminated","unknown"]}},"description":"State of the workspace container","example":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"}},"CreateImagePayload":{"type":"object","properties":{"category":{"type":"string","description":"Category for grouping (e.g. Desktop, IDE, Tool, Game)","example":"IDE"},"default_args":{"type":"array","items":{"type":"string","example":"Mollitia deserunt soluta est voluptatum nihil odit."},"description":"Default command-line args","example":["--bind-addr","0.0.0.0:8080"]},"default_cloud_init":{"type":"boolean","description":"Set to true when the image has cloud-init baked in, allowing user-data (e.g. a user/password) to be seeded into the guest at first boot","example":false},"default_command":{"type":"array","items":{"type":"string","example":"Sed ad aut."},"description":"Explicit container entrypoint at workspace creation","example":["Mollitia aut esse consectetur.","Voluptas omnis quos inventore et dignissimos vel.","Labore nihil."]},"default_container_init":{"$ref":"#/components/schemas/ContainerInitDefaults"},"default_credentials":{"$ref":"#/components/schemas/ImageCredentials"},"default_env":{"type":"array","items":{"$ref":"#/components/schemas/ImageEnvVar"},"description":"Default environment variables","example":[{"name":"PASSWORD","value":"changeme"}]},"default_homedir":{"type":"string","description":"Default home directory for the default user","example":"/home/coder"},"default_image_pull_policy":{"type":"string","description":"Image pull policy for workspace containers created from this image (Always, IfNotPresent, Never). Empty leaves the container field unset so Kubernetes applies its own default","example":"Always","enum":["Always","IfNotPresent","Never"]},"default_password":{"type":"string","description":"Known default password for DefaultUser. Only set when the image has a known default password; leave unset when the guest uses no password","example":"changeme"},"default_path":{"type":"string","description":"Default URL path for connecting","example":"/"},"default_port":{"type":"integer","description":"Default container port","example":8080,"format":"int64"},"default_shared_memory":{"type":"boolean","description":"Automatically mount /dev/shm as emptyDir with medium=Memory (required for Selkies streaming, Chrome, ML frameworks)","example":false},"default_shell":{"type":"string","description":"Default shell for exec/console sessions (e.g. /bin/bash)","example":"/bin/bash"},"default_uid":{"type":"integer","description":"UID that the main container runs as (sets runAsUser and fsGroup)","example":1000,"format":"int64"},"default_user":{"type":"string","description":"Default user for this image","example":"coder"},"default_user_data":{"type":"string","description":"Cloud-config for VM cloud-init or explicitly enabled container initialization","example":""},"description":{"type":"string","description":"Description of the image","example":"Code editor in the browser"},"homepage_url":{"type":"string","description":"Project homepage or documentation URL","example":"https://github.com/coder/code-server"},"icon":{"type":"string","description":"Icon identifier","example":"code"},"image":{"type":"string","description":"Container image reference","example":"codercom/code-server:latest"},"image_homepage_url":{"type":"string","description":"Container image registry page (e.g. Docker Hub)","example":"https://hub.docker.com/r/codercom/code-server"},"links":{"type":"array","items":{"$ref":"#/components/schemas/ImageLink"},"description":"Additional relevant URLs for this image","example":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}]},"memory_limit":{"type":"string","description":"Guest memory default","example":"Et quos fugiat dolore tempore sint aspernatur."},"memory_request":{"type":"string","description":"Guest memory request default","example":"Itaque id officia."},"name":{"type":"string","description":"Display name","example":"Code Server (VS Code)"},"persistent_root_disk":{"type":"boolean","description":"Import a per-workspace persistent root disk","example":false},"persistent_root_disk_size":{"type":"string","description":"Persistent root capacity","example":"Et recusandae corrupti quo."},"privileged":{"type":"boolean","description":"Run container in privileged mode","default":false,"example":false},"proxy_config":{"$ref":"#/components/schemas/ImageProxyConfig"},"remote_desktop":{"$ref":"#/components/schemas/ImageRemoteDesktop"},"source_url":{"type":"string","description":"Source code repository URL","example":"https://github.com/coder/code-server"},"tags":{"type":"array","items":{"type":"string","example":"Placeat fuga ipsum similique consequatur molestiae quia."},"description":"Tags for filtering/searching images","example":["development","vscode"]},"vm_profile":{"type":"string","description":"Controller-supported VM guest profile","example":"windows11-amd64-v1","enum":["windows11-amd64-v1"]},"workspace_types":{"type":"array","items":{"type":"string","example":"Assumenda amet tempora earum velit."},"description":"Workspace types this image supports (container, vm, scratch). Empty means container-only","example":["container"]}},"description":"Payload for creating a new image","example":{"category":"IDE","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Ducimus ut.","Velit et dolorem dolor qui ipsum.","Suscipit omnis eos et eos voluptas enim."],"default_container_init":{"default_user":"r","mode":"injected","run_as_user":"qov"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Et qui dolorem veritatis incidunt minima.","memory_request":"Iste reprehenderit ipsum.","name":"Code Server (VS Code)","persistent_root_disk":false,"persistent_root_disk_size":"Odio harum enim a voluptas ex corrupti.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"windows11-amd64-v1","workspace_types":["container"]},"required":["name","image","default_port"]},"CreateSSHKeyPayload":{"type":"object","properties":{"key_name":{"type":"string","description":"Human-friendly label for the key","example":"Laptop 2025"},"name":{"type":"string","description":"Resource name for the SshKey CR","example":"laptop-2025","pattern":"^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$","maxLength":63},"namespace":{"type":"string","description":"Target namespace (defaults to the user's personal namespace)","example":"chris-at-fordham-id-au"},"public_key":{"type":"string","description":"SSH public key line (e.g. ssh-ed25519 AAAA... user@host)","example":"ssh-ed25519 AAAA... user@host"}},"description":"Payload for storing a user's SSH public key","example":{"key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-ed25519 AAAA... user@host"},"required":["name","public_key"]},"CreateVolumePayload":{"type":"object","properties":{"access_mode":{"type":"string","description":"Access mode","default":"ReadWriteOnce","example":"ReadWriteOnce","enum":["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"]},"name":{"type":"string","description":"PVC name","example":"my-data","pattern":"^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$","maxLength":63},"namespace":{"type":"string","description":"Target namespace","default":"workspaces","example":"workspaces"},"size":{"type":"string","description":"Storage size","default":"5Gi","example":"10Gi"},"storage_class":{"type":"string","description":"Storage class name","example":"standard"},"type":{"type":"string","description":"Volume type: container PVC or reusable CDI blank VM disk","default":"pvc","example":"pvc","enum":["pvc","vm-disk"]}},"description":"Payload for creating a new PVC","example":{"access_mode":"ReadWriteOnce","name":"my-data","namespace":"workspaces","size":"10Gi","storage_class":"standard","type":"pvc"},"required":["name","size"]},"CreateWorkspacePayload":{"type":"object","properties":{"container":{"$ref":"#/components/schemas/WorkspaceContainer"},"container_init":{"$ref":"#/components/schemas/WorkspaceContainerInit"},"env":{"type":"array","items":{"$ref":"#/components/schemas/EnvVar"},"description":"Custom environment variables to inject into the workspace container","example":[{"name":"PASSWORD","value":"changeme"}]},"image_pull_policy":{"type":"string","description":"Image pull policy for the workspace container (Always, IfNotPresent, Never). Overrides the image's default. When unset, the image's defaultImagePullPolicy applies; if that is also unset the field is omitted so Kubernetes applies its own default (Always for :latest or untagged references, IfNotPresent otherwise)","example":"Always","enum":["Always","IfNotPresent","Never"]},"name":{"type":"string","description":"Workspace name","example":"my-workspace","pattern":"^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$","maxLength":63},"namespace":{"type":"string","description":"Target namespace","default":"workspaces","example":"workspaces"},"node_selector":{"type":"object","description":"Node selector labels for scheduling","example":{"nvidia.com/gpu":"true"},"additionalProperties":{"type":"string","example":"Autem rerum."}},"shared_memory":{"type":"boolean","description":"Mount /dev/shm as an emptyDir with medium=Memory (required for Chrome, ML frameworks)","default":false,"example":true},"tolerations":{"type":"array","items":{"$ref":"#/components/schemas/Toleration"},"description":"Pod tolerations for scheduling","example":[{"effect":"NoSchedule","key":"nvidia.com/gpu","operator":"Equal","value":"true"}]},"type":{"type":"string","description":"Workspace type: 'container' (default, runs as a StatefulSet), 'vm' (KubeVirt VirtualMachine booting a containerDisk image), or 'scratch' (plain Deployment)","default":"container","example":"container","enum":["container","vm","scratch"]},"vm_options":{"$ref":"#/components/schemas/VMOptions"},"volume_mounts":{"type":"array","items":{"$ref":"#/components/schemas/VolumeMount"},"description":"Volumes to mount","example":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}},"description":"Payload for creating a new workspace","example":{"container":{"args":["Est repudiandae ducimus.","Tempora occaecati ut sunt voluptas praesentium."],"command":["Voluptatibus quo.","Corrupti voluptas sint."],"cpu_limit":"2","cpu_request":"500m","gpu_request":"1","gpu_vendor":"nvidia.com/gpu","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"code-server","port":8080},"container_init":{"default_user":"","mode":"injected","run_as_user":"","user_data":"rey","user_data_secret":"z5l"},"env":[{"name":"PASSWORD","value":"changeme"}],"image_pull_policy":"Always","name":"my-workspace","namespace":"workspaces","node_selector":{"nvidia.com/gpu":"true"},"shared_memory":true,"tolerations":[{"effect":"NoSchedule","key":"nvidia.com/gpu","operator":"Equal","value":"true"}],"type":"container","vm_options":{"gpu_profile":"fwr","import_cert_config_map_name":"Autem dolorum qui repellendus recusandae accusantium.","import_secret_name":"Dolores et modi.","root_disk_size":"Eum sapiente.","storage_class_name":"Molestiae alias quaerat sit et vitae."},"volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},"required":["name","container"]},"DisplayCapability":{"type":"object","properties":{"controller_present":{"type":"boolean","description":"Whether a controller is currently attached","example":true},"enabled":{"type":"boolean","description":"Whether shared display sessions are available for this workspace","example":false},"handshake_timeout_ms":{"type":"integer","description":"Display stream handshake timeout in milliseconds","example":10000,"format":"int64"},"max_height":{"type":"integer","description":"Maximum advertised guest framebuffer height","example":2160,"format":"int64"},"max_participants":{"type":"integer","description":"Maximum simultaneous participants (controller + observers)","example":8,"format":"int64"},"max_width":{"type":"integer","description":"Maximum advertised guest framebuffer width","example":4096,"format":"int64"},"participant_ttl_ms":{"type":"integer","description":"Idle membership lifetime in milliseconds","example":900000,"format":"int64"},"participants":{"type":"integer","description":"Current participant count","example":2,"format":"int64"},"protocol":{"type":"integer","description":"Display protocol/API revision","example":1,"format":"int64"},"transports":{"type":"array","items":{"type":"string","example":"Et reprehenderit voluptates."},"description":"Supported display transports","example":["rfb","tier1"]}},"description":"Capability advertisement for a workspace's shared display session. Absence of this resource, or enabled=false, means the workspace uses the legacy exclusive display mode","example":{"controller_present":true,"enabled":false,"handshake_timeout_ms":10000,"max_height":2160,"max_participants":8,"max_width":4096,"participant_ttl_ms":900000,"participants":2,"protocol":1,"transports":["rfb","tier1"]},"required":["enabled","protocol"]},"DisplayControl":{"type":"object","properties":{"controller":{"$ref":"#/components/schemas/Participant"},"released":{"type":"boolean","description":"True when release cleared the controller","example":false},"was_held":{"type":"boolean","description":"Whether a controller was present before the transition","example":true}},"description":"Result of a control transition","example":{"controller":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},"released":false,"was_held":true},"required":["was_held","released"]},"DisplayControlPayload":{"type":"object","properties":{"force":{"type":"boolean","description":"Explicit human consent to take or transfer control, demoting the current controller to observer. There is no silent takeover without this","default":false,"example":true},"name":{"type":"string","description":"Workspace name","example":"my-workspace"},"namespace":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"participant_id":{"type":"string","description":"Participant performing the transition. Release requires the current controller; acquire may be any participant; transfer requires the current controller","example":"97f8c4b7a2"},"to":{"type":"string","description":"Target observer participant identifier for a transfer","example":"3a2d5f8c7f"}},"description":"Payload for a control transition (acquire, release or transfer)","example":{"force":true,"name":"my-workspace","namespace":"workspaces","participant_id":"97f8c4b7a2","to":"3a2d5f8c7f"},"required":["name","participant_id"]},"DisplayControlPayload2":{"type":"object","properties":{"force":{"type":"boolean","description":"Explicit human consent to take or transfer control, demoting the current controller to observer. There is no silent takeover without this","default":false,"example":true},"participant_id":{"type":"string","description":"Participant performing the transition. Release requires the current controller; acquire may be any participant; transfer requires the current controller","example":"97f8c4b7a2"},"to":{"type":"string","description":"Target observer participant identifier for a transfer","example":"3a2d5f8c7f"}},"example":{"force":true,"participant_id":"97f8c4b7a2","to":"3a2d5f8c7f"},"required":["participant_id"]},"DisplayControlPayload3":{"type":"object","properties":{"force":{"type":"boolean","description":"Explicit human consent to take or transfer control, demoting the current controller to observer. There is no silent takeover without this","default":false,"example":true},"participant_id":{"type":"string","description":"Participant performing the transition. Release requires the current controller; acquire may be any participant; transfer requires the current controller","example":"97f8c4b7a2"},"to":{"type":"string","description":"Target observer participant identifier for a transfer","example":"3a2d5f8c7f"}},"example":{"force":true,"participant_id":"97f8c4b7a2","to":"3a2d5f8c7f"},"required":["participant_id"]},"DisplayControlPayload4":{"type":"object","properties":{"force":{"type":"boolean","description":"Explicit human consent to take or transfer control, demoting the current controller to observer. There is no silent takeover without this","default":false,"example":true},"participant_id":{"type":"string","description":"Participant performing the transition. Release requires the current controller; acquire may be any participant; transfer requires the current controller","example":"97f8c4b7a2"},"to":{"type":"string","description":"Target observer participant identifier for a transfer","example":"3a2d5f8c7f"}},"example":{"force":true,"participant_id":"97f8c4b7a2","to":"3a2d5f8c7f"},"required":["participant_id"]},"DisplayJoin":{"type":"object","properties":{"capability":{"$ref":"#/components/schemas/DisplayCapability"},"participant":{"$ref":"#/components/schemas/Participant"}},"description":"Result of joining a shared display session","example":{"capability":{"controller_present":true,"enabled":false,"handshake_timeout_ms":10000,"max_height":2160,"max_participants":8,"max_width":4096,"participant_ttl_ms":900000,"participants":2,"protocol":1,"transports":["rfb","tier1"]},"participant":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"}},"required":["participant"]},"DisplayStatus":{"type":"object","properties":{"controller":{"$ref":"#/components/schemas/Participant"},"enabled":{"type":"boolean","description":"Whether shared display sessions are available for this workspace","example":false},"epoch":{"type":"string","description":"Capture/broker generation. Changes when a new capture owner is elected","example":"8f2ac64d91"},"observers":{"type":"array","items":{"$ref":"#/components/schemas/Participant"},"description":"Current observers","example":[{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"}]},"participants":{"type":"integer","description":"Total participant count (controller + observers)","example":3,"format":"int64"},"protocol":{"type":"integer","description":"Display protocol/API revision","example":1,"format":"int64"}},"description":"Live membership and control state of a workspace's shared display session","example":{"controller":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},"enabled":false,"epoch":"8f2ac64d91","observers":[{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"}],"participants":3,"protocol":1},"required":["enabled","protocol","epoch","participants"]},"EnvVar":{"type":"object","properties":{"name":{"type":"string","description":"Environment variable name","example":"MY_VAR"},"value":{"type":"string","description":"Environment variable value","example":"my-value"}},"description":"Custom environment variable for a workspace","example":{"name":"MY_VAR","value":"my-value"},"required":["name","value"]},"ExecutionCommand":{"type":"object","properties":{"admission_time":{"type":"string","description":"RFC3339 timestamp","example":"2026-10-17T00:00:00Z","format":"date-time"},"denial":{"type":"string","description":"Runner denial or transport-loss note","example":"transport lost; do not rerun"},"durability":{"type":"string","description":"none|durable","example":"none","enum":["none","durable"]},"duration_ms":{"type":"integer","description":"Guest-measured duration in milliseconds","example":120,"format":"int64"},"execution_id":{"type":"string","description":"Execution identifier","example":"exec_9f82"},"exit_code":{"type":"integer","description":"Guest process exit code when known","example":0,"format":"int64"},"mode":{"type":"string","description":"Storage mode: ephemeral|external|bundled","example":"ephemeral","enum":["ephemeral","external","bundled"]},"namespace":{"type":"string","example":"team-a"},"outcome":{"type":"string","description":"Final command outcome","example":"succeeded","enum":["succeeded","failed","timed_out","unknown"]},"recording_id":{"type":"string","description":"Recording identifier","example":"rec_9f82"},"state":{"type":"string","description":"Final lifecycle state","example":"succeeded","enum":["succeeded","failed","cancelled","timed_out","revoked","unknown","recording_lost"]},"stderr":{"type":"string","description":"Standard error, truncated to the pilot output bound","example":"Q3VwaWRpdGF0ZSBxdWku","format":"binary"},"stdout":{"type":"string","description":"Standard output, truncated to the pilot output bound","example":"TWludXMgY29uc2VxdWF0dXIgY29ycnVwdGkgbm9iaXMgb2RpdC4=","format":"binary"},"truncated":{"type":"boolean","description":"Output was truncated at the 16 KiB bound","example":false},"workspace_name":{"type":"string","example":"vm-1"},"workspace_uid":{"type":"string","example":"abc123"}},"description":"Synchronous outcome of one pilot command or script execution","example":{"admission_time":"2026-10-17T00:00:00Z","denial":"transport lost; do not rerun","durability":"none","duration_ms":120,"execution_id":"exec_9f82","exit_code":0,"mode":"ephemeral","namespace":"team-a","outcome":"succeeded","recording_id":"rec_9f82","state":"succeeded","stderr":"SGFydW0gYWxpcXVpZCBtb2xlc3RpYWUgZnVnaXQgdmVsaXQgYWxpYXMu","stdout":"QSBjb25zZXF1dW50dXIgdmVsaXQgdm9sdXB0YXMgcXVvLg==","truncated":false,"workspace_name":"vm-1","workspace_uid":"abc123"},"required":["execution_id","recording_id","namespace","workspace_name","outcome","state"]},"ExecutionGrantPayload":{"type":"object","properties":{"grant":{"type":"string","description":"Opaque, versioned, guest-verified grant token","example":"eyJ2IjoiMS4wIn0....","minLength":10},"os_identity":{"type":"string","description":"Target OS identity (e.g. 'root', 'SYSTEM')","example":"root"}},"description":"Signed, short-lived grant used to admit an execution request (placeholder)","example":{"grant":"eyJ2IjoiMS4wIn0....","os_identity":"root"},"required":["grant"]},"ExecutionRecord":{"type":"object","properties":{"actor_id":{"type":"string","description":"Actor identifier","example":"user@example.com"},"admission_time":{"type":"string","description":"RFC3339 timestamp","example":"2026-10-17T00:00:00Z","format":"date-time"},"admitted":{"type":"boolean","example":true},"deny_reason":{"type":"string","example":""},"durability":{"type":"string","description":"none|durable","example":"none","enum":["none","durable"]},"elevated":{"type":"boolean","example":false},"end_time":{"type":"string","description":"RFC3339 timestamp","example":"2002-01-20T02:58:17Z","format":"date-time"},"execution_id":{"type":"string","description":"Execution identifier","example":"exec_9f82"},"exit_code":{"type":"integer","example":0,"format":"int64"},"grant_version":{"type":"string","example":"1.0"},"mode":{"type":"string","description":"Storage mode: ephemeral|external|bundled","example":"ephemeral","enum":["ephemeral","external","bundled"]},"namespace":{"type":"string","example":"team-a"},"operation":{"type":"string","description":"command|script|shell","example":"shell","enum":["command","script","shell"]},"os_identity":{"type":"string","example":"root"},"recording_id":{"type":"string","example":"rec_9f82"},"recording_lost":{"type":"boolean","example":false},"start_time":{"type":"string","description":"RFC3339 timestamp","example":"1971-09-22T00:42:48Z","format":"date-time"},"state":{"type":"string","description":"lifecycle state","example":"succeeded","enum":["admitted","running","succeeded","failed","cancelled","timed_out","revoked","unknown","recording_lost"]},"termination":{"type":"string","example":"graceful"},"workspace_generation":{"type":"integer","example":3,"format":"int64"},"workspace_name":{"type":"string","example":"vm-1"},"workspace_uid":{"type":"string","example":"abc123"}},"description":"Execution admission record and last known outcome","example":{"actor_id":"user@example.com","admission_time":"2026-10-17T00:00:00Z","admitted":true,"deny_reason":"","durability":"none","elevated":false,"end_time":"2005-05-09T19:10:21Z","execution_id":"exec_9f82","exit_code":0,"grant_version":"1.0","mode":"ephemeral","namespace":"team-a","operation":"shell","os_identity":"root","recording_id":"rec_9f82","recording_lost":false,"start_time":"2000-07-31T10:31:50Z","state":"succeeded","termination":"graceful","workspace_generation":3,"workspace_name":"vm-1","workspace_uid":"abc123"},"required":["execution_id","operation","namespace","workspace_name","recording_id","mode","durability","admitted","admission_time"]},"ExecutionRecordingChunk":{"type":"object","properties":{"data":{"type":"string","description":"Base64-encoded plaintext recording data","example":"T2ZmaWNpYSByZW0gYWNjdXNhbnRpdW0gYmVhdGFlLg==","format":"binary"},"index":{"type":"integer","description":"Chunk index starting at 0","example":0,"format":"int64"}},"description":"Verified, decrypted recording chunk; sensitive playback content","example":{"data":"RXN0IHNpdCB0ZW1wb3JpYnVzIHJlcnVtIGRlc2VydW50IGltcGVkaXQu","index":0},"required":["index","data"]},"ExecutionRecordingManifest":{"type":"object","properties":{"chunks":{"type":"integer","example":16124850833176067595,"format":"int64"},"plaintext_bytes":{"type":"integer","example":6483186270551327481,"format":"int64"},"recording_id":{"type":"string","example":"Occaecati et."},"verified":{"type":"boolean","example":true}},"example":{"chunks":1855607285860653588,"plaintext_bytes":6206131434310869828,"recording_id":"Officiis voluptatem rerum.","verified":false},"required":["recording_id","chunks","plaintext_bytes","verified"]},"ExecutionScriptPayload":{"type":"object","properties":{"body":{"type":"string","description":"Script content","example":"ro","minLength":1,"maxLength":65536},"cwd":{"type":"string","description":"Optional working directory for the script","example":"s73","maxLength":1024},"name":{"type":"string","description":"Optional filename hint (e.g. run.sh, script.ps1)","example":"1j6","pattern":"^[^/\\\\]+$","maxLength":128}},"description":"Inline script to write to a temp file and execute via shebang","example":{"body":"9jf","cwd":"749","name":"uqn"},"required":["body"]},"ExecutionStatus":{"type":"object","properties":{"allow_elevated":{"type":"boolean","description":"Whether elevated execution is allowed by policy","example":false},"durable":{"type":"boolean","description":"Metadata and recordings are durable (not ephemeral)","example":false},"enabled":{"type":"boolean","description":"Whether VM execution is enabled by policy","example":false},"issuer_ready":{"type":"boolean","description":"Opt-in management issuer prerequisites and initial bootstrap sync are ready; not a guest execution capability","example":false},"storage_available":{"type":"boolean","description":"Store is Ready and can admit work","example":false},"storage_mode":{"type":"string","description":"Storage mode: disabled|ephemeral|external|bundled","example":"disabled","enum":["disabled","ephemeral","external","bundled"]}},"description":"Execution management status","example":{"allow_elevated":false,"durable":false,"enabled":false,"issuer_ready":false,"storage_available":false,"storage_mode":"disabled"},"required":["enabled","allow_elevated","storage_mode","durable","storage_available","issuer_ready"]},"Image":{"type":"object","properties":{"category":{"type":"string","description":"Category for grouping (e.g. Desktop, IDE, Tool, Game)","example":"IDE"},"cr_name":{"type":"string","description":"Kubernetes resource name (metadata.name)","example":"code-server"},"default_args":{"type":"array","items":{"type":"string","example":"Ipsam laborum recusandae in quae."},"description":"Default command-line args injected at workspace creation","example":["--bind-addr","0.0.0.0:8080"]},"default_cloud_init":{"type":"boolean","description":"Set to true when the image has cloud-init baked in, allowing user-data (e.g. a user/password) to be seeded into the guest at first boot","example":false},"default_command":{"type":"array","items":{"type":"string","example":"Doloremque voluptatem."},"description":"Explicit container entrypoint injected at workspace creation","example":["Consequuntur exercitationem eligendi.","Esse id occaecati.","In aut perferendis."]},"default_container_init":{"$ref":"#/components/schemas/ContainerInitDefaults"},"default_credentials":{"$ref":"#/components/schemas/ImageCredentials"},"default_env":{"type":"array","items":{"$ref":"#/components/schemas/ImageEnvVar"},"description":"Default environment variables injected at workspace creation","example":[{"name":"PASSWORD","value":"changeme"}]},"default_homedir":{"type":"string","description":"Default home directory for the default user","example":"/home/coder"},"default_image_pull_policy":{"type":"string","description":"Image pull policy for workspace containers created from this image (Always, IfNotPresent, Never). Empty means the platform leaves the container field unset so Kubernetes applies its own default","example":"Always"},"default_password":{"type":"string","description":"Known default password for DefaultUser. Only set when the image has a known default password; leave unset when the guest uses no password","example":"changeme"},"default_path":{"type":"string","description":"Default URL path for connecting (e.g. /vnc.html?resize=remote)","example":"/"},"default_port":{"type":"integer","description":"Default container port","example":8080,"format":"int64"},"default_shared_memory":{"type":"boolean","description":"Automatically mount /dev/shm as emptyDir with medium=Memory (required for Selkies streaming, Chrome, ML frameworks)","example":false},"default_shell":{"type":"string","description":"Default shell for exec/console sessions (e.g. /bin/bash)","example":"/bin/bash"},"default_uid":{"type":"integer","description":"UID that the main container runs as (sets runAsUser and fsGroup)","example":1000,"format":"int64"},"default_user":{"type":"string","description":"Default user for this image","example":"coder"},"default_user_data":{"type":"string","description":"Cloud-config for VM cloud-init or explicitly enabled container initialization","example":""},"description":{"type":"string","description":"Description of the image","example":"Code editor in the browser"},"homepage_url":{"type":"string","description":"Project homepage or documentation URL","example":"https://github.com/coder/code-server"},"icon":{"type":"string","description":"Icon identifier","example":"code"},"image":{"type":"string","description":"Full image reference","example":"codercom/code-server:latest"},"image_homepage_url":{"type":"string","description":"Container image registry page (e.g. Docker Hub)","example":"https://hub.docker.com/r/codercom/code-server"},"links":{"type":"array","items":{"$ref":"#/components/schemas/ImageLink"},"description":"Additional relevant URLs for this image","example":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}]},"memory_limit":{"type":"string","example":"Error facere."},"memory_request":{"type":"string","example":"Voluptatem eos."},"name":{"type":"string","description":"Display name","example":"Code Server (VS Code)"},"persistent_root_disk":{"type":"boolean","example":false},"persistent_root_disk_size":{"type":"string","example":"Provident saepe quod mollitia."},"privileged":{"type":"boolean","description":"Run container in privileged mode","example":false},"proxy_config":{"$ref":"#/components/schemas/ImageProxyConfig"},"remote_desktop":{"$ref":"#/components/schemas/ImageRemoteDesktop"},"source_repository":{"type":"string","description":"Origin ImageRepository resource name; absent when provenance is not recorded","example":"Sed cumque exercitationem explicabo ut."},"source_repository_commit":{"type":"string","description":"Git commit from which the Image CR was imported","example":"Velit sunt."},"source_repository_path":{"type":"string","description":"Image CR file path within the originating image catalog","example":"Quam totam itaque nam asperiores quos."},"source_repository_ref":{"type":"string","description":"Git ref used by the originating image catalog","example":"Ipsum in maiores occaecati."},"source_repository_url":{"type":"string","description":"Git URL of the originating image catalog","example":"Officia architecto praesentium aut cupiditate."},"source_url":{"type":"string","description":"Source code repository URL","example":"https://github.com/coder/code-server"},"tags":{"type":"array","items":{"type":"string","example":"Quibusdam molestiae autem repudiandae nostrum."},"description":"Tags for filtering/searching images","example":["development","vscode"]},"vm_profile":{"type":"string","description":"Controller-supported guest profile","example":"Sed id consequatur exercitationem."},"workspace_types":{"type":"array","items":{"type":"string","example":"Ipsum cupiditate laboriosam enim similique eos."},"description":"Workspace types this image supports (container, vm, scratch). Empty means container-only","example":["container"]}},"description":"An available workspace image","example":{"category":"IDE","cr_name":"code-server","default_args":["--bind-addr","0.0.0.0:8080"],"default_cloud_init":false,"default_command":["Hic temporibus et perspiciatis et.","Alias omnis esse.","Ullam repellat esse ab repellat.","Eaque qui officiis quia quibusdam voluptas."],"default_container_init":{"default_user":"r","mode":"injected","run_as_user":"qov"},"default_credentials":{"password":"changeme","username":"coder"},"default_env":[{"name":"PASSWORD","value":"changeme"}],"default_homedir":"/home/coder","default_image_pull_policy":"Always","default_password":"changeme","default_path":"/","default_port":8080,"default_shared_memory":false,"default_shell":"/bin/bash","default_uid":1000,"default_user":"coder","default_user_data":"","description":"Code editor in the browser","homepage_url":"https://github.com/coder/code-server","icon":"code","image":"codercom/code-server:latest","image_homepage_url":"https://hub.docker.com/r/codercom/code-server","links":[{"title":"GitHub","url":"https://github.com/coder/code-server"},{"title":"Docker Hub","url":"https://hub.docker.com/r/codercom/code-server"}],"memory_limit":"Minima officia natus in commodi et.","memory_request":"Quam consequatur aspernatur.","name":"Code Server (VS Code)","persistent_root_disk":false,"persistent_root_disk_size":"Rem et rerum.","privileged":false,"proxy_config":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":true,"websocket_paths":["/websockify"]},"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"source_repository":"Expedita hic veritatis possimus.","source_repository_commit":"Delectus ipsam qui.","source_repository_path":"Nihil libero quasi minus.","source_repository_ref":"Voluptates qui natus et esse.","source_repository_url":"Maxime expedita cupiditate omnis.","source_url":"https://github.com/coder/code-server","tags":["development","vscode"],"vm_profile":"Est a.","workspace_types":["container"]},"required":["cr_name","name","image","default_port"]},"ImageCredentials":{"type":"object","properties":{"password":{"type":"string","description":"Default password","example":"changeme"},"username":{"type":"string","description":"Default username","example":"coder"}},"description":"Default login credentials for a workspace image","example":{"password":"changeme","username":"coder"}},"ImageEnvVar":{"type":"object","properties":{"name":{"type":"string","description":"Name of the environment variable","example":"PASSWORD"},"value":{"type":"string","description":"Value (supports {{namespace}} and {{name}} placeholders)","example":"changeme"}},"description":"Environment variable with optional placeholder support","example":{"name":"PASSWORD","value":"changeme"},"required":["name","value"]},"ImageLink":{"type":"object","properties":{"title":{"type":"string","description":"Display label for the link","example":"GitHub"},"url":{"type":"string","description":"Link target URL","example":"https://github.com/coder/code-server"}},"description":"A named URL link for an image","example":{"title":"GitHub","url":"https://github.com/coder/code-server"},"required":["title","url"]},"ImageProxyConfig":{"type":"object","properties":{"custom_request_headers":{"type":"object","description":"Additional headers to inject into proxied requests","example":{"x-tenant":"workspaces"},"additionalProperties":{"type":"string","example":"Ut ea accusamus labore."}},"inject_base_tag":{"type":"boolean","description":"Inject a \u003cbase\u003e tag into HTML responses to fix relative path resolution","default":false,"example":false},"needs_noop_sw":{"type":"boolean","description":"Serve a no-op ServiceWorker at /sw.js to prevent SW registration errors","default":false,"example":false},"preserve_path_prefix":{"type":"boolean","description":"Forward the full proxy path (including /proxy/{ns}/{name}) to the pod instead of stripping it. Required for apps configured with a base URL matching the proxy prefix.","default":false,"example":false},"rewrite_host_absolute_paths":{"type":"boolean","description":"Rewrite requests with absolute paths that escape the proxy prefix using Referer header","default":false,"example":false},"tls_insecure":{"type":"boolean","description":"Connect to backend over HTTPS with skip-verify (for self-signed certs)","default":false,"example":true},"websocket_paths":{"type":"array","items":{"type":"string","example":"Tempore beatae."},"description":"Paths that use WebSocket (informational, all paths support WS transparently)","example":["/websockify"]}},"description":"Proxy configuration hints for a workspace image","example":{"custom_request_headers":{"x-tenant":"workspaces"},"inject_base_tag":false,"needs_noop_sw":false,"preserve_path_prefix":true,"rewrite_host_absolute_paths":true,"tls_insecure":false,"websocket_paths":["/websockify"]}},"ImageRemoteDesktop":{"type":"object","properties":{"path":{"type":"string","description":"Path relative to the agent's base URL","default":"/","example":"/"},"port":{"type":"integer","description":"Guest port the agent listens on","example":8080,"format":"int64"},"protocol":{"type":"string","description":"Protocol name: \"selkies\" (Linux in-guest agent) or \"agent\" (cross-platform kw-agent)","example":"agent","enum":["selkies","agent"]}},"description":"In-guest remote desktop agent configuration","example":{"path":"/","port":8080,"protocol":"selkies"},"required":["protocol","port"]},"JoinDisplayPayload":{"type":"object","properties":{"name":{"type":"string","description":"Workspace name","example":"my-workspace"},"namespace":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"role":{"type":"string","description":"Initial role. Defaults to observer","default":"observer","example":"controller","enum":["observer","controller"]}},"description":"Payload for joining a workspace's shared display session","example":{"name":"my-workspace","namespace":"workspaces","role":"observer"},"required":["name"]},"JoinDisplayPayload2":{"type":"object","properties":{"role":{"type":"string","description":"Initial role. Defaults to observer","default":"observer","example":"observer","enum":["observer","controller"]}},"example":{"role":"controller"}},"LeaveDisplayPayload":{"type":"object","properties":{"name":{"type":"string","description":"Workspace name","example":"my-workspace"},"namespace":{"type":"string","description":"Workspace namespace","default":"workspaces","example":"workspaces"},"participant_id":{"type":"string","description":"Participant identifier to remove","example":"97f8c4b7a2"}},"description":"Payload for leaving a workspace's shared display session","example":{"name":"my-workspace","namespace":"workspaces","participant_id":"97f8c4b7a2"},"required":["name","participant_id"]},"LeaveResponseBody":{"type":"object","properties":{"ok":{"type":"boolean","description":"Whether the participant was removed","example":true}},"example":{"ok":true},"required":["ok"]},"Namespace":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","example":"2025-01-02T15:04:05Z"},"name":{"type":"string","description":"Namespace name","example":"workspaces"},"phase":{"type":"string","description":"Namespace phase","example":"Active"}},"description":"A Kubernetes namespace","example":{"created_at":"2025-01-02T15:04:05Z","name":"workspaces","phase":"Active"},"required":["name","phase"]},"Participant":{"type":"object","properties":{"connected":{"type":"boolean","description":"Whether the participant is attached to a display stream","example":false},"id":{"type":"string","description":"Opaque server-side participant identifier. A capability, not a credential; never sent to the guest or logged","example":"97f8c4b7a2"},"joined_at":{"type":"string","description":"RFC 3339 timestamp when the participant joined","example":"2026-09-19T15:04:05Z"},"role":{"type":"string","description":"Current role: observer (view-only) or controller. Server-enforced; a client-side viewOnly flag is not an authorization boundary","example":"observer","enum":["observer","controller"]}},"description":"A participant in a shared display session","example":{"connected":false,"id":"97f8c4b7a2","joined_at":"2026-09-19T15:04:05Z","role":"observer"},"required":["id","role","connected","joined_at"]},"SetGpuProfileRequestBody":{"type":"object","properties":{"profile_id":{"type":"string","example":"3vp","maxLength":63}},"example":{"profile_id":"ik2"},"required":["profile_id"]},"Sshkey":{"type":"object","properties":{"created_at":{"type":"string","description":"Creation timestamp","example":"2025-01-02T15:04:05Z"},"fingerprint":{"type":"string","description":"SHA256 fingerprint of the key","example":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789"},"key_name":{"type":"string","description":"Human-friendly label","example":"Laptop 2025"},"name":{"type":"string","description":"Resource name of the SshKey CR","example":"laptop-2025"},"namespace":{"type":"string","description":"Kubernetes namespace","example":"chris-at-fordham-id-au"},"public_key":{"type":"string","description":"SSH public key line","example":"ssh-rsa AAAAB3Nza... user@example.com"}},"description":"A stored SSH public key","example":{"created_at":"2025-01-02T15:04:05Z","fingerprint":"SHA256:aBcDeFgHiJkLmNoPqRsTuVwXyZ0123456789","key_name":"Laptop 2025","name":"laptop-2025","namespace":"chris-at-fordham-id-au","public_key":"ssh-rsa AAAAB3Nza... user@example.com"},"required":["name","namespace","public_key"]},"StartRequestBody":{"type":"object","properties":{"args":{"type":"array","items":{"type":"string","example":"Vel et ea ab eveniet molestiae deleniti."},"description":"Arguments passed to the executable verbatim","example":["Ut autem exercitationem at et quas aut.","Harum quia sint cumque.","Sed nam et in."],"maxItems":64},"cwd":{"type":"string","description":"Optional working directory for the new process","example":"C:\\Temp","maxLength":1024},"deadline_seconds":{"type":"integer","description":"Guest execution deadline in seconds","default":20,"example":4,"format":"int64","minimum":1,"maximum":20},"executable":{"type":"string","description":"Absolute path or name of the program to run","example":"C:\\Windows\\System32\\cmd.exe","minLength":1,"maxLength":1024},"namespace":{"type":"string","description":"Workspace namespace","example":"team-a","pattern":"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$","maxLength":63},"script":{"$ref":"#/components/schemas/ExecutionScriptPayload"},"workspace_name":{"type":"string","description":"Workspace name","example":"vm-1","pattern":"^[a-z0-9]([-a-z0-9.]*[a-z0-9])?$","maxLength":253}},"example":{"args":["Aut et sed voluptatum.","Molestiae dolores provident aut odit.","Laudantium molestiae."],"cwd":"C:\\Temp","deadline_seconds":3,"executable":"C:\\Windows\\System32\\cmd.exe","namespace":"team-a","script":{"body":"k","cwd":"o9m","name":"21o"},"workspace_name":"vm-1"},"required":["namespace","workspace_name"]},"Toleration":{"type":"object","properties":{"effect":{"type":"string","description":"Taint effect: NoSchedule, PreferNoSchedule, or NoExecute","example":"NoSchedule","enum":["NoSchedule","PreferNoSchedule","NoExecute",""]},"key":{"type":"string","description":"Toleration key","example":"nvidia.com/gpu"},"operator":{"type":"string","description":"Operator: Exists or Equal","default":"Equal","example":"Equal","enum":["Exists","Equal"]},"value":{"type":"string","description":"Toleration value","example":"true"}},"description":"Kubernetes pod toleration","example":{"effect":"NoSchedule","key":"nvidia.com/gpu","operator":"Equal","value":"true"},"required":["key"]},"VMGPUProfile":{"type":"object","properties":{"count":{"type":"integer","example":3887178658561231896,"format":"int64"},"display_name":{"type":"string","example":"Perferendis excepturi aliquid voluptas."},"experimental":{"type":"boolean","example":true},"guest_driver_version":{"type":"string","example":"Optio sed nihil est delectus dolor."},"id":{"type":"string","example":"Perspiciatis quia aut consequatur dolores unde."},"kind":{"type":"string","example":"pci","enum":["pci","mediated"]},"node_selector":{"type":"object","example":{"Maiores nobis molestiae vitae sunt rerum eum.":"Qui labore sequi temporibus incidunt sed exercitationem.","Quia aperiam dicta maiores temporibus quo.":"Quas porro officiis unde ipsam quod.","Ut ab.":"Alias saepe minima autem enim."},"additionalProperties":{"type":"string","example":"Eum nemo qui facere veniam quasi."}},"resource_name":{"type":"string","example":"Impedit impedit dolores possimus aut et."}},"description":"Operator-declared render-only Windows GPU contract; driver version is required configuration, not observed guest readiness","example":{"count":3549972865666782080,"display_name":"Labore id totam sequi et deleniti laboriosam.","experimental":false,"guest_driver_version":"Inventore velit.","id":"Hic sed quaerat dolores officiis eveniet odit.","kind":"mediated","node_selector":{"Ducimus accusantium alias incidunt quas.":"Quidem quia aut doloribus itaque quo.","Maiores est quibusdam architecto quam aut.":"Quo voluptate dolorum blanditiis eum.","Placeat vel et aut eius.":"Illo et natus voluptas."},"resource_name":"Aut consequatur facilis aut dolores deserunt."},"required":["id","display_name","resource_name","kind","count","node_selector","guest_driver_version","experimental"]},"VMOptions":{"type":"object","properties":{"gpu_profile":{"type":"string","description":"Versioned operator-approved VM GPU profile ID; omitted/empty keeps software graphics","example":"tg5","maxLength":63},"import_cert_config_map_name":{"type":"string","description":"Same-namespace registry CA ConfigMap","example":"Sint consectetur."},"import_secret_name":{"type":"string","description":"Same-namespace CDI accessKeyId/secretKey Secret","example":"Enim ea."},"root_disk_size":{"type":"string","description":"Persistent Windows root capacity, at least 80Gi","example":"Magni sint nulla."},"storage_class_name":{"type":"string","description":"Persistent root StorageClass; empty uses cluster default","example":"Dicta voluptatem quas totam laboriosam et."}},"description":"Namespaced Windows root import settings; credentials remain in Kubernetes Secrets","example":{"gpu_profile":"dyd","import_cert_config_map_name":"Dolore et sapiente earum deserunt et cumque.","import_secret_name":"Rerum error tempora animi perferendis id.","root_disk_size":"Ad sit quis sint nulla.","storage_class_name":"Praesentium delectus expedita."}},"Volume":{"type":"object","properties":{"access_mode":{"type":"string","description":"Access mode","example":"ReadWriteOnce"},"created_at":{"type":"string","description":"Creation timestamp","example":"2025-01-02T15:04:05Z"},"labels":{"type":"object","description":"Kubernetes labels on the PVC","example":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"additionalProperties":{"type":"string","example":"Inventore architecto vero ratione autem saepe."}},"name":{"type":"string","description":"PVC name","example":"my-workspace-data"},"namespace":{"type":"string","description":"Kubernetes namespace","example":"workspaces"},"phase":{"type":"string","description":"PVC phase (Bound, Pending, etc.)","example":"Bound"},"size":{"type":"string","description":"Storage size","example":"10Gi"},"storage_class":{"type":"string","description":"Storage class","example":"standard"},"type":{"type":"string","description":"Volume type: pvc or vm-disk","default":"pvc","example":"vm-disk","enum":["pvc","vm-disk"]}},"description":"A persistent volume claim","example":{"access_mode":"ReadWriteOnce","created_at":"2025-01-02T15:04:05Z","labels":{"managed-by":"kube-workspaces","workspace":"my-workspace"},"name":"my-workspace-data","namespace":"workspaces","phase":"Bound","size":"10Gi","storage_class":"standard","type":"vm-disk"},"required":["name","namespace","size","phase"]},"VolumeMount":{"type":"object","properties":{"bus":{"type":"string","description":"Disk bus type for VMs when type is 'cdrom' (e.g. 'sata', 'ide'). Ignored for 'disk' type.","example":"sata","enum":["sata","ide","virtio","scsi","usb"]},"mount_path":{"type":"string","description":"Mount path in container","example":"/home/coder"},"name":{"type":"string","description":"Volume/PVC name","example":"my-workspace-data"},"readonly":{"type":"boolean","description":"Whether the mount is read-only. Omitted defaults to writable for container PVCs and VM data disks, and read-only for VM CD-ROMs.","example":true},"type":{"type":"string","description":"Volume mount type for VMs: 'disk' (virtio disk) or 'cdrom' (optical disc). Empty/omitted defaults to 'disk' for VM volume mounts.","example":"disk","enum":["disk","cdrom"]}},"description":"Container PVC mount, or reusable CDI VM data disk with an absolute guest mount path","example":{"bus":"sata","mount_path":"/home/coder","name":"my-workspace-data","readonly":true,"type":"disk"},"required":["name","mount_path"]},"Workspace":{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceCondition"},"description":"Workspace conditions","example":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}]},"container_state":{"$ref":"#/components/schemas/ContainerState"},"cpu_limit":{"type":"string","description":"CPU limit","example":"1"},"cpu_request":{"type":"string","description":"CPU request","example":"500m"},"created_at":{"type":"string","description":"Creation timestamp","example":"2025-01-02T15:04:05Z"},"execution_identity":{"type":"string","description":"Configured elevated command identity hint, not live runner readiness; admission verifies policy, ownership and installed runner","example":"SYSTEM","enum":["root","SYSTEM"]},"image":{"type":"string","description":"Container image","example":"codercom/code-server:latest"},"memory_limit":{"type":"string","description":"Memory limit","example":"2Gi"},"memory_request":{"type":"string","description":"Memory request","example":"512Mi"},"name":{"type":"string","description":"Workspace name","example":"my-workspace"},"namespace":{"type":"string","description":"Kubernetes namespace","example":"workspaces"},"port":{"type":"integer","description":"Container port","example":8080,"format":"int64"},"provisioned":{"type":"boolean","description":"Windows native setup and bootstrap removal have completed","example":false},"ready_replicas":{"type":"integer","description":"Number of ready replicas","example":1,"format":"int64"},"remote_desktop":{"$ref":"#/components/schemas/ImageRemoteDesktop"},"stopped":{"type":"boolean","description":"Whether the workspace is stopped","example":false},"type":{"type":"string","description":"Workspace type: container, vm, or scratch","default":"container","example":"container","enum":["container","vm","scratch"]},"vm_gpu_profile":{"$ref":"#/components/schemas/VMGPUProfile"},"vm_profile":{"type":"string","description":"Resolved guest profile; windows11-amd64-v1 uses display-only native provisioning","example":"Dolores quaerat placeat quisquam quis ullam."},"volume_mounts":{"type":"array","items":{"$ref":"#/components/schemas/VolumeMount"},"description":"Attached volumes","example":[{"mount_path":"/home/coder","name":"my-workspace-data"}]}},"description":"A workspace resource","example":{"conditions":[{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}],"container_state":{"message":"Container started successfully","reason":"Started","started_at":"2025-01-02T15:04:05Z","state":"running"},"cpu_limit":"1","cpu_request":"500m","created_at":"2025-01-02T15:04:05Z","execution_identity":"root","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"my-workspace","namespace":"workspaces","port":8080,"provisioned":false,"ready_replicas":1,"remote_desktop":{"path":"/","port":8080,"protocol":"agent"},"stopped":false,"type":"container","vm_gpu_profile":{"count":8415295335791754653,"display_name":"Et impedit dicta quo et perferendis qui.","experimental":false,"guest_driver_version":"Vero quis.","id":"Esse consequatur.","kind":"pci","node_selector":{"Sapiente sit ut at.":"Est voluptas et voluptates et.","Sequi iusto excepturi itaque officiis et est.":"Voluptates voluptatem nobis ut."},"resource_name":"Dolor et voluptas quis eum."},"vm_profile":"Doloribus culpa totam consectetur.","volume_mounts":[{"mount_path":"/home/coder","name":"my-workspace-data"}]},"required":["name","namespace","image","type","ready_replicas","stopped"]},"WorkspaceCondition":{"type":"object","properties":{"last_transition_time":{"type":"string","description":"Last transition time","example":"2025-01-02T15:04:05Z"},"message":{"type":"string","description":"Detailed message","example":"StatefulSet my-workspace is available"},"reason":{"type":"string","description":"Brief reason","example":"MinimumReplicasAvailable"},"status":{"type":"string","description":"Condition status","example":"True"},"type":{"type":"string","description":"Condition type","example":"Ready"}},"description":"Condition of a workspace","example":{"last_transition_time":"2025-01-02T15:04:05Z","message":"StatefulSet my-workspace is available","reason":"MinimumReplicasAvailable","status":"True","type":"Ready"}},"WorkspaceContainer":{"type":"object","properties":{"args":{"type":"array","items":{"type":"string","example":"Officiis quidem."},"description":"Container argument override, passed verbatim","example":["Reprehenderit reprehenderit.","In non accusamus est tempora.","Quisquam illo veniam harum.","Itaque quia quis quia dolores ipsa."]},"command":{"type":"array","items":{"type":"string","example":"Harum illo amet dolores."},"description":"Container entrypoint override, passed verbatim","example":["Dolorem delectus aperiam.","Voluptatum qui blanditiis aut sunt natus repellat."]},"cpu_limit":{"type":"string","description":"CPU limit","default":"2","example":"2"},"cpu_request":{"type":"string","description":"CPU request","default":"500m","example":"500m"},"gpu_request":{"type":"string","description":"GPU resource request count (e.g. \"1\")","example":"1"},"gpu_vendor":{"type":"string","description":"GPU vendor resource name (e.g. nvidia.com/gpu, amd.com/gpu)","default":"nvidia.com/gpu","example":"nvidia.com/gpu"},"image":{"type":"string","description":"Container image","example":"codercom/code-server:latest"},"memory_limit":{"type":"string","description":"Memory limit","default":"2Gi","example":"2Gi"},"memory_request":{"type":"string","description":"Memory request","default":"512Mi","example":"512Mi"},"name":{"type":"string","description":"Container name","example":"code-server"},"port":{"type":"integer","description":"Container port","default":8080,"example":8080,"format":"int64"}},"description":"Container specification for a workspace","example":{"args":["Sequi quas ad cum.","Laudantium vel quo expedita ut vel amet."],"command":["Quis voluptatibus non.","Et quisquam dignissimos eos laborum.","Iure odio labore quod."],"cpu_limit":"2","cpu_request":"500m","gpu_request":"1","gpu_vendor":"nvidia.com/gpu","image":"codercom/code-server:latest","memory_limit":"2Gi","memory_request":"512Mi","name":"code-server","port":8080},"required":["name","image"]},"WorkspaceContainerInit":{"type":"object","properties":{"default_user":{"type":"string","description":"Explicit account for default-user and SSH key resolution; empty clears inherited value","example":"a","pattern":"^([a-z_][a-z0-9_-]{0,31})?$"},"mode":{"type":"string","example":"disabled","enum":["disabled","injected","baked-in"]},"run_as_user":{"type":"string","description":"Non-root application identity after injected provisioning; empty clears inherited value","example":"","pattern":"^([a-z_][a-z0-9_-]{0,31})?$"},"user_data":{"type":"string","description":"Inline cloud-config, visible in the Workspace CR","example":"1n0","maxLength":262144},"user_data_secret":{"type":"string","description":"Same-namespace independently managed Secret with a user-data key","example":"8zq","maxLength":253}},"description":"Creation-time container initialization override; data defaults to the catalog document","example":{"default_user":"","mode":"baked-in","run_as_user":"","user_data":"inv","user_data_secret":"zaa"},"required":["mode"]},"WorkspaceInitialCredentials":{"type":"object","properties":{"cache_control":{"type":"string","example":"Delectus commodi molestiae."},"password":{"type":"string","example":"Eum sit adipisci."},"username":{"type":"string","example":"Optio soluta sint nesciunt hic."}},"description":"Per-workspace initial Windows account, visible only to namespace editors/admins","example":{"cache_control":"Velit facere.","password":"Ad architecto asperiores voluptate.","username":"Recusandae exercitationem exercitationem."},"required":["username","password","cache_control"]},"WorkspaceInitialCredentials2":{"type":"object","properties":{"password":{"type":"string","example":"Placeat doloribus voluptatem voluptatem ad possimus."},"username":{"type":"string","example":"Provident rerum."}},"example":{"password":"Nobis harum possimus.","username":"Est voluptate quis."},"required":["username","password"]}}},"tags":[{"name":"agentupgrades","description":"Administrator-only agent upgrade admission: availability, start, status, cancel and rollback"},{"name":"executions","description":"Scoped execution management status, history and protected recording replay"},{"name":"workspaces","description":"Workspace management service"},{"name":"volumes","description":"Volume (PVC) management service"},{"name":"sshkeys","description":"SSH public key management service"},{"name":"images","description":"Available workspace images"},{"name":"namespaces","description":"Namespace management"},{"name":"health","description":"Health check service"},{"name":"display","description":"Shared display session membership and control: one controller plus view-only observers per VM desktop"},{"name":"agent","description":"Workspace guest agent sessions: short-lived attach tickets with renew/release for the proxy bridge"}]}