{"openapi":"3.1.0","info":{"title":"Oblien API","version":"v2","description":"Executable contracts shared by HTTP and MCP routes."},"servers":[{"url":"/v2","description":"Versioned API"}],"paths":{"/vms/{vmId}/desktop/sessions/{sessionId}/start":{"post":{"operationId":"vm.desktop.sessions.start","summary":"Start a saved desktop","description":"Start a saved desktop\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"sessionId","in":"path","required":true,"schema":{"pattern":"^(console|ds_[a-f0-9]{16})$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"ds_0123456789abcdef"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","session"],"properties":{"success":{"const":true,"type":"boolean"},"session":{"additionalProperties":false,"type":"object","required":["id","name","state","managed","available"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"state":{"anyOf":[{"const":"starting","type":"string"},{"const":"running","type":"string"},{"const":"stopping","type":"string"},{"const":"deleting","type":"string"},{"const":"stopped","type":"string"},{"const":"failed","type":"string"}]},"managed":{"type":"boolean"},"available":{"type":"boolean"},"can_delete":{"type":"boolean"},"can_resize":{"type":"boolean"},"deletion_pending":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"error":{"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"session":{"id":"example","name":"example","state":"starting","managed":false,"available":false}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.startSession","x-read-only":false,"x-audit-action":"vm.desktop.sessions.start","x-mcp-tool":"vm_desktop_start","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/desktop/sessions/{sessionId}/stop":{"post":{"operationId":"vm.desktop.sessions.stop","summary":"Close desktop applications and retain the saved profile","description":"Close desktop applications and retain the saved profile\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"sessionId","in":"path","required":true,"schema":{"pattern":"^(console|ds_[a-f0-9]{16})$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"ds_0123456789abcdef"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","session"],"properties":{"success":{"const":true,"type":"boolean"},"session":{"additionalProperties":false,"type":"object","required":["id","name","state","managed","available"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"state":{"anyOf":[{"const":"starting","type":"string"},{"const":"running","type":"string"},{"const":"stopping","type":"string"},{"const":"deleting","type":"string"},{"const":"stopped","type":"string"},{"const":"failed","type":"string"}]},"managed":{"type":"boolean"},"available":{"type":"boolean"},"can_delete":{"type":"boolean"},"can_resize":{"type":"boolean"},"deletion_pending":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"error":{"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"session":{"id":"example","name":"example","state":"starting","managed":false,"available":false}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.stopSession","x-read-only":false,"x-audit-action":"vm.desktop.sessions.stop","x-mcp-tool":"vm_desktop_stop","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/desktop/sessions/{sessionId}":{"get":{"operationId":"vm.desktop.sessions.get","summary":"Read a saved desktop","description":"Read a saved desktop\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"sessionId","in":"path","required":true,"schema":{"pattern":"^(console|ds_[a-f0-9]{16})$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"ds_0123456789abcdef"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","session"],"properties":{"success":{"const":true,"type":"boolean"},"session":{"additionalProperties":false,"type":"object","required":["id","name","state","managed","available"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"state":{"anyOf":[{"const":"starting","type":"string"},{"const":"running","type":"string"},{"const":"stopping","type":"string"},{"const":"deleting","type":"string"},{"const":"stopped","type":"string"},{"const":"failed","type":"string"}]},"managed":{"type":"boolean"},"available":{"type":"boolean"},"can_delete":{"type":"boolean"},"can_resize":{"type":"boolean"},"deletion_pending":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"error":{"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"session":{"id":"example","name":"example","state":"starting","managed":false,"available":false}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.getSession","x-read-only":true,"x-mcp-tool":"vm_desktop_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"patch":{"operationId":"vm.desktop.sessions.update","summary":"Rename a desktop or change its resolution","description":"Rename a desktop or change its resolution\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"sessionId","in":"path","required":true,"schema":{"pattern":"^(console|ds_[a-f0-9]{16})$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"ds_0123456789abcdef"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"minLength":1,"maxLength":80,"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"minimum":640,"maximum":3840,"type":"integer"},"height":{"minimum":480,"maximum":2160,"type":"integer"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","session"],"properties":{"success":{"const":true,"type":"boolean"},"session":{"additionalProperties":false,"type":"object","required":["id","name","state","managed","available"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"state":{"anyOf":[{"const":"starting","type":"string"},{"const":"running","type":"string"},{"const":"stopping","type":"string"},{"const":"deleting","type":"string"},{"const":"stopped","type":"string"},{"const":"failed","type":"string"}]},"managed":{"type":"boolean"},"available":{"type":"boolean"},"can_delete":{"type":"boolean"},"can_resize":{"type":"boolean"},"deletion_pending":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"error":{"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"session":{"id":"example","name":"example","state":"starting","managed":false,"available":false}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.updateSession","x-read-only":false,"x-audit-action":"vm.desktop.sessions.update","x-mcp-tool":"vm_desktop_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"delete":{"operationId":"vm.desktop.sessions.delete","summary":"Delete a stopped desktop and its saved profile","description":"Delete a stopped desktop and its saved profile\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"sessionId","in":"path","required":true,"schema":{"pattern":"^(console|ds_[a-f0-9]{16})$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"ds_0123456789abcdef"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.deleteSession","x-read-only":false,"x-audit-action":"vm.desktop.sessions.delete","x-mcp-tool":"vm_desktop_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/desktop/installation":{"get":{"operationId":"vm.desktop.installation","summary":"Inspect desktop installation progress","description":"Inspect desktop installation progress\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","installable","phase"],"properties":{"success":{"const":true,"type":"boolean"},"installable":{"type":"boolean"},"phase":{"type":"string"},"workload_id":{"type":"string"},"installed":{"type":"boolean"},"selected":{"type":"string"},"stage":{"type":"string"},"error":{"type":"string"},"prepared":{"type":"boolean"},"choices":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","label","description","prepared","minimum_memory_mb"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"prepared":{"type":"boolean"},"minimum_memory_mb":{"type":"number"}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"installable":false,"phase":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.installation","x-read-only":true,"x-mcp-tool":"vm_desktop_installation","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/desktop/sessions":{"get":{"operationId":"vm.desktop.sessions.list","summary":"List saved desktops and their capabilities","description":"List saved desktops and their capabilities\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","sessions","capabilities"],"properties":{"success":{"const":true,"type":"boolean"},"sessions":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","state","managed","available"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"state":{"anyOf":[{"const":"starting","type":"string"},{"const":"running","type":"string"},{"const":"stopping","type":"string"},{"const":"deleting","type":"string"},{"const":"stopped","type":"string"},{"const":"failed","type":"string"}]},"managed":{"type":"boolean"},"available":{"type":"boolean"},"can_delete":{"type":"boolean"},"can_resize":{"type":"boolean"},"deletion_pending":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"error":{"type":"string"}}}},"capabilities":{"additionalProperties":false,"type":"object","required":["mode","max_sessions","can_create"],"properties":{"mode":{"anyOf":[{"const":"virtual","type":"string"},{"const":"console","type":"string"}]},"max_sessions":{"type":"number"},"can_create":{"type":"boolean"},"resolution":{"additionalProperties":false,"type":"object","required":["min","max","default"],"properties":{"min":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"max":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"default":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}}}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"sessions":[],"capabilities":{"mode":"virtual","max_sessions":0,"can_create":false}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.listSessions","x-read-only":true,"x-mcp-tool":"vm_desktop_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"vm.desktop.sessions.create","summary":"Create a desktop with a private profile","description":"Create a desktop with a private profile\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":80,"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"minimum":640,"maximum":3840,"type":"integer"},"height":{"minimum":480,"maximum":2160,"type":"integer"}}},"idempotency_key":{"maxLength":64,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"name":"example"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","session"],"properties":{"success":{"const":true,"type":"boolean"},"session":{"additionalProperties":false,"type":"object","required":["id","name","state","managed","available"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"resolution":{"additionalProperties":false,"type":"object","required":["width","height"],"properties":{"width":{"type":"number"},"height":{"type":"number"}}},"state":{"anyOf":[{"const":"starting","type":"string"},{"const":"running","type":"string"},{"const":"stopping","type":"string"},{"const":"deleting","type":"string"},{"const":"stopped","type":"string"},{"const":"failed","type":"string"}]},"managed":{"type":"boolean"},"available":{"type":"boolean"},"can_delete":{"type":"boolean"},"can_resize":{"type":"boolean"},"deletion_pending":{"type":"boolean"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"error":{"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"session":{"id":"example","name":"example","state":"starting","managed":false,"available":false}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.createSession","x-read-only":false,"x-audit-action":"vm.desktop.sessions.create","x-mcp-tool":"vm_desktop_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/desktop/install":{"post":{"operationId":"vm.desktop.install","summary":"Install a compatible desktop; restart requires explicit selection","description":"Install a compatible desktop; restart requires explicit selection\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"desktop":{"minLength":1,"maxLength":128,"type":"string"},"restart":{"type":"boolean"}}}}}},"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","installable","phase"],"properties":{"success":{"const":true,"type":"boolean"},"installable":{"type":"boolean"},"phase":{"type":"string"},"workload_id":{"type":"string"},"installed":{"type":"boolean"},"selected":{"type":"string"},"stage":{"type":"string"},"error":{"type":"string"},"prepared":{"type":"boolean"},"choices":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","label","description","prepared","minimum_memory_mb"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"prepared":{"type":"boolean"},"minimum_memory_mb":{"type":"number"}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"installable":false,"phase":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.install","x-read-only":false,"x-audit-action":"vm.desktop.install","x-mcp-tool":"vm_desktop_install","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/desktop/ssh":{"post":{"operationId":"vm.desktop.ssh","summary":"Issue a scoped desktop SSH connection","description":"Issue a scoped desktop SSH connection\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"session_id":{"pattern":"^(console|ds_[a-f0-9]{16})$","type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","expires_at","ssh","vnc"],"properties":{"success":{"const":true,"type":"boolean"},"session_id":{"type":"string"},"expires_at":{"type":"string"},"delegated":{"type":"boolean"},"ssh":{"additionalProperties":false,"type":"object","required":["host","port","username","password","host_key_fingerprint"],"properties":{"host":{"type":"string"},"port":{"type":"number"},"username":{"type":"string"},"password":{"type":"string"},"host_key_fingerprint":{"type":"string"}}},"vnc":{"additionalProperties":false,"type":"object","required":["host","port","authentication"],"properties":{"host":{"type":"string"},"port":{"type":"number"},"authentication":{"const":"none","type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"expires_at":"example","ssh":{"host":"example","port":0,"username":"example","password":"example-password","host_key_fingerprint":"example"},"vnc":{"host":"example","port":0,"authentication":"none"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"desktop.sshConnection","x-read-only":false,"x-audit-action":"vm.desktop.ssh","x-mcp-tool":"vm_desktop_ssh","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/workloads/{workloadId}/logs/config":{"get":{"operationId":"vm.workload.logs.config","summary":"Read effective workload log retention, stored bytes and dropped output","description":"Read effective workload log retention, stored bytes and dropped output\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","log_config"],"properties":{"success":{"const":true,"type":"boolean"},"log_config":{"additionalProperties":false,"type":"object","required":["max_log_size_mb","log_retention_hours","max_total_bytes","stored_bytes","max_write_bytes_per_second","dropped_bytes"],"properties":{"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"max_total_bytes":{"type":"number"},"stored_bytes":{"type":"number"},"max_write_bytes_per_second":{"type":"number"},"dropped_bytes":{"type":"number"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"log_config":{"max_log_size_mb":0,"log_retention_hours":0,"max_total_bytes":0,"stored_bytes":0,"max_write_bytes_per_second":0,"dropped_bytes":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.getWorkloadLogConfig","x-read-only":true,"x-mcp-tool":"vm_workload_logs_config","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/workloads/{workloadId}/status":{"get":{"operationId":"vm.workload.status","summary":"Get runtime status of a workload","description":"Get runtime status of a workload\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","status"],"properties":{"success":{"const":true,"type":"boolean"},"status":{"additionalProperties":false,"type":"object","required":["id","state","pid","exit_code","restart_count","last_start_time","last_exit_time"],"properties":{"id":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"restart_count":{"type":"number"},"last_start_time":{"type":"number"},"last_exit_time":{"type":"number"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"status":{"id":"example","state":"example","pid":0,"exit_code":0,"restart_count":0,"last_start_time":0,"last_exit_time":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.getWorkloadStatus","x-read-only":true,"x-mcp-tool":"vm_workload_status","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/workloads/{workloadId}/start":{"post":{"operationId":"vm.workload.start","summary":"Start a workload","description":"Start a workload\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.startWorkload","x-read-only":false,"x-audit-action":"vm.workload.start","x-mcp-tool":"vm_workload_start","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/workloads/{workloadId}/stats":{"get":{"operationId":"vm.workload.stats","summary":"Get workload resource stats (one-shot)","description":"Get workload resource stats (one-shot)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","stats"],"properties":{"success":{"const":true,"type":"boolean"},"stats":{"additionalProperties":false,"type":"object","required":["id","state"],"properties":{"id":{"type":"string"},"state":{"type":"string"},"target":{"type":"string"},"pid":{"type":"number"},"cpu_percent":{"type":"number"},"cpu_time_seconds":{"type":"number"},"rss_bytes":{"type":"number"},"vms_bytes":{"type":"number"},"memory_total":{"type":"number"},"memory_percent":{"type":"number"},"num_threads":{"type":"number"},"uptime_seconds":{"type":"number"},"error":{"type":"string"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"stats":{"id":"example","state":"example"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.getWorkloadStats","x-read-only":true,"x-mcp-tool":"vm_workload_stats","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/workloads/{workloadId}/stop":{"post":{"operationId":"vm.workload.stop","summary":"Stop a workload","description":"Stop a workload\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.stopWorkload","x-read-only":false,"x-audit-action":"vm.workload.stop","x-mcp-tool":"vm_workload_stop","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/workloads/{workloadId}/logs":{"get":{"operationId":"vm.workload.logs","summary":"Get workload logs (one-shot)","description":"Get workload logs (one-shot)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}},{"name":"tail","in":"query","required":false,"schema":{"minimum":0,"maximum":10000,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","logs"],"properties":{"success":{"const":true,"type":"boolean"},"logs":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"logs":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.getWorkloadLogs","x-read-only":true,"x-mcp-tool":"vm_workload_logs","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"vm.workload.logs.clear","summary":"Delete stored workload log history without stopping the process","description":"Delete stored workload log history without stopping the process\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","log_config"],"properties":{"success":{"const":true,"type":"boolean"},"log_config":{"additionalProperties":false,"type":"object","required":["max_log_size_mb","log_retention_hours","max_total_bytes","stored_bytes","max_write_bytes_per_second","dropped_bytes"],"properties":{"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"max_total_bytes":{"type":"number"},"stored_bytes":{"type":"number"},"max_write_bytes_per_second":{"type":"number"},"dropped_bytes":{"type":"number"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"log_config":{"max_log_size_mb":0,"log_retention_hours":0,"max_total_bytes":0,"stored_bytes":0,"max_write_bytes_per_second":0,"dropped_bytes":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.clearWorkloadLogs","x-read-only":false,"x-audit-action":"vm.workload.logs.clear","x-mcp-tool":"vm_workload_logs_clear","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/workloads/{workloadId}":{"get":{"operationId":"vm.workload.get","summary":"Get a specific workload by ID or name","description":"Get a specific workload by ID or name\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","workload"],"properties":{"success":{"const":true,"type":"boolean"},"workload":{"additionalProperties":false,"type":"object","required":["id","vm_id","command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"workload":{"id":"example","vm_id":"vm_example","command":[]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.getWorkload","x-read-only":true,"x-mcp-tool":"vm_workload_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"vm.workload.update","summary":"Update a workload","description":"Update a workload\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"x-optional-body-envelope":"updates","requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"maxLength":128,"type":"string"},"env":{"anyOf":[{"maxItems":1024,"type":"array","items":{"maxLength":32768,"type":"string"}},{"maxProperties":1024,"type":"object","patternProperties":{"^(.*)$":{"maxLength":32768,"type":"string"}}}]},"restart_policy":{"anyOf":[{"const":"never","type":"string"},{"const":"on-failure","type":"string"},{"const":"always","type":"string"}]},"max_restarts":{"minimum":0,"type":"integer"},"max_log_size_mb":{"minimum":0,"maximum":64,"type":"integer"},"log_retention_hours":{"minimum":0,"maximum":720,"type":"integer"},"labels":{"maxProperties":64,"type":"object","patternProperties":{"^(.*)$":{"maxLength":1024,"type":"string"}}},"restart_delay":{"minimum":0,"type":"integer"},"restart_backoff":{"type":"boolean"},"vm_on_exit":{"anyOf":[{"const":"","type":"string"},{"const":"pause","type":"string"},{"const":"stop","type":"string"},{"const":"exit","type":"string"}]},"annotations":{"maxProperties":64,"type":"object","patternProperties":{"^(.*)$":{"maxLength":1024,"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","workload"],"properties":{"success":{"const":true,"type":"boolean"},"workload":{"additionalProperties":false,"type":"object","required":["id","vm_id","command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"workload":{"id":"example","vm_id":"vm_example","command":[]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.updateWorkload","x-read-only":false,"x-audit-action":"vm.workload.update","x-mcp-tool":"vm_workload_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"patch":{"operationId":"vm.workload.update.patch","summary":"Update a workload","description":"Update a workload","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"}}],"x-optional-body-envelope":"updates","requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"maxLength":128,"type":"string"},"env":{"anyOf":[{"maxItems":1024,"type":"array","items":{"maxLength":32768,"type":"string"}},{"maxProperties":1024,"type":"object","patternProperties":{"^(.*)$":{"maxLength":32768,"type":"string"}}}]},"restart_policy":{"anyOf":[{"const":"never","type":"string"},{"const":"on-failure","type":"string"},{"const":"always","type":"string"}]},"max_restarts":{"minimum":0,"type":"integer"},"max_log_size_mb":{"minimum":0,"maximum":64,"type":"integer"},"log_retention_hours":{"minimum":0,"maximum":720,"type":"integer"},"labels":{"maxProperties":64,"type":"object","patternProperties":{"^(.*)$":{"maxLength":1024,"type":"string"}}},"restart_delay":{"minimum":0,"type":"integer"},"restart_backoff":{"type":"boolean"},"vm_on_exit":{"anyOf":[{"const":"","type":"string"},{"const":"pause","type":"string"},{"const":"stop","type":"string"},{"const":"exit","type":"string"}]},"annotations":{"maxProperties":64,"type":"object","patternProperties":{"^(.*)$":{"maxLength":1024,"type":"string"}}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","workload"],"properties":{"success":{"const":true,"type":"boolean"},"workload":{"additionalProperties":false,"type":"object","required":["id","vm_id","command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.updateWorkload","x-read-only":false,"x-audit-action":"vm.workload.update"},"delete":{"operationId":"vm.workload.delete","summary":"Delete a specific workload","description":"Delete a specific workload\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"workloadId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^(?!\\.{1,2}$)[^/\\u0000]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"web"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.deleteWorkload","x-read-only":false,"x-audit-action":"vm.workload.delete","x-mcp-tool":"vm_workload_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/workloads":{"post":{"operationId":"vm.workload.create","summary":"Create a managed workload (background process)","description":"Create a managed workload (background process)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"maxLength":128,"type":"string"},"env":{"anyOf":[{"maxItems":1024,"type":"array","items":{"maxLength":32768,"type":"string"}},{"maxProperties":1024,"type":"object","patternProperties":{"^(.*)$":{"maxLength":32768,"type":"string"}}}]},"restart_policy":{"anyOf":[{"const":"never","type":"string"},{"const":"on-failure","type":"string"},{"const":"always","type":"string"}]},"max_restarts":{"minimum":0,"type":"integer"},"max_log_size_mb":{"minimum":0,"maximum":64,"type":"integer"},"log_retention_hours":{"minimum":0,"maximum":720,"type":"integer"},"labels":{"maxProperties":64,"type":"object","patternProperties":{"^(.*)$":{"maxLength":1024,"type":"string"}}},"id":{"pattern":"^[A-Za-z0-9][A-Za-z0-9_.-]{0,127}$","type":"string"},"command":{"anyOf":[{"minLength":1,"maxLength":131072,"type":"string"},{"minItems":1,"maxItems":4096,"type":"array","items":{"maxLength":131072,"type":"string"}}]},"cmd":{"anyOf":[{"minLength":1,"maxLength":131072,"type":"string"},{"minItems":1,"maxItems":4096,"type":"array","items":{"maxLength":131072,"type":"string"}}]},"target":{"pattern":"^[a-z][a-z0-9_-]{0,63}$","type":"string"},"working_dir":{"maxLength":4096,"type":"string"},"workdir":{"maxLength":4096,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","workload"],"properties":{"success":{"const":true,"type":"boolean"},"workload":{"additionalProperties":false,"type":"object","required":["id","vm_id","command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"workload":{"id":"example","vm_id":"vm_example","command":[]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.createWorkload","x-read-only":false,"x-audit-action":"vm.workload.create","x-mcp-tool":"vm_workload_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"get":{"operationId":"vm.workload.list","summary":"List workloads in a VM","description":"List workloads in a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"name","in":"query","required":false,"schema":{"maxLength":128,"type":"string"}},{"name":"states","in":"query","required":false,"schema":{"anyOf":[{"maxLength":256,"type":"string"},{"maxItems":20,"type":"array","items":{"maxLength":64,"type":"string"}}]}},{"name":"labels","in":"query","required":false,"schema":{"maxProperties":64,"type":"object","patternProperties":{"^(.*)$":{"maxLength":1024,"type":"string"}}}}],"x-query-prefixes":{"labels":"label_"},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","workloads","count"],"properties":{"success":{"const":true,"type":"boolean"},"workloads":{"anyOf":[{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","vm_id","command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},{"type":"null"}]},"count":{"type":"number"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"workloads":[],"count":0}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.listWorkloads","x-read-only":true,"x-mcp-tool":"vm_workload_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"vm.workload.deleteAll","summary":"Delete all workloads in a VM","description":"Delete all workloads in a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"workloads.deleteAllWorkloads","x-read-only":false,"x-audit-action":"vm.workload.deleteAll","x-mcp-tool":"vm_workload_delete_all","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/runtime-api-access/token/raw":{"get":{"operationId":"vm.runtime.raw","summary":"Get raw Runtime API token (IP + port)","description":"Get the raw Runtime API credential using an unrestricted owner login or non-expiring account-admin API key.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","ip","port"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"anyOf":[{"type":"string"},{"type":"null"}]},"ip":{"type":"string"},"port":{"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"token":"example","ip":"192.0.2.10","port":0}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"runtime-api-access.getRawToken","x-read-only":true,"x-mcp-tool":"vm_api_access_token_raw","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/runtime-api-access/disable":{"post":{"operationId":"vm.runtime.disable","summary":"Disable Runtime API access","description":"Disable Runtime API access\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","enabled"],"properties":{"success":{"const":true,"type":"boolean"},"enabled":{"const":false,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"enabled":false}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"runtime-api-access.disable","x-read-only":false,"x-audit-action":"vm.runtime.disable","x-mcp-tool":"vm_api_access_disable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/runtime-api-access/enable":{"post":{"operationId":"vm.runtime.enable","summary":"Enable Runtime API access (installs SDK server in VM)","description":"Enable Runtime API access (installs SDK server in VM)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","enabled","token","expires_at"],"properties":{"success":{"const":true,"type":"boolean"},"enabled":{"const":true,"type":"boolean"},"token":{"type":"string"},"expires_at":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"enabled":true,"token":"example","expires_at":"2026-11-18T12:05:00.000Z"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"runtime-api-access.enable","x-read-only":false,"x-audit-action":"vm.runtime.enable","x-mcp-tool":"vm_api_access_enable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/runtime-api-access/token":{"get":{"operationId":"vm.runtime.token","summary":"Get gateway token for Runtime API access","description":"Issue a five-minute Runtime API capability for direct Edge-to-VM access. Renew before expiry; established streams continue until closed or revoked by runtime lifecycle controls.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","expires_at"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"type":"string"},"delegated":{"type":"boolean"},"expires_at":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"token":"example","expires_at":"2026-11-18T12:05:00.000Z"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"runtime-api-access.getGatewayToken","x-read-only":true,"x-mcp-tool":"vm_api_access_token","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"vm.runtime.rotate","summary":"Rotate the Runtime API access token","description":"Rotate the Runtime API access token\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","expires_at"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"type":"string"},"delegated":{"type":"boolean"},"expires_at":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"token":"example","expires_at":"2026-11-18T12:05:00.000Z"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"runtime-api-access.rotateToken","x-read-only":false,"x-audit-action":"vm.runtime.rotate","x-mcp-tool":"vm_api_access_token_rotate","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/runtime-api-access":{"get":{"operationId":"vm.runtime.status","summary":"Get Runtime API access status","description":"Get Runtime API access status\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","enabled","is_running","ip"],"properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"enabled":false,"is_running":false,"ip":"192.0.2.10"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"runtime-api-access.getStatus","x-read-only":true,"x-mcp-tool":"vm_api_access_status","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/usage/tracking/start":{"post":{"operationId":"vm.usage.tracking.start","summary":"Start usage tracking for a VM","description":"Enable usage charts and history for a VM; billing measurements continue independently\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"usage.startTracking","x-read-only":false,"x-audit-action":"vm.usage.tracking.start","x-mcp-tool":"vm_usage_tracking_start","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/usage/credits/chart":{"get":{"operationId":"vm.usage.chart","summary":"Get credit usage chart data for a VM","description":"Get credit usage chart data for a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","granularity","data","total"],"properties":{"success":{"const":true,"type":"boolean"},"granularity":{"anyOf":[{"const":"hour","type":"string"},{"const":"minute","type":"string"},{"const":"day","type":"string"}]},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["date","creditsBurned"],"properties":{"date":{"type":"string"},"creditsBurned":{"type":"number"}}}},"total":{"type":"number"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"granularity":"hour","data":[],"total":0}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"usage.creditsChart","x-read-only":true,"x-mcp-tool":"vm_credits_chart","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/usage/tracking/stop":{"post":{"operationId":"vm.usage.tracking.stop","summary":"Stop usage tracking for a VM","description":"Disable usage charts and history for a VM; billing measurements continue\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"usage.stopTracking","x-read-only":false,"x-audit-action":"vm.usage.tracking.stop","x-mcp-tool":"vm_usage_tracking_stop","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/usage/totals":{"get":{"operationId":"vm.usage.totals","summary":"Get per-VM usage totals","description":"Get per-VM usage totals\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm_id","totals"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"totals":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vm_id","first_at","last_at","sample_count","total_cpu_time_ns","total_disk_read","total_disk_write","total_net_rx","total_net_tx"],"properties":{"vm_id":{"type":"string"},"first_at":{"type":"string"},"last_at":{"type":"string"},"sample_count":{"type":"number"},"total_cpu_time_ns":{"type":"number"},"total_memory_byte_seconds":{"type":"number"},"total_reserved_memory_byte_seconds":{"type":"number"},"reserved_memory_from_millis":{"type":"number"},"total_disk_read":{"type":"number"},"total_disk_write":{"type":"number"},"total_net_rx":{"type":"number"},"total_net_tx":{"type":"number"}}},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","totals":{"vm_id":"vm_example","first_at":"example","last_at":"example","sample_count":0,"total_cpu_time_ns":0,"total_disk_read":0,"total_disk_write":0,"total_net_rx":0,"total_net_tx":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"usage.getUsageTotals","x-read-only":true,"x-mcp-tool":"vm_usage_totals","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/usage":{"get":{"operationId":"vm.usage.get","summary":"Get per-VM usage metrics","description":"Get per-VM usage metrics\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"from","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}},{"name":"tier","in":"query","required":false,"schema":{"anyOf":[{"minimum":0,"maximum":5,"type":"integer"},{"pattern":"^[0-5]$","type":"string"}]}},{"name":"last","in":"query","required":false,"schema":{"minLength":1,"maxLength":64,"type":"string"}},{"name":"all","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm_id","totals","from","to","snapshots","window_aggregated"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"totals":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vm_id","first_at","last_at","sample_count","total_cpu_time_ns","total_disk_read","total_disk_write","total_net_rx","total_net_tx"],"properties":{"vm_id":{"type":"string"},"first_at":{"type":"string"},"last_at":{"type":"string"},"sample_count":{"type":"number"},"total_cpu_time_ns":{"type":"number"},"total_memory_byte_seconds":{"type":"number"},"total_reserved_memory_byte_seconds":{"type":"number"},"reserved_memory_from_millis":{"type":"number"},"total_disk_read":{"type":"number"},"total_disk_write":{"type":"number"},"total_net_rx":{"type":"number"},"total_net_tx":{"type":"number"}}},{"type":"null"}]},"from":{"type":"string"},"to":{"type":"string"},"snapshots":{"anyOf":[{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","at","window_sec"],"properties":{"vm_id":{"type":"string"},"at":{"type":"string"},"window_sec":{"type":"number"},"cpu_percent":{"type":"number"},"quota_usage_percent":{"type":"number"},"memory_used":{"type":"number"},"memory_total":{"type":"number"},"guest_memory_used_kib":{"type":"number"},"cpu_time_delta_ns":{"type":"number"},"nr_throttled_delta":{"type":"number"},"throttled_usec_delta":{"type":"number"},"disk_read_delta":{"type":"number"},"disk_write_delta":{"type":"number"},"net_rx_delta":{"type":"number"},"net_tx_delta":{"type":"number"}}}},{"type":"null"}]},"window_aggregated":{"additionalProperties":false,"type":"object","properties":{"total_cpu_time_ns":{"type":"number"},"total_nr_throttled":{"type":"number"},"total_throttled_usec":{"type":"number"},"total_disk_read":{"type":"number"},"total_disk_write":{"type":"number"},"total_net_rx":{"type":"number"},"total_net_tx":{"type":"number"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","totals":{"vm_id":"vm_example","first_at":"example","last_at":"example","sample_count":0,"total_cpu_time_ns":0,"total_disk_read":0,"total_disk_write":0,"total_net_rx":0,"total_net_tx":0},"from":"example","to":"example","snapshots":[],"window_aggregated":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"usage.getUsage","x-read-only":true,"x-mcp-tool":"vm_usage","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"vm.usage.wipe","summary":"Wipe all usage data for a VM","description":"Clear VM usage chart history; billing totals, meter baselines and checkpoints are retained\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"usage.wipeUsage","x-read-only":false,"x-audit-action":"vm.usage.wipe","x-mcp-tool":"vm_usage_wipe","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/domain/ssl/renew":{"post":{"operationId":"vm.domain.renew","summary":"Renew SSL certificate for a VM custom domain","description":"Renew SSL certificate for a VM custom domain\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"domain":"app.example.com","ssl":{"status":"example","expiresAt":"example"}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"domain.renewSSL","x-read-only":false,"x-audit-action":"vm.domain.renew","x-mcp-tool":"vm_domain_ssl_renew","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/domain/check":{"post":{"operationId":"vm.domain.check","summary":"Check DNS configuration for a domain before connecting","description":"Check DNS configuration for a domain before connecting\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain"],"properties":{"domain":{"minLength":1,"maxLength":254,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"domain":"app.example.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","enterprise","verified","cname","ownership","records","errors","required_records","edge_ips"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"enterprise":{"type":"boolean"},"verified":{"type":"boolean"},"cname":{"type":"boolean"},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"records":{"type":"object","patternProperties":{"^(.*)$":{"type":"array","items":{"type":"string"}}}},"errors":{"type":"array","items":{"type":"string"}},"required_records":{"additionalProperties":false,"type":"object","required":["cname"],"properties":{"cname":{"additionalProperties":false,"type":"object","required":["host","target"],"properties":{"host":{"type":"string"},"target":{"type":"string"}}},"txt":{"additionalProperties":false,"type":"object","required":["host","value"],"properties":{"host":{"type":"string"},"value":{"type":"string"},"note":{"type":"string"}}}}},"edge_ips":{"type":"array","items":{"type":"string"}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"domain":"app.example.com","enterprise":false,"verified":false,"cname":false,"ownership":false,"records":{},"errors":[],"required_records":{"cname":{"host":"example","target":"example"}},"edge_ips":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"domain.checkDNS","x-read-only":false,"x-audit-action":"vm.domain.check","x-mcp-tool":"vm_domain_check_dns","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/domain":{"get":{"operationId":"vm.domain.get","summary":"Get custom domain info for a VM","description":"Get custom domain info for a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","required":["customDomain","sslStatus","sslExpiry","sslError"],"properties":{"customDomain":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"includeWww":{"type":"boolean"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"domain":{"customDomain":"example","sslStatus":"example","sslExpiry":"example","sslError":"example"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"domain.getDomain","x-read-only":true,"x-mcp-tool":"vm_domain_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"vm.domain.connect","summary":"Connect a custom domain to a VM","description":"Connect a custom domain to a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain"],"properties":{"domain":{"minLength":1,"maxLength":254,"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"include_www":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"domain":"app.example.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl","dns","url","port"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"dns":{"additionalProperties":false,"type":"object","required":["verified","cname","ownership","errors"],"properties":{"verified":{"type":"boolean"},"cname":{"type":"boolean"},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"errors":{"type":"array","items":{"type":"string"}}}},"url":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"domain":"app.example.com","ssl":{"status":"example","expiresAt":"example"},"dns":{"verified":false,"cname":false,"ownership":false,"errors":[]},"url":"example","port":1}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl","dns","url","port"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"dns":{"additionalProperties":false,"type":"object","required":["verified","cname","ownership","errors"],"properties":{"verified":{"type":"boolean"},"cname":{"type":"boolean"},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"errors":{"type":"array","items":{"type":"string"}}}},"url":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"domain.connectDomain","x-read-only":false,"x-audit-action":"vm.domain.connect","x-mcp-tool":"vm_domain_connect","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"delete":{"operationId":"vm.domain.disconnect","summary":"Disconnect the custom domain from a VM","description":"Disconnect the custom domain from a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"domain.disconnectDomain","x-read-only":false,"x-audit-action":"vm.domain.disconnect","x-mcp-tool":"vm_domain_disconnect","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/lifecycle/permanent":{"post":{"operationId":"vm.lifecycle.permanent","summary":"Make VM permanent (always-on, no TTL)","description":"Make VM permanent (always-on, no TTL)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"restart_policy":{"anyOf":[{"const":"no","type":"string"},{"const":"on-failure","type":"string"},{"const":"always","type":"string"},{"const":"unless-stopped","type":"string"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","mode","config"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"config":{"additionalProperties":false,"type":"object","properties":{"restart_policy":{"anyOf":[{"const":"no","type":"string"},{"const":"on-failure","type":"string"},{"const":"always","type":"string"},{"const":"unless-stopped","type":"string"}]},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"remove","type":"string"},{"const":"suspend","type":"string"}]},"remove_on_exit":{"type":"boolean"},"static_network":{"type":"boolean"},"suspended_ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]}}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"mode":"permanent","config":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"lifecycle.makePermanent","x-read-only":false,"x-audit-action":"vm.lifecycle.permanent","x-mcp-tool":"vm_lifecycle_permanent","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/lifecycle/temporary":{"post":{"operationId":"vm.lifecycle.temporary","summary":"Make VM temporary (auto-stops after TTL). restart_policy is always \"no\" (Go enforces TTL > 0 → no restart)","description":"Make VM temporary (auto-stops after TTL). restart_policy is always \"no\" (Go enforces TTL > 0 → no restart)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"remove","type":"string"},{"const":"suspend","type":"string"}]},"remove_on_exit":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","mode","config"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"config":{"additionalProperties":false,"type":"object","properties":{"restart_policy":{"anyOf":[{"const":"no","type":"string"},{"const":"on-failure","type":"string"},{"const":"always","type":"string"},{"const":"unless-stopped","type":"string"}]},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"remove","type":"string"},{"const":"suspend","type":"string"}]},"remove_on_exit":{"type":"boolean"},"static_network":{"type":"boolean"},"suspended_ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]}}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"mode":"permanent","config":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"lifecycle.makeTemporary","x-read-only":false,"x-audit-action":"vm.lifecycle.temporary","x-mcp-tool":"vm_lifecycle_temporary","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/lifecycle/idle":{"put":{"operationId":"vm.lifecycle.idle","summary":"Configure or disable automatic idle sleep for a permanent VM","description":"Configure or disable automatic idle sleep for a permanent VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","mode","config"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"config":{"additionalProperties":false,"type":"object","properties":{"restart_policy":{"anyOf":[{"const":"no","type":"string"},{"const":"on-failure","type":"string"},{"const":"always","type":"string"},{"const":"unless-stopped","type":"string"}]},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"remove","type":"string"},{"const":"suspend","type":"string"}]},"remove_on_exit":{"type":"boolean"},"static_network":{"type":"boolean"},"suspended_ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]}}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"mode":"permanent","config":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"lifecycle.setIdle","x-read-only":false,"x-audit-action":"vm.lifecycle.idle","x-mcp-tool":"vm_lifecycle_idle","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/lifecycle/ttl":{"put":{"operationId":"vm.lifecycle.ttl","summary":"Update TTL settings without changing mode (temporary VMs only)","description":"Update TTL settings without changing mode (temporary VMs only)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"remove","type":"string"},{"const":"suspend","type":"string"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","updated"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"updated":{"additionalProperties":false,"type":"object","properties":{"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"remove","type":"string"},{"const":"suspend","type":"string"}]}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"updated":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"lifecycle.updateTTL","x-read-only":false,"x-audit-action":"vm.lifecycle.ttl","x-mcp-tool":"vm_lifecycle_ttl","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/lifecycle":{"get":{"operationId":"vm.lifecycle.get","summary":"Get lifecycle info (mode, TTL, restart policy)","description":"Get lifecycle info (mode, TTL, restart policy)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","mode","idle","restart_policy","restart_info","ttl","ttl_action","ttl_expires_at","remove_on_exit"],"properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"mode":"permanent","idle":{"suspend_after":0,"stop_after":0},"restart_policy":"example","restart_info":{"restart_count":0,"burst_triggered":false},"ttl":0,"ttl_action":"example","ttl_expires_at":"example","remove_on_exit":false}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"lifecycle.getLifecycle","x-read-only":true,"x-mcp-tool":"vm_lifecycle_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"vm.lifecycle.destroy","summary":"Destroy VM runtime (stop and cleanup on VM server)","description":"Destroy VM runtime (stop and cleanup on VM server)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm_id","message"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","message":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.delete"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"lifecycle.destroy","x-read-only":false,"x-audit-action":"vm.lifecycle.destroy","x-mcp-tool":"vm_lifecycle_destroy","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/ping":{"post":{"operationId":"vm.lifecycle.renew","summary":"Renew VM TTL (keep-alive)","description":"Renew VM TTL (keep-alive)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"ttl_seconds":{"minimum":0,"maximum":2147483647,"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm_id","message"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","message":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.power"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"lifecycle.renewTTL","x-read-only":false,"x-audit-action":"vm.lifecycle.renew","x-mcp-tool":"vm_ping","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/network/firewall":{"get":{"operationId":"vm.network.firewall.get","summary":"Read the shared VM firewall and its current revision","description":"Read the shared VM firewall and its current revision\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["version","revision","private_ports","public_tcp_ports","default_rule_exposure"],"properties":{"version":{"const":1,"type":"number"},"revision":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"private_ports":{"anyOf":[{"type":"array","items":[{"const":-2,"type":"number"}],"additionalItems":false,"minItems":1,"maxItems":1},{"maxItems":50,"type":"array","items":{"minimum":1,"maximum":65535,"type":"integer"}}]},"public_tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"edge_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"edge_separated":{"type":"boolean"},"private_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_allow_all":{"type":"boolean"},"default_rule_exposure":{"minItems":1,"maxItems":2,"uniqueItems":true,"description":"Sources selected when a new rule omits exposure.","type":"array","items":{"anyOf":[{"const":"private","type":"string"},{"const":"edge","type":"string"}]}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"version":1,"revision":0,"private_ports":[-2],"public_tcp_ports":[],"default_rule_exposure":["private","edge"]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.getFirewall","x-read-only":true,"x-mcp-tool":"vm_firewall_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"vm.network.firewall.update","summary":"Update linked VM, Oblien Edge and public IPv6 port rules. Edge and public changes require the owner.","description":"Update linked VM, Oblien Edge and public IPv6 port rules. Edge and public changes require the owner.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["expected_revision","private_ports","public_tcp_ports"],"properties":{"expected_revision":{"minimum":0,"maximum":9007199254740990,"type":"integer"},"private_ports":{"anyOf":[{"type":"array","items":[{"const":-2,"type":"number"}],"additionalItems":false,"minItems":1,"maxItems":1},{"maxItems":50,"type":"array","items":{"minimum":1,"maximum":65535,"type":"integer"}}]},"public_tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"edge_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"private_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_allow_all":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"expected_revision":0,"private_ports":[-2],"public_tcp_ports":[]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["version","revision","private_ports","public_tcp_ports"],"properties":{"version":{"const":1,"type":"number"},"revision":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"private_ports":{"anyOf":[{"type":"array","items":[{"const":-2,"type":"number"}],"additionalItems":false,"minItems":1,"maxItems":1},{"maxItems":50,"type":"array","items":{"minimum":1,"maximum":65535,"type":"integer"}}]},"public_tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"edge_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"edge_separated":{"type":"boolean"},"private_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_allow_all":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"version":1,"revision":0,"private_ports":[-2],"public_tcp_ports":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.updateFirewall","x-read-only":false,"x-audit-action":"vm.network.firewall.update","x-mcp-tool":"vm_firewall_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/network/firewall/rules":{"post":{"operationId":"vm.network.firewall.rules.add","summary":"Allow a port or range. Defaults to Private and Oblien Edge. Open public TCP explicitly.","description":"Allow a port or range on selected networks. Defaults to Private and Oblien Edge. Linked hosts require Private and Edge together. Existing source restrictions and other ports are preserved.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["expected_revision","port"],"properties":{"expected_revision":{"minimum":0,"maximum":9007199254740990,"type":"integer"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"description":"Inclusive last port of a range. Omit for a single port.","type":"integer"},"exposure":{"minItems":1,"maxItems":3,"uniqueItems":true,"default":["private","edge"],"type":"array","items":{"anyOf":[{"const":"private","type":"string"},{"const":"edge","type":"string"},{"const":"public","type":"string"}]}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"expected_revision":2,"port":3000}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["version","revision","private_ports","public_tcp_ports"],"properties":{"version":{"const":1,"type":"number"},"revision":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"private_ports":{"anyOf":[{"type":"array","items":[{"const":-2,"type":"number"}],"additionalItems":false,"minItems":1,"maxItems":1},{"maxItems":50,"type":"array","items":{"minimum":1,"maximum":65535,"type":"integer"}}]},"public_tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"edge_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"edge_separated":{"type":"boolean"},"private_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"public_tcp_allow_all":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"version":1,"revision":3,"private_ports":[3000],"public_tcp_ports":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.addFirewallRule","x-read-only":false,"x-audit-action":"vm.network.firewall.update","x-mcp-tool":"vm_firewall_rule_add","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/network/ipv6":{"get":{"operationId":"vm.network.ipv6.get","summary":"Read public IPv6 allocation and current revision","description":"Read public IPv6 allocation and current revision\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["supported","enabled","tcp_ports","revision","active","outbound"],"properties":{"supported":{"type":"boolean"},"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"tcp_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"tcp_allow_all":{"type":"boolean"},"revision":{"minimum":0,"type":"integer"},"active":{"type":"boolean"},"reason":{"type":"string"},"outbound":{"const":"reply_only","type":"string"},"rotation":{"additionalProperties":false,"type":"object","required":["supported","available","policy","remaining_vm","remaining_owner","next_allowed_at"],"properties":{"supported":{"type":"boolean"},"available":{"type":"boolean"},"policy":{"additionalProperties":false,"type":"object","required":["enabled","cooldown_seconds","vm_limit_24h","owner_node_limit_24h"],"properties":{"enabled":{"type":"boolean"},"cooldown_seconds":{"type":"integer"},"vm_limit_24h":{"type":"integer"},"owner_node_limit_24h":{"type":"integer"}}},"remaining_vm":{"minimum":0,"type":"integer"},"remaining_owner":{"minimum":0,"type":"integer"},"next_allowed_at":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$","type":"string"},{"type":"null"}]},"reason":{"type":"string"},"operation":{"additionalProperties":false,"type":"object","required":["request_id","previous_address","address","revision","status","created_at"],"properties":{"request_id":{"type":"string"},"previous_address":{"type":"string"},"address":{"type":"string"},"revision":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"completed","type":"string"}]},"created_at":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$","type":"string"}}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"supported":false,"enabled":false,"tcp_ports":[],"revision":0,"active":false,"outbound":"reply_only"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.getPublicIPv6","x-read-only":true,"x-mcp-tool":"vm_public_ipv6_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"vm.network.ipv6.update","summary":"Owner-only public IPv6 TCP exposure; off by default","description":"Owner-only public IPv6 TCP exposure; off by default\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["enabled","expected_revision"],"properties":{"enabled":{"type":"boolean"},"tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"expected_revision":{"minimum":0,"maximum":9007199254740990,"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"enabled":false,"expected_revision":0}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["supported","enabled","tcp_ports","revision","active","outbound"],"properties":{"supported":{"type":"boolean"},"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"tcp_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"tcp_allow_all":{"type":"boolean"},"revision":{"minimum":0,"type":"integer"},"active":{"type":"boolean"},"reason":{"type":"string"},"outbound":{"const":"reply_only","type":"string"},"rotation":{"additionalProperties":false,"type":"object","required":["supported","available","policy","remaining_vm","remaining_owner","next_allowed_at"],"properties":{"supported":{"type":"boolean"},"available":{"type":"boolean"},"policy":{"additionalProperties":false,"type":"object","required":["enabled","cooldown_seconds","vm_limit_24h","owner_node_limit_24h"],"properties":{"enabled":{"type":"boolean"},"cooldown_seconds":{"type":"integer"},"vm_limit_24h":{"type":"integer"},"owner_node_limit_24h":{"type":"integer"}}},"remaining_vm":{"minimum":0,"type":"integer"},"remaining_owner":{"minimum":0,"type":"integer"},"next_allowed_at":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$","type":"string"},{"type":"null"}]},"reason":{"type":"string"},"operation":{"additionalProperties":false,"type":"object","required":["request_id","previous_address","address","revision","status","created_at"],"properties":{"request_id":{"type":"string"},"previous_address":{"type":"string"},"address":{"type":"string"},"revision":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"completed","type":"string"}]},"created_at":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$","type":"string"}}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"supported":false,"enabled":false,"tcp_ports":[],"revision":0,"active":false,"outbound":"reply_only"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network","owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.updatePublicIPv6","x-read-only":false,"x-audit-action":"vm.network.ipv6.update","x-mcp-tool":"vm_public_ipv6_set","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/network/ipv6/rotate":{"post":{"operationId":"vm.network.ipv6.rotate","summary":"Rotate public IPv6 within provider limits; reuse the request ID for retries","description":"Rotate the VM's public IPv6 address without restarting it\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\n- Owner only. Existing TCP sessions on the retired address break; update external DNS and allowlists.\n\n- Read rotation.policy, rotation.available and rotation.next_allowed_at from IPv6 settings. Limits use rolling 24-hour windows; the account cap applies per node.\n\n- A pending receipt is durably accepted but is still being applied. Public access stays blocked until cleanup completes. Poll IPv6 state; do not start another rotation.\n\n- Firewall rules, enablement and traffic limits are preserved. Retired addresses are never recycled.\n\nRetry guidance: Retry the identical request_id and expected_revision after a timeout. A duplicate returns the original receipt and current state; it never rotates again.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["expected_revision","request_id"],"properties":{"expected_revision":{"minimum":0,"maximum":9007199254740990,"type":"integer"},"request_id":{"pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$","type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"expected_revision":2,"request_id":"c09b1172-4c57-413b-8d0b-3c2f397837b1"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["operation","state"],"properties":{"operation":{"additionalProperties":false,"type":"object","required":["request_id","previous_address","address","revision","status","created_at"],"properties":{"request_id":{"type":"string"},"previous_address":{"type":"string"},"address":{"type":"string"},"revision":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"completed","type":"string"}]},"created_at":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$","type":"string"}}},"state":{"additionalProperties":false,"type":"object","required":["supported","enabled","tcp_ports","revision","active","outbound"],"properties":{"supported":{"type":"boolean"},"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"maxItems":50,"type":"array","items":{"anyOf":[{"minimum":1,"maximum":9989,"type":"integer"},{"minimum":9991,"maximum":9998,"type":"integer"},{"minimum":10000,"maximum":65535,"type":"integer"}]}},"tcp_port_ranges":{"maxItems":50,"type":"array","items":{"additionalProperties":false,"type":"object","required":["start","end"],"properties":{"start":{"minimum":1,"maximum":65535,"type":"integer"},"end":{"minimum":1,"maximum":65535,"type":"integer"}}}},"tcp_allow_all":{"type":"boolean"},"revision":{"minimum":0,"type":"integer"},"active":{"type":"boolean"},"reason":{"type":"string"},"outbound":{"const":"reply_only","type":"string"},"rotation":{"additionalProperties":false,"type":"object","required":["supported","available","policy","remaining_vm","remaining_owner","next_allowed_at"],"properties":{"supported":{"type":"boolean"},"available":{"type":"boolean"},"policy":{"additionalProperties":false,"type":"object","required":["enabled","cooldown_seconds","vm_limit_24h","owner_node_limit_24h"],"properties":{"enabled":{"type":"boolean"},"cooldown_seconds":{"type":"integer"},"vm_limit_24h":{"type":"integer"},"owner_node_limit_24h":{"type":"integer"}}},"remaining_vm":{"minimum":0,"type":"integer"},"remaining_owner":{"minimum":0,"type":"integer"},"next_allowed_at":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$","type":"string"},{"type":"null"}]},"reason":{"type":"string"},"operation":{"additionalProperties":false,"type":"object","required":["request_id","previous_address","address","revision","status","created_at"],"properties":{"request_id":{"type":"string"},"previous_address":{"type":"string"},"address":{"type":"string"},"revision":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"completed","type":"string"}]},"created_at":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,9})?Z$","type":"string"}}}}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"operation":{"request_id":"c09b1172-4c57-413b-8d0b-3c2f397837b1","previous_address":"2001:db8::a","address":"2001:db8::b","revision":3,"status":"completed","created_at":"2026-11-18T00:00:00Z"},"state":{"supported":true,"enabled":false,"address":"2001:db8::b","tcp_ports":[],"revision":3,"active":false,"outbound":"reply_only"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network","owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.rotatePublicIPv6","x-read-only":false,"x-audit-action":"vm.network.ipv6.rotate","x-mcp-tool":"vm_public_ipv6_rotate","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/network/ip":{"post":{"operationId":"vm.network.ip","summary":"Apply an authorized outbound IP","description":"Apply an authorized outbound IP\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["ip"],"properties":{"ip":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"ip":"192.0.2.10"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["ip","country_code","mode"],"properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"},{"const":"direct","type":"string"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"ip":"192.0.2.10","country_code":"example","mode":"custom"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.applyOutboundIp","x-read-only":false,"x-audit-action":"vm.network.ip","x-mcp-tool":"vm_network_ip","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/network":{"get":{"operationId":"vm.network.get","summary":"Read VM network policy and private links","description":"Read VM network policy and private links\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["ip","gateway","allow_internet","ingress_ports","egress_ports","egress","ingress","public_access","private_links","outbound_ip","outbound_country_code","outbound_mode","outbound_proxy"],"properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"ip":"192.0.2.10","gateway":"example","allow_internet":false,"ingress_ports":[],"egress_ports":[],"egress":[],"ingress":[],"public_access":false,"private_links":[],"outbound_ip":"example","outbound_country_code":"example","outbound_mode":"custom","outbound_proxy":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.getNetwork","x-read-only":true,"x-mcp-tool":"vm_network_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"patch":{"operationId":"vm.network.update","summary":"Update network policy, private links or outbound proxy","description":"Update network policy, private links or outbound proxy\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\n- Private links require VMs in the same namespace. Re-select a link after its target moves or is replaced.\n\n- HTTPS custom proxies verify the proxy certificate and hostname before sending credentials.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"private_link_ids":{"type":"array","items":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"custom_proxy":{"additionalProperties":false,"type":"object","required":["host","port"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"http","type":"string"},{"const":"https","type":"string"}]},"username":{"type":"string"},"password":{"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"applied":{"type":"boolean"},"policy":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},"stats":{"additionalProperties":false,"type":"object","required":["ip","in_vm_allow_internet","in_vm_ingress_allow_all","in_ingress_ports_restricted","in_egress_ports_restricted","in_tap_enforced","tap_identity_ok","has_forward_egress_rule","has_ingress_ports_rule","has_egress_ports_rule","has_tap_identity_rules","has_egress_proxy_chain"],"properties":{"ip":{"type":"string"},"tap":{"type":"string"},"in_vm_allow_internet":{"type":"boolean"},"in_vm_ingress_allow_all":{"type":"boolean"},"in_ingress_ports_restricted":{"type":"boolean"},"in_egress_ports_restricted":{"type":"boolean"},"in_tap_enforced":{"type":"boolean"},"tap_identity_ok":{"type":"boolean"},"has_forward_egress_rule":{"type":"boolean"},"has_ingress_ports_rule":{"type":"boolean"},"has_egress_ports_rule":{"type":"boolean"},"has_tap_identity_rules":{"type":"boolean"},"has_egress_proxy_chain":{"type":"boolean"},"egress_proxy_rule_count":{"type":"integer"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress_allowed_from":{"type":"array","items":{"type":"string"}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_allowed_to":{"type":"array","items":{"type":"string"}}}},"private_links":{"type":"array","items":{"type":"string"}},"outbound":{"additionalProperties":false,"type":"object","required":["ip","country_code","mode"],"properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"},{"const":"direct","type":"string"}]}}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"required_plan":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"required_plan":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"network.updateNetwork","x-read-only":false,"x-audit-action":"vm.network.update","x-mcp-tool":"vm_network_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/logs/file/{name}":{"get":{"operationId":"vm.logs.file","summary":"Get a specific log file by name","description":"Get a specific log file by name\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"name","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"pattern":"^(?!\\.{1,2}$)[a-zA-Z0-9_.-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","logs"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"logs":{"type":"string"},"source":{"type":"string"},"file":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","logs":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.logs"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"logs.getLogFile","x-read-only":true,"x-mcp-tool":"vm_logs_file","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/logs/boot":{"get":{"operationId":"vm.logs.boot","summary":"Get boot logs","description":"Get boot logs\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"tail_lines","in":"query","required":false,"schema":{"minimum":0,"maximum":1000000,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","logs"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"logs":{"type":"string"},"source":{"type":"string"},"file":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","logs":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.logs"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"logs.getBootLogs","x-read-only":true,"x-mcp-tool":"vm_logs_boot","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/logs/list":{"get":{"operationId":"vm.logs.list","summary":"List available log files","description":"List available log files\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","files"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"files":{"type":"array","items":{"type":"string"}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","files":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.logs"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"logs.listLogFiles","x-read-only":true,"x-mcp-tool":"vm_logs_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/logs":{"get":{"operationId":"vm.logs.get","summary":"Get VM logs","description":"Get VM logs\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"source","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}},{"name":"tail_lines","in":"query","required":false,"schema":{"minimum":0,"maximum":1000000,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","logs"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"logs":{"type":"string"},"source":{"type":"string"},"file":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","logs":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.logs"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"logs.getLogs","x-read-only":true,"x-mcp-tool":"vm_logs","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"vm.logs.clear","summary":"Clear all VM logs","description":"Clear all VM logs\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","message"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","message":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.logs"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"logs.clearLogs","x-read-only":false,"x-audit-action":"vm.logs.clear","x-mcp-tool":"vm_logs_clear","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/ssh/password":{"post":{"operationId":"vm.ssh.password","summary":"Set SSH password for a user in the VM","description":"Set SSH password for a user in the VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["password"],"properties":{"password":{"minLength":6,"maxLength":256,"pattern":"^[^\\r\\n\\u0000]+$","type":"string"},"user":{"minLength":1,"maxLength":32,"pattern":"^[a-zA-Z_][a-zA-Z0-9_-]*[$]?$","type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"password":"example-password"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","user"],"properties":{"success":{"const":true,"type":"boolean"},"user":{"type":"string"},"password_set":{"type":"boolean"},"key_set":{"type":"boolean"},"key_added":{"type":"boolean"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"user":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"ssh.setPassword","x-read-only":false,"x-audit-action":"vm.ssh.password","x-mcp-tool":"vm_ssh_password","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/ssh/disable":{"post":{"operationId":"vm.ssh.disable","summary":"Disable SSH access (removes sshd, deregisters bastion)","description":"Disable SSH access (removes sshd, deregisters bastion)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","ssh_enabled"],"properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"ssh_enabled":false}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"ssh.disable","x-read-only":false,"x-audit-action":"vm.ssh.disable","x-mcp-tool":"vm_ssh_disable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/ssh/enable":{"post":{"operationId":"vm.ssh.enable","summary":"Enable SSH access (installs sshd, registers bastion, returns credentials)","description":"Enable SSH access (installs sshd, registers bastion, returns credentials)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"firewall_mode","in":"query","required":false,"schema":{"anyOf":[{"const":"combined","type":"string"},{"const":"separate","type":"string"}]}},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"const":"gateway","type":"string"},{"const":"direct","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","ssh_enabled"],"properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"ssh_enabled":false}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"ssh.enable","x-read-only":false,"x-audit-action":"vm.ssh.enable","x-mcp-tool":"vm_ssh_enable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/ssh/key":{"post":{"operationId":"vm.ssh.key","summary":"Set SSH public key for a user in the VM","description":"Set an SSH public key; append=true preserves existing keys and deduplicates retries\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["public_key"],"properties":{"public_key":{"minLength":1,"maxLength":16384,"type":"string"},"append":{"type":"boolean"},"user":{"minLength":1,"maxLength":32,"pattern":"^[a-zA-Z_][a-zA-Z0-9_-]*[$]?$","type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"public_key":"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFakeExampleOnly","append":true}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","user"],"properties":{"success":{"const":true,"type":"boolean"},"user":{"type":"string"},"password_set":{"type":"boolean"},"key_set":{"type":"boolean"},"key_added":{"type":"boolean"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"user":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"ssh.setKey","x-read-only":false,"x-audit-action":"vm.ssh.key","x-mcp-tool":"vm_ssh_key","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/ssh":{"get":{"operationId":"vm.ssh.status","summary":"Get SSH access status for a VM","description":"Get SSH access status for a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","ssh_enabled"],"properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"ssh_enabled":false}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"anyOf":[{"type":"string"},{"type":"object","patternProperties":{"^(.*)$":{}}}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"ssh.getStatus","x-read-only":true,"x-mcp-tool":"vm_ssh_status","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/public-access/wake":{"get":{"operationId":"vm.publicAccess.wake.get","summary":"Read wake-on-request policy for a VM hostname","description":"Read wake-on-request for a published VM hostname\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"my-vm"}}},{"name":"hostname","in":"query","required":true,"schema":{"minLength":1,"maxLength":253,"pattern":"^[a-zA-Z0-9.-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"app.preview.oblien.com"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["hostname","auto_wake","revision","idle_enabled","supported"],"properties":{"hostname":{"minLength":1,"maxLength":253,"pattern":"^[a-zA-Z0-9.-]+$","type":"string"},"auto_wake":{"type":"boolean"},"revision":{"minimum":0,"type":"integer"},"idle_enabled":{"type":"boolean"},"supported":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"hostname":"app.preview.oblien.com","auto_wake":true,"revision":0,"idle_enabled":false,"supported":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"public-access.getRouteWake","x-read-only":true,"x-mcp-tool":"vm_route_wake_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"vm.publicAccess.wake.set","summary":"Set wake-on-request for one VM hostname without changing its idle policy","description":"Enable or disable wake for one hostname. VM idle sleep is configured separately; direct TCP never wakes a sleeping VM.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"my-vm"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["hostname","auto_wake","expected_revision"],"properties":{"hostname":{"minLength":1,"maxLength":253,"pattern":"^[a-zA-Z0-9.-]+$","type":"string"},"auto_wake":{"type":"boolean"},"expected_revision":{"minimum":0,"maximum":9007199254740990,"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"hostname":"app.preview.oblien.com","auto_wake":false,"expected_revision":0}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["hostname","auto_wake","revision","idle_enabled","supported"],"properties":{"hostname":{"minLength":1,"maxLength":253,"pattern":"^[a-zA-Z0-9.-]+$","type":"string"},"auto_wake":{"type":"boolean"},"revision":{"minimum":0,"type":"integer"},"idle_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"hostname":"app.preview.oblien.com","auto_wake":false,"revision":1,"idle_enabled":true,"supported":true}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["hostname","auto_wake","revision","idle_enabled","supported"],"properties":{"hostname":{"minLength":1,"maxLength":253,"pattern":"^[a-zA-Z0-9.-]+$","type":"string"},"auto_wake":{"type":"boolean"},"revision":{"minimum":0,"type":"integer"},"idle_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"public-access.setRouteWake","x-read-only":false,"x-audit-action":"vm.publicAccess.wake","x-mcp-tool":"vm_route_wake_set","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/public-access/{port}":{"patch":{"operationId":"vm.publicAccess.slug","summary":"Change the public address of an exposed VM port","description":"Change the public address of an exposed VM port\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"port","in":"path","required":true,"schema":{"minimum":1,"maximum":65535,"type":"integer"},"examples":{"example1":{"summary":"Synthetic example","value":1}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["slug"],"properties":{"slug":{"minLength":1,"maxLength":48,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"slug":"example"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","port"],"properties":{"success":{"const":true,"type":"boolean"},"port":{"additionalProperties":false,"type":"object","required":["port","hash","domain","url"],"properties":{"port":{"minimum":1,"maximum":65535,"type":"integer"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"port":{"port":1,"hash":"example","domain":"app.example.com","url":"example"}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","port"],"properties":{"success":{"const":true,"type":"boolean"},"port":{"additionalProperties":false,"type":"object","required":["port","hash","domain","url"],"properties":{"port":{"minimum":1,"maximum":65535,"type":"integer"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"public-access.updateSlug","x-read-only":false,"x-audit-action":"vm.publicAccess.slug","x-mcp-tool":"vm_public_access_slug","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"delete":{"operationId":"vm.publicAccess.revoke","summary":"Revoke public access for a port","description":"Revoke public access for a port\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"port","in":"path","required":true,"schema":{"minimum":1,"maximum":65535,"type":"integer"},"examples":{"example1":{"summary":"Synthetic example","value":1}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"public-access.revokePort","x-read-only":false,"x-audit-action":"vm.publicAccess.revoke","x-mcp-tool":"vm_public_access_revoke","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/public-access":{"get":{"operationId":"vm.publicAccess.list","summary":"List publicly exposed ports","description":"List publicly exposed ports\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","ports"],"properties":{"success":{"const":true,"type":"boolean"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","url"],"properties":{"port":{"minimum":1,"maximum":65535,"type":"integer"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"ports":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"public-access.listAccess","x-read-only":true,"x-mcp-tool":"vm_public_access_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"vm.publicAccess.expose","summary":"Expose a VM port publicly (creates preview URL)","description":"Expose a VM port publicly (creates preview URL)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["port"],"properties":{"port":{"minimum":1,"maximum":65535,"type":"integer"},"firewall_mode":{"anyOf":[{"const":"combined","type":"string"},{"const":"separate","type":"string"}]},"label":{"type":"string"},"slug":{"minLength":1,"maxLength":48,"type":"string"},"domain":{"minLength":1,"maxLength":253,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"port":1}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","port"],"properties":{"success":{"const":true,"type":"boolean"},"port":{"additionalProperties":false,"type":"object","required":["port","hash","domain","url"],"properties":{"port":{"minimum":1,"maximum":65535,"type":"integer"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"port":{"port":1,"hash":"example","domain":"app.example.com","url":"example"}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","port"],"properties":{"success":{"const":true,"type":"boolean"},"port":{"additionalProperties":false,"type":"object","required":["port","hash","domain","url"],"properties":{"port":{"minimum":1,"maximum":65535,"type":"integer"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.network"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"public-access.exposePort","x-read-only":false,"x-audit-action":"vm.publicAccess.expose","x-mcp-tool":"vm_public_access_expose","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/archives/{version}":{"get":{"operationId":"vm.archive.get","summary":"Get a specific archive by version","description":"Get a specific archive by version\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"version","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Synthetic example","value":1}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vm_id","version","path","size","format","created_at"],"properties":{"vm_id":{"type":"string"},"version":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"path":{"type":"string"},"size":{"type":"number"},"format":{"type":"string"},"vm_paths":{"type":"array","items":{"type":"string"}},"exclude_vm_paths":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"vm_id":"vm_example","version":1,"path":"example","size":0,"format":"example","created_at":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.snapshot"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"snapshots.getArchive","x-read-only":true,"x-mcp-tool":"vm_archive_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"vm.archive.delete","summary":"Delete a specific archive by version","description":"Delete a specific archive by version\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"version","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Synthetic example","value":1}}},{"name":"delete_file","in":"query","required":false,"schema":{"type":"boolean"},"description":"Optional alias for JSON body field delete_file; an explicitly supplied query value takes precedence."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"delete_file":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.snapshot"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"snapshots.deleteArchive","x-read-only":false,"x-audit-action":"vm.archive.delete","x-mcp-tool":"vm_archive_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/snapshot":{"post":{"operationId":"vm.snapshot.create","summary":"Create a snapshot of the VM","description":"Create a snapshot of the VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"after":{"anyOf":[{"const":"resume","type":"string"},{"const":"pause","type":"string"},{"const":"paused","type":"string"},{"const":"stop","type":"string"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"},"after":{"type":"string"},"snapshot":{"additionalProperties":false,"type":"object","properties":{"has_snapshot":{"type":"boolean"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.snapshot"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"snapshots.createSnapshot","x-read-only":false,"x-audit-action":"vm.snapshot.create","x-mcp-tool":"vm_snapshot_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/archives":{"post":{"operationId":"vm.archive.create","summary":"Create an archive of the VM overlay","description":"Create an archive of the VM overlay\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"version":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"format":{"anyOf":[{"const":"ext4","type":"string"},{"const":"targz","type":"string"}]},"vm_paths":{"maxItems":1000,"type":"array","items":{"minLength":1,"maxLength":4096,"pattern":"^/[^\\u0000]*$","type":"string"}},"exclude_vm_paths":{"maxItems":1000,"type":"array","items":{"minLength":1,"maxLength":4096,"pattern":"^/[^\\u0000]*$","type":"string"}}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vm_id","version","path","size","format","created_at"],"properties":{"vm_id":{"type":"string"},"version":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"path":{"type":"string"},"size":{"type":"number"},"format":{"type":"string"},"vm_paths":{"type":"array","items":{"type":"string"}},"exclude_vm_paths":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"vm_id":"vm_example","version":1,"path":"example","size":0,"format":"example","created_at":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.snapshot"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"snapshots.createArchive","x-read-only":false,"x-audit-action":"vm.archive.create","x-mcp-tool":"vm_archive_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"get":{"operationId":"vm.archive.list","summary":"List VM archives","description":"List VM archives\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"anyOf":[{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","version","path","size","format","created_at"],"properties":{"vm_id":{"type":"string"},"version":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"path":{"type":"string"},"size":{"type":"number"},"format":{"type":"string"},"vm_paths":{"type":"array","items":{"type":"string"}},"exclude_vm_paths":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"}}}},{"type":"null"}]},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":[]}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.snapshot"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"snapshots.listArchives","x-read-only":true,"x-mcp-tool":"vm_archive_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"vm.archive.deleteAll","summary":"Delete all archives for a VM","description":"Delete all archives for a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}},{"name":"delete_files","in":"query","required":false,"schema":{"type":"boolean"},"description":"Optional alias for JSON body field delete_files; an explicitly supplied query value takes precedence."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"delete_files":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.snapshot"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"snapshots.deleteAllArchives","x-read-only":false,"x-audit-action":"vm.archive.deleteAll","x-mcp-tool":"vm_archive_delete_all","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/vms/{vmId}/restore":{"post":{"operationId":"vm.snapshot.restore","summary":"Restore VM from its snapshot","description":"Restore VM from its snapshot\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.snapshot"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"snapshots.restoreSnapshot","x-read-only":false,"x-audit-action":"vm.snapshot.restore","x-mcp-tool":"vm_snapshot_restore","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/reinstall":{"post":{"operationId":"vm.reinstall","summary":"DESTRUCTIVE, IRREVERSIBLE: reset the sandbox filesystem to a fresh install of its base image. Everything written to the sandbox is permanently deleted — installed packages, /root, /etc changes AND /VM. The VM itself is kept: same VM ID, IP, hostname, image and resources. Use only on an explicit request to reinstall/reset/start fresh; use vm_restart to merely reboot.","description":"DESTRUCTIVE, IRREVERSIBLE: reset the sandbox filesystem to a fresh install of its base image. Everything written to the sandbox is permanently deleted — installed packages, /root, /etc changes AND /VM. The VM itself is kept: same VM ID, IP, hostname, image and resources. Use only on an explicit request to reinstall/reset/start fresh; use vm_restart to merely reboot.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm_id","reinstalled","running","ip","message"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"reinstalled":{"type":"boolean"},"running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","reinstalled":false,"running":false,"ip":"192.0.2.10","message":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.delete"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"reinstall.reinstall","x-read-only":false,"x-audit-action":"vm.reinstall","x-mcp-tool":"vm_reinstall","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/resources":{"get":{"operationId":"vm.resources.get","summary":"Get current resource allocation (CPUs, memory, disk)","description":"Get current resource allocation (CPUs, memory, disk)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","resources"],"properties":{"success":{"const":true,"type":"boolean"},"resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"status":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"relaunched":{"type":"boolean"},"pending_capacity_verification":{"type":"boolean"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"resources":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"relaunched":{"type":"boolean"},"pending_capacity_verification":{"type":"boolean"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"resources.getResources","x-read-only":true,"x-mcp-tool":"vm_resources_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"vm.resources.update","summary":"Update resources (CPU/memory/disk). May relaunch VM if apply=true.","description":"Update resources (CPU/memory/disk). May relaunch VM if apply=true.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"apply":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","updated","relaunched"],"properties":{"success":{"const":true,"type":"boolean"},"updated":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"relaunched":{"type":"boolean"},"message":{"type":"string"},"warning":{"type":"string"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"pending_capacity_verification":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"relaunched":{"type":"boolean"},"pending_capacity_verification":{"type":"boolean"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"updated":{},"relaunched":false}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"relaunched":{"type":"boolean"},"pending_capacity_verification":{"type":"boolean"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.resources"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"resources.updateResources","x-read-only":false,"x-audit-action":"vm.resources.update","x-mcp-tool":"vm_resources_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"patch":{"operationId":"vm.resources.update.patch","summary":"Update resources (CPU/memory/disk). May relaunch VM if apply=true.","description":"Update resources (CPU/memory/disk). May relaunch VM if apply=true.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"apply":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","updated","relaunched"],"properties":{"success":{"const":true,"type":"boolean"},"updated":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"relaunched":{"type":"boolean"},"message":{"type":"string"},"warning":{"type":"string"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"pending_capacity_verification":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"relaunched":{"type":"boolean"},"pending_capacity_verification":{"type":"boolean"}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"relaunched":{"type":"boolean"},"pending_capacity_verification":{"type":"boolean"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.resources"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"resources.updateResources","x-read-only":false,"x-audit-action":"vm.resources.update"}},"/vms/{vmId}/metadata":{"get":{"operationId":"vm.metadata.get","summary":"Get VM metadata key-values","description":"Get VM metadata key-values\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","metadata"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"message":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","metadata":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"metadata.getMetadata","x-read-only":true,"x-mcp-tool":"vm_metadata_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"vm.metadata.update","summary":"Update VM metadata key-values","description":"Update VM metadata key-values\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"metadata":{}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","metadata"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"message":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm_id":"vm_example","metadata":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"metadata.updateMetadata","x-read-only":false,"x-audit-action":"vm.metadata.update","x-mcp-tool":"vm_metadata_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"patch":{"operationId":"vm.metadata.update.patch","summary":"Update VM metadata key-values","description":"Update VM metadata key-values","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["metadata"],"properties":{"metadata":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vm_id","metadata"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"message":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"metadata.updateMetadata","x-read-only":false,"x-audit-action":"vm.metadata.update"}},"/vms/{vmId}/details":{"get":{"operationId":"vm.details","summary":"Inspect VM stats, access status, lifecycle and configuration","description":"Inspect VM stats, access status, lifecycle and configuration\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm":{"id":"example"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"details.getDetails","x-read-only":true,"x-mcp-tool":"vm_details","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/restart":{"post":{"operationId":"vm.restart","summary":"Restart a VM","description":"Restart a VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.power"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"power.restart","x-read-only":false,"x-audit-action":"vm.restart","x-mcp-tool":"vm_restart","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/resume":{"post":{"operationId":"vm.resume","summary":"Resume a paused or hibernated VM","description":"Resume a paused or hibernated VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.power"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"power.resume","x-read-only":false,"x-audit-action":"vm.resume","x-mcp-tool":"vm_resume","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/start":{"post":{"operationId":"vm.start","summary":"Start a stopped VM within its resource and billing limits","description":"Start a stopped VM within its resource and billing limits\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"force":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.power"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"power.start","x-read-only":false,"x-audit-action":"vm.start","x-mcp-tool":"vm_start","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/pause":{"post":{"operationId":"vm.pause","summary":"Pause a running VM","description":"Pause a running VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.power"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"power.pause","x-read-only":false,"x-audit-action":"vm.pause","x-mcp-tool":"vm_pause","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/stop":{"post":{"operationId":"vm.stop","summary":"Stop a running VM","description":"Stop a running VM\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"already":{"type":"boolean"},"recovered":{"type":"boolean"},"ready":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.power"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"power.stop","x-read-only":false,"x-audit-action":"vm.stop","x-mcp-tool":"vm_stop","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/vms/{vmId}/config":{"get":{"operationId":"vm.metrics.config","summary":"Get VM configuration","description":"Get VM configuration\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"kernel_id":{"type":"string"},"enable_kvm":{"type":"boolean"},"network":{"type":"string"},"disk_size_mb":{"type":"number"},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"cpus":{"type":"number"},"memory_mb":{"type":"number"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"keep_logs":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"static_network":{"type":"boolean"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"max_restarts":{"type":"number"},"restart_policy":{"type":"string"},"remove_on_exit":{"type":"boolean"},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"mode":{"type":"string"},"status":{"type":"string"},"is_running":{"type":"boolean"},"pid":{"type":"number"},"ip":{"type":"string"},"start_time":{"type":"string"},"stopped_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"exit_code":{"type":"number"},"uptime":{"anyOf":[{"type":"number"},{"type":"string"}]},"use_jailer":{"type":"boolean"},"snapshot":{"additionalProperties":false,"type":"object","properties":{"has_snapshot":{"type":"boolean"}}},"lifecycle":{"additionalProperties":false,"type":"object","required":["pause_supported","snapshot_supported"],"properties":{"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"type":"string"}}},"failure_reason":{"type":"string"},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_remaining_sec":{"type":"number"},"usage_tracking_config":{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},"user_requested_stop":{"type":"boolean"},"restart_info":{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},"create_total_ms":{"type":"number"},"create_firecracker_ms":{"type":"number"},"success":{"type":"boolean"},"config":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"kernel_id":{"type":"string"},"enable_kvm":{"type":"boolean"},"network":{"type":"string"},"disk_size_mb":{"type":"number"},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"cpus":{"type":"number"},"memory_mb":{"type":"number"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"keep_logs":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"static_network":{"type":"boolean"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"max_restarts":{"type":"number"},"restart_policy":{"type":"string"},"remove_on_exit":{"type":"boolean"},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"metrics.getConfig","x-read-only":true,"x-mcp-tool":"vm_config","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/stats":{"get":{"operationId":"vm.metrics.stats","summary":"Get live CPU/memory/network/disk stats","description":"Get live CPU/memory/network/disk stats\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","stats"],"properties":{"success":{"const":true,"type":"boolean"},"stats":{"additionalProperties":false,"type":"object","required":["cpuUsage","memoryUsage","memoryUsedMB","memoryTotalMB","guestMemoryUsedKiB","guestMemoryTotalKiB","guestMemoryFreeKiB","guestMemoryCachedKiB","guestDiskUsedBytes","guestDiskTotalBytes","guestDiskFreeBytes","guestDiskUsedPct","networkIn","networkOut","networkInBytes","networkOutBytes","uptime","apiCalls"],"properties":{"cpuUsage":{"type":"number"},"memoryUsage":{"type":"number"},"memoryUsedMB":{"type":"number"},"memoryTotalMB":{"type":"number"},"guestMemoryUsedKiB":{"type":"number"},"guestMemoryTotalKiB":{"type":"number"},"guestMemoryFreeKiB":{"type":"number"},"guestMemoryCachedKiB":{"type":"number"},"guestDiskUsedBytes":{"type":"number"},"guestDiskTotalBytes":{"type":"number"},"guestDiskFreeBytes":{"type":"number"},"guestDiskUsedPct":{"type":"number"},"networkIn":{"type":"number"},"networkOut":{"type":"number"},"networkInBytes":{"type":"number"},"networkOutBytes":{"type":"number"},"uptime":{"type":"number"},"apiCalls":{"type":"number"}}}}},{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"stats":{"cpuUsage":0,"memoryUsage":0,"memoryUsedMB":0,"memoryTotalMB":0,"guestMemoryUsedKiB":0,"guestMemoryTotalKiB":0,"guestMemoryFreeKiB":0,"guestMemoryCachedKiB":0,"guestDiskUsedBytes":0,"guestDiskTotalBytes":0,"guestDiskFreeBytes":0,"guestDiskUsedPct":0,"networkIn":0,"networkOut":0,"networkInBytes":0,"networkOutBytes":0,"uptime":0,"apiCalls":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"metrics.getStats","x-read-only":true,"x-mcp-tool":"vm_stats","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/info":{"get":{"operationId":"vm.metrics.info","summary":"Get VM runtime info (status, config, uptime)","description":"Get VM runtime info (status, config, uptime)\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"kernel_id":{"type":"string"},"enable_kvm":{"type":"boolean"},"network":{"type":"string"},"disk_size_mb":{"type":"number"},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"cpus":{"type":"number"},"memory_mb":{"type":"number"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"keep_logs":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"static_network":{"type":"boolean"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"max_restarts":{"type":"number"},"restart_policy":{"type":"string"},"remove_on_exit":{"type":"boolean"},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"mode":{"type":"string"},"status":{"type":"string"},"is_running":{"type":"boolean"},"pid":{"type":"number"},"ip":{"type":"string"},"start_time":{"type":"string"},"stopped_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"exit_code":{"type":"number"},"uptime":{"anyOf":[{"type":"number"},{"type":"string"}]},"use_jailer":{"type":"boolean"},"snapshot":{"additionalProperties":false,"type":"object","properties":{"has_snapshot":{"type":"boolean"}}},"lifecycle":{"additionalProperties":false,"type":"object","required":["pause_supported","snapshot_supported"],"properties":{"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"type":"string"}}},"failure_reason":{"type":"string"},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_remaining_sec":{"type":"number"},"usage_tracking_config":{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},"user_requested_stop":{"type":"boolean"},"restart_info":{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},"create_total_ms":{"type":"number"},"create_firecracker_ms":{"type":"number"},"success":{"type":"boolean"},"config":{"additionalProperties":false,"type":"object","properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"kernel_id":{"type":"string"},"enable_kvm":{"type":"boolean"},"network":{"type":"string"},"disk_size_mb":{"type":"number"},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"cpus":{"type":"number"},"memory_mb":{"type":"number"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"keep_logs":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"static_network":{"type":"boolean"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"max_restarts":{"type":"number"},"restart_policy":{"type":"string"},"remove_on_exit":{"type":"boolean"},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"metrics.getInfo","x-read-only":true,"x-mcp-tool":"vm_info","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/audit":{"get":{"operationId":"vm.audit.get","summary":"Read the authorized VM management audit history","description":"Read the authorized VM management audit history","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"vm_id","in":"query","required":false,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"before","in":"query","required":false,"schema":{"pattern":"^[1-9][0-9]{0,19}$","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"from","in":"query","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"}},{"name":"to","in":"query","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"const":"access","type":"string"},{"const":"vm","type":"string"},{"const":"power","type":"string"},{"const":"storage","type":"string"},{"const":"resources","type":"string"},{"const":"lifecycle","type":"string"},{"const":"network","type":"string"},{"const":"runtime","type":"string"},{"const":"workloads","type":"string"},{"const":"logs","type":"string"}]}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"const":"requested","type":"string"},{"const":"accepted","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"}]}},{"name":"actor_type","in":"query","required":false,"schema":{"anyOf":[{"const":"user","type":"string"},{"const":"api_key","type":"string"},{"const":"administrator","type":"string"},{"const":"system","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","events","next_cursor"],"properties":{"success":{"const":true,"type":"boolean"},"events":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","vm_id","vm_name","vm_exists","namespace","namespace_name","namespace_exists","action","title","category","outcome","actor","details","error_code","occurred_at","created_at","completed_at"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"vm_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"vm_exists":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace_exists":{"type":"boolean"},"action":{"type":"string"},"title":{"type":"string"},"category":{"type":"string"},"outcome":{"type":"string"},"actor":{"additionalProperties":false,"type":"object","required":["type","id","name"],"properties":{"type":{"type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"}}},"details":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}}]}}},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"occurred_at":{"type":"string"},"created_at":{"type":"string"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.audit"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"audit.vmAudit","x-read-only":true}},"/vms/audit":{"get":{"operationId":"vm.audit.list","summary":"Read VM management audit history: actors, actions and outcomes","description":"Read VM management audit history: actors, actions and outcomes\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"vm_id","in":"query","required":false,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"before","in":"query","required":false,"schema":{"pattern":"^[1-9][0-9]{0,19}$","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"from","in":"query","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"}},{"name":"to","in":"query","required":false,"schema":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"const":"access","type":"string"},{"const":"vm","type":"string"},{"const":"power","type":"string"},{"const":"storage","type":"string"},{"const":"resources","type":"string"},{"const":"lifecycle","type":"string"},{"const":"network","type":"string"},{"const":"runtime","type":"string"},{"const":"workloads","type":"string"},{"const":"logs","type":"string"}]}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"const":"requested","type":"string"},{"const":"accepted","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"}]}},{"name":"actor_type","in":"query","required":false,"schema":{"anyOf":[{"const":"user","type":"string"},{"const":"api_key","type":"string"},{"const":"administrator","type":"string"},{"const":"system","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","events","next_cursor"],"properties":{"success":{"const":true,"type":"boolean"},"events":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","vm_id","vm_name","vm_exists","namespace","namespace_name","namespace_exists","action","title","category","outcome","actor","details","error_code","occurred_at","created_at","completed_at"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"vm_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"vm_exists":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace_exists":{"type":"boolean"},"action":{"type":"string"},"title":{"type":"string"},"category":{"type":"string"},"outcome":{"type":"string"},"actor":{"additionalProperties":false,"type":"object","required":["type","id","name"],"properties":{"type":{"type":"string"},"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"}}},"details":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}}]}}},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"occurred_at":{"type":"string"},"created_at":{"type":"string"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"events":[],"next_cursor":"example"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.audit"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"audit.listAudit","x-read-only":true,"x-mcp-tool":"vm_audit","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}/provisioning/retry":{"post":{"operationId":"vm.provisioning.retry","summary":"Retry a failed creation with the same VM ID and configuration","description":"Retry a failed creation with the same VM ID and configuration\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm":{"id":"example"}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.retryCreation","x-read-only":false,"x-audit-action":"vm.provisioning.retry","x-mcp-tool":"vm_retry_creation","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/vms/archived":{"get":{"operationId":"vm.archived.list","summary":"List archived VMs in the authorized account or namespace","description":"List archived VMs in the authorized account or namespace\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"minimum":1,"type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vms","total","page","limit"],"properties":{"success":{"const":true,"type":"boolean"},"vms":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}},"total":{"type":"number"},"page":{"type":"number"},"limit":{"type":"number"}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vms":[],"total":0,"page":0,"limit":0}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.listArchived","x-read-only":true,"x-mcp-tool":"vm_list_archived","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/activity":{"get":{"operationId":"vm.activity","summary":"Get usage history across authorized VMs","description":"Get usage history across authorized VMs\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"from","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","history","window_aggregated"],"properties":{"success":{"const":true,"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"history":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","at","window_sec"],"properties":{"vm_id":{"type":"string"},"at":{"type":"string"},"window_sec":{"type":"number"},"cpu_percent":{"type":"number"},"quota_usage_percent":{"type":"number"},"memory_used":{"type":"number"},"memory_total":{"type":"number"},"guest_memory_used_kib":{"type":"number"},"cpu_time_delta_ns":{"type":"number"},"nr_throttled_delta":{"type":"number"},"throttled_usec_delta":{"type":"number"},"disk_read_delta":{"type":"number"},"disk_write_delta":{"type":"number"},"net_rx_delta":{"type":"number"},"net_tx_delta":{"type":"number"}}}},{"type":"null"}]}}},"window_aggregated":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","properties":{"total_cpu_time_ns":{"type":"number"},"total_nr_throttled":{"type":"number"},"total_throttled_usec":{"type":"number"},"total_disk_read":{"type":"number"},"total_disk_write":{"type":"number"},"total_net_rx":{"type":"number"},"total_net_tx":{"type":"number"}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"history":{},"window_aggregated":{}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.activity","x-read-only":true,"x-mcp-tool":"vm_activity","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/estimate":{"get":{"operationId":"vm.estimate","summary":"Estimate monthly credit cost for a VM config","description":"Estimate monthly credit cost for a VM config\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"cpu","in":"query","required":false,"schema":{"minimum":1,"type":"number"}},{"name":"ram_mb","in":"query","required":false,"schema":{"minimum":128,"type":"number"}},{"name":"disk_mb","in":"query","required":false,"schema":{"minimum":64,"type":"number"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","estimate","estimate_before_discounts","period","rate_card_id","discount_period","caps","assumptions","breakdown_before_discounts","breakdown","inputs"],"properties":{"success":{"const":true,"type":"boolean"},"estimate":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"estimate_before_discounts":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"period":{"type":"string"},"rate_card_id":{"type":"string"},"discount_period":{"type":"string"},"caps":{"type":"object","patternProperties":{"^(.*)$":{"type":"number"}}},"assumptions":{"type":"string"},"breakdown_before_discounts":{"additionalProperties":false,"type":"object","required":["cpu","memory","disk_io","network"],"properties":{"cpu":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"memory":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"disk_io":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"network":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}}}},"breakdown":{"additionalProperties":false,"type":"object","required":["cpu","memory","disk_io","network"],"properties":{"cpu":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"memory":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"disk_io":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}},"network":{"additionalProperties":false,"type":"object","required":["min","avg","max"],"properties":{"min":{"type":"number"},"avg":{"type":"number"},"max":{"type":"number"}}}}},"inputs":{"additionalProperties":false,"type":"object","required":["cpu","ram_mb","disk_mb"],"properties":{"cpu":{"type":"number"},"ram_mb":{"type":"number"},"disk_mb":{"type":"number"}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"estimate":{"min":0,"avg":0,"max":0},"estimate_before_discounts":{"min":0,"avg":0,"max":0},"period":"example","rate_card_id":"example","discount_period":"example","caps":{},"assumptions":"example","breakdown_before_discounts":{"cpu":{"min":0,"avg":0,"max":0},"memory":{"min":0,"avg":0,"max":0},"disk_io":{"min":0,"avg":0,"max":0},"network":{"min":0,"avg":0,"max":0}},"breakdown":{"cpu":{"min":0,"avg":0,"max":0},"memory":{"min":0,"avg":0,"max":0},"disk_io":{"min":0,"avg":0,"max":0},"network":{"min":0,"avg":0,"max":0}},"inputs":{"cpu":0,"ram_mb":0,"disk_mb":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["account.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.estimate","x-read-only":true,"x-mcp-tool":"vm_estimate","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/images":{"get":{"operationId":"vm.images","summary":"List available VM images","description":"List available VM images\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"search","in":"query","required":false,"schema":{"maxLength":255,"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["images","categories"],"properties":{"images":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","image","label","desc","category","recommended_software"],"properties":{"id":{"type":"string"},"image":{"type":"string"},"label":{"type":"string"},"desc":{"type":"string"},"category":{"type":"string"},"base_os":{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},"sort_order":{"type":"number"},"logo":{"type":"string"},"color":{"type":"string"},"includes":{"type":"array","items":{"type":"string"}},"keywords":{"type":"array","items":{"type":"string"}},"distribution":{"type":"string"},"capabilities":{"type":"array","items":{"type":"string"}},"desktop":{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},"disk_targets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","label","formats"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"formats":{"type":"array","items":{"type":"string"}}}}},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}},"base_image":{"type":"string"},"recommended_software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","label","description","size_mb","minimum_resources"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"size_mb":{"type":"number"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}}}}},"recommended":{"type":"boolean"},"build":{"additionalProperties":false,"type":"object","required":["type"],"properties":{"type":{"type":"string"},"script":{"type":"string"},"repository":{"type":"string"},"dockerfile":{"type":"string"},"source_revision":{"type":"string"},"digest":{"type":"string"},"platforms":{"type":"array","items":{"type":"string"}}}}}}},"categories":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","label"],"properties":{"id":{"type":"string"},"label":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"images":[],"categories":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["account.read"],"x-credential-scopes":["admin","namespace","vm","billing"],"x-authorization-policy":"core.images","x-read-only":true,"x-mcp-tool":"vm_images","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/usage":{"get":{"operationId":"vm.usage.global","summary":"Get aggregated usage across authorized VMs","description":"Get aggregated usage across authorized VMs\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","usage","total"],"properties":{"success":{"const":true,"type":"boolean"},"usage":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["vm_id","first_at","last_at","sample_count","total_cpu_time_ns","total_disk_read","total_disk_write","total_net_rx","total_net_tx"],"properties":{"vm_id":{"type":"string"},"first_at":{"type":"string"},"last_at":{"type":"string"},"sample_count":{"type":"number"},"total_cpu_time_ns":{"type":"number"},"total_memory_byte_seconds":{"type":"number"},"total_reserved_memory_byte_seconds":{"type":"number"},"reserved_memory_from_millis":{"type":"number"},"total_disk_read":{"type":"number"},"total_disk_write":{"type":"number"},"total_net_rx":{"type":"number"},"total_net_tx":{"type":"number"}}}}},"total":{"additionalProperties":false,"type":"object","required":["total_cpu_time_ns","total_disk_read","total_disk_write","total_net_rx","total_net_tx"],"properties":{"total_cpu_time_ns":{"type":"number"},"total_disk_read":{"type":"number"},"total_disk_write":{"type":"number"},"total_net_rx":{"type":"number"},"total_net_tx":{"type":"number"}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"usage":{},"total":{"total_cpu_time_ns":0,"total_disk_read":0,"total_disk_write":0,"total_net_rx":0,"total_net_tx":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.usage","x-read-only":true,"x-mcp-tool":"vm_usage_global","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/quota":{"get":{"operationId":"vm.quota","summary":"Get resource quota and pool usage","description":"Get resource quota and pool usage\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","limits","pool","pool_usage","maxVms","currentVms","canCreate"],"properties":{"success":{"const":true,"type":"boolean"},"namespace":{"type":"string"},"scope":{"type":"string"},"plan":{"type":"string"},"planLabel":{"type":"string"},"limits":{"additionalProperties":false,"type":"object","properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"count":{"type":"number"}}},"pool":{"additionalProperties":false,"type":"object","properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"count":{"type":"number"}}},"pool_usage":{"additionalProperties":false,"type":"object","properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"count":{"type":"number"}}},"running_pool":{"additionalProperties":false,"type":"object","properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"count":{"type":"number"}}},"running_pool_usage":{"additionalProperties":false,"type":"object","properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"count":{"type":"number"}}},"maxVms":{"anyOf":[{"type":"number"},{"type":"null"}]},"currentVms":{"type":"number"},"canCreate":{"type":"boolean"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"limits":{},"pool":{},"pool_usage":{},"maxVms":0,"currentVms":0,"canCreate":false}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["account.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.quota","x-read-only":true,"x-mcp-tool":"vm_quota","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms":{"post":{"operationId":"vm.create","summary":"Create a VM within its namespace and resource limits","description":"Create a VM within its namespace and resource limits\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current VM or operation state before retrying an uncertain result. Reuse an idempotency key only where the input explicitly supports one.","tags":["vms"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"name":{"maxLength":255,"type":"string"},"slug":{"anyOf":[{"minLength":3,"maxLength":128,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$","type":"string"},{"type":"null"}]},"image":{"maxLength":1024,"type":"string"},"preset":{"maxLength":255,"type":"string"},"software":{"maxItems":8,"uniqueItems":true,"description":"Published software IDs recommended for the selected base image. Omit or pass [] for a plain VM.","type":"array","items":{"minLength":1,"maxLength":128,"type":"string"}},"namespace":{"anyOf":[{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},{"type":"null"}]},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"wait_ready":{"type":"boolean"},"ready_timeout_seconds":{"minimum":1,"maximum":600,"type":"integer"},"idempotency_key":{"minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+$","type":"string"}}},"examples":{"example1":{"summary":"Synthetic example","value":{}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm":{"id":"example"}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.create"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"core.create","x-read-only":false,"x-audit-action":"vm.create","x-mcp-tool":"vm_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"get":{"operationId":"vm.list","summary":"List VMs in the authorized account or namespace","description":"List VMs in the authorized account or namespace\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"page","in":"query","required":false,"schema":{"minimum":1,"type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vms","total","page","limit"],"properties":{"success":{"const":true,"type":"boolean"},"vms":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}},"total":{"type":"number"},"page":{"type":"number"},"limit":{"type":"number"}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vms":[],"total":0,"page":0,"limit":0}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.list","x-read-only":true,"x-mcp-tool":"vm_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/vms/{vmId}":{"get":{"operationId":"vm.get","summary":"Get VM details by ID or slug","description":"Get VM details by ID or slug\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: This inspection is safe to retry.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm":{"id":"example"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.get","x-read-only":true,"x-mcp-tool":"vm_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"vm.update","summary":"Update VM metadata or owner launch settings","description":"Update VM metadata or owner launch settings\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"minProperties":1,"type":"object","properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"slug":{"anyOf":[{"minLength":3,"maxLength":128,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$","type":"string"},{"type":"null"}]},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}}}}}},"examples":{"example1":{"summary":"Synthetic example","value":{"name":"example"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","vm"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"vm":{"id":"example"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.configure"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.update","x-read-only":false,"x-audit-action":"vm.update","x-mcp-tool":"vm_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"delete":{"operationId":"vm.delete","summary":"Delete a VM and release its resources","description":"Delete a VM and release its resources\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples use synthetic values and do not represent current usage or capacity.\n\n- Owned VMs may use account-local slugs; delegated VM access requires an immutable shared VM ID.\n\n- Namespace lifecycle, provisioning state and resource/billing limits are checked independently of this documentation.\n\n- A publication receipt describes edge delivery separately from a saved configuration. Pending delivery returns HTTP202 and retries automatically; inspect current state before repeating a lifecycle change.\n\nRetry guidance: Inspect the current state after an uncertain result before retrying this change.","tags":["vms"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic example","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"message":{"type":"string"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]},"examples":{"example1":{"summary":"Synthetic example","value":{"success":true,"message":"example"}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"message":{"type":"string"},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}}},{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"message":{"type":"string"},"code":{"type":"string"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"object","patternProperties":{"^(.*)$":{}}},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"violations":{"type":"array","items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object","required":["field","reason"],"properties":{"field":{"type":"string"},"reason":{"type":"string"},"value":{"type":"number"},"limit":{"type":"number"},"requested":{"type":"number"},"available":{"type":"number"}}}]}},"running_vm_ids":{"type":"array","items":{"type":"string"}},"running_pool":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool_usage":{"type":"object","patternProperties":{"^(.*)$":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"valid":{"const":false,"type":"boolean"},"current":{"type":"number"},"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"missing":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"}}}},"vm":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}},"vm_id":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.delete"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"core.del","x-read-only":false,"x-audit-action":"vm.delete","x-mcp-tool":"vm_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/namespaces":{"post":{"operationId":"namespaces.create","summary":"Create a namespace within the account capacity","description":"Create a namespace owned by the authenticated account. The server derives its slug from slug or name and enforces account capacity. This does not purchase compute or create a VM.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Name is required. Defaults: type=\"default\", isDefault=false, description=null, metadata={}, tags=[]. Owner fields supplied by the caller are ignored.\n\n- Resource limits are admission settings. A null limit inherits from the account; it does not grant paid capacity.\n\nRetry guidance: Prefer namespace_ensure with a stable slug when retries are expected. If creation times out, read that slug before creating again; an existing slug returns namespace_exists.","tags":["namespaces"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":255,"description":"Required display name. Used to derive a slug when slug is omitted.","type":"string"},"slug":{"minLength":1,"maxLength":255,"description":"Creation identity, normalized from this value or name. Unique within the account; retired slugs cannot be reused.","type":"string"},"description":{"anyOf":[{"maxLength":65535,"type":"string"},{"type":"null"}],"description":"Human-readable namespace description; null clears it."},"type":{"minLength":1,"maxLength":50,"description":"Namespace category; defaults to default on creation.","type":"string"},"isDefault":{"description":"Mark a newly created namespace as default; defaults to false.","type":"boolean"},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}],"description":"Owner metadata. On update this replaces the saved object; delegates do not receive it in responses."},"tags":{"anyOf":[{"maxItems":100,"type":"array","items":{"maxLength":255,"type":"string"}},{"type":"null"}],"description":"Namespace tags. On update this replaces the saved list."},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}],"description":"Admission limits, not paid compute capacity. Updates merge individual entries; set an entry to null to inherit."}}},"examples":{"example1":{"summary":"Create a production namespace","value":{"name":"Production","slug":"production"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","client_id","name","slug"],"properties":{"id":{"minLength":1,"maxLength":255,"type":"string"},"client_id":{"minLength":1,"maxLength":255,"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_default":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"effective_resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"allocated_resource_usage":{"additionalProperties":false,"type":"object","required":["vms","vcpus","ram_mb","disk_gb","pending_updates"],"properties":{"vms":{"type":"number"},"vcpus":{"type":"number"},"ram_mb":{"type":"number"},"disk_gb":{"type":"number"},"pending_updates":{"type":"number"}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_active_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharing":{"additionalProperties":false,"type":"object","required":["role","owner_id","actor_id","permissions"],"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}}}}}}},"examples":{"example1":{"summary":"Create a production namespace","value":{"success":true,"data":{"id":"ns_example","client_id":"example_account","name":"Production","slug":"production","status":"active"}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.\n\nvalidation_error: A usable name or slug is required; limits must be valid.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.\n\nnamespace_deleted: The retired namespace identity cannot be reused. Choose a new slug.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"namespace_limit_exceeded: The account has reached its namespace count limit.\n\nnamespace_exists: This account already has the derived slug; read it or use namespace_ensure.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:create","x-read-only":false,"x-audit-action":"namespace.create","x-mcp-tool":"namespace_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},"get":{"operationId":"namespaces.list","summary":"List namespaces in the authorized account","description":"List namespaces belonging to the authorized account with filtering and offset pagination. A namespace-only sharing grant does not authorize an account-wide list.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Defaults: limit=50, offset=0, sortBy=\"created_at\", sortOrder=\"DESC\". Use pagination.has_more to continue.\n\n- Delegated responses omit owner metadata. Activity also omits IP addresses, user agents and metadata changes.\n\nRetry guidance: Reads may be retried after transient failures. Data can change between requests; a retry is not a snapshot.","tags":["namespaces"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"description":"Maximum number of records; defaults to 50.","type":"integer"},"description":"Maximum number of records; defaults to 50.","examples":{"example1":{"summary":"List active namespaces","value":10}}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"description":"Number of records to skip; defaults to 0.","type":"integer"},"description":"Number of records to skip; defaults to 0."},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}],"description":"Filter by namespace status."},"description":"Filter by namespace status.","examples":{"example1":{"summary":"List active namespaces","value":"active"}}},{"name":"type","in":"query","required":false,"schema":{"description":"Filter by namespace category.","type":"string"},"description":"Filter by namespace category."},{"name":"search","in":"query","required":false,"schema":{"maxLength":255,"description":"Search namespace name, slug or description.","type":"string"},"description":"Search namespace name, slug or description."},{"name":"sortBy","in":"query","required":false,"schema":{"description":"Sort field; defaults to created_at.","anyOf":[{"const":"name","type":"string"},{"const":"created_at","type":"string"},{"const":"updated_at","type":"string"},{"const":"last_active_at","type":"string"}]},"description":"Sort field; defaults to created_at."},{"name":"sortOrder","in":"query","required":false,"schema":{"description":"Sort direction; defaults to DESC.","anyOf":[{"const":"ASC","type":"string"},{"const":"DESC","type":"string"},{"const":"asc","type":"string"},{"const":"desc","type":"string"}]},"description":"Sort direction; defaults to DESC."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","pagination"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","client_id","name","slug"],"properties":{"id":{"minLength":1,"maxLength":255,"type":"string"},"client_id":{"minLength":1,"maxLength":255,"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_default":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"effective_resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"allocated_resource_usage":{"additionalProperties":false,"type":"object","required":["vms","vcpus","ram_mb","disk_gb","pending_updates"],"properties":{"vms":{"type":"number"},"vcpus":{"type":"number"},"ram_mb":{"type":"number"},"disk_gb":{"type":"number"},"pending_updates":{"type":"number"}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_active_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharing":{"additionalProperties":false,"type":"object","required":["role","owner_id","actor_id","permissions"],"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}}}}}},"pagination":{"additionalProperties":false,"type":"object","required":["total","limit","offset","has_more"],"properties":{"total":{"anyOf":[{"type":"number"},{"type":"string"}]},"limit":{"type":"number"},"offset":{"type":"number"},"has_more":{"type":"boolean"}}}}},"examples":{"example1":{"summary":"List active namespaces","value":{"success":true,"data":[{"id":"ns_example","client_id":"example_account","name":"Production","slug":"production","status":"active"}],"pagination":{"total":1,"limit":10,"offset":0,"has_more":false}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:list","x-read-only":true,"x-mcp-tool":"namespace_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/namespaces/ensure":{"post":{"operationId":"namespaces.ensure","summary":"Find or create a namespace by its name or slug","description":"Find or create a namespace using a stable account-local slug derived from slug or name. At least one of name or slug must be nonempty. Existing namespaces are returned without applying the supplied creation fields.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Creates quota records as needed and fills the account's default namespace pointer only if empty. It does not fund a capacity contract.\n\n- HTTP returns 201 when created and 200 when reused. Both transports return created alongside the namespace.\n\nRetry guidance: Repeat with the same account and slug to reuse the same namespace, including concurrent requests. Retired slugs cannot be recreated. The created flag can change from true to false on a retry.","tags":["namespaces"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"name":{"minLength":1,"maxLength":255,"description":"Namespace display name. Changing it does not rename the slug.","type":"string"},"slug":{"minLength":1,"maxLength":255,"description":"Creation identity, normalized from this value or name. Unique within the account; retired slugs cannot be reused.","type":"string"},"description":{"anyOf":[{"maxLength":65535,"type":"string"},{"type":"null"}],"description":"Human-readable namespace description; null clears it."},"type":{"minLength":1,"maxLength":50,"description":"Namespace category; defaults to default on creation.","type":"string"},"isDefault":{"description":"Mark a newly created namespace as default; defaults to false.","type":"boolean"},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}],"description":"Owner metadata. On update this replaces the saved object; delegates do not receive it in responses."},"tags":{"anyOf":[{"maxItems":100,"type":"array","items":{"maxLength":255,"type":"string"}},{"type":"null"}],"description":"Namespace tags. On update this replaces the saved list."},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}],"description":"Admission limits, not paid compute capacity. Updates merge individual entries; set an entry to null to inherit."}}},"examples":{"example1":{"summary":"Reuse an existing namespace","value":{"slug":"production"}},"example2":{"summary":"Create a missing namespace","value":{"name":"Production","slug":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","created","data"],"properties":{"success":{"const":true,"type":"boolean"},"created":{"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","client_id","name","slug"],"properties":{"id":{"minLength":1,"maxLength":255,"type":"string"},"client_id":{"minLength":1,"maxLength":255,"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_default":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"effective_resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"allocated_resource_usage":{"additionalProperties":false,"type":"object","required":["vms","vcpus","ram_mb","disk_gb","pending_updates"],"properties":{"vms":{"type":"number"},"vcpus":{"type":"number"},"ram_mb":{"type":"number"},"disk_gb":{"type":"number"},"pending_updates":{"type":"number"}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_active_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharing":{"additionalProperties":false,"type":"object","required":["role","owner_id","actor_id","permissions"],"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}}}}}}},"examples":{"example1":{"summary":"Reuse an existing namespace","value":{"success":true,"created":false,"data":{"id":"ns_example","client_id":"example_account","name":"Production","slug":"production","status":"active"}}}}}}},"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","created","data"],"properties":{"success":{"const":true,"type":"boolean"},"created":{"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","client_id","name","slug"],"properties":{"id":{"minLength":1,"maxLength":255,"type":"string"},"client_id":{"minLength":1,"maxLength":255,"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_default":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"effective_resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"allocated_resource_usage":{"additionalProperties":false,"type":"object","required":["vms","vcpus","ram_mb","disk_gb","pending_updates"],"properties":{"vms":{"type":"number"},"vcpus":{"type":"number"},"ram_mb":{"type":"number"},"disk_gb":{"type":"number"},"pending_updates":{"type":"number"}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_active_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharing":{"additionalProperties":false,"type":"object","required":["role","owner_id","actor_id","permissions"],"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}}}}}}},"examples":{"example2":{"summary":"Create a missing namespace","value":{"success":true,"created":true,"data":{"id":"ns_example","client_id":"example_account","name":"Production","slug":"production","status":"active"}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.\n\nvalidation_error: A usable name or slug is required; limits must be valid.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.\n\nnamespace_deleted: The retired namespace identity cannot be reused. Choose a new slug.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"namespace_limit_exceeded: The account has reached its namespace count limit.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:create","x-read-only":false,"x-audit-action":"namespace.ensure","x-mcp-tool":"namespace_ensure","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/namespaces/{identifier}":{"get":{"operationId":"namespaces.get","summary":"Read a namespace by ID or account-local slug","description":"Read the namespace and its effective resource limits. Declared resource_limits and effective_resource_limits are distinct; neither is proof of funded compute coverage.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- Delegated responses omit owner metadata. Activity also omits IP addresses, user agents and metadata changes.\n\nRetry guidance: Reads may be retried after transient failures. Data can change between requests; a retry is not a snapshot.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Read a namespace by immutable ID","value":"ns_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","client_id","name","slug"],"properties":{"id":{"minLength":1,"maxLength":255,"type":"string"},"client_id":{"minLength":1,"maxLength":255,"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_default":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"effective_resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"allocated_resource_usage":{"additionalProperties":false,"type":"object","required":["vms","vcpus","ram_mb","disk_gb","pending_updates"],"properties":{"vms":{"type":"number"},"vcpus":{"type":"number"},"ram_mb":{"type":"number"},"disk_gb":{"type":"number"},"pending_updates":{"type":"number"}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_active_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharing":{"additionalProperties":false,"type":"object","required":["role","owner_id","actor_id","permissions"],"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}}}}}}},"examples":{"example1":{"summary":"Read a namespace by immutable ID","value":{"success":true,"data":{"id":"ns_example","client_id":"example_account","name":"Production","slug":"production","status":"active"}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:read","x-read-only":true,"x-mcp-tool":"namespace_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"namespaces.update","summary":"Update namespace metadata and declared resource limits","description":"Update supported namespace fields. MCP accepts the patch in updates; HTTP accepts the same patch as the PUT body. Ownership and slug cannot be changed.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- Omitted fields are unchanged. Metadata and tags replace their values. Resource-limit entries merge by key; set an individual limit to null to inherit. A null resource_limits object does not clear saved entries.\n\n- Changing status here does not perform the VM stop workflow. Use namespace_suspend to suspend and stop running VMs.\n\n- Declared limits can be lower than the current allocation; later admission checks enforce them. Updating limits does not buy or resize paid capacity.\n\nRetry guidance: After a timeout or partial failure, inspect the namespace and affected VMs before retrying. No client idempotency key is supported; completed effects are not rolled back.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Rename a namespace","value":"ns_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"description":"Supported field updates. Omitted fields stay unchanged; ownership and slug cannot be changed.","type":"object","properties":{"name":{"minLength":1,"maxLength":255,"description":"Namespace display name. Changing it does not rename the slug.","type":"string"},"description":{"anyOf":[{"maxLength":65535,"type":"string"},{"type":"null"}],"description":"Human-readable namespace description; null clears it."},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}],"description":"Change status only. Use namespace_suspend to also stop running VMs."},"type":{"minLength":1,"maxLength":50,"description":"Namespace category; defaults to default on creation.","type":"string"},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}],"description":"Owner metadata. On update this replaces the saved object; delegates do not receive it in responses."},"tags":{"anyOf":[{"maxItems":100,"type":"array","items":{"maxLength":255,"type":"string"}},{"type":"null"}],"description":"Namespace tags. On update this replaces the saved list."},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}],"description":"Admission limits, not paid compute capacity. Updates merge individual entries; set an entry to null to inherit."}}},"examples":{"example1":{"summary":"Rename a namespace","value":{"name":"Production EU"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","client_id","name","slug"],"properties":{"id":{"minLength":1,"maxLength":255,"type":"string"},"client_id":{"minLength":1,"maxLength":255,"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"inactive","type":"string"},{"const":"suspended","type":"string"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_default":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"effective_resource_limits":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},{"type":"null"}]},"allocated_resource_usage":{"additionalProperties":false,"type":"object","required":["vms","vcpus","ram_mb","disk_gb","pending_updates"],"properties":{"vms":{"type":"number"},"vcpus":{"type":"number"},"ram_mb":{"type":"number"},"disk_gb":{"type":"number"},"pending_updates":{"type":"number"}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_active_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharing":{"additionalProperties":false,"type":"object","required":["role","owner_id","actor_id","permissions"],"properties":{"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}}}}}}},"examples":{"example1":{"summary":"Rename a namespace","value":{"success":true,"data":{"id":"ns_example","client_id":"example_account","name":"Production EU","slug":"production","status":"active"}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:write","x-read-only":false,"x-audit-action":"namespace.update","x-mcp-tool":"namespace_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},"delete":{"operationId":"namespaces.delete","summary":"Permanently delete a namespace and revoke its scoped credentials; deleteVms=true also deletes its VMs. Retired slugs cannot be reused.","description":"Permanently remove the namespace management record, revoke its namespace-scoped credentials and retire its identity. The slug cannot be reused. This is not a move or detach operation.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- deleteVms defaults to false: VM records are retained, but the namespace is retired. With deleteVms=true, every VM in the namespace is submitted for deletion first.\n\n- Cleanup can partially succeed. namespace_cleanup_failed leaves the namespace present but some VMs may already be deleted. Other failures can occur after credential revocation; inspect before retrying.\n\n- Namespace activity is removed with the namespace. The separate durable API audit record remains.\n\nRetry guidance: Never blindly retry deletion after a timeout. Inspect the namespace and VM inventory. namespace_not_found can mean deletion already completed or the caller no longer has access.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Delete a namespace and its VMs","value":"ns_example"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"deleteVms":{"description":"Defaults to false. True attempts to permanently delete every VM before retiring the namespace. Cleanup can partially succeed.","type":"boolean"}}},"examples":{"example1":{"summary":"Delete a namespace and its VMs","value":{"deleteVms":true}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","message","vmsDeleted","errors"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"},"vmsDeleted":{"type":"number"},"errors":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vmId","error"],"properties":{"vmId":{"type":"string"},"error":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Delete a namespace and its VMs","value":{"success":true,"message":"Namespace deleted","vmsDeleted":2,"errors":[]}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"500":{"description":"namespace_cleanup_failed: Some VMs could not be deleted. Completed VM deletions are not rolled back.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:write","x-read-only":false,"x-audit-action":"namespace.delete","x-mcp-tool":"namespace_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/namespaces/{identifier}/suspend":{"post":{"operationId":"namespaces.suspend","summary":"Suspend a namespace and stop its running VMs, interrupting workloads. Check errors for partial stop failures.","description":"Set the namespace to suspended and attempt to stop its running VMs. This interrupts workloads. A successful response can contain per-VM failures in errors.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- The namespace status changes before VM stops. Inspect errors even when success=true. Activation later does not restart those VMs.\n\nRetry guidance: Read the status and VM inventory first. An already-suspended namespace returns namespace_already_suspended; use namespace_stop_vms to retry remaining stops after inspection.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Suspend a namespace","value":"ns_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","message","stopped","errors"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"},"stopped":{"type":"number"},"errors":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vmId","error"],"properties":{"vmId":{"type":"string"},"error":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Suspend a namespace","value":{"success":true,"message":"Namespace suspended","stopped":2,"errors":[]}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"namespace_already_suspended: The namespace is already suspended; inspect remaining VMs instead of repeating this action.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:write","x-read-only":false,"x-audit-action":"namespace.suspend","x-mcp-tool":"namespace_suspend","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/namespaces/{identifier}/activate":{"post":{"operationId":"namespaces.activate","summary":"Activate a namespace without starting stopped VMs","description":"Set the namespace status to active and clear its billing-suspension marker. Stopped VMs remain stopped; starting them is a separate, authorized action subject to funding and resource checks.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- Activation does not fund compute, change credit balances or bypass per-VM billing gates.\n\nRetry guidance: Read the namespace after an uncertain response. If it is already active, a repeat returns namespace_already_active; do not infer that VMs restarted.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Activate without starting VMs","value":"ns_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},"examples":{"example1":{"summary":"Activate without starting VMs","value":{"success":true,"message":"Namespace activated"}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"namespace_already_active: The namespace is already active.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:write","x-read-only":false,"x-audit-action":"namespace.activate","x-mcp-tool":"namespace_activate","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/namespaces/{identifier}/stop-vms":{"post":{"operationId":"namespaces.stopVms","summary":"Stop running VMs in the namespace without changing its status, interrupting workloads. Check errors for partial failures.","description":"Attempt to stop every currently running VM in the namespace without changing namespace status. This interrupts workloads. Inspect errors even when success=true.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- The operation is not an atomic group stop: some VMs can stop while others fail. Repeating it can stop VMs that started after the first call.\n\nRetry guidance: After a timeout or partial failure, inspect the namespace and affected VMs before retrying. No client idempotency key is supported; completed effects are not rolled back.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Stop all currently running VMs","value":"ns_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","message","stopped","errors"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"},"stopped":{"type":"number"},"errors":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vmId","error"],"properties":{"vmId":{"type":"string"},"error":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Stop all currently running VMs","value":{"success":true,"message":"2 vm(s) stopped","stopped":2,"errors":[]}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:write","x-read-only":false,"x-audit-action":"namespace.stop_vms","x-mcp-tool":"namespace_stop_vms","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/namespaces/{identifier}/activity":{"get":{"operationId":"namespaces.activity","summary":"Read namespace management activity","description":"Read paginated namespace management activity. This is the namespace activity feed, not the separate durable API mutation audit store.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- Delegated responses omit owner metadata. Activity also omits IP addresses, user agents and metadata changes.\n\n- Defaults: limit=50 and offset=0. The response is an array without pagination totals.\n\nRetry guidance: Reads may be retried after transient failures. Data can change between requests; a retry is not a snapshot.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Read recent activity","value":"ns_example"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"description":"Maximum number of records; defaults to 50.","type":"integer"},"description":"Maximum number of records; defaults to 50.","examples":{"example1":{"summary":"Read recent activity","value":10}}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"description":"Number of records to skip; defaults to 0.","type":"integer"},"description":"Number of records to skip; defaults to 0."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","namespace_id","action","description","changes","created_at"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"namespace_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"action":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"changes":{"anyOf":[{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"string"}]},{"type":"null"}]},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}]},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"examples":{"example1":{"summary":"Read recent activity","value":{"success":true,"data":[]}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:read","x-read-only":true,"x-mcp-tool":"namespace_activity","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/namespaces/{identifier}/usage":{"get":{"operationId":"namespaces.usage","summary":"Read namespace usage, credit summary and quotas","description":"Read credit usage, the period summary and quota records for the namespace. Metered credits and quota data are separate from paid monthly compute coverage.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- days defaults to 30. The optional service filter applies to usage rows; summary and quota collections cover their respective services.\n\nRetry guidance: Reads may be retried after transient failures. Data can change between requests; a retry is not a snapshot.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Read the last thirty days","value":"ns_example"}}},{"name":"service","in":"query","required":false,"schema":{"minLength":1,"maxLength":100,"description":"Filter usage rows by metered service. Summary and quota collections keep their service coverage.","type":"string"},"description":"Filter usage rows by metered service. Summary and quota collections keep their service coverage."},{"name":"days","in":"query","required":false,"schema":{"minimum":1,"maximum":366,"description":"Number of preceding days; defaults to 30.","type":"integer"},"description":"Number of preceding days; defaults to 30.","examples":{"example1":{"summary":"Read the last thirty days","value":30}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["usage","summary","quotas"],"properties":{"usage":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["service","date","requests","credits","deductions"],"properties":{"service":{"type":"string"},"date":{"type":"string"},"requests":{"anyOf":[{"type":"number"},{"type":"string"}]},"credits":{"anyOf":[{"type":"number"},{"type":"string"}]},"deductions":{"anyOf":[{"type":"number"},{"type":"string"}]}}}},"summary":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["service","total_requests","total_credits","first_used","last_used"],"properties":{"service":{"type":"string"},"total_requests":{"anyOf":[{"type":"number"},{"type":"string"}]},"total_credits":{"anyOf":[{"type":"number"},{"type":"string"}]},"first_used":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_used":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"quotas":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","client_id","namespace","service","quota_limit","quota_used","purchased_credits","overdraft","suspend_threshold","enabled","notification_thresholds","last_threshold_fired","alert"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"client_id":{"type":"string"},"namespace":{"type":"string"},"service":{"type":"string"},"quota_limit":{"anyOf":[{"type":"number"},{"type":"null"}]},"quota_used":{"type":"number"},"purchased_credits":{"type":"number"},"overdraft":{"type":"number"},"suspend_threshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"type":"boolean"},"on_overdraft_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"period":{"anyOf":[{"type":"string"},{"type":"null"}]},"period_start":{"anyOf":[{"type":"string"},{"type":"null"}]},"period_end":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"notification_thresholds":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}]},"last_threshold_fired":{"anyOf":[{"type":"number"},{"type":"null"}]},"alert":{"additionalProperties":false,"type":"object","required":["state","thresholds","threshold","percent","used","limit","remaining","balance","overdraft","blocking"],"properties":{"state":{"type":"string"},"thresholds":{"type":"array","items":{"type":"number"}},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"used":{"type":"number"},"limit":{"anyOf":[{"type":"number"},{"type":"null"}]},"remaining":{"anyOf":[{"type":"number"},{"type":"null"}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"type":"number"},"blocking":{"type":"boolean"}}}}}}}}}},"examples":{"example1":{"summary":"Read the last thirty days","value":{"success":true,"data":{"usage":[],"summary":[],"quotas":[]}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:read","x-read-only":true,"x-mcp-tool":"namespace_usage","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/namespaces/{identifier}/usage-units":{"get":{"operationId":"namespaces.usageUnits","summary":"Read raw metered units for a namespace","description":"Read raw metered usage and aggregate totals: CPU minutes, memory GB-minutes, disk/network GB, derived vCPU/GB hours and charged credits. These are usage measurements, not runtime authorization.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- Use ISO timestamps with an explicit timezone. to defaults to now; from defaults to thirty days before to; groupBy defaults to day. from must not be after to.\n\nRetry guidance: Reads may be retried after transient failures. Data can change between requests; a retry is not a snapshot.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Read daily units for a UTC interval with no usage (synthetic example)","value":"ns_example"}}},{"name":"from","in":"query","required":false,"schema":{"description":"Start timestamp, preferably ISO 8601 with timezone; defaults to 30 days before to.","type":"string"},"description":"Start timestamp, preferably ISO 8601 with timezone; defaults to 30 days before to.","examples":{"example1":{"summary":"Read daily units for a UTC interval with no usage (synthetic example)","value":"2026-11-01T00:00:00Z"}}},{"name":"to","in":"query","required":false,"schema":{"description":"End timestamp, preferably ISO 8601 with timezone; defaults to now. Must be at or after from.","type":"string"},"description":"End timestamp, preferably ISO 8601 with timezone; defaults to now. Must be at or after from.","examples":{"example1":{"summary":"Read daily units for a UTC interval with no usage (synthetic example)","value":"2026-11-02T00:00:00Z"}}},{"name":"groupBy","in":"query","required":false,"schema":{"description":"Time bucket size; defaults to day.","anyOf":[{"const":"hour","type":"string"},{"const":"day","type":"string"}]},"description":"Time bucket size; defaults to day.","examples":{"example1":{"summary":"Read daily units for a UTC interval with no usage (synthetic example)","value":"day"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["namespace","range","group_by","buckets","totals"],"properties":{"namespace":{"type":"string"},"range":{"additionalProperties":false,"type":"object","required":["from","to"],"properties":{"from":{"type":"string"},"to":{"type":"string"}}},"group_by":{"type":"string"},"buckets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["timestamp","cpu_time_minutes","memory_gb_minutes","disk_io_gb","network_gb","vcpu_hours","gb_hours","credits","records"],"properties":{"timestamp":{"type":"string"},"cpu_time_minutes":{"type":"number"},"memory_gb_minutes":{"type":"number"},"disk_io_gb":{"type":"number"},"network_gb":{"type":"number"},"vcpu_hours":{"type":"number"},"gb_hours":{"type":"number"},"credits":{"type":"number"},"records":{"type":"number"}}}},"totals":{"additionalProperties":false,"type":"object","required":["cpu_time_minutes","memory_gb_minutes","disk_io_gb","network_gb","vcpu_hours","gb_hours","credits","records"],"properties":{"cpu_time_minutes":{"type":"number"},"memory_gb_minutes":{"type":"number"},"disk_io_gb":{"type":"number"},"network_gb":{"type":"number"},"vcpu_hours":{"type":"number"},"gb_hours":{"type":"number"},"credits":{"type":"number"},"records":{"type":"number"}}}}}}},"examples":{"example1":{"summary":"Read daily units for a UTC interval with no usage (synthetic example)","value":{"success":true,"data":{"namespace":"production","range":{"from":"2026-11-01T00:00:00.000Z","to":"2026-11-02T00:00:00.000Z"},"group_by":"day","buckets":[],"totals":{"cpu_time_minutes":0,"memory_gb_minutes":0,"disk_io_gb":0,"network_gb":0,"vcpu_hours":0,"gb_hours":0,"credits":0,"records":0}}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.\n\nvalidation_error: The from/to timestamps are invalid or out of order.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespace:read","x-read-only":true,"x-mcp-tool":"namespace_usage_units","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/namespaces/{identifier}/domains":{"get":{"operationId":"namespaces.domains","summary":"List the authoritative domain inventory of a namespace","description":"Read the authoritative domain inventory attached to the namespace, including newly attached and zero-traffic domains. This does not change routing or issue certificates.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- IDs and slugs resolve within the authenticated account. Delegates must use the immutable shared namespace ID; another account's slug is never resolved.\n\n- Namespace-scoped credentials can use this route only for their bound namespace. Domain status does not by itself prove external DNS or HTTPS readiness.\n\nRetry guidance: Reads may be retried after transient failures. Data can change between requests; a retry is not a snapshot.","tags":["namespaces"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string","description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace."},"description":"Namespace ID or account-local slug. Delegates must use the immutable ID of a shared namespace.","examples":{"example1":{"summary":"Read namespace domain inventory","value":"ns_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["namespace","count","domains"],"properties":{"namespace":{"type":"string"},"count":{"type":"number"},"domains":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["hostname","slug","domain","type","is_custom","status","created_at"],"properties":{"hostname":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"type":"string"},"is_custom":{"type":"boolean"},"status":{"type":"string"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}},"examples":{"example1":{"summary":"Read namespace domain inventory","value":{"success":true,"data":{"namespace":"production","count":0,"domains":[]}}}}}}},"400":{"description":"INVALID_INPUT: The request does not match the declared input schema.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"403":{"description":"scope_denied: The credential scope or resource binding does not allow this operation.\n\npermission_denied: Current consent or sharing permissions do not allow the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"namespace_not_found: The namespace is missing or is not visible to the caller.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"namespace_unavailable: Namespace data could not be read safely; retry later.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["namespace.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"namespace:domains","x-read-only":true,"x-mcp-tool":"namespace_domains","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credentials":{"get":{"operationId":"developer.credentials.list","summary":"List the signed-in owner’s API credentials without secrets","description":"List the signed-in owner’s API credentials without secrets","tags":["credentials"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","api_keys"],"properties":{"success":{"const":true,"type":"boolean"},"api_keys":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","client_id","scope","scope_namespace","scope_vm_id","status","expires_at","last_used","created_at","usage"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"client_id":{"type":"string"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}]},"scope_namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"scope_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_used":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"usage":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true},"post":{"operationId":"developer.credentials.create","summary":"Create a scoped access token and equivalent client/secret pair, shown once","description":"Create a scoped access token and equivalent client/secret pair, shown once","tags":["credentials"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"scope":{"anyOf":[{"const":"admin","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"},{"const":"billing","type":"string"}]},"namespace":{"minLength":1,"maxLength":255,"type":"string"},"vmId":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","message","credential"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"},"credential":{"additionalProperties":false,"type":"object","required":["id","name","client_id","scope","scope_namespace","scope_vm_id","status","expires_at","last_used","created_at","usage","client_secret"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"client_id":{"type":"string"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}]},"scope_namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"scope_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_used":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"usage":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"client_secret":{"type":"string"},"access_token":{"type":"string"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":false,"x-audit-action":"credential.create"}},"/credentials/{id}":{"delete":{"operationId":"developer.credentials.revoke","summary":"Revoke both representations of an owned credential","description":"Revoke both representations of an owned credential","tags":["credentials"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[1-9][0-9]{0,14}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":false,"x-audit-action":"credential.revoke"}},"/credentials/usage":{"get":{"operationId":"developer.credentials.usage","summary":"Read credential call counts for the signed-in account","description":"Read credential call counts for the signed-in account","tags":["credentials"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","usage","stats"],"properties":{"success":{"const":true,"type":"boolean"},"usage":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["day","calls"],"properties":{"day":{"type":"string"},"calls":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]}}}},"stats":{"additionalProperties":false,"type":"object","required":["totalKeys","activeKeys","totalCalls","weekCalls"],"properties":{"totalKeys":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"activeKeys":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"totalCalls":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"weekCalls":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true}},"/tokens":{"post":{"operationId":"developer.tokens.create","summary":"Issue a short-lived token for an owned namespace or VM","description":"Issue a short-lived token for an owned namespace or VM","tags":["credentials"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["scope"],"properties":{"scope":{"anyOf":[{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]},"namespace":{"minLength":1,"maxLength":255,"type":"string"},"vmId":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"ttl":{"minimum":1,"maximum":3600,"type":"integer"},"label":{"maxLength":120,"type":"string"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","expiresAt","scope","ttl"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"type":"string"},"expiresAt":{"type":"string"},"scope":{"type":"string"},"ttl":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"delegation","x-read-only":false,"x-audit-action":"credential.delegate"}},"/webhooks":{"get":{"operationId":"developer.webhooks.list","summary":"List owned webhooks within the credential namespace","description":"List owned webhooks within the credential namespace","tags":["webhooks"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","webhooks"],"properties":{"success":{"const":true,"type":"boolean"},"webhooks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","url","events","active","description","namespace","created_at"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"url":{"type":"string"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}]},"events":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"active":{"anyOf":[{"type":"boolean"},{"const":0,"type":"number"},{"const":1,"type":"number"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_triggered_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}]},"created_at":{"type":"string"}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true},"post":{"operationId":"developer.webhooks.create","summary":"Create an owned webhook within the credential namespace","description":"Create an owned webhook within the credential namespace","tags":["webhooks"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["url","events"],"properties":{"url":{"minLength":1,"maxLength":2048,"type":"string"},"events":{"minItems":1,"maxItems":100,"type":"array","items":{"minLength":1,"maxLength":100,"type":"string"}},"secret":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"minLength":1,"maxLength":255,"type":"string"},{"type":"null"}]}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","webhook"],"properties":{"success":{"const":true,"type":"boolean"},"webhook":{"additionalProperties":false,"type":"object","required":["id","url","events","active","description","namespace","created_at"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"url":{"type":"string"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}]},"events":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"active":{"anyOf":[{"type":"boolean"},{"const":0,"type":"number"},{"const":1,"type":"number"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_triggered_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}]},"created_at":{"type":"string"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"webhook.create"}},"/webhooks/events":{"get":{"operationId":"developer.webhooks.events","summary":"List webhook event types permitted for this credential","description":"List webhook event types permitted for this credential","tags":["webhooks"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","events"],"properties":{"success":{"const":true,"type":"boolean"},"events":{"type":"array","items":{"type":"string"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/webhooks/{id}":{"put":{"operationId":"developer.webhooks.update","summary":"Update an owned webhook within the credential namespace","description":"Update an owned webhook within the credential namespace","tags":["webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[1-9][0-9]{0,14}$","type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"url":{"minLength":1,"maxLength":2048,"type":"string"},"events":{"minItems":1,"maxItems":100,"type":"array","items":{"minLength":1,"maxLength":100,"type":"string"}},"secret":{"anyOf":[{"maxLength":4096,"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"maxLength":1000,"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"minLength":1,"maxLength":255,"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","webhook"],"properties":{"success":{"const":true,"type":"boolean"},"webhook":{"additionalProperties":false,"type":"object","required":["id","url","events","active","description","namespace","created_at"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"url":{"type":"string"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}]},"events":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"active":{"anyOf":[{"type":"boolean"},{"const":0,"type":"number"},{"const":1,"type":"number"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_triggered_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_status_code":{"anyOf":[{"type":"integer"},{"type":"null"}]},"created_at":{"type":"string"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"webhook.update"},"delete":{"operationId":"developer.webhooks.delete","summary":"Delete an owned webhook within the credential namespace","description":"Delete an owned webhook within the credential namespace","tags":["webhooks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[1-9][0-9]{0,14}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"cleanup","x-read-only":false,"x-audit-action":"webhook.delete"}},"/mail/{identifier}":{"get":{"operationId":"mail.getTenant","summary":"Read the mail tenant and effective holds","description":"Check whether your namespace can send mail and see which holds need attention.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\nRetry guidance: Safe to repeat. Provisioning continues in the background.","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"An active tenant","value":"transactional-mail"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","namespace","region","state","holds","reason","recovery","capabilities"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"namespace":{"minLength":1,"maxLength":255,"type":"string"},"region":{"const":"us-east-2","type":"string"},"state":{"anyOf":[{"const":"provisioning","type":"string"},{"const":"active","type":"string"},{"const":"paused","type":"string"},{"const":"failed","type":"string"},{"const":"closed","type":"string"}]},"holds":{"type":"array","items":{"anyOf":[{"const":"billing","type":"string"},{"const":"aws","type":"string"},{"const":"abuse","type":"string"},{"const":"namespace","type":"string"}]}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"recovery":{"anyOf":[{"type":"string"},{"type":"null"}]},"capabilities":{"additionalProperties":false,"type":"object","required":["send"],"properties":{"send":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"An active tenant","value":{"success":true,"data":{"id":"e07ab08c-bfe0-45ab-873c-2025cc6ad881","namespace":"transactional-mail","region":"us-east-2","state":"active","holds":[],"reason":null,"recovery":null,"capabilities":{"send":true}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"mail_get_tenant","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/mail/{identifier}/ensure":{"post":{"operationId":"mail.ensure","summary":"Provision the namespace mail tenant idempotently","description":"Provision the namespace mail tenant idempotently","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","namespace","region","state","holds","reason","recovery","capabilities"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"namespace":{"minLength":1,"maxLength":255,"type":"string"},"region":{"const":"us-east-2","type":"string"},"state":{"anyOf":[{"const":"provisioning","type":"string"},{"const":"active","type":"string"},{"const":"paused","type":"string"},{"const":"failed","type":"string"},{"const":"closed","type":"string"}]},"holds":{"type":"array","items":{"anyOf":[{"const":"billing","type":"string"},{"const":"aws","type":"string"},{"const":"abuse","type":"string"},{"const":"namespace","type":"string"}]}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"recovery":{"anyOf":[{"type":"string"},{"type":"null"}]},"capabilities":{"additionalProperties":false,"type":"object","required":["send"],"properties":{"send":{"type":"boolean"}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"service","x-read-only":false,"x-audit-action":"mail.ensure"}},"/mail/{identifier}/reputation":{"get":{"operationId":"mail.listFindings","summary":"View sending reputation findings for your namespace","description":"View sending reputation findings for your namespace","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["type","impact","status","description","createdAt","updatedAt"],"properties":{"type":{"minLength":1,"maxLength":64,"type":"string"},"impact":{"minLength":1,"maxLength":32,"type":"string"},"status":{"minLength":1,"maxLength":32,"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/mail/{identifier}/policy":{"get":{"operationId":"mail.getPolicy","summary":"Read the active allowance and revision","description":"Read the active allowance and revision","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["daily","period","burst","domains","keys","periodStart","periodEnd","revision"],"properties":{"daily":{"minimum":0,"maximum":100000000,"type":"integer"},"period":{"minimum":0,"maximum":1000000000,"type":"integer"},"burst":{"minimum":0,"maximum":100000,"type":"integer"},"domains":{"minimum":0,"maximum":10000,"type":"integer"},"keys":{"minimum":0,"maximum":10000,"type":"integer"},"periodStart":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"revision":{"minimum":0,"type":"integer"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true},"put":{"operationId":"mail.updatePolicy","summary":"Set billing allowances using a revision","description":"Set billing allowances using a revision","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["daily","period","burst","domains","keys","periodStart","periodEnd","revision"],"properties":{"daily":{"minimum":0,"maximum":100000000,"type":"integer"},"period":{"minimum":0,"maximum":1000000000,"type":"integer"},"burst":{"minimum":0,"maximum":100000,"type":"integer"},"domains":{"minimum":0,"maximum":10000,"type":"integer"},"keys":{"minimum":0,"maximum":10000,"type":"integer"},"periodStart":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"periodEnd":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"revision":{"minimum":0,"type":"integer"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["daily","period","burst","domains","keys","periodStart","periodEnd","revision"],"properties":{"daily":{"minimum":0,"maximum":100000000,"type":"integer"},"period":{"minimum":0,"maximum":1000000000,"type":"integer"},"burst":{"minimum":0,"maximum":100000,"type":"integer"},"domains":{"minimum":0,"maximum":10000,"type":"integer"},"keys":{"minimum":0,"maximum":10000,"type":"integer"},"periodStart":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"revision":{"minimum":0,"type":"integer"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"service","x-read-only":false,"x-audit-action":"mail.updatePolicy"}},"/mail/{identifier}/pause":{"post":{"operationId":"mail.pause","summary":"Apply an independent billing or abuse hold","description":"Apply an independent billing or abuse hold","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["hold","reason"],"properties":{"hold":{"anyOf":[{"const":"billing","type":"string"},{"const":"abuse","type":"string"}]},"reason":{"minLength":1,"maxLength":256,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","namespace","region","state","holds","reason","recovery","capabilities"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"namespace":{"minLength":1,"maxLength":255,"type":"string"},"region":{"const":"us-east-2","type":"string"},"state":{"anyOf":[{"const":"provisioning","type":"string"},{"const":"active","type":"string"},{"const":"paused","type":"string"},{"const":"failed","type":"string"},{"const":"closed","type":"string"}]},"holds":{"type":"array","items":{"anyOf":[{"const":"billing","type":"string"},{"const":"aws","type":"string"},{"const":"abuse","type":"string"},{"const":"namespace","type":"string"}]}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"recovery":{"anyOf":[{"type":"string"},{"type":"null"}]},"capabilities":{"additionalProperties":false,"type":"object","required":["send"],"properties":{"send":{"type":"boolean"}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"holds","x-read-only":false,"x-audit-action":"mail.pause"}},"/mail/{identifier}/resume":{"post":{"operationId":"mail.resume","summary":"Clear only the specified hold","description":"Clear only the specified hold","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["hold","reason"],"properties":{"hold":{"anyOf":[{"const":"billing","type":"string"},{"const":"abuse","type":"string"}]},"reason":{"minLength":1,"maxLength":256,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","namespace","region","state","holds","reason","recovery","capabilities"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"namespace":{"minLength":1,"maxLength":255,"type":"string"},"region":{"const":"us-east-2","type":"string"},"state":{"anyOf":[{"const":"provisioning","type":"string"},{"const":"active","type":"string"},{"const":"paused","type":"string"},{"const":"failed","type":"string"},{"const":"closed","type":"string"}]},"holds":{"type":"array","items":{"anyOf":[{"const":"billing","type":"string"},{"const":"aws","type":"string"},{"const":"abuse","type":"string"},{"const":"namespace","type":"string"}]}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"recovery":{"anyOf":[{"type":"string"},{"type":"null"}]},"capabilities":{"additionalProperties":false,"type":"object","required":["send"],"properties":{"send":{"type":"boolean"}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"holds","x-read-only":false,"x-audit-action":"mail.resume"}},"/mail/{identifier}/close":{"post":{"operationId":"mail.close","summary":"Close sending and revoke tenant keys","description":"Close sending and revoke tenant keys","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["reason"],"properties":{"reason":{"minLength":1,"maxLength":256,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","namespace","region","state","holds","reason","recovery","capabilities"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"namespace":{"minLength":1,"maxLength":255,"type":"string"},"region":{"const":"us-east-2","type":"string"},"state":{"anyOf":[{"const":"provisioning","type":"string"},{"const":"active","type":"string"},{"const":"paused","type":"string"},{"const":"failed","type":"string"},{"const":"closed","type":"string"}]},"holds":{"type":"array","items":{"anyOf":[{"const":"billing","type":"string"},{"const":"aws","type":"string"},{"const":"abuse","type":"string"},{"const":"namespace","type":"string"}]}},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"recovery":{"anyOf":[{"type":"string"},{"type":"null"}]},"capabilities":{"additionalProperties":false,"type":"object","required":["send"],"properties":{"send":{"type":"boolean"}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"service","x-read-only":false,"x-audit-action":"mail.close"}},"/mail/{identifier}/domains":{"post":{"operationId":"mail.addDomain","summary":"Request ownership proof for one exact domain","description":"Request ownership proof for one exact domain","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain"],"properties":{"domain":{"minLength":1,"maxLength":253,"type":"string"},"returnPath":{"minLength":1,"maxLength":253,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","domain","state","reason","checkedAt","records"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"domain":{"minLength":1,"maxLength":253,"type":"string"},"state":{"anyOf":[{"const":"pending_dns","type":"string"},{"const":"verifying","type":"string"},{"const":"ready","type":"string"},{"const":"verification_failed","type":"string"},{"const":"disabled","type":"string"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"checkedAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"records":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["type","name","value","status"],"properties":{"type":{"anyOf":[{"const":"TXT","type":"string"},{"const":"CNAME","type":"string"},{"const":"MX","type":"string"}]},"name":{"minLength":1,"maxLength":253,"type":"string"},"value":{"minLength":1,"maxLength":512,"type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"verified","type":"string"},{"const":"lookup_error","type":"string"}]}}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":false,"x-audit-action":"mail.addDomain"},"get":{"operationId":"mail.listDomains","summary":"List sending identities in this tenant","description":"List sending identities in this tenant","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","domain","ownership","disabled"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"domain":{"minLength":1,"maxLength":253,"type":"string"},"ownership":{"anyOf":[{"const":"pending","type":"string"},{"const":"verified","type":"string"}]},"disabled":{"type":"boolean"}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/mail/{identifier}/domains/{id}":{"get":{"operationId":"mail.getDomain","summary":"Read a sending identity and DNS records","description":"Read a sending identity and DNS records","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","domain","state","reason","checkedAt","records"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"domain":{"minLength":1,"maxLength":253,"type":"string"},"state":{"anyOf":[{"const":"pending_dns","type":"string"},{"const":"verifying","type":"string"},{"const":"ready","type":"string"},{"const":"verification_failed","type":"string"},{"const":"disabled","type":"string"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"checkedAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"records":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["type","name","value","status"],"properties":{"type":{"anyOf":[{"const":"TXT","type":"string"},{"const":"CNAME","type":"string"},{"const":"MX","type":"string"}]},"name":{"minLength":1,"maxLength":253,"type":"string"},"value":{"minLength":1,"maxLength":512,"type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"verified","type":"string"},{"const":"lookup_error","type":"string"}]}}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true},"delete":{"operationId":"mail.removeDomain","summary":"Disable a sending domain and invalidate bound keys","description":"Disable a sending domain and invalidate bound keys","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"cleanup","x-read-only":false,"x-audit-action":"mail.removeDomain"}},"/mail/{identifier}/domains/{id}/verify":{"post":{"operationId":"mail.verifyDomain","summary":"Check your domain’s DNS records and sending status","description":"Check your domain’s DNS records and sending status","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","domain","state","reason","checkedAt","records"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"domain":{"minLength":1,"maxLength":253,"type":"string"},"state":{"anyOf":[{"const":"pending_dns","type":"string"},{"const":"verifying","type":"string"},{"const":"ready","type":"string"},{"const":"verification_failed","type":"string"},{"const":"disabled","type":"string"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"checkedAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"records":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["type","name","value","status"],"properties":{"type":{"anyOf":[{"const":"TXT","type":"string"},{"const":"CNAME","type":"string"},{"const":"MX","type":"string"}]},"name":{"minLength":1,"maxLength":253,"type":"string"},"value":{"minLength":1,"maxLength":512,"type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"verified","type":"string"},{"const":"lookup_error","type":"string"}]}}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":false,"x-audit-action":"mail.verifyDomain"}},"/mail/{identifier}/keys":{"post":{"operationId":"mail.createKey","summary":"Issue a send-only key and reveal its secret once","description":"Issue a send-only key and reveal its secret once","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["name"],"properties":{"name":{"minLength":1,"maxLength":100,"type":"string"},"domainId":{"minLength":1,"maxLength":64,"type":"string"},"sender":{"minLength":1,"maxLength":254,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","name","prefix","domainId","sender","createdAt","lastUsedAt","secret"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"name":{"minLength":1,"maxLength":100,"type":"string"},"prefix":{"minLength":1,"maxLength":16,"type":"string"},"domainId":{"anyOf":[{"minLength":1,"maxLength":64,"type":"string"},{"type":"null"}]},"sender":{"anyOf":[{"minLength":1,"maxLength":254,"type":"string"},{"type":"null"}]},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"lastUsedAt":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"secret":{"minLength":1,"maxLength":128,"type":"string"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":false,"x-audit-action":"mail.createKey"},"get":{"operationId":"mail.listKeys","summary":"List active sending key metadata","description":"List active sending key metadata","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","prefix","domainId","sender","createdAt","lastUsedAt"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"name":{"minLength":1,"maxLength":100,"type":"string"},"prefix":{"minLength":1,"maxLength":16,"type":"string"},"domainId":{"anyOf":[{"minLength":1,"maxLength":64,"type":"string"},{"type":"null"}]},"sender":{"anyOf":[{"minLength":1,"maxLength":254,"type":"string"},{"type":"null"}]},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"lastUsedAt":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":true}},"/mail/{identifier}/keys/{id}":{"delete":{"operationId":"mail.revokeKey","summary":"Revoke a send-only key","description":"Revoke a send-only key","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"cleanup","x-read-only":false,"x-audit-action":"mail.revokeKey"}},"/mail/{identifier}/smtp/session":{"get":{"operationId":"mail.smtpSession","summary":"Authenticate a sending key for SMTP submission","description":"Authenticate a sending key for SMTP submission","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.send"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"send","x-read-only":true}},"/mail/{identifier}/messages":{"post":{"operationId":"mail.send","summary":"Queue transactional email durably. A tenant-scoped Idempotency-Key header is required.","description":"Reserve recipient quota and wallet credits at the current mail sending price.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Credits are charged when Mail confirms acceptance for sending. A failure before acceptance releases the hold.\n\nRetry guidance: Reuse the same idempotency key and payload to retrieve the original receipt and price.","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"One recipient queued","value":"transactional-mail"}}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"pattern":"^[!-~]{1,128}$","description":"Reuse this key only for the same message in this namespace.","type":"string"},"description":"Reuse this key only for the same message in this namespace."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["from","to","subject"],"properties":{"from":{"minLength":1,"maxLength":254,"type":"string"},"to":{"maxItems":50,"description":"May be empty when Cc or Bcc contains a recipient.","type":"array","items":{"minLength":1,"maxLength":254,"type":"string"}},"cc":{"minItems":1,"maxItems":50,"type":"array","items":{"minLength":1,"maxLength":254,"type":"string"}},"bcc":{"minItems":1,"maxItems":50,"type":"array","items":{"minLength":1,"maxLength":254,"type":"string"}},"replyTo":{"minItems":1,"maxItems":50,"type":"array","items":{"minLength":1,"maxLength":254,"type":"string"}},"subject":{"minLength":1,"maxLength":998,"type":"string"},"text":{"minLength":1,"maxLength":500000,"type":"string"},"html":{"minLength":1,"maxLength":500000,"type":"string"}}},"examples":{"example1":{"summary":"One recipient queued","value":{"from":"hello@notify.example.com","to":["reader@example.net"],"subject":"Hello","text":"Welcome."}}}}}},"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","state","recipients","credits","createdAt","reason"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"state":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"unknown","type":"string"},{"const":"accepted","type":"string"},{"const":"delivered","type":"string"},{"const":"delayed","type":"string"},{"const":"bounced","type":"string"},{"const":"complained","type":"string"},{"const":"suppressed","type":"string"},{"const":"failed","type":"string"}]},"recipients":{"minimum":0,"type":"integer"},"credits":{"additionalProperties":false,"type":"object","required":["amount","state"],"properties":{"amount":{"minimum":0,"type":"number"},"state":{"anyOf":[{"const":"unpriced","type":"string"},{"const":"held","type":"string"},{"const":"charged","type":"string"},{"const":"released","type":"string"}]}}},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"One recipient queued","value":{"success":true,"data":{"id":"05549854-a235-485a-b8f7-f72623e31427","state":"queued","recipients":1,"credits":{"amount":0.05,"state":"held"},"createdAt":"2026-11-01T00:00:00.000Z","reason":null}}}}}}},"402":{"description":"mail_insufficient_credits: The owner wallet cannot fund all recipients.\n\nmail_credit_quota_exhausted: The namespace credit policy cannot fund this send.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"mail_quota_exhausted: The mail recipient allowance is exhausted.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"mail_price_unavailable: A usable mail rate could not be calculated.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.send"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"send","x-read-only":false,"x-audit-action":"mail.send"},"get":{"operationId":"mail.listMessages","summary":"List delivery records","description":"List delivery records","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","state","recipients","credits","createdAt","reason"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"state":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"unknown","type":"string"},{"const":"accepted","type":"string"},{"const":"delivered","type":"string"},{"const":"delayed","type":"string"},{"const":"bounced","type":"string"},{"const":"complained","type":"string"},{"const":"suppressed","type":"string"},{"const":"failed","type":"string"}]},"recipients":{"minimum":0,"type":"integer"},"credits":{"additionalProperties":false,"type":"object","required":["amount","state"],"properties":{"amount":{"minimum":0,"type":"number"},"state":{"anyOf":[{"const":"unpriced","type":"string"},{"const":"held","type":"string"},{"const":"charged","type":"string"},{"const":"released","type":"string"}]}}},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/mail/{identifier}/messages/{id}":{"get":{"operationId":"mail.getMessage","summary":"Inspect a message","description":"Inspect a message","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","state","recipients","credits","createdAt","reason"],"properties":{"id":{"minLength":1,"maxLength":64,"type":"string"},"state":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"unknown","type":"string"},{"const":"accepted","type":"string"},{"const":"delivered","type":"string"},{"const":"delayed","type":"string"},{"const":"bounced","type":"string"},{"const":"complained","type":"string"},{"const":"suppressed","type":"string"},{"const":"failed","type":"string"}]},"recipients":{"minimum":0,"type":"integer"},"credits":{"additionalProperties":false,"type":"object","required":["amount","state"],"properties":{"amount":{"minimum":0,"type":"number"},"state":{"anyOf":[{"const":"unpriced","type":"string"},{"const":"held","type":"string"},{"const":"charged","type":"string"},{"const":"released","type":"string"}]}}},"createdAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/mail/{identifier}/messages/{id}/events":{"get":{"operationId":"mail.listEvents","summary":"Inspect recipient-level delivery events","description":"Inspect recipient-level delivery events","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","kind","recipient","at"],"properties":{"id":{"minLength":1,"maxLength":32,"type":"string"},"kind":{"minLength":1,"maxLength":24,"type":"string"},"recipient":{"anyOf":[{"minLength":1,"maxLength":254,"type":"string"},{"type":"null"}]},"at":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/mail/{identifier}/caps/sender":{"put":{"operationId":"mail.setSenderCap","summary":"Set or clear the monthly recipient cap for one exact sender","description":"Set or clear the monthly recipient cap for one exact sender","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["sender","monthlyCap"],"properties":{"sender":{"minLength":1,"maxLength":254,"type":"string"},"monthlyCap":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":false,"x-audit-action":"mail.setSenderCap"}},"/mail/{identifier}/usage/senders":{"get":{"operationId":"mail.listSenderUsage","summary":"List monthly accepted and pending recipient counts by sender","description":"List monthly accepted and pending recipient counts by sender","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor","monthStart","resetAt","unattributed"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["identity","monthlyCap","accepted","pending"],"properties":{"identity":{"minLength":1,"maxLength":254,"type":"string"},"monthlyCap":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}]},"accepted":{"minimum":0,"type":"integer"},"pending":{"minimum":0,"type":"integer"}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"monthStart":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"resetAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"unattributed":{"additionalProperties":false,"type":"object","required":["accepted","pending"],"properties":{"accepted":{"minimum":0,"type":"integer"},"pending":{"minimum":0,"type":"integer"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/mail/{identifier}/caps/domain":{"put":{"operationId":"mail.setDomainCap","summary":"Set or clear the monthly recipient cap for one exact domain","description":"Set or clear the monthly recipient cap for one exact domain","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain","monthlyCap"],"properties":{"domain":{"minLength":1,"maxLength":253,"type":"string"},"monthlyCap":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":false,"x-audit-action":"mail.setDomainCap"}},"/mail/{identifier}/usage/domains":{"get":{"operationId":"mail.listDomainUsage","summary":"List monthly accepted and pending recipient counts by domain","description":"List monthly accepted and pending recipient counts by domain","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor","monthStart","resetAt","unattributed"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["identity","monthlyCap","accepted","pending"],"properties":{"identity":{"minLength":1,"maxLength":254,"type":"string"},"monthlyCap":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}]},"accepted":{"minimum":0,"type":"integer"},"pending":{"minimum":0,"type":"integer"}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"monthStart":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"resetAt":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"unattributed":{"additionalProperties":false,"type":"object","required":["accepted","pending"],"properties":{"accepted":{"minimum":0,"type":"integer"},"pending":{"minimum":0,"type":"integer"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true}},"/mail/{identifier}/usage":{"get":{"operationId":"mail.getUsage","summary":"Read recipient reservations and usage","description":"View reserved and accepted recipient counts, your sending allowance, and UTC reset times.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\nRetry guidance: Safe to repeat. Queued recipients remain reserved until dispatch or a confirmed rejection.","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"First send queued","value":"transactional-mail"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["policy","reserved","reserved24h","reservedPeriod","used24h","usedPeriod","nextDailyReset","periodReset"],"properties":{"policy":{"additionalProperties":false,"type":"object","required":["daily","period","burst","domains","keys","periodStart","periodEnd","revision"],"properties":{"daily":{"minimum":0,"maximum":100000000,"type":"integer"},"period":{"minimum":0,"maximum":1000000000,"type":"integer"},"burst":{"minimum":0,"maximum":100000,"type":"integer"},"domains":{"minimum":0,"maximum":10000,"type":"integer"},"keys":{"minimum":0,"maximum":10000,"type":"integer"},"periodStart":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"revision":{"minimum":0,"type":"integer"}}},"reserved":{"minimum":0,"type":"integer"},"reserved24h":{"minimum":0,"type":"integer"},"reservedPeriod":{"minimum":0,"type":"integer"},"used24h":{"minimum":0,"type":"integer"},"usedPeriod":{"minimum":0,"type":"integer"},"nextDailyReset":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]},"periodReset":{"anyOf":[{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"First send queued","value":{"success":true,"data":{"policy":{"daily":200,"period":1000,"burst":10,"domains":2,"keys":5,"revision":1,"periodStart":"2026-11-01T00:00:00.000Z","periodEnd":"2026-12-01T00:00:00.000Z"},"reserved":1,"reserved24h":1,"reservedPeriod":1,"used24h":0,"usedPeriod":0,"nextDailyReset":null,"periodReset":"2026-12-01T00:00:00.000Z"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"mail_get_usage","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/mail/{identifier}/suppressions":{"get":{"operationId":"mail.listSuppressions","summary":"List suppressed email addresses in your namespace","description":"List suppressed email addresses in your namespace","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["address","reason","at"],"properties":{"address":{"minLength":1,"maxLength":254,"type":"string"},"reason":{"minLength":1,"maxLength":32,"type":"string"},"at":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":true}},"/mail/{identifier}/webhook-deliveries":{"get":{"operationId":"mail.listDeliveries","summary":"Inspect signed mail webhook delivery attempts","description":"Inspect signed mail webhook delivery attempts","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"minLength":1,"maxLength":8192,"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","nextCursor"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","eventId","attempts","status","completed","history"],"properties":{"id":{"minLength":1,"maxLength":32,"type":"string"},"eventId":{"minLength":1,"maxLength":64,"type":"string"},"attempts":{"minimum":0,"type":"integer"},"status":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}]},"completed":{"type":"boolean"},"history":{"maxItems":12,"type":"array","items":{"additionalProperties":false,"type":"object","required":["at","status"],"properties":{"at":{"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$","type":"string"},"status":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}]}}}}}}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":true}},"/mail/{identifier}/webhook-deliveries/{id}/replay":{"post":{"operationId":"mail.replayDelivery","summary":"Replay a terminal mail webhook with its original event ID","description":"Replay a terminal mail webhook with its original event ID","tags":["mail"],"parameters":[{"name":"identifier","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["mail.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"manage","x-read-only":false,"x-audit-action":"mail.replayDelivery"}},"/billing/catalog":{"get":{"operationId":"billing.catalog","summary":"Read the public billing catalog","description":"Read the public billing catalog","tags":["billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["plans","creditPacks","success"],"properties":{"plans":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["tierId","name","description","priceMonthly","priceYearly","currency","creditsPerCycle","yearlyCreditsPerCycle","overdraftCredits","features","popular"],"properties":{"tierId":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"priceMonthly":{"anyOf":[{"type":"number"},{"type":"null"}]},"priceYearly":{"anyOf":[{"type":"number"},{"type":"null"}]},"currency":{"type":"string"},"creditsPerCycle":{"anyOf":[{"anyOf":[{"type":"number"},{"pattern":"^-?[0-9]+(?:\\.[0-9]+)?$","type":"string"}]},{"type":"null"}]},"yearlyCreditsPerCycle":{"anyOf":[{"anyOf":[{"type":"number"},{"pattern":"^-?[0-9]+(?:\\.[0-9]+)?$","type":"string"}]},{"type":"null"}]},"overdraftCredits":{"anyOf":[{"anyOf":[{"type":"number"},{"pattern":"^-?[0-9]+(?:\\.[0-9]+)?$","type":"string"}]},{"type":"null"}]},"features":{"type":"array","items":{"type":"string"}},"popular":{"type":"boolean"}}}},"creditPacks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["packId","name","credits","price","currency","popular"],"properties":{"packId":{"type":"string"},"name":{"type":"string"},"credits":{"anyOf":[{"type":"number"},{"pattern":"^-?[0-9]+(?:\\.[0-9]+)?$","type":"string"}]},"price":{"anyOf":[{"type":"number"},{"type":"null"}]},"currency":{"type":"string"},"popular":{"type":"boolean"}}}},"reseller":{"additionalProperties":false,"type":"object","required":["contractVersion","offerPolicy","resourceLimits"],"properties":{"checkoutCancellation":{"type":"boolean"},"serviceOffers":{"type":"boolean"},"contractVersion":{"type":"number"},"offerPolicy":{"type":"boolean"},"resourceLimits":{"type":"boolean"},"effectiveResourceLimits":{"type":"boolean"},"aggregateResourceLimits":{"type":"boolean"},"requiredAccountTier":{"const":"enterprise","type":"string"}}},"promotions":{"additionalProperties":false,"type":"object","required":["enabled","issuer","customerEntry","canDisable","preservesCredits","namespaceOptIn"],"properties":{"enabled":{"type":"boolean"},"issuer":{"anyOf":[{"const":"stripe","type":"string"},{"const":"oblien_admin","type":"string"}]},"customerEntry":{"anyOf":[{"const":"stripe_hosted","type":"string"},{"const":"oblien_hosted","type":"string"}]},"defaultCheckoutMode":{"anyOf":[{"const":"stripe","type":"string"},{"const":"oblien","type":"string"}]},"checkoutModes":{"type":"array","items":{"anyOf":[{"const":"stripe","type":"string"},{"const":"oblien","type":"string"}]}},"firstPaymentOnly":{"type":"boolean"},"canDisable":{"type":"boolean"},"preservesCredits":{"type":"boolean"},"namespaceOptIn":{"type":"boolean"},"adminStripe":{"additionalProperties":false,"type":"object","required":["issuer","scoped","firstPaymentOnly","perCustomerLimit","capped"],"properties":{"issuer":{"const":"oblien_admin","type":"string"},"scoped":{"type":"boolean"},"firstPaymentOnly":{"type":"boolean"},"perCustomerLimit":{"type":"boolean"},"capped":{"type":"boolean"}}},"custom":{"additionalProperties":false,"type":"object","required":["issuer","customerEntry","firstPaymentOnly","scoped","capped"],"properties":{"issuer":{"const":"oblien_admin","type":"string"},"customerEntry":{"const":"oblien_hosted","type":"string"},"firstPaymentOnly":{"type":"boolean"},"scoped":{"type":"boolean"},"capped":{"type":"boolean"}}}}},"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/billing/capacity/catalog":{"get":{"operationId":"billing.capacityCatalog","summary":"Read available compute capacity and saved tariff terms","description":"Read available compute capacity and saved tariff terms","tags":["billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["currency","billingModes","tariffId","tariff","paymentSources","presets","success"],"properties":{"currency":{"const":"usd","type":"string"},"billingModes":{"type":"array","items":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]}},"resellerSubscriptionIntervals":{"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]}},"tariffId":{"type":"string"},"tariff":{"additionalProperties":false,"type":"object","required":["id","currency","creditsPerDollar","monthly","paygCapPercent","usage","network","requiredMeterVersion","terms"],"properties":{"id":{"type":"string"},"currency":{"const":"usd","type":"string"},"creditsPerDollar":{"type":"number"},"monthly":{"additionalProperties":false,"type":"object","required":["vcpuCents","memoryGiBCents","diskGiBCents","minimumCents"],"properties":{"vcpuCents":{"type":"number"},"memoryGiBCents":{"type":"number"},"diskGiBCents":{"type":"number"},"minimumCents":{"type":"number"}}},"paygCapPercent":{"type":"number"},"usage":{"additionalProperties":false,"type":"object","required":["activeVcpuHourCents","reservedGiBHourCents","retainedGiBMonthCents","monthHours"],"properties":{"activeVcpuHourCents":{"type":"number"},"reservedGiBHourCents":{"type":"number"},"retainedGiBMonthCents":{"type":"number"},"monthHours":{"type":"number"}}},"network":{"additionalProperties":false,"type":"object","required":["managedProxyGiBCents","minimumTopupCents"],"properties":{"managedProxyGiBCents":{"type":"number"},"minimumTopupCents":{"type":"number"}}},"requiredMeterVersion":{"type":"number"},"terms":{"additionalProperties":false,"type":"object","required":["cpuClass","networkIncluded","backupsIncluded","autoRenewDefault","calendar","expiryGraceHours","retainedAfterExpiryDays","automaticDeletion","retentionBilling"],"properties":{"cpuClass":{"const":"shared","type":"string"},"networkIncluded":{"const":false,"type":"boolean"},"backupsIncluded":{"const":false,"type":"boolean"},"autoRenewDefault":{"const":false,"type":"boolean"},"calendar":{"const":"subscription_anniversary","type":"string"},"expiryGraceHours":{"type":"number"},"retainedAfterExpiryDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"retentionBilling":{"const":"storage_until_deleted","type":"string"}}}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["id","revision","monthlyUnlimited","monthlyGiBPerVcpu","minimumMonthlyGiB","maximumMonthlyGiB","gracePercent","maximumMonthlyGraceGiB","maximumPaygGraceGiB","graceHours","warningPercentages","defaults"],"properties":{"id":{"type":"string"},"revision":{"type":"number"},"monthlyUnlimited":{"type":"boolean"},"monthlyGiBPerVcpu":{"type":"number"},"minimumMonthlyGiB":{"type":"number"},"maximumMonthlyGiB":{"type":"number"},"gracePercent":{"type":"number"},"maximumMonthlyGraceGiB":{"type":"number"},"maximumPaygGraceGiB":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"defaults":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}}}},"paymentSources":{"additionalProperties":false,"type":"object","required":["payg","monthly"],"properties":{"payg":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}},"monthly":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}}}},"defaultPaymentSource":{"const":"wallet","type":"string"},"presetsAreSizingExamples":{"const":true,"type":"boolean"},"walletFunding":{"additionalProperties":false,"type":"object","required":["minimumDepositAmount","maximumDepositAmount"],"properties":{"minimumDepositAmount":{"type":"number"},"maximumDepositAmount":{"type":"number"}}},"presets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","capacity","monthlyAmount","paygCapAmount","resourceLimits"],"properties":{"id":{"type":"string"},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"available":{"type":"boolean"},"paygEstimate":{"additionalProperties":false,"type":"object","required":["computeHourAmount","storageMonthAmount"],"properties":{"computeHourAmount":{"type":"number"},"storageMonthAmount":{"type":"number"}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}}}}},"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/billing/capacity/renewal-grace/defaults":{"get":{"operationId":"billing.getRenewalGraceDefaults","summary":"Read provider-resolved renewal continuity defaults and revisions.","description":"Read provider-resolved renewal continuity defaults and revisions.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","resellerId","namespace","policy"],"properties":{"success":{"const":true,"type":"boolean"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"reconciliation":{"const":"queued","type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"resellerId":"88","namespace":null,"policy":{"version":1,"unit":"hours","hours":0,"source":"provider_default","revision":0,"defaultRevision":0,"overrideRevision":0,"overrideHours":null,"defaultHours":null,"maximumHours":168}}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_renewal_grace_defaults","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"billing.setRenewalGraceDefaults","summary":"Update owner renewal defaults at the expected revision. Existing open windows remain fixed.","description":"Update owner renewal defaults at the expected revision. Existing open windows remain fixed.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\n- Null or omitted namespace hours inherit the account default; zero disables grace. Existing open windows retain their pinned deadline. Policy updates do not mark an invoice paid.\n\nRetry guidance: Read the current revision, submit expectedRevision, and re-read after a conflict. An open grace window is anchored to the last funded period and is not restarted.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["version","expectedRevision"],"properties":{"version":{"const":1,"type":"number"},"hours":{"anyOf":[{"minimum":0,"maximum":168,"type":"integer"},{"type":"null"}]},"expectedRevision":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"version":1,"expectedRevision":0,"hours":168}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","resellerId","namespace","policy"],"properties":{"success":{"const":true,"type":"boolean"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"reconciliation":{"const":"queued","type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"resellerId":"88","namespace":null,"policy":{"version":1,"unit":"hours","hours":168,"source":"reseller_default","revision":1,"defaultRevision":1,"overrideRevision":0,"overrideHours":null,"defaultHours":168,"maximumHours":168}}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.setRenewalGraceDefaults","x-mcp-tool":"billing_set_renewal_grace_defaults","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/renewal-grace/policy":{"get":{"operationId":"billing.getRenewalGracePolicy","summary":"Read the effective renewal continuity policy of an owned namespace.","description":"Read the effective renewal continuity policy of an owned namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","resellerId","namespace","policy"],"properties":{"success":{"const":true,"type":"boolean"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"reconciliation":{"const":"queued","type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"resellerId":"88","namespace":"production","policy":{"version":1,"unit":"hours","hours":0,"source":"provider_default","revision":0,"defaultRevision":0,"overrideRevision":0,"overrideHours":null,"defaultHours":null,"maximumHours":168}}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_renewal_grace_policy","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"billing.setRenewalGracePolicy","summary":"Update an owned namespace renewal policy at the expected revision.","description":"Update an owned namespace renewal policy at the expected revision.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\n- Null or omitted namespace hours inherit the account default; zero disables grace. Existing open windows retain their pinned deadline. Policy updates do not mark an invoice paid.\n\nRetry guidance: Read the current revision, submit expectedRevision, and re-read after a conflict. An open grace window is anchored to the last funded period and is not restarted.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","version","expectedRevision"],"properties":{"namespace":{"minLength":1,"maxLength":255,"type":"string"},"version":{"const":1,"type":"number"},"hours":{"anyOf":[{"minimum":0,"maximum":168,"type":"integer"},{"type":"null"}]},"expectedRevision":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","version":1,"expectedRevision":0,"hours":168}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","resellerId","namespace","policy"],"properties":{"success":{"const":true,"type":"boolean"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"reconciliation":{"const":"queued","type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"resellerId":"88","namespace":"production","policy":{"version":1,"unit":"hours","hours":168,"source":"namespace_override","revision":1,"defaultRevision":0,"overrideRevision":1,"overrideHours":168,"defaultHours":null,"maximumHours":168}}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.setRenewalGracePolicy","x-mcp-tool":"billing_set_renewal_grace_policy","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity":{"get":{"operationId":"billing.getCapacity","summary":"Read funded capacity, renewal continuity, network allowances and purchase options.","description":"Read funded capacity, renewal continuity, network allowances and purchase options.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\n- This example has no funded capacity. Read the actual capacity.renewalGrace capabilities and deadline before initiating work during an unpaid renewal.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","namespace","capacity","pendingCheckout"],"properties":{"success":{"const":true,"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","namespace","billingMode","status","provider","capacity","tariffId","currency","monthlyAmount","paygCapAmount","periodStart","periodEnd","autoRenew","computeCovered","retention","pendingChange","resourceLimits","savings","network"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"expired","type":"string"},{"const":"revoked","type":"string"},{"const":"payment_required","type":"string"},{"const":"storage_payment_required","type":"string"},{"const":"pending","type":"string"}]},"provider":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"currency":{"const":"usd","type":"string"},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"coverageStartsAt":{"type":"string"},"autoRenew":{"type":"boolean"},"computeCovered":{"type":"boolean"},"renewalGrace":{"additionalProperties":false,"type":"object","required":["version","resellerId","namespace","contractId","fundedPeriodId","state","eligible","startsAt","deadline","policy","policyChangeBehavior","capabilities","storageIncluded","notificationOwner"],"properties":{"version":{"const":1,"type":"number"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"contractId":{"type":"string"},"fundedPeriodId":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"scheduled","type":"string"},{"const":"grace","type":"string"},{"const":"expired","type":"string"},{"const":"ineligible","type":"string"}]},"eligible":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},{"type":"null"}]},"effectivePolicy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"policyChangeBehavior":{"const":"open_window_fixed_next_period_uses_current_policy","type":"string"},"capabilities":{"additionalProperties":false,"type":"object","required":["continueExistingVms","restartExistingVm","redeployExistingVm","createVm","expandResources"],"properties":{"continueExistingVms":{"type":"boolean"},"restartExistingVm":{"type":"boolean"},"redeployExistingVm":{"type":"boolean"},"createVm":{"const":false,"type":"boolean"},"expandResources":{"const":false,"type":"boolean"}}},"storageIncluded":{"type":"boolean"},"notificationOwner":{"const":"reseller","type":"string"}}},"migration":{"additionalProperties":false,"type":"object","required":["kind","operationId","targetCapacity","retainedVmIds","expiresAt","finalizationRequired"],"properties":{"kind":{"const":"operator_consolidation","type":"string"},"operationId":{"type":"string"},"targetCapacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"retainedVmIds":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string"},"finalizationRequired":{"const":true,"type":"boolean"}}},"retention":{"additionalProperties":false,"type":"object","required":["minimumDays","automaticDeletion","reviewAt","storagePerGiBMonth","amountDue","currency"],"properties":{"minimumDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"reviewAt":{"type":"string"},"storagePerGiBMonth":{"type":"number"},"amountDue":{"type":"number"},"currency":{"const":"usd","type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","billingMode","capacity","monthlyAmount","effectiveAt"],"properties":{"id":{"type":"string"},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"effectiveAt":{"type":"string"}}},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"savings":{"anyOf":[{"additionalProperties":false,"type":"object","required":["currency","baseline","usageBeforeCap","capDiscount","usageAfterCap","usageCharged","prepaidAmount","monthlyDifference","networkIncluded","refundsIncluded"],"properties":{"currency":{"const":"usd","type":"string"},"baseline":{"const":"recorded_usage_at_saved_payg_rates","type":"string"},"usageBeforeCap":{"type":"number"},"capDiscount":{"type":"number"},"usageAfterCap":{"type":"number"},"usageCharged":{"type":"number"},"prepaidAmount":{"type":"number"},"monthlyDifference":{"type":"number"},"networkIncluded":{"const":false,"type":"boolean"},"refundsIncluded":{"const":false,"type":"boolean"}}},{"type":"null"}]},"network":{"additionalProperties":false,"type":"object","required":["service","included","purchasedBytes","consumedBytes","reservedBytes","availableBytes"],"properties":{"service":{"const":"managed_proxy_transfer","type":"string"},"included":{"type":"boolean"},"purchasedBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"unlimited":{"type":"boolean"},"providerRevision":{"type":"number"},"policyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"low","type":"string"},{"const":"grace","type":"string"},{"const":"blocked","type":"string"},{"const":"inactive","type":"string"}]},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"includedConsumedBytes":{"type":"number"},"includedReservedBytes":{"type":"number"},"includedAvailableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"purchasedConsumedBytes":{"type":"number"},"purchasedReservedBytes":{"type":"number"},"purchasedAvailableBytes":{"type":"number"},"periodConsumedBytes":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"grace":{"additionalProperties":false,"type":"object","required":["limitBytes","consumedBytes","reservedBytes","availableBytes","hours","startsAt","expiresAt","active"],"properties":{"limitBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"type":"number"},"hours":{"type":"number"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","limitAmount","chargedAmount","reservedAmount","availableBytes"],"properties":{"currency":{"const":"usd","type":"string"},"limitAmount":{"type":"number"},"chargedAmount":{"type":"number"},"reservedAmount":{"type":"number"},"availableBytes":{"type":"number"}}},"managedProxyGiBCents":{"type":"number"},"settings":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"},"computeStopped":{"const":false,"type":"boolean"}}}}},{"type":"null"}]},"catalog":{"additionalProperties":false,"type":"object","required":["currency","billingModes","tariffId","tariff","paymentSources","presets"],"properties":{"currency":{"const":"usd","type":"string"},"billingModes":{"type":"array","items":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]}},"resellerSubscriptionIntervals":{"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]}},"tariffId":{"type":"string"},"tariff":{"additionalProperties":false,"type":"object","required":["id","currency","creditsPerDollar","monthly","paygCapPercent","usage","network","requiredMeterVersion","terms"],"properties":{"id":{"type":"string"},"currency":{"const":"usd","type":"string"},"creditsPerDollar":{"type":"number"},"monthly":{"additionalProperties":false,"type":"object","required":["vcpuCents","memoryGiBCents","diskGiBCents","minimumCents"],"properties":{"vcpuCents":{"type":"number"},"memoryGiBCents":{"type":"number"},"diskGiBCents":{"type":"number"},"minimumCents":{"type":"number"}}},"paygCapPercent":{"type":"number"},"usage":{"additionalProperties":false,"type":"object","required":["activeVcpuHourCents","reservedGiBHourCents","retainedGiBMonthCents","monthHours"],"properties":{"activeVcpuHourCents":{"type":"number"},"reservedGiBHourCents":{"type":"number"},"retainedGiBMonthCents":{"type":"number"},"monthHours":{"type":"number"}}},"network":{"additionalProperties":false,"type":"object","required":["managedProxyGiBCents","minimumTopupCents"],"properties":{"managedProxyGiBCents":{"type":"number"},"minimumTopupCents":{"type":"number"}}},"requiredMeterVersion":{"type":"number"},"terms":{"additionalProperties":false,"type":"object","required":["cpuClass","networkIncluded","backupsIncluded","autoRenewDefault","calendar","expiryGraceHours","retainedAfterExpiryDays","automaticDeletion","retentionBilling"],"properties":{"cpuClass":{"const":"shared","type":"string"},"networkIncluded":{"const":false,"type":"boolean"},"backupsIncluded":{"const":false,"type":"boolean"},"autoRenewDefault":{"const":false,"type":"boolean"},"calendar":{"const":"subscription_anniversary","type":"string"},"expiryGraceHours":{"type":"number"},"retainedAfterExpiryDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"retentionBilling":{"const":"storage_until_deleted","type":"string"}}}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["id","revision","monthlyUnlimited","monthlyGiBPerVcpu","minimumMonthlyGiB","maximumMonthlyGiB","gracePercent","maximumMonthlyGraceGiB","maximumPaygGraceGiB","graceHours","warningPercentages","defaults"],"properties":{"id":{"type":"string"},"revision":{"type":"number"},"monthlyUnlimited":{"type":"boolean"},"monthlyGiBPerVcpu":{"type":"number"},"minimumMonthlyGiB":{"type":"number"},"maximumMonthlyGiB":{"type":"number"},"gracePercent":{"type":"number"},"maximumMonthlyGraceGiB":{"type":"number"},"maximumPaygGraceGiB":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"defaults":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}}}},"paymentSources":{"additionalProperties":false,"type":"object","required":["payg","monthly"],"properties":{"payg":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}},"monthly":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}}}},"defaultPaymentSource":{"const":"wallet","type":"string"},"presetsAreSizingExamples":{"const":true,"type":"boolean"},"walletFunding":{"additionalProperties":false,"type":"object","required":["minimumDepositAmount","maximumDepositAmount"],"properties":{"minimumDepositAmount":{"type":"number"},"maximumDepositAmount":{"type":"number"}}},"presets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","capacity","monthlyAmount","paygCapAmount","resourceLimits"],"properties":{"id":{"type":"string"},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"available":{"type":"boolean"},"paygEstimate":{"additionalProperties":false,"type":"object","required":["computeHourAmount","storageMonthAmount"],"properties":{"computeHourAmount":{"type":"number"},"storageMonthAmount":{"type":"number"}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}}}}}}},"accountPlan":{"additionalProperties":false,"type":"object","required":["version","basis","planSlug","owned","running","perVm"],"properties":{"version":{"const":1,"type":"number"},"basis":{"const":"running","type":"string"},"planSlug":{"anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"}]},"owned":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"perVm":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","balance","monthlyAvailable"],"properties":{"currency":{"const":"usd","type":"string"},"balance":{"type":"number"},"monthlyAvailable":{"type":"number"}}},"pendingCheckout":{"anyOf":[{"additionalProperties":false,"type":"object","required":["quote","checkoutId","url"],"properties":{"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"checkoutId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"namespace":"production","capacity":null,"pendingCheckout":null}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_capacity","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/preview":{"post":{"operationId":"billing.previewCapacity","summary":"Quote compute capacity without purchasing it.","description":"Quote compute capacity without purchasing it.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\n- A preview records a quote but does not buy capacity, charge the wallet or start VMs. Confirm the saved quote with an idempotency key.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["capacity","billingMode","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"tariffId":{"anyOf":[{"type":"string"},{"type":"null"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"autoRenew":{"type":"boolean"},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"capacity":{"vcpus":1,"memoryMb":1024,"diskGb":10,"vms":1},"billingMode":"monthly","idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","quote","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","quote":{"id":"bcq_example","namespace":"production","status":"quoted","action":"start","expiresAt":"2026-11-01T00:15:00.000Z","effectiveAt":"2026-11-01T00:00:00.000Z","periodEnd":"2026-12-01T00:00:00.000Z","billingMode":"monthly","paymentSource":"wallet","currency":"usd","current":null,"capacity":{"vcpus":1,"memoryMb":1024,"diskGb":10,"vms":1},"tariffId":"example","monthlyAmount":100,"paygCapAmount":120,"unusedTimeCredit":0,"remainingTimeCharge":100,"amountDueNow":100,"walletCreditsRequired":100,"retainedStorageAmountDue":0,"nextPaymentAmount":100,"autoRenew":false,"networkIncluded":false,"networkBytes":null,"preservesUsage":true,"preservesPurchasedCredits":true},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.previewCapacity","x-mcp-tool":"billing_preview_capacity","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/confirm":{"post":{"operationId":"billing.confirmCapacity","summary":"Accept an owned capacity quote and atomically fund it from the wallet.","description":"Accept an owned capacity quote and atomically fund it from the wallet.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["quoteId","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"quoteId":{"minLength":1,"maxLength":255,"type":"string"},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"quoteId":"bcq_example","idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","namespace","capacity","pendingCheckout"],"properties":{"success":{"const":true,"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","namespace","billingMode","status","provider","capacity","tariffId","currency","monthlyAmount","paygCapAmount","periodStart","periodEnd","autoRenew","computeCovered","retention","pendingChange","resourceLimits","savings","network"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"expired","type":"string"},{"const":"revoked","type":"string"},{"const":"payment_required","type":"string"},{"const":"storage_payment_required","type":"string"},{"const":"pending","type":"string"}]},"provider":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"currency":{"const":"usd","type":"string"},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"coverageStartsAt":{"type":"string"},"autoRenew":{"type":"boolean"},"computeCovered":{"type":"boolean"},"renewalGrace":{"additionalProperties":false,"type":"object","required":["version","resellerId","namespace","contractId","fundedPeriodId","state","eligible","startsAt","deadline","policy","policyChangeBehavior","capabilities","storageIncluded","notificationOwner"],"properties":{"version":{"const":1,"type":"number"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"contractId":{"type":"string"},"fundedPeriodId":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"scheduled","type":"string"},{"const":"grace","type":"string"},{"const":"expired","type":"string"},{"const":"ineligible","type":"string"}]},"eligible":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},{"type":"null"}]},"effectivePolicy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"policyChangeBehavior":{"const":"open_window_fixed_next_period_uses_current_policy","type":"string"},"capabilities":{"additionalProperties":false,"type":"object","required":["continueExistingVms","restartExistingVm","redeployExistingVm","createVm","expandResources"],"properties":{"continueExistingVms":{"type":"boolean"},"restartExistingVm":{"type":"boolean"},"redeployExistingVm":{"type":"boolean"},"createVm":{"const":false,"type":"boolean"},"expandResources":{"const":false,"type":"boolean"}}},"storageIncluded":{"type":"boolean"},"notificationOwner":{"const":"reseller","type":"string"}}},"migration":{"additionalProperties":false,"type":"object","required":["kind","operationId","targetCapacity","retainedVmIds","expiresAt","finalizationRequired"],"properties":{"kind":{"const":"operator_consolidation","type":"string"},"operationId":{"type":"string"},"targetCapacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"retainedVmIds":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string"},"finalizationRequired":{"const":true,"type":"boolean"}}},"retention":{"additionalProperties":false,"type":"object","required":["minimumDays","automaticDeletion","reviewAt","storagePerGiBMonth","amountDue","currency"],"properties":{"minimumDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"reviewAt":{"type":"string"},"storagePerGiBMonth":{"type":"number"},"amountDue":{"type":"number"},"currency":{"const":"usd","type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","billingMode","capacity","monthlyAmount","effectiveAt"],"properties":{"id":{"type":"string"},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"effectiveAt":{"type":"string"}}},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"savings":{"anyOf":[{"additionalProperties":false,"type":"object","required":["currency","baseline","usageBeforeCap","capDiscount","usageAfterCap","usageCharged","prepaidAmount","monthlyDifference","networkIncluded","refundsIncluded"],"properties":{"currency":{"const":"usd","type":"string"},"baseline":{"const":"recorded_usage_at_saved_payg_rates","type":"string"},"usageBeforeCap":{"type":"number"},"capDiscount":{"type":"number"},"usageAfterCap":{"type":"number"},"usageCharged":{"type":"number"},"prepaidAmount":{"type":"number"},"monthlyDifference":{"type":"number"},"networkIncluded":{"const":false,"type":"boolean"},"refundsIncluded":{"const":false,"type":"boolean"}}},{"type":"null"}]},"network":{"additionalProperties":false,"type":"object","required":["service","included","purchasedBytes","consumedBytes","reservedBytes","availableBytes"],"properties":{"service":{"const":"managed_proxy_transfer","type":"string"},"included":{"type":"boolean"},"purchasedBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"unlimited":{"type":"boolean"},"providerRevision":{"type":"number"},"policyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"low","type":"string"},{"const":"grace","type":"string"},{"const":"blocked","type":"string"},{"const":"inactive","type":"string"}]},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"includedConsumedBytes":{"type":"number"},"includedReservedBytes":{"type":"number"},"includedAvailableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"purchasedConsumedBytes":{"type":"number"},"purchasedReservedBytes":{"type":"number"},"purchasedAvailableBytes":{"type":"number"},"periodConsumedBytes":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"grace":{"additionalProperties":false,"type":"object","required":["limitBytes","consumedBytes","reservedBytes","availableBytes","hours","startsAt","expiresAt","active"],"properties":{"limitBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"type":"number"},"hours":{"type":"number"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","limitAmount","chargedAmount","reservedAmount","availableBytes"],"properties":{"currency":{"const":"usd","type":"string"},"limitAmount":{"type":"number"},"chargedAmount":{"type":"number"},"reservedAmount":{"type":"number"},"availableBytes":{"type":"number"}}},"managedProxyGiBCents":{"type":"number"},"settings":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"},"computeStopped":{"const":false,"type":"boolean"}}}}},{"type":"null"}]},"catalog":{"additionalProperties":false,"type":"object","required":["currency","billingModes","tariffId","tariff","paymentSources","presets"],"properties":{"currency":{"const":"usd","type":"string"},"billingModes":{"type":"array","items":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]}},"resellerSubscriptionIntervals":{"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]}},"tariffId":{"type":"string"},"tariff":{"additionalProperties":false,"type":"object","required":["id","currency","creditsPerDollar","monthly","paygCapPercent","usage","network","requiredMeterVersion","terms"],"properties":{"id":{"type":"string"},"currency":{"const":"usd","type":"string"},"creditsPerDollar":{"type":"number"},"monthly":{"additionalProperties":false,"type":"object","required":["vcpuCents","memoryGiBCents","diskGiBCents","minimumCents"],"properties":{"vcpuCents":{"type":"number"},"memoryGiBCents":{"type":"number"},"diskGiBCents":{"type":"number"},"minimumCents":{"type":"number"}}},"paygCapPercent":{"type":"number"},"usage":{"additionalProperties":false,"type":"object","required":["activeVcpuHourCents","reservedGiBHourCents","retainedGiBMonthCents","monthHours"],"properties":{"activeVcpuHourCents":{"type":"number"},"reservedGiBHourCents":{"type":"number"},"retainedGiBMonthCents":{"type":"number"},"monthHours":{"type":"number"}}},"network":{"additionalProperties":false,"type":"object","required":["managedProxyGiBCents","minimumTopupCents"],"properties":{"managedProxyGiBCents":{"type":"number"},"minimumTopupCents":{"type":"number"}}},"requiredMeterVersion":{"type":"number"},"terms":{"additionalProperties":false,"type":"object","required":["cpuClass","networkIncluded","backupsIncluded","autoRenewDefault","calendar","expiryGraceHours","retainedAfterExpiryDays","automaticDeletion","retentionBilling"],"properties":{"cpuClass":{"const":"shared","type":"string"},"networkIncluded":{"const":false,"type":"boolean"},"backupsIncluded":{"const":false,"type":"boolean"},"autoRenewDefault":{"const":false,"type":"boolean"},"calendar":{"const":"subscription_anniversary","type":"string"},"expiryGraceHours":{"type":"number"},"retainedAfterExpiryDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"retentionBilling":{"const":"storage_until_deleted","type":"string"}}}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["id","revision","monthlyUnlimited","monthlyGiBPerVcpu","minimumMonthlyGiB","maximumMonthlyGiB","gracePercent","maximumMonthlyGraceGiB","maximumPaygGraceGiB","graceHours","warningPercentages","defaults"],"properties":{"id":{"type":"string"},"revision":{"type":"number"},"monthlyUnlimited":{"type":"boolean"},"monthlyGiBPerVcpu":{"type":"number"},"minimumMonthlyGiB":{"type":"number"},"maximumMonthlyGiB":{"type":"number"},"gracePercent":{"type":"number"},"maximumMonthlyGraceGiB":{"type":"number"},"maximumPaygGraceGiB":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"defaults":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}}}},"paymentSources":{"additionalProperties":false,"type":"object","required":["payg","monthly"],"properties":{"payg":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}},"monthly":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}}}},"defaultPaymentSource":{"const":"wallet","type":"string"},"presetsAreSizingExamples":{"const":true,"type":"boolean"},"walletFunding":{"additionalProperties":false,"type":"object","required":["minimumDepositAmount","maximumDepositAmount"],"properties":{"minimumDepositAmount":{"type":"number"},"maximumDepositAmount":{"type":"number"}}},"presets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","capacity","monthlyAmount","paygCapAmount","resourceLimits"],"properties":{"id":{"type":"string"},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"available":{"type":"boolean"},"paygEstimate":{"additionalProperties":false,"type":"object","required":["computeHourAmount","storageMonthAmount"],"properties":{"computeHourAmount":{"type":"number"},"storageMonthAmount":{"type":"number"}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}}}}}}},"accountPlan":{"additionalProperties":false,"type":"object","required":["version","basis","planSlug","owned","running","perVm"],"properties":{"version":{"const":1,"type":"number"},"basis":{"const":"running","type":"string"},"planSlug":{"anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"}]},"owned":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"perVm":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","balance","monthlyAvailable"],"properties":{"currency":{"const":"usd","type":"string"},"balance":{"type":"number"},"monthlyAvailable":{"type":"number"}}},"pendingCheckout":{"anyOf":[{"additionalProperties":false,"type":"object","required":["quote","checkoutId","url"],"properties":{"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"checkoutId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"namespace":"production","capacity":{"id":"bct_example","namespace":"production","billingMode":"monthly","status":"active","provider":"wallet","capacity":{"vcpus":1,"memoryMb":1024,"diskGb":10,"vms":1},"tariffId":"example-saved-tariff","currency":"usd","monthlyAmount":100,"paygCapAmount":120,"periodStart":"2026-11-01T00:00:00.000Z","periodEnd":"2026-12-01T00:00:00.000Z","autoRenew":false,"computeCovered":true,"retention":{"minimumDays":7,"automaticDeletion":false,"reviewAt":"2026-12-08T00:00:00.000Z","storagePerGiBMonth":1,"amountDue":0,"currency":"usd"},"pendingChange":null,"resourceLimits":{},"savings":null,"network":{"service":"managed_proxy_transfer","included":false,"purchasedBytes":0,"consumedBytes":0,"reservedBytes":0,"availableBytes":null}},"pendingCheckout":null}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.confirmCapacity","x-mcp-tool":"billing_confirm_capacity","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/checkout":{"post":{"operationId":"billing.checkoutCapacity","summary":"Open hosted payment for an owned saved capacity quote.","description":"Open hosted payment for an owned saved capacity quote.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["quoteId","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"quoteId":{"minLength":1,"maxLength":255,"type":"string"},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"},"successUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"cancelUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"customer":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"email":{"anyOf":[{"maxLength":254,"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"allowPromotionCodes":{"type":"boolean"},"checkoutMode":{"anyOf":[{"const":"stripe","type":"string"},{"const":"oblien","type":"string"}]},"affiliateCode":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"quoteId":"bcq_example","idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"checkoutId":{"type":"string"},"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","success":true,"url":"https://checkout.example.test/session","checkoutId":"bco_example"}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.checkoutCapacity","x-mcp-tool":"billing_checkout_capacity","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/billing/capacity/change/cancel":{"post":{"operationId":"billing.cancelCapacityChange","summary":"Cancel a saved capacity purchase or scheduled change.","description":"Cancel a saved capacity purchase or scheduled change.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["quoteId","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"quoteId":{"minLength":1,"maxLength":255,"type":"string"},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"quoteId":"bcq_example","idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","namespace","capacity","pendingCheckout"],"properties":{"success":{"const":true,"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","namespace","billingMode","status","provider","capacity","tariffId","currency","monthlyAmount","paygCapAmount","periodStart","periodEnd","autoRenew","computeCovered","retention","pendingChange","resourceLimits","savings","network"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"expired","type":"string"},{"const":"revoked","type":"string"},{"const":"payment_required","type":"string"},{"const":"storage_payment_required","type":"string"},{"const":"pending","type":"string"}]},"provider":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"currency":{"const":"usd","type":"string"},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"coverageStartsAt":{"type":"string"},"autoRenew":{"type":"boolean"},"computeCovered":{"type":"boolean"},"renewalGrace":{"additionalProperties":false,"type":"object","required":["version","resellerId","namespace","contractId","fundedPeriodId","state","eligible","startsAt","deadline","policy","policyChangeBehavior","capabilities","storageIncluded","notificationOwner"],"properties":{"version":{"const":1,"type":"number"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"contractId":{"type":"string"},"fundedPeriodId":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"scheduled","type":"string"},{"const":"grace","type":"string"},{"const":"expired","type":"string"},{"const":"ineligible","type":"string"}]},"eligible":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},{"type":"null"}]},"effectivePolicy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"policyChangeBehavior":{"const":"open_window_fixed_next_period_uses_current_policy","type":"string"},"capabilities":{"additionalProperties":false,"type":"object","required":["continueExistingVms","restartExistingVm","redeployExistingVm","createVm","expandResources"],"properties":{"continueExistingVms":{"type":"boolean"},"restartExistingVm":{"type":"boolean"},"redeployExistingVm":{"type":"boolean"},"createVm":{"const":false,"type":"boolean"},"expandResources":{"const":false,"type":"boolean"}}},"storageIncluded":{"type":"boolean"},"notificationOwner":{"const":"reseller","type":"string"}}},"migration":{"additionalProperties":false,"type":"object","required":["kind","operationId","targetCapacity","retainedVmIds","expiresAt","finalizationRequired"],"properties":{"kind":{"const":"operator_consolidation","type":"string"},"operationId":{"type":"string"},"targetCapacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"retainedVmIds":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string"},"finalizationRequired":{"const":true,"type":"boolean"}}},"retention":{"additionalProperties":false,"type":"object","required":["minimumDays","automaticDeletion","reviewAt","storagePerGiBMonth","amountDue","currency"],"properties":{"minimumDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"reviewAt":{"type":"string"},"storagePerGiBMonth":{"type":"number"},"amountDue":{"type":"number"},"currency":{"const":"usd","type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","billingMode","capacity","monthlyAmount","effectiveAt"],"properties":{"id":{"type":"string"},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"effectiveAt":{"type":"string"}}},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"savings":{"anyOf":[{"additionalProperties":false,"type":"object","required":["currency","baseline","usageBeforeCap","capDiscount","usageAfterCap","usageCharged","prepaidAmount","monthlyDifference","networkIncluded","refundsIncluded"],"properties":{"currency":{"const":"usd","type":"string"},"baseline":{"const":"recorded_usage_at_saved_payg_rates","type":"string"},"usageBeforeCap":{"type":"number"},"capDiscount":{"type":"number"},"usageAfterCap":{"type":"number"},"usageCharged":{"type":"number"},"prepaidAmount":{"type":"number"},"monthlyDifference":{"type":"number"},"networkIncluded":{"const":false,"type":"boolean"},"refundsIncluded":{"const":false,"type":"boolean"}}},{"type":"null"}]},"network":{"additionalProperties":false,"type":"object","required":["service","included","purchasedBytes","consumedBytes","reservedBytes","availableBytes"],"properties":{"service":{"const":"managed_proxy_transfer","type":"string"},"included":{"type":"boolean"},"purchasedBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"unlimited":{"type":"boolean"},"providerRevision":{"type":"number"},"policyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"low","type":"string"},{"const":"grace","type":"string"},{"const":"blocked","type":"string"},{"const":"inactive","type":"string"}]},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"includedConsumedBytes":{"type":"number"},"includedReservedBytes":{"type":"number"},"includedAvailableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"purchasedConsumedBytes":{"type":"number"},"purchasedReservedBytes":{"type":"number"},"purchasedAvailableBytes":{"type":"number"},"periodConsumedBytes":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"grace":{"additionalProperties":false,"type":"object","required":["limitBytes","consumedBytes","reservedBytes","availableBytes","hours","startsAt","expiresAt","active"],"properties":{"limitBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"type":"number"},"hours":{"type":"number"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","limitAmount","chargedAmount","reservedAmount","availableBytes"],"properties":{"currency":{"const":"usd","type":"string"},"limitAmount":{"type":"number"},"chargedAmount":{"type":"number"},"reservedAmount":{"type":"number"},"availableBytes":{"type":"number"}}},"managedProxyGiBCents":{"type":"number"},"settings":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"},"computeStopped":{"const":false,"type":"boolean"}}}}},{"type":"null"}]},"catalog":{"additionalProperties":false,"type":"object","required":["currency","billingModes","tariffId","tariff","paymentSources","presets"],"properties":{"currency":{"const":"usd","type":"string"},"billingModes":{"type":"array","items":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]}},"resellerSubscriptionIntervals":{"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]}},"tariffId":{"type":"string"},"tariff":{"additionalProperties":false,"type":"object","required":["id","currency","creditsPerDollar","monthly","paygCapPercent","usage","network","requiredMeterVersion","terms"],"properties":{"id":{"type":"string"},"currency":{"const":"usd","type":"string"},"creditsPerDollar":{"type":"number"},"monthly":{"additionalProperties":false,"type":"object","required":["vcpuCents","memoryGiBCents","diskGiBCents","minimumCents"],"properties":{"vcpuCents":{"type":"number"},"memoryGiBCents":{"type":"number"},"diskGiBCents":{"type":"number"},"minimumCents":{"type":"number"}}},"paygCapPercent":{"type":"number"},"usage":{"additionalProperties":false,"type":"object","required":["activeVcpuHourCents","reservedGiBHourCents","retainedGiBMonthCents","monthHours"],"properties":{"activeVcpuHourCents":{"type":"number"},"reservedGiBHourCents":{"type":"number"},"retainedGiBMonthCents":{"type":"number"},"monthHours":{"type":"number"}}},"network":{"additionalProperties":false,"type":"object","required":["managedProxyGiBCents","minimumTopupCents"],"properties":{"managedProxyGiBCents":{"type":"number"},"minimumTopupCents":{"type":"number"}}},"requiredMeterVersion":{"type":"number"},"terms":{"additionalProperties":false,"type":"object","required":["cpuClass","networkIncluded","backupsIncluded","autoRenewDefault","calendar","expiryGraceHours","retainedAfterExpiryDays","automaticDeletion","retentionBilling"],"properties":{"cpuClass":{"const":"shared","type":"string"},"networkIncluded":{"const":false,"type":"boolean"},"backupsIncluded":{"const":false,"type":"boolean"},"autoRenewDefault":{"const":false,"type":"boolean"},"calendar":{"const":"subscription_anniversary","type":"string"},"expiryGraceHours":{"type":"number"},"retainedAfterExpiryDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"retentionBilling":{"const":"storage_until_deleted","type":"string"}}}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["id","revision","monthlyUnlimited","monthlyGiBPerVcpu","minimumMonthlyGiB","maximumMonthlyGiB","gracePercent","maximumMonthlyGraceGiB","maximumPaygGraceGiB","graceHours","warningPercentages","defaults"],"properties":{"id":{"type":"string"},"revision":{"type":"number"},"monthlyUnlimited":{"type":"boolean"},"monthlyGiBPerVcpu":{"type":"number"},"minimumMonthlyGiB":{"type":"number"},"maximumMonthlyGiB":{"type":"number"},"gracePercent":{"type":"number"},"maximumMonthlyGraceGiB":{"type":"number"},"maximumPaygGraceGiB":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"defaults":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}}}},"paymentSources":{"additionalProperties":false,"type":"object","required":["payg","monthly"],"properties":{"payg":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}},"monthly":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}}}},"defaultPaymentSource":{"const":"wallet","type":"string"},"presetsAreSizingExamples":{"const":true,"type":"boolean"},"walletFunding":{"additionalProperties":false,"type":"object","required":["minimumDepositAmount","maximumDepositAmount"],"properties":{"minimumDepositAmount":{"type":"number"},"maximumDepositAmount":{"type":"number"}}},"presets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","capacity","monthlyAmount","paygCapAmount","resourceLimits"],"properties":{"id":{"type":"string"},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"available":{"type":"boolean"},"paygEstimate":{"additionalProperties":false,"type":"object","required":["computeHourAmount","storageMonthAmount"],"properties":{"computeHourAmount":{"type":"number"},"storageMonthAmount":{"type":"number"}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}}}}}}},"accountPlan":{"additionalProperties":false,"type":"object","required":["version","basis","planSlug","owned","running","perVm"],"properties":{"version":{"const":1,"type":"number"},"basis":{"const":"running","type":"string"},"planSlug":{"anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"}]},"owned":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"perVm":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","balance","monthlyAvailable"],"properties":{"currency":{"const":"usd","type":"string"},"balance":{"type":"number"},"monthlyAvailable":{"type":"number"}}},"pendingCheckout":{"anyOf":[{"additionalProperties":false,"type":"object","required":["quote","checkoutId","url"],"properties":{"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"checkoutId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}}}},{"additionalProperties":false,"type":"object","required":["namespace","quote","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"success":{"const":true,"type":"boolean"}}}]},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"namespace":"production","capacity":null,"pendingCheckout":null}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.cancelCapacityChange","x-mcp-tool":"billing_cancel_capacity_change","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/renewal":{"post":{"operationId":"billing.setCapacityAutoRenew","summary":"Set wallet capacity renewal to the requested boolean state.","description":"Set wallet capacity renewal to the requested boolean state.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["autoRenew","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"autoRenew":false,"idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","namespace","capacity","pendingCheckout"],"properties":{"success":{"const":true,"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","namespace","billingMode","status","provider","capacity","tariffId","currency","monthlyAmount","paygCapAmount","periodStart","periodEnd","autoRenew","computeCovered","retention","pendingChange","resourceLimits","savings","network"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"expired","type":"string"},{"const":"revoked","type":"string"},{"const":"payment_required","type":"string"},{"const":"storage_payment_required","type":"string"},{"const":"pending","type":"string"}]},"provider":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"currency":{"const":"usd","type":"string"},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"coverageStartsAt":{"type":"string"},"autoRenew":{"type":"boolean"},"computeCovered":{"type":"boolean"},"renewalGrace":{"additionalProperties":false,"type":"object","required":["version","resellerId","namespace","contractId","fundedPeriodId","state","eligible","startsAt","deadline","policy","policyChangeBehavior","capabilities","storageIncluded","notificationOwner"],"properties":{"version":{"const":1,"type":"number"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"contractId":{"type":"string"},"fundedPeriodId":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"scheduled","type":"string"},{"const":"grace","type":"string"},{"const":"expired","type":"string"},{"const":"ineligible","type":"string"}]},"eligible":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},{"type":"null"}]},"effectivePolicy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"policyChangeBehavior":{"const":"open_window_fixed_next_period_uses_current_policy","type":"string"},"capabilities":{"additionalProperties":false,"type":"object","required":["continueExistingVms","restartExistingVm","redeployExistingVm","createVm","expandResources"],"properties":{"continueExistingVms":{"type":"boolean"},"restartExistingVm":{"type":"boolean"},"redeployExistingVm":{"type":"boolean"},"createVm":{"const":false,"type":"boolean"},"expandResources":{"const":false,"type":"boolean"}}},"storageIncluded":{"type":"boolean"},"notificationOwner":{"const":"reseller","type":"string"}}},"migration":{"additionalProperties":false,"type":"object","required":["kind","operationId","targetCapacity","retainedVmIds","expiresAt","finalizationRequired"],"properties":{"kind":{"const":"operator_consolidation","type":"string"},"operationId":{"type":"string"},"targetCapacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"retainedVmIds":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string"},"finalizationRequired":{"const":true,"type":"boolean"}}},"retention":{"additionalProperties":false,"type":"object","required":["minimumDays","automaticDeletion","reviewAt","storagePerGiBMonth","amountDue","currency"],"properties":{"minimumDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"reviewAt":{"type":"string"},"storagePerGiBMonth":{"type":"number"},"amountDue":{"type":"number"},"currency":{"const":"usd","type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","billingMode","capacity","monthlyAmount","effectiveAt"],"properties":{"id":{"type":"string"},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"effectiveAt":{"type":"string"}}},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"savings":{"anyOf":[{"additionalProperties":false,"type":"object","required":["currency","baseline","usageBeforeCap","capDiscount","usageAfterCap","usageCharged","prepaidAmount","monthlyDifference","networkIncluded","refundsIncluded"],"properties":{"currency":{"const":"usd","type":"string"},"baseline":{"const":"recorded_usage_at_saved_payg_rates","type":"string"},"usageBeforeCap":{"type":"number"},"capDiscount":{"type":"number"},"usageAfterCap":{"type":"number"},"usageCharged":{"type":"number"},"prepaidAmount":{"type":"number"},"monthlyDifference":{"type":"number"},"networkIncluded":{"const":false,"type":"boolean"},"refundsIncluded":{"const":false,"type":"boolean"}}},{"type":"null"}]},"network":{"additionalProperties":false,"type":"object","required":["service","included","purchasedBytes","consumedBytes","reservedBytes","availableBytes"],"properties":{"service":{"const":"managed_proxy_transfer","type":"string"},"included":{"type":"boolean"},"purchasedBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"unlimited":{"type":"boolean"},"providerRevision":{"type":"number"},"policyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"low","type":"string"},{"const":"grace","type":"string"},{"const":"blocked","type":"string"},{"const":"inactive","type":"string"}]},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"includedConsumedBytes":{"type":"number"},"includedReservedBytes":{"type":"number"},"includedAvailableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"purchasedConsumedBytes":{"type":"number"},"purchasedReservedBytes":{"type":"number"},"purchasedAvailableBytes":{"type":"number"},"periodConsumedBytes":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"grace":{"additionalProperties":false,"type":"object","required":["limitBytes","consumedBytes","reservedBytes","availableBytes","hours","startsAt","expiresAt","active"],"properties":{"limitBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"type":"number"},"hours":{"type":"number"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","limitAmount","chargedAmount","reservedAmount","availableBytes"],"properties":{"currency":{"const":"usd","type":"string"},"limitAmount":{"type":"number"},"chargedAmount":{"type":"number"},"reservedAmount":{"type":"number"},"availableBytes":{"type":"number"}}},"managedProxyGiBCents":{"type":"number"},"settings":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"},"computeStopped":{"const":false,"type":"boolean"}}}}},{"type":"null"}]},"catalog":{"additionalProperties":false,"type":"object","required":["currency","billingModes","tariffId","tariff","paymentSources","presets"],"properties":{"currency":{"const":"usd","type":"string"},"billingModes":{"type":"array","items":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]}},"resellerSubscriptionIntervals":{"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]}},"tariffId":{"type":"string"},"tariff":{"additionalProperties":false,"type":"object","required":["id","currency","creditsPerDollar","monthly","paygCapPercent","usage","network","requiredMeterVersion","terms"],"properties":{"id":{"type":"string"},"currency":{"const":"usd","type":"string"},"creditsPerDollar":{"type":"number"},"monthly":{"additionalProperties":false,"type":"object","required":["vcpuCents","memoryGiBCents","diskGiBCents","minimumCents"],"properties":{"vcpuCents":{"type":"number"},"memoryGiBCents":{"type":"number"},"diskGiBCents":{"type":"number"},"minimumCents":{"type":"number"}}},"paygCapPercent":{"type":"number"},"usage":{"additionalProperties":false,"type":"object","required":["activeVcpuHourCents","reservedGiBHourCents","retainedGiBMonthCents","monthHours"],"properties":{"activeVcpuHourCents":{"type":"number"},"reservedGiBHourCents":{"type":"number"},"retainedGiBMonthCents":{"type":"number"},"monthHours":{"type":"number"}}},"network":{"additionalProperties":false,"type":"object","required":["managedProxyGiBCents","minimumTopupCents"],"properties":{"managedProxyGiBCents":{"type":"number"},"minimumTopupCents":{"type":"number"}}},"requiredMeterVersion":{"type":"number"},"terms":{"additionalProperties":false,"type":"object","required":["cpuClass","networkIncluded","backupsIncluded","autoRenewDefault","calendar","expiryGraceHours","retainedAfterExpiryDays","automaticDeletion","retentionBilling"],"properties":{"cpuClass":{"const":"shared","type":"string"},"networkIncluded":{"const":false,"type":"boolean"},"backupsIncluded":{"const":false,"type":"boolean"},"autoRenewDefault":{"const":false,"type":"boolean"},"calendar":{"const":"subscription_anniversary","type":"string"},"expiryGraceHours":{"type":"number"},"retainedAfterExpiryDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"retentionBilling":{"const":"storage_until_deleted","type":"string"}}}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["id","revision","monthlyUnlimited","monthlyGiBPerVcpu","minimumMonthlyGiB","maximumMonthlyGiB","gracePercent","maximumMonthlyGraceGiB","maximumPaygGraceGiB","graceHours","warningPercentages","defaults"],"properties":{"id":{"type":"string"},"revision":{"type":"number"},"monthlyUnlimited":{"type":"boolean"},"monthlyGiBPerVcpu":{"type":"number"},"minimumMonthlyGiB":{"type":"number"},"maximumMonthlyGiB":{"type":"number"},"gracePercent":{"type":"number"},"maximumMonthlyGraceGiB":{"type":"number"},"maximumPaygGraceGiB":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"defaults":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}}}},"paymentSources":{"additionalProperties":false,"type":"object","required":["payg","monthly"],"properties":{"payg":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}},"monthly":{"type":"array","items":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]}}}},"defaultPaymentSource":{"const":"wallet","type":"string"},"presetsAreSizingExamples":{"const":true,"type":"boolean"},"walletFunding":{"additionalProperties":false,"type":"object","required":["minimumDepositAmount","maximumDepositAmount"],"properties":{"minimumDepositAmount":{"type":"number"},"maximumDepositAmount":{"type":"number"}}},"presets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","capacity","monthlyAmount","paygCapAmount","resourceLimits"],"properties":{"id":{"type":"string"},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"available":{"type":"boolean"},"paygEstimate":{"additionalProperties":false,"type":"object","required":["computeHourAmount","storageMonthAmount"],"properties":{"computeHourAmount":{"type":"number"},"storageMonthAmount":{"type":"number"}}},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}}}}}}},"accountPlan":{"additionalProperties":false,"type":"object","required":["version","basis","planSlug","owned","running","perVm"],"properties":{"version":{"const":1,"type":"number"},"basis":{"const":"running","type":"string"},"planSlug":{"anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"}]},"owned":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"perVm":{"additionalProperties":false,"type":"object","required":["cpu_millis","memory_mb","disk_mb","vms"],"properties":{"cpu_millis":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"vms":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","balance","monthlyAvailable"],"properties":{"currency":{"const":"usd","type":"string"},"balance":{"type":"number"},"monthlyAvailable":{"type":"number"}}},"pendingCheckout":{"anyOf":[{"additionalProperties":false,"type":"object","required":["quote","checkoutId","url"],"properties":{"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"checkoutId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"success":true,"namespace":"production","capacity":{"id":"bct_example","namespace":"production","billingMode":"monthly","status":"active","provider":"wallet","capacity":{"vcpus":1,"memoryMb":1024,"diskGb":10,"vms":1},"tariffId":"example-saved-tariff","currency":"usd","monthlyAmount":100,"paygCapAmount":120,"periodStart":"2026-11-01T00:00:00.000Z","periodEnd":"2026-12-01T00:00:00.000Z","autoRenew":false,"computeCovered":true,"retention":{"minimumDays":7,"automaticDeletion":false,"reviewAt":"2026-12-08T00:00:00.000Z","storagePerGiBMonth":1,"amountDue":0,"currency":"usd"},"pendingChange":null,"resourceLimits":{},"savings":null,"network":{"service":"managed_proxy_transfer","included":false,"purchasedBytes":0,"consumedBytes":0,"reservedBytes":0,"availableBytes":null}},"pendingCheckout":null}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.setCapacityAutoRenew","x-mcp-tool":"billing_set_capacity_auto_renew","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/network/preview":{"post":{"operationId":"billing.previewNetworkTopup","summary":"Quote a managed network transfer top-up.","description":"Quote a managed network transfer top-up.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\n- A preview records a quote but does not buy capacity, charge the wallet or start VMs. Confirm the saved quote with an idempotency key.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["unitAmount","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"unitAmount":{"minimum":0,"type":"integer"},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"unitAmount":100,"idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","quote","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","status","action","expiresAt","effectiveAt","periodEnd","billingMode","paymentSource","currency","current","capacity","tariffId","monthlyAmount","paygCapAmount","unusedTimeCredit","remainingTimeCharge","amountDueNow","walletCreditsRequired","retainedStorageAmountDue","nextPaymentAmount","autoRenew","networkIncluded","networkBytes","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"action":{"anyOf":[{"const":"start","type":"string"},{"const":"upgrade","type":"string"},{"const":"scheduled","type":"string"},{"const":"network_topup","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"paymentSource":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"currency":{"const":"usd","type":"string"},"current":{"anyOf":[{"additionalProperties":false,"type":"object","required":["capacity","billingMode","monthlyAmount"],"properties":{"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"monthlyAmount":{"type":"number"}}},{"type":"null"}]},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},{"type":"null"}]},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"monthlyAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"paygCapAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"walletCreditsRequired":{"type":"number"},"retainedStorageAmountDue":{"type":"number"},"nextPaymentAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"networkIncluded":{"type":"boolean"},"managedTransfer":{"additionalProperties":false,"type":"object","required":["policyId","included","unlimited","includedBytes","graceBytes","graceHours","warningPercentages","managedProxyGiBCents","publicRouteTrafficMetered","customProxyMetered"],"properties":{"policyId":{"type":"string"},"included":{"type":"boolean"},"unlimited":{"type":"boolean"},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"graceBytes":{"type":"number"},"graceHours":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"managedProxyGiBCents":{"type":"number"},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"}}},"networkBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","quote":{"id":"bcq_example","namespace":"production","status":"quoted","action":"network_topup","expiresAt":"2026-11-01T00:15:00.000Z","effectiveAt":"2026-11-01T00:00:00.000Z","periodEnd":null,"billingMode":"payg","paymentSource":"wallet","currency":"usd","current":null,"capacity":null,"tariffId":"example","monthlyAmount":null,"paygCapAmount":null,"unusedTimeCredit":0,"remainingTimeCharge":0,"amountDueNow":100,"walletCreditsRequired":100,"retainedStorageAmountDue":0,"nextPaymentAmount":null,"autoRenew":false,"networkIncluded":false,"networkBytes":1073741824,"preservesUsage":true,"preservesPurchasedCredits":true},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.previewNetworkTopup","x-mcp-tool":"billing_preview_network_topup","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/network/policy":{"get":{"operationId":"billing.getNetworkPolicy","summary":"Read managed network spending settings for the exact billing scope.","description":"Read managed network spending settings for the exact billing scope.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount","namespace","source","revision","success"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"const":"platform","type":"string"},{"const":"inherited","type":"string"},{"const":"explicit","type":"string"}]},"revision":{"type":"number"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"paygLimitAmount":0,"monthlyOverageLimitAmount":0,"namespace":"production","source":"platform","revision":0,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_network_policy","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"billing.setNetworkPolicy","summary":"Set managed network spending limits for the exact billing scope.","description":"Set managed network spending limits for the exact billing scope.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Retry with the same desired state. Read the resulting policy or subscription before making another change.","tags":["billing"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"paygLimitAmount":{"minimum":0,"maximum":1000000,"type":"integer"},"monthlyOverageLimitAmount":{"minimum":0,"maximum":1000000,"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount","namespace","source","revision","success"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"const":"platform","type":"string"},{"const":"inherited","type":"string"},{"const":"explicit","type":"string"}]},"revision":{"type":"number"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"paygLimitAmount":0,"monthlyOverageLimitAmount":0,"namespace":"production","source":"platform","revision":0,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.setNetworkPolicy","x-mcp-tool":"billing_set_network_policy","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/capacity/network/defaults":{"get":{"operationId":"billing.getNetworkDefaults","summary":"Read the owner account network spending defaults.","description":"Read the owner account network spending defaults.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount","source","revision","success"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"const":"platform","type":"string"},{"const":"inherited","type":"string"},{"const":"explicit","type":"string"}]},"revision":{"type":"number"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"paygLimitAmount":0,"monthlyOverageLimitAmount":0,"source":"platform","revision":0,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_network_defaults","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"billing.setNetworkDefaults","summary":"Set the owner account network spending defaults.","description":"Set the owner account network spending defaults.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Retry with the same desired state. Read the resulting policy or subscription before making another change.","tags":["billing"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"paygLimitAmount":{"minimum":0,"maximum":1000000,"type":"integer"},"monthlyOverageLimitAmount":{"minimum":0,"maximum":1000000,"type":"integer"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount","source","revision","success"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"const":"platform","type":"string"},{"const":"inherited","type":"string"},{"const":"explicit","type":"string"}]},"revision":{"type":"number"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"paygLimitAmount":0,"monthlyOverageLimitAmount":0,"source":"platform","revision":0,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.setNetworkDefaults","x-mcp-tool":"billing_set_network_defaults","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/checkout":{"post":{"operationId":"billing.createCheckout","summary":"Create a hosted checkout for the authenticated reseller and namespace.","description":"Create a hosted checkout for the authenticated reseller and namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["namespace","kind"],"properties":{"namespace":{"minLength":1,"maxLength":255,"type":"string"},"successUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"cancelUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"customer":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"email":{"anyOf":[{"maxLength":254,"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"allowPromotionCodes":{"type":"boolean"},"checkoutMode":{"anyOf":[{"const":"stripe","type":"string"},{"const":"oblien","type":"string"}]},"affiliateCode":{"type":"string"},"kind":{"anyOf":[{"const":"subscription","type":"string"},{"const":"topup","type":"string"}]},"planTierId":{"anyOf":[{"minLength":1,"maxLength":255,"type":"string"},{"type":"null"}]},"packId":{"anyOf":[{"minLength":1,"maxLength":255,"type":"string"},{"type":"null"}]},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]},"idempotencyKey":{"anyOf":[{"minLength":1,"maxLength":255,"type":"string"},{"type":"null"}]},"offer":{"anyOf":[{"additionalProperties":false,"type":"object","required":["name","unitAmount"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},{"type":"null"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}]},"unitAmount":{"type":"number"},"currency":{"anyOf":[{"pattern":"^[uU][sS][dD]$","type":"string"},{"type":"null"}]},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},{"type":"null"}]},"metadata":{"anyOf":[{"maxProperties":35,"type":"object","patternProperties":{"^(.*)$":{"maxLength":500,"type":"string"}}},{"type":"null"}]},"affiliateBuyer":{"additionalProperties":false,"type":"object","required":["namespace","buyerKey","relatedKeys"],"properties":{"namespace":{"minLength":1,"maxLength":128,"type":"string"},"buyerKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"relatedKeys":{"maxItems":100,"type":"array","items":{"pattern":"^[a-f0-9]{64}$","type":"string"}}}}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","kind":"subscription","planTierId":"example-monthly-plan"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["url","checkoutId","success"],"properties":{"url":{"type":"string"},"checkoutId":{"type":"string"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"url":"https://checkout.example.test/session","checkoutId":"bco_example","success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.createCheckout","x-mcp-tool":"billing_create_checkout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/billing/checkout/{checkoutId}":{"get":{"operationId":"billing.getCheckout","summary":"Inspect an owned checkout in its exact billing namespace.","description":"Inspect an owned checkout in its exact billing namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"checkoutId","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"bco_example"}}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","checkout","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"checkout":{"additionalProperties":false,"type":"object","required":["id","kind","status","paymentStatus","fulfilled","offer","metadata","fulfillmentStatus","walletCreditsGranted","namespaceCreditsGranted","billingInterval","subscriptionId"],"properties":{"id":{"type":"string"},"kind":{"anyOf":[{"const":"subscription","type":"string"},{"const":"topup","type":"string"}]},"status":{"anyOf":[{"const":"open","type":"string"},{"const":"complete","type":"string"},{"const":"expired","type":"string"}]},"paymentStatus":{"anyOf":[{"const":"paid","type":"string"},{"const":"unpaid","type":"string"},{"const":"no_payment_required","type":"string"}]},"fulfilled":{"type":"boolean"},"offer":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"metadata":{"additionalProperties":false,"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"fulfillmentStatus":{"anyOf":[{"const":"pending","type":"string"},{"const":"completed","type":"string"},{"const":"partially_refunded","type":"string"},{"const":"refunded","type":"string"},{"const":"disputed","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"},{"const":"superseded","type":"string"},{"const":"reversed","type":"string"}]},"walletCreditsGranted":{"type":"number"},"walletCreditsFunded":{"type":"number"},"capacityCreditsCharged":{"type":"number"},"walletCreditDelta":{"type":"number"},"namespaceCreditsGranted":{"type":"number"},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"},{"type":"null"}]},"subscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"price":{"additionalProperties":false,"type":"object","required":["subtotal","discount","total","currency"],"properties":{"subtotal":{"type":"number"},"discount":{"type":"number"},"total":{"type":"number"},"currency":{"type":"string"}}}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","checkout":{"id":"example","kind":"subscription","status":"open","paymentStatus":"unpaid","fulfilled":false,"offer":{"name":"Example monthly VM","unitAmount":0,"credits":0},"metadata":{},"fulfillmentStatus":"pending","walletCreditsGranted":0,"namespaceCreditsGranted":0,"billingInterval":null,"subscriptionId":null},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_checkout","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/checkout/{checkoutId}/cancel":{"post":{"operationId":"billing.cancelCheckout","summary":"Cancel an owned unpaid checkout using its retry key.","description":"Cancel an owned unpaid checkout using its retry key.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[{"name":"checkoutId","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"bco_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","checkout","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"checkout":{"additionalProperties":false,"type":"object","required":["id","kind","status","paymentStatus","fulfilled","offer","metadata","fulfillmentStatus","walletCreditsGranted","namespaceCreditsGranted","billingInterval","subscriptionId"],"properties":{"id":{"type":"string"},"kind":{"anyOf":[{"const":"subscription","type":"string"},{"const":"topup","type":"string"}]},"status":{"anyOf":[{"const":"open","type":"string"},{"const":"complete","type":"string"},{"const":"expired","type":"string"}]},"paymentStatus":{"anyOf":[{"const":"paid","type":"string"},{"const":"unpaid","type":"string"},{"const":"no_payment_required","type":"string"}]},"fulfilled":{"type":"boolean"},"offer":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"metadata":{"additionalProperties":false,"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"fulfillmentStatus":{"anyOf":[{"const":"pending","type":"string"},{"const":"completed","type":"string"},{"const":"partially_refunded","type":"string"},{"const":"refunded","type":"string"},{"const":"disputed","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"},{"const":"superseded","type":"string"},{"const":"reversed","type":"string"}]},"walletCreditsGranted":{"type":"number"},"walletCreditsFunded":{"type":"number"},"capacityCreditsCharged":{"type":"number"},"walletCreditDelta":{"type":"number"},"namespaceCreditsGranted":{"type":"number"},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"},{"type":"null"}]},"subscriptionId":{"anyOf":[{"type":"string"},{"type":"null"}]},"price":{"additionalProperties":false,"type":"object","required":["subtotal","discount","total","currency"],"properties":{"subtotal":{"type":"number"},"discount":{"type":"number"},"total":{"type":"number"},"currency":{"type":"string"}}}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","checkout":{"id":"example","kind":"subscription","status":"expired","paymentStatus":"unpaid","fulfilled":false,"offer":{"name":"Example monthly VM","unitAmount":0,"credits":0},"metadata":{},"fulfillmentStatus":"expired","walletCreditsGranted":0,"namespaceCreditsGranted":0,"billingInterval":null,"subscriptionId":null},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.cancelCheckout","x-mcp-tool":"billing_cancel_checkout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/portal":{"post":{"operationId":"billing.createPortal","summary":"Open the billing portal for the exact account or namespace customer.","description":"Open the billing portal for the exact account or namespace customer.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: A retry may create another portal session for the same authorized customer. It cannot select another account or namespace.","tags":["billing"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"returnUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","url","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","url":"https://checkout.example.test/session","success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.createPortal","x-mcp-tool":"billing_create_portal","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/billing/subscription":{"get":{"operationId":"billing.getSubscription","summary":"Read the subscription for the exact billing scope.","description":"Read the subscription for the exact billing scope.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","subscription","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"subscription":{"anyOf":[{"additionalProperties":false,"type":"object","required":["tierId","status","billingInterval","periodStart","periodEnd","cancelAtPeriodEnd","canceledAt"],"properties":{"tierId":{"type":"string"},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"trialing","type":"string"},{"const":"past_due","type":"string"},{"const":"unpaid","type":"string"},{"const":"paused","type":"string"},{"const":"canceled","type":"string"},{"const":"incomplete","type":"string"},{"const":"incomplete_expired","type":"string"}]},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]},"periodStart":{"anyOf":[{"type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelAtPeriodEnd":{"type":"boolean"},"canceledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"offer":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"metadata":{"additionalProperties":false,"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},{"type":"null"}]},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","subscription":null,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_subscription","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/subscription/cancel":{"post":{"operationId":"billing.cancelSubscription","summary":"Disable renewal at the paid period end.","description":"Disable renewal at the paid period end.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Retry with the same desired state. Read the resulting policy or subscription before making another change.","tags":["billing"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","subscription","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"subscription":{"anyOf":[{"additionalProperties":false,"type":"object","required":["tierId","status","billingInterval","periodStart","periodEnd","cancelAtPeriodEnd","canceledAt"],"properties":{"tierId":{"type":"string"},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"trialing","type":"string"},{"const":"past_due","type":"string"},{"const":"unpaid","type":"string"},{"const":"paused","type":"string"},{"const":"canceled","type":"string"},{"const":"incomplete","type":"string"},{"const":"incomplete_expired","type":"string"}]},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]},"periodStart":{"anyOf":[{"type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelAtPeriodEnd":{"type":"boolean"},"canceledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"offer":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"metadata":{"additionalProperties":false,"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},{"type":"null"}]},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","subscription":{"tierId":"example-monthly-plan","status":"active","billingInterval":"monthly","periodStart":"2026-11-01T00:00:00.000Z","periodEnd":"2026-12-01T00:00:00.000Z","cancelAtPeriodEnd":true,"canceledAt":null},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.cancelSubscription","x-mcp-tool":"billing_cancel_subscription","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/subscription/resume":{"post":{"operationId":"billing.resumeSubscription","summary":"Resume renewal of an eligible subscription.","description":"Resume renewal of an eligible subscription.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Retry with the same desired state. Read the resulting policy or subscription before making another change.","tags":["billing"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","subscription","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"subscription":{"anyOf":[{"additionalProperties":false,"type":"object","required":["tierId","status","billingInterval","periodStart","periodEnd","cancelAtPeriodEnd","canceledAt"],"properties":{"tierId":{"type":"string"},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"trialing","type":"string"},{"const":"past_due","type":"string"},{"const":"unpaid","type":"string"},{"const":"paused","type":"string"},{"const":"canceled","type":"string"},{"const":"incomplete","type":"string"},{"const":"incomplete_expired","type":"string"}]},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]},"periodStart":{"anyOf":[{"type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelAtPeriodEnd":{"type":"boolean"},"canceledAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"offer":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"metadata":{"additionalProperties":false,"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},{"type":"null"}]},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","subscription":{"tierId":"example-monthly-plan","status":"active","billingInterval":"monthly","periodStart":"2026-11-01T00:00:00.000Z","periodEnd":"2026-12-01T00:00:00.000Z","cancelAtPeriodEnd":false,"canceledAt":null},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.resumeSubscription","x-mcp-tool":"billing_resume_subscription","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/subscription/changes/preview":{"post":{"operationId":"billing.previewPlanChange","summary":"Quote a change to an owned reseller subscription.","description":"Quote a change to an owned reseller subscription.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\n- A preview records a quote but does not buy capacity, charge the wallet or start VMs. Confirm the saved quote with an idempotency key.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["offer","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"offer":{"additionalProperties":false,"type":"object","required":["name","unitAmount"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},{"type":"null"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"anyOf":[{"type":"string"},{"type":"null"}]},"reference":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}]},"unitAmount":{"type":"number"},"currency":{"anyOf":[{"pattern":"^[uU][sS][dD]$","type":"string"},{"type":"null"}]},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"metadata":{"anyOf":[{"maxProperties":35,"type":"object","patternProperties":{"^(.*)$":{"maxLength":500,"type":"string"}}},{"type":"null"}]},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"offer":{"name":"Example monthly VM","unitAmount":1000,"credits":1000},"idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","quote","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"additionalProperties":false,"type":"object","required":["id","namespace","direction","expiresAt","effectiveAt","billingInterval","current","next","currency","unusedTimeCredit","remainingTimeCharge","amountDueNow","nextInvoiceAmount","includedCreditIncrease","preservesUsage","preservesPurchasedCredits"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"expiresAt":{"type":"string"},"effectiveAt":{"type":"string"},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"currency":{"const":"usd","type":"string"},"unusedTimeCredit":{"type":"number"},"remainingTimeCharge":{"type":"number"},"amountDueNow":{"type":"number"},"nextInvoiceAmount":{"anyOf":[{"type":"number"},{"type":"null"}]},"includedCreditIncrease":{"type":"number"},"preservesUsage":{"const":true,"type":"boolean"},"preservesPurchasedCredits":{"const":true,"type":"boolean"}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","quote":{"id":"example","namespace":null,"direction":"upgrade","expiresAt":"2026-12-01T00:00:00.000Z","effectiveAt":"2026-12-01T00:00:00.000Z","billingInterval":"monthly","current":{"name":"Example monthly VM","unitAmount":0,"credits":0},"next":{"name":"Example monthly VM","unitAmount":0,"credits":0},"currency":"usd","unusedTimeCredit":0,"remainingTimeCharge":0,"amountDueNow":0,"nextInvoiceAmount":null,"includedCreditIncrease":0,"preservesUsage":true,"preservesPurchasedCredits":true},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.previewPlanChange","x-mcp-tool":"billing_preview_plan_change","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/subscription/changes":{"post":{"operationId":"billing.changePlan","summary":"Accept a saved plan-change quote with a stable retry key.","description":"Accept a saved plan-change quote with a stable retry key.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["quoteId","idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"quoteId":{"minLength":1,"maxLength":255,"type":"string"},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"quoteId":"bcq_example","idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","change","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"change":{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","change":{"id":"example","quoteId":"bcq_example","namespace":null,"direction":"upgrade","status":"queued","effectiveAt":"2026-12-01T00:00:00.000Z","current":{"name":"Example monthly VM","unitAmount":0,"credits":0},"next":{"name":"Example monthly VM","unitAmount":0,"credits":0},"amountDueNow":0,"currency":"usd","includedCreditIncrease":0,"payment":null,"error":null,"cancelable":false,"appliedAt":null},"success":true}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","change","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"change":{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.changePlan","x-mcp-tool":"billing_change_plan","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/subscription/changes/{changeId}":{"get":{"operationId":"billing.getPlanChange","summary":"Read the saved plan change and its payment or reconciliation state.","description":"Read the saved plan change and its payment or reconciliation state.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"changeId","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"bpc_example"}}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","change","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"change":{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","change":{"id":"example","quoteId":"bcq_example","namespace":null,"direction":"upgrade","status":"queued","effectiveAt":"2026-12-01T00:00:00.000Z","current":{"name":"Example monthly VM","unitAmount":0,"credits":0},"next":{"name":"Example monthly VM","unitAmount":0,"credits":0},"amountDueNow":0,"currency":"usd","includedCreditIncrease":0,"payment":null,"error":null,"cancelable":false,"appliedAt":null},"success":true}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","change","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"change":{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_plan_change","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/subscription/changes/{changeId}/cancel":{"post":{"operationId":"billing.cancelPlanChange","summary":"Cancel an eligible saved subscription change.","description":"Cancel an eligible saved subscription change.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Keep the same idempotencyKey and unchanged payload when retrying. Inspect the saved checkout, quote or change before starting a new purchase.","tags":["billing"],"parameters":[{"name":"changeId","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"bpc_example"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["idempotencyKey"],"properties":{"namespace":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}]},"idempotencyKey":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae","namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","change","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"change":{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","change":{"id":"example","quoteId":"bcq_example","namespace":null,"direction":"upgrade","status":"queued","effectiveAt":"2026-12-01T00:00:00.000Z","current":{"name":"Example monthly VM","unitAmount":0,"credits":0},"next":{"name":"Example monthly VM","unitAmount":0,"credits":0},"amountDueNow":0,"currency":"usd","includedCreditIncrease":0,"payment":null,"error":null,"cancelable":false,"appliedAt":null},"success":true}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","change","success"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"change":{"additionalProperties":false,"type":"object","required":["id","quoteId","namespace","direction","status","effectiveAt","current","next","amountDueNow","currency","includedCreditIncrease","payment","error","cancelable","appliedAt"],"properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"direction":{"anyOf":[{"const":"upgrade","type":"string"},{"const":"downgrade","type":"string"}]},"status":{"anyOf":[{"const":"queued","type":"string"},{"const":"dispatching","type":"string"},{"const":"payment_pending","type":"string"},{"const":"scheduled","type":"string"},{"const":"canceling","type":"string"},{"const":"reconciliation_required","type":"string"},{"const":"applied","type":"string"},{"const":"canceled","type":"string"},{"const":"expired","type":"string"},{"const":"failed","type":"string"}]},"effectiveAt":{"type":"string"},"current":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"next":{"additionalProperties":false,"type":"object","required":["name","unitAmount","credits"],"properties":{"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"tariffId":{"type":"string"},"reference":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"unitAmount":{"type":"number"},"currency":{"const":"usd","type":"string"},"credits":{"type":"number"},"policy":{"additionalProperties":false,"type":"object","properties":{"overdraft":{"type":"number"},"suspendThreshold":{"type":"number"},"onOverdraftAction":{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]}}},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}}}},"amountDueNow":{"type":"number"},"currency":{"const":"usd","type":"string"},"includedCreditIncrease":{"type":"number"},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","url","expiresAt"],"properties":{"status":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"cancelable":{"type":"boolean"},"appliedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.cancelPlanChange","x-mcp-tool":"billing_cancel_plan_change","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/entitlement":{"get":{"operationId":"billing.getEntitlement","summary":"Read the namespace funded entitlement separately from runtime continuity.","description":"Read the namespace funded entitlement separately from runtime continuity.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","tierId","status","periodStart","periodEnd","quota","success"],"properties":{"namespace":{"type":"string"},"tierId":{"type":"string"},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"past_due","type":"string"},{"const":"canceled","type":"string"},{"const":"credit_exhausted","type":"string"}]},"periodStart":{"anyOf":[{"type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverageStartsAt":{"type":"string"},"quota":{"additionalProperties":false,"type":"object","required":["limit","used","balance"],"properties":{"alert":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","thresholds","threshold","percent","used","limit","remaining","balance","overdraft","blocking"],"properties":{"state":{"type":"string"},"thresholds":{"type":"array","items":{"type":"number"}},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"used":{"type":"number"},"limit":{"anyOf":[{"type":"number"},{"type":"null"}]},"remaining":{"anyOf":[{"type":"number"},{"type":"null"}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"type":"number"},"blocking":{"type":"boolean"}}},{"type":"null"}]},"limit":{"anyOf":[{"type":"number"},{"type":"null"}]},"used":{"type":"number"},"overdraft":{"type":"number"},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"billingMode":{"anyOf":[{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},{"const":"service","type":"string"}]},"serviceCovered":{"type":"boolean"},"computeCovered":{"type":"boolean"},"capacity":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","namespace","billingMode","status","provider","capacity","tariffId","currency","monthlyAmount","paygCapAmount","periodStart","periodEnd","autoRenew","computeCovered","retention","pendingChange","resourceLimits","savings","network"],"properties":{"id":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"expired","type":"string"},{"const":"revoked","type":"string"},{"const":"payment_required","type":"string"},{"const":"storage_payment_required","type":"string"},{"const":"pending","type":"string"}]},"provider":{"anyOf":[{"const":"wallet","type":"string"},{"const":"stripe","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"allocationBasis":{"anyOf":[{"const":"running","type":"string"},{"const":"allocated","type":"string"}]},"accountPlan":{"anyOf":[{"type":"string"},{"type":"null"}]},"runningPool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"}}},"tariffId":{"type":"string"},"currency":{"const":"usd","type":"string"},"monthlyAmount":{"type":"number"},"paygCapAmount":{"type":"number"},"periodStart":{"type":"string"},"periodEnd":{"type":"string"},"coverageStartsAt":{"type":"string"},"autoRenew":{"type":"boolean"},"computeCovered":{"type":"boolean"},"renewalGrace":{"additionalProperties":false,"type":"object","required":["version","resellerId","namespace","contractId","fundedPeriodId","state","eligible","startsAt","deadline","policy","policyChangeBehavior","capabilities","storageIncluded","notificationOwner"],"properties":{"version":{"const":1,"type":"number"},"resellerId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"contractId":{"type":"string"},"fundedPeriodId":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"scheduled","type":"string"},{"const":"grace","type":"string"},{"const":"expired","type":"string"},{"const":"ineligible","type":"string"}]},"eligible":{"type":"boolean"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},{"type":"null"}]},"effectivePolicy":{"additionalProperties":false,"type":"object","required":["version","unit","hours","source","revision","defaultRevision","overrideRevision","overrideHours","defaultHours","maximumHours"],"properties":{"version":{"const":1,"type":"number"},"unit":{"const":"hours","type":"string"},"hours":{"type":"number"},"source":{"anyOf":[{"const":"provider_default","type":"string"},{"const":"reseller_default","type":"string"},{"const":"namespace_override","type":"string"}]},"revision":{"type":"number"},"defaultRevision":{"type":"number"},"overrideRevision":{"type":"number"},"overrideHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"defaultHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"maximumHours":{"const":168,"type":"number"}}},"policyChangeBehavior":{"const":"open_window_fixed_next_period_uses_current_policy","type":"string"},"capabilities":{"additionalProperties":false,"type":"object","required":["continueExistingVms","restartExistingVm","redeployExistingVm","createVm","expandResources"],"properties":{"continueExistingVms":{"type":"boolean"},"restartExistingVm":{"type":"boolean"},"redeployExistingVm":{"type":"boolean"},"createVm":{"const":false,"type":"boolean"},"expandResources":{"const":false,"type":"boolean"}}},"storageIncluded":{"type":"boolean"},"notificationOwner":{"const":"reseller","type":"string"}}},"migration":{"additionalProperties":false,"type":"object","required":["kind","operationId","targetCapacity","retainedVmIds","expiresAt","finalizationRequired"],"properties":{"kind":{"const":"operator_consolidation","type":"string"},"operationId":{"type":"string"},"targetCapacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"retainedVmIds":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string"},"finalizationRequired":{"const":true,"type":"boolean"}}},"retention":{"additionalProperties":false,"type":"object","required":["minimumDays","automaticDeletion","reviewAt","storagePerGiBMonth","amountDue","currency"],"properties":{"minimumDays":{"type":"number"},"automaticDeletion":{"const":false,"type":"boolean"},"reviewAt":{"type":"string"},"storagePerGiBMonth":{"type":"number"},"amountDue":{"type":"number"},"currency":{"const":"usd","type":"string"}}},"pendingChange":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","billingMode","capacity","monthlyAmount","effectiveAt"],"properties":{"id":{"type":"string"},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb","vms"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"effectiveAt":{"type":"string"}}},{"type":"null"}]},"resourceLimits":{"additionalProperties":false,"type":"object","properties":{"max_vms":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Maximum VM count; null inherits the account limit."},"max_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Per-VM vCPU ceiling; null inherits."},"max_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM memory ceiling in MB; null inherits."},"max_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Per-VM disk ceiling in GB; null inherits."},"max_total_vcpus":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"number"},{"type":"null"}],"description":"Total vCPU allocation ceiling across the namespace; null inherits."},"max_total_ram_mb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total memory allocation ceiling in MB; null inherits."},"max_total_disk_gb":{"anyOf":[{"minimum":0,"maximum":1000000000,"type":"integer"},{"type":"null"}],"description":"Total disk allocation ceiling in GB; null inherits."},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"CDN storage ceiling in bytes; null inherits."},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}],"description":"Monthly CDN transfer ceiling in bytes; null inherits."}}},"savings":{"anyOf":[{"additionalProperties":false,"type":"object","required":["currency","baseline","usageBeforeCap","capDiscount","usageAfterCap","usageCharged","prepaidAmount","monthlyDifference","networkIncluded","refundsIncluded"],"properties":{"currency":{"const":"usd","type":"string"},"baseline":{"const":"recorded_usage_at_saved_payg_rates","type":"string"},"usageBeforeCap":{"type":"number"},"capDiscount":{"type":"number"},"usageAfterCap":{"type":"number"},"usageCharged":{"type":"number"},"prepaidAmount":{"type":"number"},"monthlyDifference":{"type":"number"},"networkIncluded":{"const":false,"type":"boolean"},"refundsIncluded":{"const":false,"type":"boolean"}}},{"type":"null"}]},"network":{"additionalProperties":false,"type":"object","required":["service","included","purchasedBytes","consumedBytes","reservedBytes","availableBytes"],"properties":{"service":{"const":"managed_proxy_transfer","type":"string"},"included":{"type":"boolean"},"purchasedBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"unlimited":{"type":"boolean"},"providerRevision":{"type":"number"},"policyId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"active","type":"string"},{"const":"low","type":"string"},{"const":"grace","type":"string"},{"const":"blocked","type":"string"},{"const":"inactive","type":"string"}]},"includedBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"includedConsumedBytes":{"type":"number"},"includedReservedBytes":{"type":"number"},"includedAvailableBytes":{"anyOf":[{"type":"number"},{"type":"null"}]},"purchasedConsumedBytes":{"type":"number"},"purchasedReservedBytes":{"type":"number"},"purchasedAvailableBytes":{"type":"number"},"periodConsumedBytes":{"type":"number"},"warningPercentages":{"type":"array","items":{"type":"number"}},"grace":{"additionalProperties":false,"type":"object","required":["limitBytes","consumedBytes","reservedBytes","availableBytes","hours","startsAt","expiresAt","active"],"properties":{"limitBytes":{"type":"number"},"consumedBytes":{"type":"number"},"reservedBytes":{"type":"number"},"availableBytes":{"type":"number"},"hours":{"type":"number"},"startsAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"}}},"wallet":{"additionalProperties":false,"type":"object","required":["currency","limitAmount","chargedAmount","reservedAmount","availableBytes"],"properties":{"currency":{"const":"usd","type":"string"},"limitAmount":{"type":"number"},"chargedAmount":{"type":"number"},"reservedAmount":{"type":"number"},"availableBytes":{"type":"number"}}},"managedProxyGiBCents":{"type":"number"},"settings":{"additionalProperties":false,"type":"object","required":["paygLimitAmount","monthlyOverageLimitAmount"],"properties":{"paygLimitAmount":{"type":"number"},"monthlyOverageLimitAmount":{"type":"number"}}},"publicRouteTrafficMetered":{"const":false,"type":"boolean"},"customProxyMetered":{"const":false,"type":"boolean"},"computeStopped":{"const":false,"type":"boolean"}}}}},{"type":"null"}]},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","tierId":"free","status":"active","periodStart":null,"periodEnd":null,"quota":{"limit":null,"used":0,"balance":null},"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_entitlement","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/balance":{"get":{"operationId":"billing.getBalance","summary":"Read the authoritative namespace billing balance and blocking state.","description":"Read the authoritative namespace billing balance and blocking state.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","blocking","balance","success"],"properties":{"alert":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","thresholds","threshold","percent","used","limit","remaining","balance","overdraft","blocking"],"properties":{"state":{"type":"string"},"thresholds":{"type":"array","items":{"type":"number"}},"threshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"used":{"type":"number"},"limit":{"anyOf":[{"type":"number"},{"type":"null"}]},"remaining":{"anyOf":[{"type":"number"},{"type":"null"}]},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"type":"number"},"blocking":{"type":"boolean"}}},{"type":"null"}]},"namespace":{"type":"string"},"blocking":{"type":"boolean"},"balance":{"anyOf":[{"type":"number"},{"type":"null"}]},"billingMode":{"anyOf":[{"const":"payg","type":"string"},{"const":"monthly","type":"string"}]},"computeCovered":{"type":"boolean"},"paidThrough":{"anyOf":[{"type":"string"},{"type":"null"}]},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","blocking":false,"balance":null,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_balance","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/savings":{"get":{"operationId":"billing.getSavings","summary":"Read saved usage cost comparisons for the authenticated account.","description":"Read saved usage cost comparisons for the authenticated account.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\n- The example contains no usage. Actual savings come from recorded usage and saved rates; these example amounts are not account balances or quotes.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}},{"name":"vmId","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"month","in":"query","required":false,"schema":{"pattern":"^20[0-9]{2}-(0[1-9]|1[0-2])$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["currency","period","comparison","complete","monthlySubscriptionFeesIncluded","refundsIncluded","totals","vms","success"],"properties":{"currency":{"const":"usd","type":"string"},"period":{"additionalProperties":false,"type":"object","required":["month","start","end"],"properties":{"month":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"}}},"comparison":{"const":"saved_usage_rates_before_caps","type":"string"},"complete":{"type":"boolean"},"monthlySubscriptionFeesIncluded":{"const":false,"type":"boolean"},"refundsIncluded":{"const":false,"type":"boolean"},"totals":{"additionalProperties":false,"type":"object","required":["beforeCaps","capDiscount","monthlyCoveredUsage","usageCharged"],"properties":{"beforeCaps":{"type":"number"},"capDiscount":{"type":"number"},"monthlyCoveredUsage":{"type":"number"},"usageCharged":{"type":"number"}}},"vms":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["namespace","vmId","windows","unavailableComponents","beforeCaps","capDiscount","monthlyCoveredUsage","usageCharged"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"vmId":{"anyOf":[{"type":"string"},{"type":"null"}]},"windows":{"type":"number"},"unavailableComponents":{"type":"number"},"beforeCaps":{"type":"number"},"capDiscount":{"type":"number"},"monthlyCoveredUsage":{"type":"number"},"usageCharged":{"type":"number"}}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"currency":"usd","period":{"month":"2026-11","start":"2026-11-01","end":"2026-12-01"},"comparison":"saved_usage_rates_before_caps","complete":true,"monthlySubscriptionFeesIncluded":false,"refundsIncluded":false,"totals":{"beforeCaps":0,"capDiscount":0,"monthlyCoveredUsage":0,"usageCharged":0},"vms":[],"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_savings","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/billing/policy/{namespace}":{"get":{"operationId":"billing.getNamespacePolicy","summary":"Read the namespace metered allowance and suspension policy.","description":"Read the namespace metered allowance and suspension policy.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["service","quotaLimit","purchasedCredits","effectiveCeiling","overdraft","suspendThreshold","onOverdraftAction","namespace","success"],"properties":{"service":{"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"purchasedCredits":{"type":"number"},"effectiveCeiling":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"type":"number"},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"onOverdraftAction":{"type":"string"},"namespace":{"type":"string"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"service":"vm_compute","quotaLimit":null,"purchasedCredits":0,"effectiveCeiling":null,"overdraft":0,"suspendThreshold":null,"onOverdraftAction":"stop_vms","namespace":"production","success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_namespace_policy","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"billing.setNamespacePolicy","summary":"Update the namespace metered allowance and suspension policy.","description":"Update the namespace metered allowance and suspension policy.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Retry with the same desired state. Read the resulting policy or subscription before making another change.","tags":["billing"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"anyOf":[{"type":"number"},{"type":"null"}]},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"onOverdraftAction":{"anyOf":[{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["service","quotaLimit","purchasedCredits","effectiveCeiling","overdraft","suspendThreshold","onOverdraftAction","namespace","success"],"properties":{"service":{"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"purchasedCredits":{"type":"number"},"effectiveCeiling":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"type":"number"},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"onOverdraftAction":{"type":"string"},"namespace":{"type":"string"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"service":"vm_compute","quotaLimit":null,"purchasedCredits":0,"effectiveCeiling":null,"overdraft":0,"suspendThreshold":null,"onOverdraftAction":"stop_vms","namespace":"production","success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.setNamespacePolicy","x-mcp-tool":"billing_set_namespace_policy","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/policy/{namespace}/reset":{"post":{"operationId":"billing.resetQuota","summary":"Reset a manually managed allowance once for the specified billing cycle.","description":"Reset a manually managed allowance once for the specified billing cycle.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Retry with the same desired state. Read the resulting policy or subscription before making another change.","tags":["billing"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":"production"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["periodEnd"],"properties":{"periodEnd":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"periodEnd":"2026-12-01T00:00:00.000Z"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","applied","success"],"properties":{"namespace":{"type":"string"},"applied":{"type":"boolean"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"namespace":"production","applied":false,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.resetQuota","x-mcp-tool":"billing_reset_quota","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/defaults":{"get":{"operationId":"billing.getDefaults","summary":"Read the owner default metered allowance policy.","description":"Read the owner default metered allowance policy.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Safe to retry. This is inspection only; it does not fund capacity or change runtime access.","tags":["billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["service","quotaLimit","overdraft","suspendThreshold","onOverdraftAction","autoApply","success"],"properties":{"service":{"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"type":"number"},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"onOverdraftAction":{"type":"string"},"autoApply":{"type":"boolean"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"service":"vm_compute","quotaLimit":null,"overdraft":0,"suspendThreshold":null,"onOverdraftAction":"stop_vms","autoApply":false,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"billing_get_defaults","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"billing.setDefaults","summary":"Update the owner default metered allowance policy.","description":"Update the owner default metered allowance policy.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only the account owner’s login or an admin/billing API credential may call this operation. Shared access and remote MCP OAuth consent do not grant financial authority.\n\n- Namespace billing never falls back to the account owner’s subscription. Paid-through dates and computeCovered remain separate from renewal continuity.\n\nRetry guidance: Retry with the same desired state. Read the resulting policy or subscription before making another change.","tags":["billing"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"anyOf":[{"type":"number"},{"type":"null"}]},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"onOverdraftAction":{"anyOf":[{"anyOf":[{"const":"stop_vms","type":"string"},{"const":"block","type":"string"}]},{"type":"null"}]},"autoApply":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["service","quotaLimit","overdraft","suspendThreshold","onOverdraftAction","autoApply","success"],"properties":{"service":{"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"overdraft":{"type":"number"},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"onOverdraftAction":{"type":"string"},"autoApply":{"type":"boolean"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic contract example; obtain current values from live reads and quotes","value":{"service":"vm_compute","quotaLimit":null,"overdraft":0,"suspendThreshold":null,"onOverdraftAction":"stop_vms","autoApply":false,"success":true}}}}}},"403":{"description":"scope_denied: The credential cannot perform owner billing operations.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"billing_storage_unavailable: Billing persistence is unavailable; retain the retry key.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"billing.setDefaults","x-mcp-tool":"billing_set_defaults","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/billing/account/tier":{"put":{"operationId":"billing.accountTier","summary":"Account tier changes require platform administrator authority","description":"Account tier changes require platform administrator authority","tags":["billing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"not":{}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"platform","x-read-only":false,"x-audit-action":"billing.accountTier"}},"/billing/affiliates/codes/{code}":{"get":{"operationId":"affiliates.publicOffer","summary":"Read the public commercial terms of a referral code","description":"Read the public commercial terms of a referral code","tags":["affiliates"],"parameters":[{"name":"code","in":"path","required":true,"schema":{"minLength":9,"maxLength":128,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","offer"],"properties":{"success":{"const":true,"type":"boolean"},"offer":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"const":"vm_compute","type":"string"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/billing/affiliates/reseller/codes/{code}":{"get":{"operationId":"affiliates.resellerPublicOffer","summary":"Read commercial terms for a code in an owned reseller program.","description":"Read commercial terms for a code in an owned reseller program.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"code","in":"path","required":true,"schema":{"minLength":9,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"AF-0123456789"}}},{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","offer"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}}},"offer":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"description":"vm_compute is the standard v2 product ID. A scoped compatibility response may return workspace_vm.","anyOf":[{"const":"vm_compute","type":"string"},{"const":"workspace_vm","type":"string"}]},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production"},"offer":{"code":"AF-0123456789","name":"Example referral offer","productId":"vm_compute","planId":null,"discountBps":0,"durationMonths":0,"expiresAt":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":true,"x-mcp-tool":"affiliates_reseller_code","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/overview":{"get":{"operationId":"affiliates.overview","summary":"Inspect an owned reseller participant and available earnings.","description":"Inspect an owned reseller participant and available earnings.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"production"}}},{"name":"participantKey","in":"query","required":true,"schema":{"pattern":"^[a-f0-9]{64}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["program","member","summary"],"properties":{"program":{"additionalProperties":false,"type":"object","required":["version","policies"],"properties":{"version":{"const":1,"type":"number"},"policies":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","commissionBps","durationMonths","minimumMonthlyCents","payoutMinimumCents","planId"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"name":{"type":"string"},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"minimumMonthlyCents":{"type":"number"},"payoutMinimumCents":{"type":"number"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"member":{"anyOf":[{"additionalProperties":false,"type":"object","required":["enabled","payoutMinimumCents","payoutDestination"],"properties":{"enabled":{"type":"boolean"},"payoutMinimumCents":{"type":"number"},"payoutDestination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]}}},{"type":"null"}]},"summary":{"additionalProperties":false,"type":"object","required":["currency","earned","reversed","credited","referrals","converted","paid","reserved","available"],"properties":{"currency":{"const":"usd","type":"string"},"earned":{"type":"number"},"reversed":{"type":"number"},"credited":{"type":"number"},"referrals":{"type":"number"},"converted":{"type":"number"},"paid":{"type":"number"},"reserved":{"type":"number"},"available":{"type":"number"}}}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"program":{"version":1,"policies":[]},"member":null,"summary":{"currency":"usd","earned":0,"reversed":0,"credited":0,"referrals":0,"converted":0,"paid":0,"reserved":0,"available":0}}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":true,"x-mcp-tool":"affiliates_reseller_overview","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/payouts/queue":{"get":{"operationId":"affiliates.payoutQueue","summary":"Review payouts in an owned reseller program.","description":"Review payouts in an owned reseller program.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"production"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"const":"pending","type":"string"},{"const":"processing","type":"string"},{"const":"paid","type":"string"},{"const":"canceled","type":"string"},{"const":"rejected","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["items","total"],"properties":{"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","amountCents","currency","status","createdAt","updatedAt","destination","participantKey","paymentReference","reviewedBy","reviewReason"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"amountCents":{"type":"number"},"currency":{"const":"usd","type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"processing","type":"string"},{"const":"paid","type":"string"},{"const":"canceled","type":"string"},{"const":"rejected","type":"string"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"destination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"paymentReference":{"anyOf":[{"type":"string"},{"type":"null"}]},"reviewedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"reviewReason":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"total":{"type":"number"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production"},"data":{"items":[],"total":0}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":true,"x-mcp-tool":"affiliates_reseller_payout_queue","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/enroll":{"post":{"operationId":"affiliates.enroll","summary":"Enroll a participant in an owned reseller program.","description":"Enroll a participant in an owned reseller program.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Retry the same desired state and keep any idempotencyKey unchanged. The service retains ownership checks and existing reservation rules.","tags":["affiliates"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","properties":{}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["program","member","summary"],"properties":{"program":{"additionalProperties":false,"type":"object","required":["version","policies"],"properties":{"version":{"const":1,"type":"number"},"policies":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","commissionBps","durationMonths","minimumMonthlyCents","payoutMinimumCents","planId"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"name":{"type":"string"},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"minimumMonthlyCents":{"type":"number"},"payoutMinimumCents":{"type":"number"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"member":{"anyOf":[{"additionalProperties":false,"type":"object","required":["enabled","payoutMinimumCents","payoutDestination"],"properties":{"enabled":{"type":"boolean"},"payoutMinimumCents":{"type":"number"},"payoutDestination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]}}},{"type":"null"}]},"summary":{"additionalProperties":false,"type":"object","required":["currency","earned","reversed","credited","referrals","converted","paid","reserved","available"],"properties":{"currency":{"const":"usd","type":"string"},"earned":{"type":"number"},"reversed":{"type":"number"},"credited":{"type":"number"},"referrals":{"type":"number"},"converted":{"type":"number"},"paid":{"type":"number"},"reserved":{"type":"number"},"available":{"type":"number"}}}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"program":{"version":1,"policies":[]},"member":null,"summary":{"currency":"usd","earned":0,"reversed":0,"credited":0,"referrals":0,"converted":0,"paid":0,"reserved":0,"available":0}}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.enroll","x-mcp-tool":"affiliates_reseller_enroll","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/offers":{"get":{"operationId":"affiliates.resellerOffers","summary":"List offers belonging to the selected reseller participant.","description":"List offers belonging to the selected reseller participant.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"production"}}},{"name":"participantKey","in":"query","required":true,"schema":{"pattern":"^[a-f0-9]{64}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["items","total"],"properties":{"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt","id","url","namespace","commissionBps","status","createdAt","revokedAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"description":"vm_compute is the standard v2 product ID. A scoped compatibility response may return workspace_vm.","anyOf":[{"const":"vm_compute","type":"string"},{"const":"workspace_vm","type":"string"}]},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"},"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"url":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"reseller":{"type":"boolean"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"total":{"type":"number"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"items":[],"total":0}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":true,"x-mcp-tool":"affiliates_reseller_offers","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"affiliates.resellerCreateOffer","summary":"Create a referral offer for the selected reseller participant.","description":"Create a referral offer for the selected reseller participant.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Retry the same desired state and keep any idempotencyKey unchanged. The service retains ownership checks and existing reservation rules.","tags":["affiliates"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey","input"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","required":["policyId","name","idempotencyKey"],"properties":{"policyId":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"name":{"minLength":1,"maxLength":100,"type":"string"},"planId":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"eligiblePlans":{"anyOf":[{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"idempotencyKey":{"minLength":1,"maxLength":200,"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","input":{"policyId":"d10cab85-a13f-43df-9b06-de81996e4eae","name":"Example referral offer","idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae"}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt","id","url","namespace","commissionBps","status","createdAt","revokedAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"description":"vm_compute is the standard v2 product ID. A scoped compatibility response may return workspace_vm.","anyOf":[{"const":"vm_compute","type":"string"},{"const":"workspace_vm","type":"string"}]},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"},"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"url":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"reseller":{"type":"boolean"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"code":"AF-0123456789","name":"Example referral offer","productId":"vm_compute","planId":null,"discountBps":0,"durationMonths":0,"expiresAt":null,"id":"d10cab85-a13f-43df-9b06-de81996e4eae","url":"https://oblien.example.test/r/AF-0123456789","namespace":null,"commissionBps":0,"status":"pending","createdAt":null,"revokedAt":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.resellerCreateOffer","x-mcp-tool":"affiliates_reseller_create_offer","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/offers/{id}/revoke":{"post":{"operationId":"affiliates.resellerRevokeOffer","summary":"Revoke a referral offer for the selected reseller participant.","description":"Revoke a referral offer for the selected reseller participant.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Retry the same desired state and keep any idempotencyKey unchanged. The service retains ownership checks and existing reservation rules.","tags":["affiliates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"d10cab85-a13f-43df-9b06-de81996e4eae"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","properties":{}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt","id","url","namespace","commissionBps","status","createdAt","revokedAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"description":"vm_compute is the standard v2 product ID. A scoped compatibility response may return workspace_vm.","anyOf":[{"const":"vm_compute","type":"string"},{"const":"workspace_vm","type":"string"}]},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"},"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"url":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"reseller":{"type":"boolean"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"code":"AF-0123456789","name":"Example referral offer","productId":"vm_compute","planId":null,"discountBps":0,"durationMonths":0,"expiresAt":null,"id":"d10cab85-a13f-43df-9b06-de81996e4eae","url":"https://oblien.example.test/r/AF-0123456789","namespace":null,"commissionBps":0,"status":"pending","createdAt":null,"revokedAt":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.resellerRevokeOffer","x-mcp-tool":"affiliates_reseller_revoke_offer","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/referrals":{"get":{"operationId":"affiliates.resellerReferrals","summary":"Read referrals belonging to the selected reseller participant.","description":"Read referrals belonging to the selected reseller participant.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"production"}}},{"name":"participantKey","in":"query","required":true,"schema":{"pattern":"^[a-f0-9]{64}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["items","total"],"properties":{"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","offerId","namespace","customer","productId","planId","status","paidThrough","autoRenew","nextRenewalAt","joinedAt","rewardsUntil","lastPaymentAt","paidCycles","earned","currency"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"offerId":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"customer":{"anyOf":[{"type":"string"},{"type":"null"}]},"productId":{"description":"vm_compute is the standard v2 product ID. A scoped compatibility response may return workspace_vm.","anyOf":[{"const":"vm_compute","type":"string"},{"const":"workspace_vm","type":"string"}]},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"paidThrough":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"nextRenewalAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"joinedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"rewardsUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastPaymentAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"paidCycles":{"type":"number"},"earned":{"type":"number"},"currency":{"const":"usd","type":"string"}}}},"total":{"type":"number"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"items":[],"total":0}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":true,"x-mcp-tool":"affiliates_reseller_referrals","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/referrals/{id}/payments":{"get":{"operationId":"affiliates.resellerPayments","summary":"Read payments for a referral belonging to the selected reseller participant.","description":"Read payments for a referral belonging to the selected reseller participant.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"d10cab85-a13f-43df-9b06-de81996e4eae"}}},{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"production"}}},{"name":"participantKey","in":"query","required":true,"schema":{"pattern":"^[a-f0-9]{64}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["items","total"],"properties":{"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","currency","subtotal","discount","paid","commission","reversed","credited","periodStart","periodEnd","status"],"properties":{"id":{"type":"string"},"currency":{"const":"usd","type":"string"},"subtotal":{"type":"number"},"discount":{"type":"number"},"paid":{"type":"number"},"commission":{"type":"number"},"reversed":{"type":"number"},"credited":{"type":"number"},"periodStart":{"anyOf":[{"type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"}}}},"total":{"type":"number"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"items":[],"total":0}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":true,"x-mcp-tool":"affiliates_reseller_payments","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/payouts":{"get":{"operationId":"affiliates.payouts","summary":"List payouts belonging to the selected reseller participant.","description":"List payouts belonging to the selected reseller participant.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"namespace","in":"query","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"production"}}},{"name":"participantKey","in":"query","required":true,"schema":{"pattern":"^[a-f0-9]{64}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["items","total"],"properties":{"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","amountCents","currency","status","createdAt","updatedAt","destination"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"amountCents":{"type":"number"},"currency":{"const":"usd","type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"processing","type":"string"},{"const":"paid","type":"string"},{"const":"canceled","type":"string"},{"const":"rejected","type":"string"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"destination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]}}}},"total":{"type":"number"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"items":[],"total":0}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":true,"x-mcp-tool":"affiliates_reseller_payouts","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"affiliates.requestPayout","summary":"Reserve earned funds for a payout with an idempotent request key.","description":"Reserve earned funds for a payout with an idempotent request key.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Retry with the same idempotencyKey and amount. The existing payout reservation is reused; never create a new key to recover an ambiguous response.","tags":["affiliates"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey","input"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","required":["amountCents","idempotencyKey"],"properties":{"amountCents":{"minimum":100,"maximum":100000000,"type":"integer"},"destinationRevision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"idempotencyKey":{"minLength":16,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$","type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","input":{"amountCents":100,"idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae"}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["id","amountCents","currency","status","createdAt","updatedAt","destination"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"amountCents":{"type":"number"},"currency":{"const":"usd","type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"processing","type":"string"},{"const":"paid","type":"string"},{"const":"canceled","type":"string"},{"const":"rejected","type":"string"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"destination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"id":"d10cab85-a13f-43df-9b06-de81996e4eae","amountCents":100,"currency":"usd","status":"pending","createdAt":"2026-11-16T00:00:00.000Z","updatedAt":"2026-11-16T00:00:00.000Z","destination":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.requestPayout","x-mcp-tool":"affiliates_reseller_request_payout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/payouts/{id}/cancel":{"post":{"operationId":"affiliates.cancelPayout","summary":"Cancel a pending participant payout and release its reservation.","description":"Cancel a pending participant payout and release its reservation.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Retry the same desired state and keep any idempotencyKey unchanged. The service retains ownership checks and existing reservation rules.","tags":["affiliates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"d10cab85-a13f-43df-9b06-de81996e4eae"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","properties":{}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["id","amountCents","currency","status","createdAt","updatedAt","destination"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"amountCents":{"type":"number"},"currency":{"const":"usd","type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"processing","type":"string"},{"const":"paid","type":"string"},{"const":"canceled","type":"string"},{"const":"rejected","type":"string"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"destination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"id":"d10cab85-a13f-43df-9b06-de81996e4eae","amountCents":100,"currency":"usd","status":"canceled","createdAt":"2026-11-16T00:00:00.000Z","updatedAt":"2026-11-16T00:00:00.000Z","destination":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.cancelPayout","x-mcp-tool":"affiliates_reseller_cancel_payout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/payouts/{id}/review":{"post":{"operationId":"affiliates.reviewPayout","summary":"Record an audited payout review or completed transfer.","description":"Record an audited payout review or completed transfer.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Keep the operator and reason accurate. Inspect the current payout or participant state before retrying. Destination disclosure is audited.","tags":["affiliates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"d10cab85-a13f-43df-9b06-de81996e4eae"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey","input"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","required":["operator","reason","status"],"properties":{"operator":{"minLength":1,"maxLength":255,"type":"string"},"reason":{"minLength":1,"maxLength":500,"type":"string"},"status":{"anyOf":[{"const":"processing","type":"string"},{"const":"paid","type":"string"},{"const":"rejected","type":"string"}]},"paymentReference":{"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{5,127}$","type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","input":{"operator":"example-operator","reason":"Requested by the program owner","status":"processing"}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["id","amountCents","currency","status","createdAt","updatedAt","destination"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"amountCents":{"type":"number"},"currency":{"const":"usd","type":"string"},"status":{"anyOf":[{"const":"pending","type":"string"},{"const":"processing","type":"string"},{"const":"paid","type":"string"},{"const":"canceled","type":"string"},{"const":"rejected","type":"string"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"destination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"id":"d10cab85-a13f-43df-9b06-de81996e4eae","amountCents":100,"currency":"usd","status":"processing","createdAt":"2026-11-16T00:00:00.000Z","updatedAt":"2026-11-16T00:00:00.000Z","destination":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.reviewPayout","x-mcp-tool":"affiliates_reseller_review_payout","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/payout-destination":{"post":{"operationId":"affiliates.setPayoutDestination","summary":"Set an encrypted payout destination for a participant.","description":"Set an encrypted payout destination for a participant.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Each save creates a new destination revision. After an ambiguous response, inspect overview before retrying and use the latest revision for a payout request.","tags":["affiliates"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey","input"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","required":["destination"],"properties":{"destination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["method","accountName","identifier"],"properties":{"method":{"const":"paypal","type":"string"},"accountName":{"minLength":2,"maxLength":120,"type":"string"},"identifier":{"minLength":3,"maxLength":254,"type":"string"}}},{"additionalProperties":false,"type":"object","required":["method","accountName","identifier"],"properties":{"method":{"anyOf":[{"const":"wise","type":"string"},{"const":"payoneer","type":"string"}]},"accountName":{"minLength":2,"maxLength":120,"type":"string"},"identifier":{"maxLength":254,"type":"string"}}},{"additionalProperties":false,"type":"object","required":["method","accountName","country","bankName","accountNumber","bankCode","beneficiaryAddress"],"properties":{"method":{"const":"bank_transfer","type":"string"},"accountName":{"minLength":2,"maxLength":120,"type":"string"},"country":{"pattern":"^[A-Z]{2}$","type":"string"},"bankName":{"minLength":2,"maxLength":120,"type":"string"},"accountNumber":{"pattern":"^[A-Za-z0-9 ]{4,50}$","type":"string"},"bankCode":{"pattern":"^[A-Za-z0-9 -]{3,40}$","type":"string"},"beneficiaryAddress":{"minLength":5,"maxLength":300,"type":"string"},"bankAddress":{"maxLength":300,"type":"string"}}}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","input":{"destination":{"method":"paypal","accountName":"Example recipient","identifier":"recipient@example.test"}}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","method","accountName","label"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"method":{"type":"string"},"accountName":{"type":"string"},"label":{"type":"string"},"country":{"type":"string"}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":null}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.setPayoutDestination","x-mcp-tool":"affiliates_reseller_set_destination","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/billing/affiliates/reseller/payouts/{id}/destination":{"post":{"operationId":"affiliates.revealPayoutDestination","summary":"Read a payout destination with an audited operator and reason.","description":"Read a payout destination with an audited operator and reason.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Keep the operator and reason accurate. Inspect the current payout or participant state before retrying. Destination disclosure is audited.","tags":["affiliates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"d10cab85-a13f-43df-9b06-de81996e4eae"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey","input"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","required":["operator","reason"],"properties":{"operator":{"minLength":1,"maxLength":255,"type":"string"},"reason":{"minLength":1,"maxLength":500,"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","input":{"operator":"example-operator","reason":"Requested by the program owner"}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"anyOf":[{"additionalProperties":false,"type":"object","required":["revision","destination"],"properties":{"revision":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"destination":{"anyOf":[{"additionalProperties":false,"type":"object","required":["method","accountName","identifier"],"properties":{"method":{"const":"paypal","type":"string"},"accountName":{"minLength":2,"maxLength":120,"type":"string"},"identifier":{"minLength":3,"maxLength":254,"type":"string"}}},{"additionalProperties":false,"type":"object","required":["method","accountName","identifier"],"properties":{"method":{"anyOf":[{"const":"wise","type":"string"},{"const":"payoneer","type":"string"}]},"accountName":{"minLength":2,"maxLength":120,"type":"string"},"identifier":{"maxLength":254,"type":"string"}}},{"additionalProperties":false,"type":"object","required":["method","accountName","country","bankName","accountNumber","bankCode","beneficiaryAddress"],"properties":{"method":{"const":"bank_transfer","type":"string"},"accountName":{"minLength":2,"maxLength":120,"type":"string"},"country":{"pattern":"^[A-Z]{2}$","type":"string"},"bankName":{"minLength":2,"maxLength":120,"type":"string"},"accountNumber":{"pattern":"^[A-Za-z0-9 ]{4,50}$","type":"string"},"bankCode":{"pattern":"^[A-Za-z0-9 -]{3,40}$","type":"string"},"beneficiaryAddress":{"minLength":5,"maxLength":300,"type":"string"},"bankAddress":{"maxLength":300,"type":"string"}}}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":null}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.revealPayoutDestination","x-mcp-tool":"affiliates_reseller_reveal_destination","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/reseller/participant":{"post":{"operationId":"affiliates.updateParticipant","summary":"Update participant settings with an audited operator and reason.","description":"Update participant settings with an audited operator and reason.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Keep the operator and reason accurate. Inspect the current payout or participant state before retrying. Destination disclosure is audited.","tags":["affiliates"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace","participantKey","input"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"},"input":{"additionalProperties":false,"type":"object","required":["operator","reason","payoutMinimumCents","enabled"],"properties":{"operator":{"minLength":1,"maxLength":255,"type":"string"},"reason":{"minLength":1,"maxLength":500,"type":"string"},"payoutMinimumCents":{"minimum":100,"maximum":100000000,"type":"integer"},"enabled":{"type":"boolean"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","input":{"operator":"example-operator","reason":"Requested by the program owner","payoutMinimumCents":100,"enabled":false}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","scope","data"],"properties":{"success":{"const":true,"type":"boolean"},"scope":{"additionalProperties":false,"type":"object","required":["namespace","participantKey"],"properties":{"namespace":{"minLength":1,"maxLength":128,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},"participantKey":{"pattern":"^[a-f0-9]{64}$","type":"string"}}},"data":{"additionalProperties":false,"type":"object","required":["payoutMinimumCents","enabled"],"properties":{"payoutMinimumCents":{"type":"number"},"enabled":{"type":"boolean"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"scope":{"namespace":"production","participantKey":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},"data":{"payoutMinimumCents":0,"enabled":false}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"reseller","x-read-only":false,"x-audit-action":"affiliate.updateParticipant","x-mcp-tool":"affiliates_reseller_update_participant","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/catalog":{"get":{"operationId":"affiliates.catalog","summary":"Read affiliate policies and products available to this account.","description":"Read affiliate policies and products available to this account.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","policies","products"],"properties":{"success":{"const":true,"type":"boolean"},"policies":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","productId","planId","recipientUserId","namespace","commissionBps","durationMonths","reseller","minimumMonthlyCents","payoutMinimumCents"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"name":{"type":"string"},"productId":{"const":"vm_compute","type":"string"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"recipientUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"reseller":{"type":"boolean"},"minimumMonthlyCents":{"type":"number"},"payoutMinimumCents":{"type":"number"}}}},"products":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","plans"],"properties":{"id":{"const":"vm_compute","type":"string"},"name":{"type":"string"},"plans":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","capacity","monthlyAmount","currency"],"properties":{"id":{"type":"string"},"capacity":{"additionalProperties":false,"type":"object","required":["vcpus","memoryMb","diskGb"],"properties":{"vcpus":{"type":"number"},"memoryMb":{"type":"number"},"diskGb":{"type":"number"},"vms":{"type":"number"}}},"monthlyAmount":{"type":"number"},"currency":{"type":"string"}}}}}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"policies":[],"products":[]}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing","namespace"],"x-authorization-policy":"account","x-read-only":true,"x-mcp-tool":"affiliates_catalog","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/summary":{"get":{"operationId":"affiliates.summary","summary":"Read earnings in the authorized account or namespace.","description":"Read earnings in the authorized account or namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","summary"],"properties":{"success":{"const":true,"type":"boolean"},"summary":{"additionalProperties":false,"type":"object","required":["currency","earned","reversed","credited","referrals","converted"],"properties":{"currency":{"const":"usd","type":"string"},"earned":{"type":"number"},"reversed":{"type":"number"},"credited":{"type":"number"},"referrals":{"type":"number"},"converted":{"type":"number"}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"summary":{"currency":"usd","earned":0,"reversed":0,"credited":0,"referrals":0,"converted":0}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing","namespace"],"x-authorization-policy":"account","x-read-only":true,"x-mcp-tool":"affiliates_summary","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/offers":{"get":{"operationId":"affiliates.offers","summary":"List owned referral offers.","description":"List owned referral offers.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","items","total"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt","id","url","namespace","commissionBps","status","createdAt","revokedAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"const":"vm_compute","type":"string"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"},"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"url":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"reseller":{"type":"boolean"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"total":{"type":"number"}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"items":[],"total":0}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing","namespace"],"x-authorization-policy":"account","x-read-only":true,"x-mcp-tool":"affiliates_offers","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"affiliates.createOffer","summary":"Create an owned referral offer under an existing policy.","description":"Create an owned referral offer under an existing policy.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Retry the same desired state and keep any idempotencyKey unchanged. The service retains ownership checks and existing reservation rules.","tags":["affiliates"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["policyId","name","idempotencyKey"],"properties":{"policyId":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"name":{"minLength":1,"maxLength":100,"type":"string"},"namespace":{"anyOf":[{"minLength":1,"maxLength":255,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"},{"type":"null"}]},"planId":{"anyOf":[{"maxLength":128,"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"eligiblePlans":{"anyOf":[{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"idempotencyKey":{"minLength":1,"maxLength":200,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"policyId":"d10cab85-a13f-43df-9b06-de81996e4eae","name":"Example referral offer","idempotencyKey":"d10cab85-a13f-43df-9b06-de81996e4eae"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","offer"],"properties":{"success":{"const":true,"type":"boolean"},"offer":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt","id","url","namespace","commissionBps","status","createdAt","revokedAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"const":"vm_compute","type":"string"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"},"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"url":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"reseller":{"type":"boolean"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"offer":{"code":"AF-0123456789","name":"Example referral offer","productId":"vm_compute","planId":null,"discountBps":0,"durationMonths":0,"expiresAt":null,"id":"d10cab85-a13f-43df-9b06-de81996e4eae","url":"https://oblien.example.test/r/AF-0123456789","namespace":"production","commissionBps":0,"status":"active","createdAt":null,"revokedAt":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing","namespace"],"x-authorization-policy":"account","x-read-only":false,"x-audit-action":"affiliate.createOffer","x-mcp-tool":"affiliates_create_offer","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/offers/{id}/revoke":{"post":{"operationId":"affiliates.revokeOffer","summary":"Revoke an owned referral offer.","description":"Revoke an owned referral offer.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Retry the same desired state and keep any idempotencyKey unchanged. The service retains ownership checks and existing reservation rules.","tags":["affiliates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"d10cab85-a13f-43df-9b06-de81996e4eae"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","offer"],"properties":{"success":{"const":true,"type":"boolean"},"offer":{"additionalProperties":false,"type":"object","required":["code","name","productId","planId","discountBps","durationMonths","expiresAt","id","url","namespace","commissionBps","status","createdAt","revokedAt"],"properties":{"code":{"type":"string"},"name":{"type":"string"},"productId":{"const":"vm_compute","type":"string"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"discountBps":{"minimum":0,"maximum":10000,"type":"integer"},"durationMonths":{"type":"number"},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligiblePlans":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["planId","intervals"],"properties":{"planId":{"pattern":"^vm:[0-9.]+:[0-9]+:[0-9]+$","type":"string"},"intervals":{"minItems":1,"maxItems":2,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"monthly","type":"string"},{"const":"annual","type":"string"}]}}}}},"minimumMonthlyCents":{"type":"number"},"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"url":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"commissionBps":{"minimum":0,"maximum":10000,"type":"integer"},"reseller":{"type":"boolean"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"revokedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"offer":{"code":"AF-0123456789","name":"Example referral offer","productId":"vm_compute","planId":null,"discountBps":0,"durationMonths":0,"expiresAt":null,"id":"d10cab85-a13f-43df-9b06-de81996e4eae","url":"https://oblien.example.test/r/AF-0123456789","namespace":"production","commissionBps":0,"status":"revoked","createdAt":null,"revokedAt":null}}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing","namespace"],"x-authorization-policy":"account","x-read-only":false,"x-audit-action":"affiliate.revokeOffer","x-mcp-tool":"affiliates_revoke_offer","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/referrals":{"get":{"operationId":"affiliates.referrals","summary":"List owned referrals and masked customer identities.","description":"List owned referrals and masked customer identities.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","items","total"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","offerId","namespace","customer","productId","planId","status","paidThrough","autoRenew","nextRenewalAt","joinedAt","rewardsUntil","lastPaymentAt","paidCycles","earned","currency"],"properties":{"id":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"offerId":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"customer":{"anyOf":[{"type":"string"},{"type":"null"}]},"productId":{"const":"vm_compute","type":"string"},"planId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"paidThrough":{"anyOf":[{"type":"string"},{"type":"null"}]},"autoRenew":{"type":"boolean"},"nextRenewalAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"joinedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"rewardsUntil":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastPaymentAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"paidCycles":{"type":"number"},"earned":{"type":"number"},"currency":{"const":"usd","type":"string"}}}},"total":{"type":"number"}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"items":[],"total":0}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing","namespace"],"x-authorization-policy":"account","x-read-only":true,"x-mcp-tool":"affiliates_referrals","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/billing/affiliates/referrals/{id}/payments":{"get":{"operationId":"affiliates.payments","summary":"Read receipts for an owned referral.","description":"Read receipts for an owned referral.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Examples contain synthetic participant keys, referral codes and amounts. A program or participant cannot be selected outside the authenticated owner.\n\n- Remote OAuth consent and shared account membership do not grant financial authority. Reseller participant operations require an admin or billing credential; account affiliate reads may use a namespace credential.\n\nRetry guidance: Safe to retry. Reads never reserve or transfer earnings.","tags":["affiliates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":"d10cab85-a13f-43df-9b06-de81996e4eae"}}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":100000,"type":"integer"}},{"name":"offerId","in":"query","required":false,"schema":{"pattern":"^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","type":"string"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","items","total"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","currency","subtotal","discount","paid","commission","reversed","credited","periodStart","periodEnd","status"],"properties":{"id":{"type":"string"},"currency":{"const":"usd","type":"string"},"subtotal":{"type":"number"},"discount":{"type":"number"},"paid":{"type":"number"},"commission":{"type":"number"},"reversed":{"type":"number"},"credited":{"type":"number"},"periodStart":{"anyOf":[{"type":"string"},{"type":"null"}]},"periodEnd":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"}}}},"total":{"type":"number"}}},"examples":{"example1":{"summary":"Synthetic affiliate contract example","value":{"success":true,"items":[],"total":0}}}}}},"404":{"description":"affiliate_not_found: The owned record is unavailable.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"affiliate_rate_limit: Wait one minute before retrying.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing","namespace"],"x-authorization-policy":"account","x-read-only":true,"x-mcp-tool":"affiliates_payments","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/oauth/consents/{id}":{"get":{"operationId":"credentials.oauth.consent","summary":"Review the application, audience and requested permissions before consent","description":"Review the application, audience and requested permissions before consent","tags":["credentials"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["requestId","client","accountId","resource","expiresAt","permissions"],"properties":{"requestId":{"type":"string"},"client":{"additionalProperties":false,"type":"object","required":["id","redirectUri"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"redirectUri":{"type":"string"}}},"accountId":{"type":"string"},"resource":{"type":"string"},"expiresAt":{"minimum":0,"type":"integer"},"permissions":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["scope","description"],"properties":{"scope":{"type":"string"},"description":{"type":"string"}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"login","x-read-only":true},"post":{"operationId":"credentials.oauth.decide","summary":"Approve or deny a scoped MCP connection","description":"Approve or deny a scoped MCP connection","tags":["credentials"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["approved","scopes","binding"],"properties":{"approved":{"type":"boolean"},"scopes":{"maxItems":32,"uniqueItems":true,"type":"array","items":{"type":"string"}},"binding":{"anyOf":[{"additionalProperties":false,"type":"object","required":["kind"],"properties":{"kind":{"const":"account","type":"string"}}},{"additionalProperties":false,"type":"object","required":["kind","namespace"],"properties":{"kind":{"const":"namespace","type":"string"},"namespace":{"minLength":1,"maxLength":128,"type":"string"}}},{"additionalProperties":false,"type":"object","required":["kind","vmId"],"properties":{"kind":{"const":"vm","type":"string"},"vmId":{"minLength":1,"maxLength":128,"type":"string"}}}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["redirectUrl"],"properties":{"redirectUrl":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"login","x-read-only":false,"x-audit-action":"oauth.consent"}},"/oauth/connections":{"get":{"operationId":"credentials.oauth.connections","summary":"List MCP connections granted by the signed-in user","description":"List MCP connections granted by the signed-in user","tags":["credentials"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","clientId","clientName","accountId","namespace","vmId","scopes","createdAt","expiresAt","revokedAt"],"properties":{"id":{"type":"string"},"clientId":{"type":"string"},"clientName":{"anyOf":[{"type":"string"},{"type":"null"}]},"accountId":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"vmId":{"anyOf":[{"type":"string"},{"type":"null"}]},"scopes":{"type":"array","items":{"type":"string"}},"createdAt":{"minimum":0,"type":"integer"},"expiresAt":{"minimum":0,"type":"integer"},"revokedAt":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"login","x-read-only":true}},"/oauth/connections/{id}":{"delete":{"operationId":"credentials.oauth.revoke","summary":"Revoke a connection and its derived tokens","description":"Revoke a connection and its derived tokens","tags":["credentials"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"login","x-read-only":false,"x-audit-action":"oauth.revoke"}},"/settings/profile":{"get":{"operationId":"settings.profile","summary":"Read the signed-in owner’s profile","description":"Read the signed-in owner’s profile","tags":["settings"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","user"],"properties":{"success":{"const":true,"type":"boolean"},"user":{"additionalProperties":false,"type":"object","required":["id","name","email","image","initials","createdAt"],"properties":{"id":{"anyOf":[{"type":"string"},{"minimum":1,"type":"integer"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"initials":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true},"put":{"operationId":"settings.profile.update","summary":"Update the signed-in owner’s name or profile image","description":"Update the signed-in owner’s name or profile image","tags":["settings"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"minLength":1,"maxLength":100,"type":"string"},"image":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","user","message"],"properties":{"success":{"const":true,"type":"boolean"},"user":{"additionalProperties":false,"type":"object","required":["id","name","email","image","initials","createdAt"],"properties":{"id":{"anyOf":[{"type":"string"},{"minimum":1,"type":"integer"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"initials":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":false,"x-audit-action":"settings.profile.update"}},"/settings/linked-accounts":{"get":{"operationId":"settings.linkedAccounts","summary":"Read the signed-in owner’s linked sign-in accounts","description":"Read the signed-in owner’s linked sign-in accounts","tags":["settings"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","accounts"],"properties":{"success":{"const":true,"type":"boolean"},"accounts":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","icon","description","connected","username","connectedAt"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"icon":{"type":"string"},"description":{"type":"string"},"connected":{"type":"boolean"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"connectedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true}},"/settings/account/delete":{"delete":{"operationId":"settings.account.delete","summary":"Validate the existing account deletion request and two-factor requirement","description":"Validate the existing account deletion request and two-factor requirement","tags":["settings"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"token":{"minLength":1,"maxLength":128,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":false,"x-audit-action":"settings.account.delete"}},"/settings/vms/notifications":{"get":{"operationId":"settings.notifications","summary":"Read personal VM notification preferences","description":"Read personal VM notification preferences","tags":["settings"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","preferences"],"properties":{"success":{"const":true,"type":"boolean"},"preferences":{"additionalProperties":false,"type":"object","required":["vm_stopped","resource_abuse","low_credits","vm_error","snapshot_ready","email_notifications"],"properties":{"vm_stopped":{"type":"boolean"},"resource_abuse":{"type":"boolean"},"low_credits":{"type":"boolean"},"vm_error":{"type":"boolean"},"snapshot_ready":{"type":"boolean"},"email_notifications":{"type":"boolean"}}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true},"put":{"operationId":"settings.notifications.update","summary":"Update personal VM notification preferences","description":"Update personal VM notification preferences","tags":["settings"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"vm_stopped":{"type":"boolean"},"resource_abuse":{"type":"boolean"},"low_credits":{"type":"boolean"},"vm_error":{"type":"boolean"},"snapshot_ready":{"type":"boolean"},"email_notifications":{"type":"boolean"}},"minProperties":1}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","preferences","message"],"properties":{"success":{"const":true,"type":"boolean"},"preferences":{"additionalProperties":false,"type":"object","required":["vm_stopped","resource_abuse","low_credits","vm_error","snapshot_ready","email_notifications"],"properties":{"vm_stopped":{"type":"boolean"},"resource_abuse":{"type":"boolean"},"low_credits":{"type":"boolean"},"vm_error":{"type":"boolean"},"snapshot_ready":{"type":"boolean"},"email_notifications":{"type":"boolean"}}},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"requires2FA":{"type":"boolean"},"validKeys":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":false,"x-audit-action":"settings.notifications.update"}},"/analytics/home/summary":{"get":{"operationId":"analytics.summary","summary":"Read account or namespace HTTP analytics totals","description":"Read HTTP request and bandwidth totals for the authorized account or namespace, including disabled routes.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only traffic attributed to the authorized route claim is returned; previous owners’ traffic is excluded.\n\nRetry guidance: Retry transient service errors with backoff. Permission and validation errors require corrected credentials or input.","tags":["analytics"],"parameters":[{"name":"ns","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["domains","totals"],"properties":{"domains":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["domain","requests","bandwidth_in","bandwidth_out","response_time_sum","successes","client_errors","server_errors","other_responses"],"properties":{"domain":{"type":"string"},"requests":{"type":"number"},"bandwidth_in":{"type":"number"},"bandwidth_out":{"type":"number"},"response_time_sum":{"type":"number"},"successes":{"type":"number"},"client_errors":{"type":"number"},"server_errors":{"type":"number"},"other_responses":{"type":"number"}}}},"totals":{"additionalProperties":false,"type":"object","required":["requests","bandwidth_in","bandwidth_out","response_time_sum","successes","client_errors","server_errors","other_responses","domain_count"],"properties":{"requests":{"type":"number"},"bandwidth_in":{"type":"number"},"bandwidth_out":{"type":"number"},"response_time_sum":{"type":"number"},"successes":{"type":"number"},"client_errors":{"type":"number"},"server_errors":{"type":"number"},"other_responses":{"type":"number"},"domain_count":{"type":"number"}}}}}}},"examples":{"example1":{"summary":"Read authorized analytics","value":{"success":true,"data":{"domains":[],"totals":{"requests":0,"bandwidth_in":0,"bandwidth_out":0,"response_time_sum":0,"successes":0,"client_errors":0,"server_errors":0,"other_responses":0,"domain_count":0}}}}}}}},"403":{"description":"namespace_mismatch: The owned hostname belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname is absent or is not owned by the authenticated account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["analytics.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"analytics:read","x-read-only":true,"x-mcp-tool":"analytics_summary","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/analytics/vms/{vmId}/transport":{"get":{"operationId":"analytics.transport","summary":"Read hourly VM native TCP transport counters","description":"Read non-billable hourly native TCP transport counters for an authorized VM. Counters are decimal strings to preserve precision.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only traffic attributed to the authorized route claim is returned; previous owners’ traffic is excluded.\n\n- Transport from/to use Unix seconds, unlike HTTP request analytics. The maximum range is 31 days.\n\nRetry guidance: Retry transient service errors with backoff. Permission and validation errors require corrected credentials or input.","tags":["analytics"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Read authorized analytics","value":"a4ed6a88d9865a5e"}}},{"name":"from","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read authorized analytics","value":1794787200}}},{"name":"to","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read authorized analytics","value":1794790800}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","meta"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["protocol","hour_ts","bytes_in","bytes_out","connections_opened","connections_closed","connection_ms"],"properties":{"protocol":{"type":"string"},"hour_ts":{"anyOf":[{"type":"number"},{"pattern":"^[0-9]+$","type":"string"}]},"bytes_in":{"pattern":"^[0-9]+$","type":"string"},"bytes_out":{"pattern":"^[0-9]+$","type":"string"},"connections_opened":{"pattern":"^[0-9]+$","type":"string"},"connections_closed":{"pattern":"^[0-9]+$","type":"string"},"connection_ms":{"pattern":"^[0-9]+$","type":"string"}}}},"meta":{"additionalProperties":false,"type":"object","required":["interval","from","to","byte_unit","counter_encoding","billing"],"properties":{"interval":{"const":"hour","type":"string"},"from":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"to":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"byte_unit":{"const":"stream_bytes","type":"string"},"counter_encoding":{"const":"decimal_string","type":"string"},"billing":{"const":false,"type":"boolean"}}}}},"examples":{"example1":{"summary":"Read authorized analytics","value":{"success":true,"data":[],"meta":{"interval":"hour","from":1794787200,"to":1794790800,"byte_unit":"stream_bytes","counter_encoding":"decimal_string","billing":false}}}}}}},"400":{"description":"invalid_range: Use Unix seconds and a range of at most 31 days.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"usage_unavailable: Transport usage cannot currently be read.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.read"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"analytics:transport","x-read-only":true,"x-mcp-tool":"vm_transport_usage","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/analytics/{domain}":{"get":{"operationId":"analytics.unified","summary":"Read combined HTTP request analytics for a hostname","description":"Read additive HTTP request, bandwidth, duration and status counters. No individual request history is collected.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only traffic attributed to the authorized route claim is returned; previous owners’ traffic is excluded.\n\n- HTTP request analytics uses Unix milliseconds. Hour/day rollups use Unix seconds in bucket timestamps. Ranges are limited to 90 days.\n\n- Stored counters retain observed maxima when an older flush or lost Redis minutes would otherwise lower them. They are not an exact event ledger: lost increments and traffic inside a historical hour cannot be reconstructed. Average response duration is response_time_sum divided by requests; the sum is in seconds. Status counters classify the effective gateway/application status. Historical buckets from before status collection began have no status observations.\n\nRetry guidance: Retry transient service errors with backoff. Permission and validation errors require corrected credentials or input.","tags":["analytics"],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Read authorized analytics","value":"example.test"}}},{"name":"ns","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"from","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read authorized analytics","value":1794787200000}}},{"name":"to","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read authorized analytics","value":1794790800000}}},{"name":"interval","in":"query","required":false,"schema":{"anyOf":[{"const":"minute","type":"string"},{"const":"hour","type":"string"},{"const":"day","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","meta"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["overview","timeseries"],"properties":{"overview":{"additionalProperties":false,"type":"object","required":["requests","bandwidth_in","bandwidth_out","response_time_sum","successes","client_errors","server_errors","other_responses"],"properties":{"requests":{"type":"number"},"bandwidth_in":{"type":"number"},"bandwidth_out":{"type":"number"},"response_time_sum":{"type":"number"},"successes":{"type":"number"},"client_errors":{"type":"number"},"server_errors":{"type":"number"},"other_responses":{"type":"number"}}},"timeseries":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["requests","bandwidth_in","bandwidth_out","response_time_sum","successes","client_errors","server_errors","other_responses","timestamp"],"properties":{"requests":{"type":"number"},"bandwidth_in":{"type":"number"},"bandwidth_out":{"type":"number"},"response_time_sum":{"type":"number"},"successes":{"type":"number"},"client_errors":{"type":"number"},"server_errors":{"type":"number"},"other_responses":{"type":"number"},"timestamp":{"type":"number"}}}}}},"meta":{"additionalProperties":false,"type":"object","required":["domains","from","to","interval","timeseries_count"],"properties":{"domains":{"type":"array","items":{"type":"string"}},"from":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"to":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"interval":{"anyOf":[{"const":"minute","type":"string"},{"const":"hour","type":"string"},{"const":"day","type":"string"}]},"timeseries_count":{"type":"number"}}}}},"examples":{"example1":{"summary":"Read authorized analytics","value":{"success":true,"data":{"overview":{"requests":0,"bandwidth_in":0,"bandwidth_out":0,"response_time_sum":0,"successes":0,"client_errors":0,"server_errors":0,"other_responses":0},"timeseries":[]},"meta":{"domains":["example.test"],"from":1794787200000,"to":1794790800000,"interval":"minute","timeseries_count":0}}}}}}},"403":{"description":"namespace_mismatch: The owned hostname belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname is absent or is not owned by the authenticated account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["analytics.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"analytics:read","x-read-only":true,"x-mcp-tool":"analytics_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/analytics/{domain}/overview":{"get":{"operationId":"analytics.overview","summary":"Read HTTP counters for a hostname","description":"Read HTTP request and bandwidth counters for one exact owned hostname. Root and www hostnames remain distinct.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only traffic attributed to the authorized route claim is returned; previous owners’ traffic is excluded.\n\nRetry guidance: Retry transient service errors with backoff. Permission and validation errors require corrected credentials or input.","tags":["analytics"],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Read authorized analytics","value":"example.test"}}},{"name":"ns","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","meta"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["requests","bandwidth_in","bandwidth_out","response_time_sum","successes","client_errors","server_errors","other_responses"],"properties":{"requests":{"type":"number"},"bandwidth_in":{"type":"number"},"bandwidth_out":{"type":"number"},"response_time_sum":{"type":"number"},"successes":{"type":"number"},"client_errors":{"type":"number"},"server_errors":{"type":"number"},"other_responses":{"type":"number"}}},"meta":{"additionalProperties":false,"type":"object","required":["domains"],"properties":{"domains":{"type":"array","items":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Read authorized analytics","value":{"success":true,"data":{"requests":0,"bandwidth_in":0,"bandwidth_out":0,"response_time_sum":0,"successes":0,"client_errors":0,"server_errors":0,"other_responses":0},"meta":{"domains":["example.test"]}}}}}}},"403":{"description":"namespace_mismatch: The owned hostname belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname is absent or is not owned by the authenticated account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["analytics.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"analytics:read","x-read-only":true,"x-mcp-tool":"analytics_overview","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/analytics/{domain}/timeseries":{"get":{"operationId":"analytics.timeseries","summary":"Read HTTP request time buckets for a hostname","description":"Read HTTP request time buckets for one exact owned hostname.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Only traffic attributed to the authorized route claim is returned; previous owners’ traffic is excluded.\n\n- HTTP request analytics uses Unix milliseconds. Hour/day rollups use Unix seconds in bucket timestamps. Ranges are limited to 90 days.\n\n- Stored counters retain observed maxima when an older flush or lost Redis minutes would otherwise lower them. They are not an exact event ledger: lost increments and traffic inside a historical hour cannot be reconstructed. Average response duration is response_time_sum divided by requests; the sum is in seconds. Status counters classify the effective gateway/application status. Historical buckets from before status collection began have no status observations.\n\nRetry guidance: Retry transient service errors with backoff. Permission and validation errors require corrected credentials or input.","tags":["analytics"],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Read authorized analytics","value":"example.test"}}},{"name":"ns","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"}},{"name":"from","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read authorized analytics","value":1794787200000}}},{"name":"to","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read authorized analytics","value":1794790800000}}},{"name":"interval","in":"query","required":false,"schema":{"anyOf":[{"const":"minute","type":"string"},{"const":"hour","type":"string"},{"const":"day","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","meta"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["requests","bandwidth_in","bandwidth_out","response_time_sum","successes","client_errors","server_errors","other_responses","timestamp"],"properties":{"requests":{"type":"number"},"bandwidth_in":{"type":"number"},"bandwidth_out":{"type":"number"},"response_time_sum":{"type":"number"},"successes":{"type":"number"},"client_errors":{"type":"number"},"server_errors":{"type":"number"},"other_responses":{"type":"number"},"timestamp":{"type":"number"}}}},"meta":{"additionalProperties":false,"type":"object","required":["from","to","interval","count"],"properties":{"from":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"to":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"interval":{"anyOf":[{"const":"minute","type":"string"},{"const":"hour","type":"string"},{"const":"day","type":"string"}]},"count":{"type":"number"}}}}},"examples":{"example1":{"summary":"Read authorized analytics","value":{"success":true,"data":[],"meta":{"from":1794787200000,"to":1794790800000,"interval":"hour","count":0}}}}}}},"403":{"description":"namespace_mismatch: The owned hostname belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname is absent or is not owned by the authenticated account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["analytics.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"analytics:read","x-read-only":true,"x-mcp-tool":"analytics_timeseries","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/limits":{"get":{"operationId":"limits.usage","summary":"Read authorized resource and traffic usage limits","description":"Read the account tier, resource counts and monthly traffic usage. A namespace credential receives only its bound namespace counts and traffic.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Usage is an inspection snapshot, not a reservation or authorization to create a resource. Creation performs its own atomic admission check.\n\n- Traffic status unverified means the last recorded usage remains visible while accounting requires verification. New capped resource creation stays blocked until verified; existing routes retain their last committed availability state.\n\n- traffic.accounting describes the persisted quota basis and boundary allocation, not live event completeness. used_bytes is the last recorded quota value, including any preserved cutover baseline; zero with unverified accounting is not proof of no traffic.\n\n- The current quota basis is daily totals. A partial first or final day is unverified unless consistent hourly detail proves the daily selection excludes only outside traffic and includes only inside traffic. Historical bytes inside a straddling hour cannot be allocated to exact billing seconds from these aggregates.\n\n- An existing over_limit status and recorded debt are retained even when accounting.state is unverified. Neither inspection nor failed reconciliation clears that block.\n\nRetry guidance: Retry transient service errors with backoff. Correct authorization failures before retrying.","tags":["limits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","tier","custom_domains","resources","traffic","namespaces"],"properties":{"success":{"const":true,"type":"boolean"},"tier":{"type":"string"},"custom_domains":{"type":"boolean"},"resources":{"additionalProperties":false,"type":"object","required":["edge_tunnel","page","edge_proxy"],"properties":{"edge_tunnel":{"additionalProperties":false,"type":"object","required":["label","used","limit"],"properties":{"label":{"type":"string"},"used":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+$","type":"string"}]},"limit":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]}}},"page":{"additionalProperties":false,"type":"object","required":["label","used","limit"],"properties":{"label":{"type":"string"},"used":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+$","type":"string"}]},"limit":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]}}},"edge_proxy":{"additionalProperties":false,"type":"object","required":["label","used","limit"],"properties":{"label":{"type":"string"},"used":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+$","type":"string"}]},"limit":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]}}}}},"traffic":{"additionalProperties":false,"type":"object","required":["used_bytes","limit_bytes","status","period_start","period_end","accounting"],"properties":{"used_bytes":{"minimum":0,"type":"number"},"limit_bytes":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]},"status":{"type":"string"},"period_start":{"type":"string"},"period_end":{"type":"string"},"accounting":{"additionalProperties":false,"type":"object","required":["state","reason","resolution_seconds","used_bytes_source"],"properties":{"state":{"anyOf":[{"const":"verified","type":"string"},{"const":"unverified","type":"string"}]},"reason":{"anyOf":[{"type":"null"},{"const":"cutover_unverified","type":"string"},{"const":"period_boundary_unresolved","type":"string"}]},"resolution_seconds":{"const":86400,"type":"number"},"used_bytes_source":{"const":"last_recorded","type":"string"}}}}},"namespaces":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["namespace","counts"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"counts":{"additionalProperties":false,"type":"object","required":["edge_tunnel","page","edge_proxy"],"properties":{"edge_tunnel":{"additionalProperties":false,"type":"object","required":["used","limit"],"properties":{"used":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+$","type":"string"}]},"limit":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]}}},"page":{"additionalProperties":false,"type":"object","required":["used","limit"],"properties":{"used":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+$","type":"string"}]},"limit":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]}}},"edge_proxy":{"additionalProperties":false,"type":"object","required":["used","limit"],"properties":{"used":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+$","type":"string"}]},"limit":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]}}}}}}}}}},"examples":{"example1":{"summary":"Read current usage","value":{"success":true,"tier":"free","custom_domains":false,"resources":{"edge_tunnel":{"label":"Tunnels","used":0,"limit":null},"page":{"label":"Pages","used":0,"limit":null},"edge_proxy":{"label":"Proxies","used":0,"limit":null}},"traffic":{"used_bytes":0,"limit_bytes":null,"status":"ok","period_start":"2026-11-01T00:00:00.000Z","period_end":"2026-12-01T00:00:00.000Z","accounting":{"state":"verified","reason":null,"resolution_seconds":86400,"used_bytes_source":"last_recorded"}},"namespaces":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["account.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"limits:read","x-read-only":true,"x-mcp-tool":"account_limits","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/disks":{"get":{"operationId":"disks.list","summary":"List managed storage in the authorized account or namespace","description":"List managed storage in the authorized account or namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\nRetry guidance: Safe to repeat for current state.","tags":["disks"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_-]+$","type":"string"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","disks"],"properties":{"success":{"const":true,"type":"boolean"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"examples":{"example1":{"summary":"List managed storage in the authorized account or namespace.","value":{"success":true,"disks":[{"id":"d_0000000000000001","name":"Example disk","namespace":"example","kind":"data","format":"ext4","size_mb":128,"allocated_bytes":0,"state":"ready","immutable":false,"retain":true,"ownership":"private","permissions":{"attach":true,"detach":true,"clone":true,"save":true,"move":true,"resize":true,"delete":true,"fork":false,"create_vm":false},"root_image":null,"operation_id":null,"error":null,"attachments":[],"created_at":null,"updated_at":null}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:account","x-read-only":true,"x-mcp-tool":"disk_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"disks.create","summary":"Create a managed disk within existing storage capacity","description":"Create a managed disk within existing storage capacity.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["name","size_mb"],"properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"size_mb":{"minimum":64,"maximum":1048576,"type":"integer"},"namespace":{"anyOf":[{"minLength":1,"maxLength":255,"pattern":"^[A-Za-z0-9_-]+$","type":"string"},{"type":"null"}]},"format":{"anyOf":[{"const":"ext4","type":"string"},{"const":"raw","type":"string"}]},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Create a managed disk within existing storage capacity.","value":{"name":"Example disk","size_mb":128,"idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Create a managed disk within existing storage capacity.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"create","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:account","x-read-only":false,"x-audit-action":"disks.create","x-mcp-tool":"disk_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/library":{"get":{"operationId":"disks.software","summary":"List system software, optionally filtered by a VM image","description":"List system software, optionally filtered by a VM image.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\nRetry guidance: Safe to repeat for current state.","tags":["disks"],"parameters":[{"name":"vm_id","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"image","in":"query","required":false,"schema":{"minLength":1,"maxLength":1024,"description":"List software recommended for this base image before creating a VM.","type":"string"},"description":"List software recommended for this base image before creating a VM."}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","software"],"properties":{"success":{"const":true,"type":"boolean"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","label","description","logo","ownership","read_only","kind","format","size_mb","compatible_os","compatible_images","attachment","presets"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"ownership":{"type":"string"},"read_only":{"type":"boolean"},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"compatible_os":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["family"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}}},"compatible_images":{"type":"array","items":{"type":"string"}},"attachment":{"additionalProperties":false,"type":"object","required":["read_only"],"properties":{"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}},"presets":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","label","image"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"image":{"type":"string"}}}}}}}}},"examples":{"example1":{"summary":"List system software, optionally filtered by a VM image.","value":{"success":true,"software":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:account","x-read-only":true,"x-mcp-tool":"disk_software","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/disks/library/{softwareId}/attach":{"post":{"operationId":"disks.software.attach","summary":"Attach compatible read-only system software to a stopped VM","description":"Attach compatible read-only system software to a stopped VM.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"softwareId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Attach compatible read-only system software to a stopped VM.","value":"example-software"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["vm_id"],"properties":{"vm_id":{"minLength":1,"maxLength":255,"type":"string"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Attach compatible read-only system software to a stopped VM.","value":{"vm_id":"example-vm","idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Attach compatible read-only system software to a stopped VM.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"attach","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:account","x-read-only":false,"x-audit-action":"disks.software.attach","x-mcp-tool":"disk_software_attach","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/operations/{operationId}":{"get":{"operationId":"disks.operation.get","summary":"Inspect a durable storage operation","description":"Inspect a durable storage operation.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\nRetry guidance: Safe to repeat for current state.","tags":["disks"],"parameters":[{"name":"operationId","in":"path","required":true,"schema":{"pattern":"^dop_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Inspect a durable storage operation.","value":"dop_0000000000000001"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","operation"],"properties":{"success":{"const":true,"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}}}},"examples":{"example1":{"summary":"Inspect a durable storage operation.","value":{"success":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"create","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:operation","x-read-only":true,"x-mcp-tool":"disk_operation","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/disks/operations/{operationId}/retry":{"post":{"operationId":"disks.operation.retry","summary":"Retry a failed durable storage operation","description":"Retry a failed durable storage operation.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\nRetry guidance: Retry only a failed operation; inspect current state before retrying.","tags":["disks"],"parameters":[{"name":"operationId","in":"path","required":true,"schema":{"pattern":"^dop_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Retry a failed durable storage operation.","value":"dop_0000000000000001"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","operation"],"properties":{"success":{"const":true,"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}}}},"examples":{"example1":{"summary":"Retry a failed durable storage operation.","value":{"success":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"create","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:operation","x-read-only":false,"x-audit-action":"disks.operation.retry","x-mcp-tool":"disk_operation_retry","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/vms/{vmId}":{"get":{"operationId":"disks.vm","summary":"Read managed disks attached to an authorized VM","description":"Read managed disks attached to an authorized VM.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\nRetry guidance: Safe to repeat for current state.","tags":["disks"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Read managed disks attached to an authorized VM.","value":"example-vm"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","disks","operation_id"],"properties":{"success":{"const":true,"type":"boolean"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Read managed disks attached to an authorized VM.","value":{"success":true,"disks":[],"operation_id":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"disk:vm-read","x-read-only":true,"x-mcp-tool":"disk_vm_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/disks/vms/{vmId}/saved-execution":{"delete":{"operationId":"disks.vm.discardSavedExecution","summary":"Discard saved RAM so stopped VM storage can be changed","description":"Discard saved RAM so stopped VM storage can be changed.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\nRetry guidance: Discarding saved RAM cannot be undone; inspect current state before retrying.","tags":["disks"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Discard saved RAM so stopped VM storage can be changed.","value":"example-vm"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Discard saved RAM so stopped VM storage can be changed.","value":{"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:vm","x-read-only":false,"x-audit-action":"disks.vm.discardSavedExecution","x-mcp-tool":"disk_vm_discard_execution","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/vms/{vmId}/root":{"post":{"operationId":"disks.vm.root","summary":"Retain a stopped VM root as a managed disk","description":"Retain a stopped VM root as a managed disk.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Retain a stopped VM root as a managed disk.","value":"example-vm"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Retain a stopped VM root as a managed disk.","value":{"idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Retain a stopped VM root as a managed disk.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"root","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:vm","x-read-only":false,"x-audit-action":"disks.vm.root","x-mcp-tool":"disk_vm_retain_root","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}":{"get":{"operationId":"disks.get","summary":"Read a managed disk and its current attachments","description":"Read a managed disk and its current attachments.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\nRetry guidance: Safe to repeat for current state.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Read a managed disk and its current attachments.","value":"d_0000000000000001"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","disk"],"properties":{"success":{"const":true,"type":"boolean"},"disk":{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Read a managed disk and its current attachments.","value":{"success":true,"disk":{"id":"d_0000000000000001","name":"Example disk","namespace":"example","kind":"data","format":"ext4","size_mb":128,"allocated_bytes":0,"state":"ready","immutable":false,"retain":true,"ownership":"private","permissions":{"attach":true,"detach":true,"clone":true,"save":true,"move":true,"resize":true,"delete":true,"fork":false,"create_vm":false},"root_image":null,"operation_id":null,"error":null,"attachments":[],"created_at":null,"updated_at":null}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":true,"x-mcp-tool":"disk_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"disks.delete","summary":"Delete an unattached managed disk","description":"Delete an unattached managed disk.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Delete an unattached managed disk.","value":"d_0000000000000001"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Delete an unattached managed disk.","value":{"idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Delete an unattached managed disk.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"delete","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.delete","x-mcp-tool":"disk_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}/clone":{"post":{"operationId":"disks.clone","summary":"Make a private copy of a managed disk","description":"Make a private copy of a managed disk.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Make a private copy of a managed disk.","value":"d_0000000000000001"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Make a private copy of a managed disk.","value":{"idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Make a private copy of a managed disk.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"clone","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.clone","x-mcp-tool":"disk_clone","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}/save":{"post":{"operationId":"disks.save","summary":"Create an immutable saved disk","description":"Create an immutable saved disk.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Create an immutable saved disk.","value":"d_0000000000000001"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Create an immutable saved disk.","value":{"idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Create an immutable saved disk.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"save","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.save","x-mcp-tool":"disk_save","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}/fork":{"post":{"operationId":"disks.fork","summary":"Create a writable root from a saved immutable root","description":"Create a writable root from a saved immutable root.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Create a writable root from a saved immutable root.","value":"d_0000000000000001"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["size_mb"],"properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"size_mb":{"minimum":64,"maximum":1048576,"type":"integer"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Create a writable root from a saved immutable root.","value":{"size_mb":256,"idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Create a writable root from a saved immutable root.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"fork","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.fork","x-mcp-tool":"disk_fork","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}/resize":{"post":{"operationId":"disks.resize","summary":"Grow an unattached managed disk within storage capacity","description":"Grow an unattached managed disk within storage capacity.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Grow an unattached managed disk within storage capacity.","value":"d_0000000000000001"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["size_mb"],"properties":{"size_mb":{"minimum":64,"maximum":1048576,"type":"integer"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Grow an unattached managed disk within storage capacity.","value":{"size_mb":256,"idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Grow an unattached managed disk within storage capacity.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"resize","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.resize","x-mcp-tool":"disk_resize","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}/attach":{"post":{"operationId":"disks.attach","summary":"Attach a managed disk to a stopped VM in the same namespace","description":"Attach a managed disk to a stopped VM in the same namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Attach a managed disk to a stopped VM in the same namespace.","value":"d_0000000000000001"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["vm_id"],"properties":{"vm_id":{"minLength":1,"maxLength":255,"type":"string"},"mount_path":{"maxLength":240,"type":"string"},"read_only":{"type":"boolean"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"maxLength":64,"type":"string"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Attach a managed disk to a stopped VM in the same namespace.","value":{"vm_id":"example-vm","idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Attach a managed disk to a stopped VM in the same namespace.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"attach","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.attach","x-mcp-tool":"disk_attach","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}/detach":{"post":{"operationId":"disks.detach","summary":"Detach a managed disk from a stopped VM","description":"Detach a managed disk from a stopped VM.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Detach a managed disk from a stopped VM.","value":"d_0000000000000001"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["vm_id"],"properties":{"vm_id":{"minLength":1,"maxLength":255,"type":"string"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Detach a managed disk from a stopped VM.","value":{"vm_id":"example-vm","idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Detach a managed disk from a stopped VM.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"detach","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.detach","x-mcp-tool":"disk_detach","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/disks/{diskId}/move":{"post":{"operationId":"disks.move","summary":"Move a managed disk between stopped VMs in the same namespace","description":"Move a managed disk between stopped VMs in the same namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account managers can manage independent storage. Namespace credentials remain bound to their namespace; VM credentials can only inspect their own attached disks.\n\n- HTTP Idempotency-Key overrides idempotency_key in the JSON body; MCP supplies idempotency_key directly.\n\n- Accepted operations continue durably if the request disconnects. Poll disk_operation for completion; failed operations retain reservations until safely retried.\n\nRetry guidance: Inspect the returned operation before retrying. Reuse the same idempotency key and identical inputs; a changed key may create another operation.","tags":["disks"],"parameters":[{"name":"diskId","in":"path","required":true,"schema":{"pattern":"^d_[a-f0-9]{16}$","type":"string"},"examples":{"example1":{"summary":"Move a managed disk between stopped VMs in the same namespace.","value":"d_0000000000000001"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["source_vm_id","target_vm_id"],"properties":{"source_vm_id":{"minLength":1,"maxLength":255,"type":"string"},"target_vm_id":{"minLength":1,"maxLength":255,"type":"string"},"mount_path":{"maxLength":240,"type":"string"},"wait_ready":{"type":"boolean"},"idempotency_key":{"minLength":1,"maxLength":128,"type":"string"}}},"examples":{"example1":{"summary":"Move a managed disk between stopped VMs in the same namespace.","value":{"source_vm_id":"source-vm","target_vm_id":"target-vm","idempotency_key":"example-once"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accepted","operation","disk"],"properties":{"success":{"const":true,"type":"boolean"},"accepted":{"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","disk_id","kind","state","phase","error","created_at","completed_at"],"properties":{"id":{"type":"string"},"disk_id":{"type":"string"},"kind":{"type":"string"},"state":{"type":"string"},"phase":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"additionalProperties":false,"type":"object","required":["size_mb","was_running","relaunched"],"properties":{"size_mb":{"type":"number"},"was_running":{"type":"boolean"},"relaunched":{"type":"boolean"},"warning":{"type":"string"}}}}},"disk":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","name","namespace","kind","format","size_mb","allocated_bytes","state","immutable","retain","ownership","permissions","root_image","operation_id","error","attachments","created_at","updated_at"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string"},"format":{"type":"string"},"size_mb":{"type":"number"},"allocated_bytes":{"type":"number"},"state":{"type":"string"},"immutable":{"type":"boolean"},"retain":{"type":"boolean"},"ownership":{"type":"string"},"permissions":{"additionalProperties":false,"type":"object","required":["attach","detach","clone","save","move","resize","delete","fork","create_vm"],"properties":{"attach":{"type":"boolean"},"detach":{"type":"boolean"},"clone":{"type":"boolean"},"save":{"type":"boolean"},"move":{"type":"boolean"},"resize":{"type":"boolean"},"delete":{"type":"boolean"},"fork":{"type":"boolean"},"create_vm":{"type":"boolean"}}},"library":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"}}},"root_image":{"anyOf":[{"type":"string"},{"type":"null"}]},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"attachments":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["vm_id","role","read_only","mount_path","target","order","device_id","generation"],"properties":{"vm_id":{"type":"string"},"role":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Move a managed disk between stopped VMs in the same namespace.","value":{"success":true,"accepted":true,"operation":{"id":"dop_0000000000000001","disk_id":"d_0000000000000001","kind":"move","state":"queued","phase":"queued","error":null,"created_at":null,"completed_at":null},"disk":null}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["disk.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"disk:disk","x-read-only":false,"x-audit-action":"disks.move","x-mcp-tool":"disk_move","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/search":{"post":{"operationId":"search.search","summary":"Read the availability of the search service","description":"Read the availability of the search service","tags":["search"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["queries"],"properties":{"queries":{"minItems":1,"maxItems":100,"type":"array","items":{"minLength":1,"maxLength":4096,"type":"string"}},"options":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["status","data"],"properties":{"status":{"const":"coming soon","type":"string"},"data":{"type":"array","items":{"not":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"owner","x-read-only":true}},"/icons/search-icons":{"post":{"operationId":"icons.search","summary":"Search the public icon catalog","description":"Search the public icon catalog","tags":["icons"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["query"],"properties":{"query":{"minLength":1,"maxLength":512,"pattern":"\\S","type":"string"},"offset":{"minimum":0,"maximum":1000,"type":"integer"},"limit":{"minimum":1,"maximum":100,"type":"integer"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["results","hasMore","offset","total","fallback"],"properties":{"results":{"type":"array","items":{"additionalProperties":true,"type":"object","required":["description"],"properties":{"type":{"anyOf":[{"const":"icon","type":"string"},{"const":"image","type":"string"},{"const":"video","type":"string"}]},"description":{"type":"string"},"url":{"type":"string"},"variant":{"type":"string"},"is_vector":{"type":"boolean"},"success":{"type":"boolean"},"fallback":{"type":"boolean"},"style":{"anyOf":[{"type":"string"},{"type":"null"}]},"filename":{"type":"string"},"name":{"type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"score":{"type":"number"}}}},"hasMore":{"type":"boolean"},"offset":{"type":"integer"},"total":{"type":"integer"},"fallback":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/icons/fetch":{"post":{"operationId":"icons.fetch","summary":"Find public icons and media for descriptions","description":"Find public icons and media for descriptions","tags":["icons"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["data"],"properties":{"data":{"maxItems":20,"type":"array","items":{"additionalProperties":true,"type":"object","required":["type","description"],"properties":{"type":{"anyOf":[{"const":"icon","type":"string"},{"const":"image","type":"string"},{"const":"video","type":"string"}]},"description":{"minLength":1,"maxLength":512,"pattern":"\\S","type":"string"},"variant":{"maxLength":64,"type":"string"},"is_vector":{"type":"boolean"}}}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"additionalProperties":true,"type":"object","required":["description"],"properties":{"type":{"anyOf":[{"const":"icon","type":"string"},{"const":"image","type":"string"},{"const":"video","type":"string"}]},"description":{"type":"string"},"url":{"type":"string"},"variant":{"type":"string"},"is_vector":{"type":"boolean"},"success":{"type":"boolean"},"fallback":{"type":"boolean"},"style":{"anyOf":[{"type":"string"},{"type":"null"}]},"filename":{"type":"string"},"name":{"type":"string"},"category":{"anyOf":[{"type":"string"},{"type":"null"}]},"score":{"type":"number"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/pricing/compute-rate-cards":{"get":{"operationId":"pricing.rateCards","summary":"Read the active meter identity and preview rate cards.","description":"Read the active meter identity and preview rate cards.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","activeMetering","rateCards"],"properties":{"success":{"const":true,"type":"boolean"},"activeMetering":{"type":"string"},"rateCards":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","status","chargeEnabled","currency","creditsPerDollar","requiredMeterVersion","validationDays","units"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"chargeEnabled":{"type":"boolean"},"currency":{"type":"string"},"creditsPerDollar":{"type":"number"},"requiredMeterVersion":{"type":"number"},"validationDays":{"type":"number"},"units":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["credits","usd","unit"],"properties":{"credits":{"type":"number"},"usd":{"type":"number"},"unit":{"type":"string"}}}}}}}}}},"examples":{"example1":{"summary":"Read the active meter identity and preview rate cards.","value":{"success":true,"activeMetering":"vm-legacy-2026-09","rateCards":[{"id":"vm-2026-09-29","status":"preview","chargeEnabled":false,"currency":"USD","creditsPerDollar":100,"requiredMeterVersion":2,"validationDays":7,"units":{}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true,"x-mcp-tool":"pricing_compute_rate_cards","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pricing/compute-estimate":{"post":{"operationId":"pricing.computeEstimate","summary":"Estimate preview compute prices without activating or charging the preview rate card.","description":"Estimate preview compute prices without activating or charging the preview rate card.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["rateCardId","usage"],"properties":{"rateCardId":{"type":"string"},"usage":{"additionalProperties":false,"type":"object","properties":{"active_cpu_hours":{"minimum":0,"maximum":1000000000000,"type":"number"},"reserved_memory_gb_hours":{"minimum":0,"maximum":1000000000000,"type":"number"},"retained_disk_gb_months":{"minimum":0,"maximum":1000000000000,"type":"number"},"public_egress_gb":{"minimum":0,"maximum":1000000000000,"type":"number"}}}}},"examples":{"example1":{"summary":"Estimate preview compute prices without activating or charging the preview rate card.","value":{"rateCardId":"vm-2026-09-29","usage":{"active_cpu_hours":1}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","rateCardId","status","isEstimate","chargeEnabled","credits","usd","breakdown"],"properties":{"success":{"const":true,"type":"boolean"},"rateCardId":{"type":"string"},"status":{"type":"string"},"isEstimate":{"const":true,"type":"boolean"},"chargeEnabled":{"const":false,"type":"boolean"},"credits":{"type":"number"},"usd":{"type":"number"},"breakdown":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["unit","quantity","credits","unitCredits"],"properties":{"unit":{"type":"string"},"quantity":{"type":"number"},"credits":{"type":"number"},"unitCredits":{"type":"number"}}}}}},"examples":{"example1":{"summary":"Estimate preview compute prices without activating or charging the preview rate card.","value":{"success":true,"rateCardId":"vm-2026-09-29","status":"preview","isEstimate":true,"chargeEnabled":false,"credits":3,"usd":0.03,"breakdown":[{"unit":"active_cpu_hours","quantity":1,"credits":3,"unitCredits":3}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true,"x-mcp-tool":"pricing_compute_estimate","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pricing/services":{"get":{"operationId":"pricing.services","summary":"List public service prices. This does not authorize or charge for usage.","description":"List public service prices. This does not authorize or charge for usage.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data","count"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["name","description","enabled","category","pricingModel","units"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"category":{"type":"string"},"pricingModel":{"type":"string"},"units":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["unit"],"properties":{"unit":{"type":"string"},"credits":{"type":"number"},"default":{"type":"number"},"conversion":{"type":"number"},"billable":{"type":"boolean"},"description":{"type":"string"},"models":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["credits"],"properties":{"credits":{"type":"number"}}}}},"tiers":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["max","credits"],"properties":{"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"credits":{"type":"number"}}}}}}}}}}}},"count":{"type":"number"}}},"examples":{"example1":{"summary":"List public service prices. This does not authorize or charge for usage.","value":{"success":true,"data":{"mail_sending":{"name":"Transactional email","description":"SES-accepted To, Cc and Bcc recipients","enabled":true,"pricingModel":"per_unit","category":"mail","units":{"recipients":{"credits":50,"conversion":1000,"unit":"1,000 recipients"}}},"vm_compute":{"name":"vm VM","description":"VM usage: active CPU time, measured memory-minutes and RX+TX network transfer","enabled":true,"pricingModel":"composite","category":"vm","units":{"cpu_time_minutes":{"unit":"per CPU-minute","credits":1.5},"memory_gb_minutes":{"unit":"per GB-minute","credits":0.2},"disk_io_gb":{"unit":"per GB","credits":0,"billable":false,"description":"Monitoring only; not charged by the active vm meter"},"network_gb":{"unit":"per GB","credits":0.15}}}},"count":2}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true,"x-mcp-tool":"pricing_services","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pricing/categories":{"get":{"operationId":"pricing.categories","summary":"List public pricing categories.","description":"List public pricing categories.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"type":"string"}}}},"examples":{"example1":{"summary":"List public pricing categories.","value":{"success":true,"data":["mail","vm"]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true}},"/pricing/services/category/{category}":{"get":{"operationId":"pricing.category","summary":"Read public prices in one service category.","description":"Read public prices in one service category.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[{"name":"category","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Read public prices in one service category.","value":"mail"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","category","data"],"properties":{"success":{"const":true,"type":"boolean"},"category":{"type":"string"},"data":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["name","description","enabled","category","pricingModel","units"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"category":{"type":"string"},"pricingModel":{"type":"string"},"units":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["unit"],"properties":{"unit":{"type":"string"},"credits":{"type":"number"},"default":{"type":"number"},"conversion":{"type":"number"},"billable":{"type":"boolean"},"description":{"type":"string"},"models":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["credits"],"properties":{"credits":{"type":"number"}}}}},"tiers":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["max","credits"],"properties":{"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"credits":{"type":"number"}}}}}}}}}}}}}},"examples":{"example1":{"summary":"Read public prices in one service category.","value":{"success":true,"category":"mail","data":{"mail_sending":{"name":"Transactional email","description":"SES-accepted To, Cc and Bcc recipients","enabled":true,"pricingModel":"per_unit","category":"mail","units":{"recipients":{"credits":50,"conversion":1000,"unit":"1,000 recipients"}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true}},"/pricing/services/{serviceKey}":{"get":{"operationId":"pricing.service","summary":"Read public prices for one service.","description":"Read public prices for one service.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[{"name":"serviceKey","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Read public prices for one service.","value":"mail_sending"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["name","description","enabled","category","pricingModel","units"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"enabled":{"type":"boolean"},"category":{"type":"string"},"pricingModel":{"type":"string"},"units":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["unit"],"properties":{"unit":{"type":"string"},"credits":{"type":"number"},"default":{"type":"number"},"conversion":{"type":"number"},"billable":{"type":"boolean"},"description":{"type":"string"},"models":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["credits"],"properties":{"credits":{"type":"number"}}}}},"tiers":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["max","credits"],"properties":{"max":{"anyOf":[{"type":"number"},{"type":"null"}]},"credits":{"type":"number"}}}}}}}}}}}},"examples":{"example1":{"summary":"Read public prices for one service.","value":{"success":true,"data":{"key":"mail_sending","name":"Transactional email","description":"SES-accepted To, Cc and Bcc recipients","enabled":true,"pricingModel":"per_unit","category":"mail","units":{"recipients":{"credits":50,"conversion":1000,"unit":"1,000 recipients"}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true,"x-mcp-tool":"pricing_service","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pricing/calculate":{"post":{"operationId":"pricing.calculate","summary":"Calculate a planning cost using public rates.","description":"Calculate a planning cost using public rates.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["serviceKey","usage"],"properties":{"serviceKey":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"usage":{"additionalProperties":{"minimum":0,"maximum":1000000000000,"type":"number"},"maxProperties":100,"type":"object","properties":{"model":{"maxLength":128,"type":"string"},"type":{"maxLength":128,"type":"string"},"unit":{"maxLength":128,"type":"string"}}}}},"examples":{"example1":{"summary":"Calculate a planning cost using public rates.","value":{"serviceKey":"mail_sending","usage":{"recipients":1000}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","credits","breakdown","service","pricingModel"],"properties":{"success":{"const":true,"type":"boolean"},"credits":{"type":"number"},"breakdown":{"type":"array","items":{"anyOf":[{"additionalProperties":false,"type":"object","required":["range","quantity","rate","credits"],"properties":{"range":{"type":"string"},"quantity":{"type":"number"},"rate":{"type":"number"},"credits":{"type":"number"}}},{"additionalProperties":false,"type":"object","required":["credits"],"properties":{"unit":{"type":"string"},"type":{"type":"string"},"quantity":{"type":"number"},"rawQuantity":{"type":"number"},"count":{"type":"number"},"unitCost":{"type":"number"},"credits":{"type":"number"},"description":{"type":"string"},"tierBreakdown":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["range","quantity","rate","credits"],"properties":{"range":{"type":"string"},"quantity":{"type":"number"},"rate":{"type":"number"},"credits":{"type":"number"}}}}}}]}},"service":{"type":"string"},"pricingModel":{"type":"string"},"estimated":{"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","credits"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"credits":{"type":"number"}}}]},"examples":{"example1":{"summary":"Calculate a planning cost using public rates.","value":{"success":true,"service":"Transactional email","pricingModel":"per_unit","credits":50,"breakdown":[{"unit":"recipients","quantity":1000,"unitCost":50,"credits":50,"description":"1,000 recipients"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","credits","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"credits":{"type":"number"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true,"x-mcp-tool":"pricing_calculate","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pricing/estimate":{"post":{"operationId":"pricing.estimate","summary":"Estimate a planning cost using public rates.","description":"Estimate a planning cost using public rates.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["serviceKey","usage"],"properties":{"serviceKey":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"usage":{"additionalProperties":{"minimum":0,"maximum":1000000000000,"type":"number"},"maxProperties":100,"type":"object","properties":{"model":{"maxLength":128,"type":"string"},"type":{"maxLength":128,"type":"string"},"unit":{"maxLength":128,"type":"string"}}}}},"examples":{"example1":{"summary":"Estimate a planning cost using public rates.","value":{"serviceKey":"mail_sending","usage":{"recipients":1000}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","credits","breakdown","service","pricingModel"],"properties":{"success":{"const":true,"type":"boolean"},"credits":{"type":"number"},"breakdown":{"type":"array","items":{"anyOf":[{"additionalProperties":false,"type":"object","required":["range","quantity","rate","credits"],"properties":{"range":{"type":"string"},"quantity":{"type":"number"},"rate":{"type":"number"},"credits":{"type":"number"}}},{"additionalProperties":false,"type":"object","required":["credits"],"properties":{"unit":{"type":"string"},"type":{"type":"string"},"quantity":{"type":"number"},"rawQuantity":{"type":"number"},"count":{"type":"number"},"unitCost":{"type":"number"},"credits":{"type":"number"},"description":{"type":"string"},"tierBreakdown":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["range","quantity","rate","credits"],"properties":{"range":{"type":"string"},"quantity":{"type":"number"},"rate":{"type":"number"},"credits":{"type":"number"}}}}}}]}},"service":{"type":"string"},"pricingModel":{"type":"string"},"estimated":{"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","credits"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"credits":{"type":"number"}}}]},"examples":{"example1":{"summary":"Estimate a planning cost using public rates.","value":{"success":true,"service":"Transactional email","pricingModel":"per_unit","credits":50,"breakdown":[{"unit":"recipients","quantity":1000,"unitCost":50,"credits":50,"description":"1,000 recipients"}],"estimated":true,"message":"Estimated cost: 50 credits"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","credits","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"credits":{"type":"number"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true,"x-mcp-tool":"pricing_estimate","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pricing/calculator":{"get":{"operationId":"pricing.calculator","summary":"Read public VM rates and account plan limits.","description":"Read public VM rates and account plan limits.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Public planning data grants no account access and never reserves resources, authorizes usage, activates a rate card or changes credits.\n\n- An MCP caller still needs an authenticated session. Rates can refresh between calls; use authoritative billing flows to purchase capacity.\n\n- Preview CPU, reserved memory, retained disk and public egress dimensions are distinct from legacy metering units and cannot be substituted.\n\nRetry guidance: Safe to retry; rates may change after a catalog refresh.","tags":["pricing"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","credits_per_dollar","rates","plans","rate_card_id","caps","compute_rate_cards"],"properties":{"success":{"const":true,"type":"boolean"},"credits_per_dollar":{"type":"number"},"rates":{"additionalProperties":false,"type":"object","required":["cpu_per_min","memory_per_gb_min","disk_per_gb","network_per_gb"],"properties":{"cpu_per_min":{"type":"number"},"memory_per_gb_min":{"type":"number"},"disk_per_gb":{"type":"number"},"network_per_gb":{"type":"number"}}},"plans":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["family","name","price","credits_per_cycle","cpu_quota_percent","max_vm","running_pool","overdraft_credits"],"properties":{"family":{"type":"string"},"name":{"type":"string"},"price":{"type":"number"},"credits_per_cycle":{"type":"number"},"cpu_quota_percent":{"type":"number"},"max_vm":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"overdraft_credits":{"type":"number"}}}},"rate_card_id":{"type":"string"},"caps":{"additionalProperties":false,"type":"object","required":["calendar","period","cpu_per_vcpu","memory_per_gb","network_per_vcpu"],"properties":{"calendar":{"type":"string"},"period":{"type":"string"},"cpu_per_vcpu":{"type":"number"},"memory_per_gb":{"type":"number"},"network_per_vcpu":{"type":"number"}}},"compute_rate_cards":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","status","chargeEnabled","currency","creditsPerDollar","requiredMeterVersion","validationDays","units"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"chargeEnabled":{"type":"boolean"},"currency":{"type":"string"},"creditsPerDollar":{"type":"number"},"requiredMeterVersion":{"type":"number"},"validationDays":{"type":"number"},"units":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["credits","usd","unit"],"properties":{"credits":{"type":"number"},"usd":{"type":"number"},"unit":{"type":"string"}}}}}}}}}},"examples":{"example1":{"summary":"Read public VM rates and account plan limits.","value":{"success":true,"credits_per_dollar":100,"rates":{"cpu_per_min":1.5,"memory_per_gb_min":0.2,"disk_per_gb":0,"network_per_gb":0.15},"plans":[],"rate_card_id":"vm-legacy-2026-09","caps":{"calendar":"UTC","period":"calendar_month","cpu_per_vcpu":700,"memory_per_gb":100,"network_per_vcpu":100},"compute_rate_cards":[{"id":"vm-2026-09-29","status":"preview","chargeEnabled":false,"currency":"USD","creditsPerDollar":100,"requiredMeterVersion":2,"validationDays":7,"units":{}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"pricing:public","x-read-only":true,"x-mcp-tool":"pricing_calculator","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/zone":{"get":{"operationId":"zone.info","summary":"Read egress zone API information","description":"Read egress zone API information","tags":["proxy"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["message","version","provider","endpoints"],"properties":{"message":{"type":"string"},"version":{"type":"string"},"provider":{"type":"string"},"endpoints":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"owner","x-read-only":true}},"/zone/mine":{"get":{"operationId":"zone.mine","summary":"List available egress zone IPs without proxy credentials","description":"Read available egress addresses and country codes. Provider credentials remain private.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- This list does not change a VM or reserve an address.\n\nRetry guidance: Safe to retry.","tags":["proxy"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","proxies"],"properties":{"success":{"const":true,"type":"boolean"},"proxies":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["ip","country_code"],"properties":{"ip":{"type":"string"},"country_code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"examples":{"example1":{"summary":"Available addresses","value":{"success":true,"proxies":[{"ip":"198.51.100.17","country_code":"DE"}]}}}}}},"403":{"description":"permission_denied: A delegated identity cannot inspect this owner-only pool.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"zone_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/packages":{"get":{"operationId":"credits.packages","summary":"List wallet deposit packages.","description":"List wallet deposit packages.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["packages","success"],"properties":{"packages":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","credits","price","rate","popular"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"credits":{"type":"number"},"price":{"type":"number"},"rate":{"type":"number"},"popular":{"type":"boolean"}}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"packages":[{"id":"wallet_500","name":"Developer Wallet","credits":500,"price":5,"rate":100,"popular":false},{"id":"starter","name":"Starter Pack","credits":1000,"price":10,"rate":100,"popular":false},{"id":"basic","name":"Basic Pack","credits":5000,"price":50,"rate":100,"popular":false},{"id":"pro","name":"Pro Pack","credits":10000,"price":100,"rate":100,"popular":true},{"id":"business","name":"Business Pack","credits":25000,"price":250,"rate":100,"popular":false},{"id":"enterprise","name":"Enterprise Pack","credits":100000,"price":1000,"rate":100,"popular":false}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/credits/pricing-info":{"get":{"operationId":"credits.pricingInfo","summary":"Read wallet pricing and purchase bounds.","description":"Read wallet pricing and purchase bounds.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["creditsPerDollar","dollarsPerCredit","baseRate","minAmount","maxAmount","minCredits","maxCredits","currency","priceVersion","packages","success"],"properties":{"creditsPerDollar":{"type":"number"},"dollarsPerCredit":{"type":"number"},"baseRate":{"type":"number"},"minAmount":{"type":"number"},"maxAmount":{"type":"number"},"minCredits":{"type":"number"},"maxCredits":{"type":"number"},"currency":{"type":"string"},"priceVersion":{"type":"string"},"packages":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","credits","price","rate","popular"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"credits":{"type":"number"},"price":{"type":"number"},"rate":{"type":"number"},"popular":{"type":"boolean"}}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"creditsPerDollar":100,"dollarsPerCredit":0.01,"baseRate":100,"minAmount":5,"maxAmount":10000,"minCredits":500,"maxCredits":1000000,"currency":"USD","priceVersion":"wallet-2026-09-29","packages":[{"id":"wallet_500","name":"Developer Wallet","credits":500,"price":5,"rate":100,"popular":false},{"id":"starter","name":"Starter Pack","credits":1000,"price":10,"rate":100,"popular":false},{"id":"basic","name":"Basic Pack","credits":5000,"price":50,"rate":100,"popular":false},{"id":"pro","name":"Pro Pack","credits":10000,"price":100,"rate":100,"popular":true},{"id":"business","name":"Business Pack","credits":25000,"price":250,"rate":100,"popular":false},{"id":"enterprise","name":"Enterprise Pack","credits":100000,"price":1000,"rate":100,"popular":false}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/credits/plans":{"get":{"operationId":"credits.plans","summary":"List public subscription plans.","description":"List public subscription plans.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["plans","success"],"properties":{"plans":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["family","name","description","price","yearly_price","yearly_discount_percent","currency","credits_per_cycle","yearly_credits_per_cycle","features","billing_interval","trial_period_days","popular","public","overdraft_credits","wallet_usd_per_cycle","yearly_wallet_usd_per_cycle","max_vms","pool","running_pool","max_vm_resources"],"properties":{"family":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"price":{"anyOf":[{"type":"number"},{"type":"null"}]},"yearly_price":{"anyOf":[{"type":"number"},{"type":"null"}]},"yearly_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"currency":{"type":"string"},"credits_per_cycle":{"anyOf":[{"type":"number"},{"type":"null"}]},"yearly_credits_per_cycle":{"anyOf":[{"type":"number"},{"type":"null"}]},"features":{"type":"array","items":{"type":"string"}},"billing_interval":{"type":"string"},"trial_period_days":{"type":"number"},"popular":{"type":"boolean"},"public":{"type":"boolean"},"overdraft_credits":{"anyOf":[{"type":"number"},{"type":"null"}]},"wallet_usd_per_cycle":{"anyOf":[{"type":"number"},{"type":"null"}]},"yearly_wallet_usd_per_cycle":{"anyOf":[{"type":"number"},{"type":"null"}]},"max_vms":{"anyOf":[{"type":"number"},{"type":"null"}]},"pool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"max_vm_resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}}}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"plans":[{"family":"hobby","name":"Hobby","description":"For side projects and prototypes","price":10,"yearly_price":100,"yearly_discount_percent":17,"currency":"USD","billing_interval":"monthly","trial_period_days":0,"popular":false,"public":true,"credits_per_cycle":1200,"yearly_credits_per_cycle":14400,"overdraft_credits":100,"features":["Community support","Email support"],"wallet_usd_per_cycle":12,"yearly_wallet_usd_per_cycle":144,"max_vms":20,"pool":{"cpus":20,"memory_mb":102400,"disk_size_mb":102400},"running_pool":{"cpus":4,"memory_mb":8192,"disk_size_mb":102400},"max_vm_resources":{"cpus":2,"memory_mb":4096,"disk_size_mb":51200}},{"family":"pro","name":"Pro","description":"Ship production agents","price":29,"yearly_price":290,"yearly_discount_percent":17,"currency":"USD","billing_interval":"monthly","trial_period_days":0,"popular":true,"credits_per_cycle":3000,"yearly_credits_per_cycle":36000,"overdraft_credits":500,"public":true,"features":["Priority support"],"wallet_usd_per_cycle":30,"yearly_wallet_usd_per_cycle":360,"max_vms":100,"pool":{"cpus":200,"memory_mb":16384,"disk_size_mb":512000},"running_pool":{"cpus":24,"memory_mb":8192,"disk_size_mb":512000},"max_vm_resources":{"cpus":12,"memory_mb":16384,"disk_size_mb":204800}},{"family":"scale","name":"Scale","description":"Run agents at team scale","price":149,"yearly_price":1490,"yearly_discount_percent":17,"currency":"USD","billing_interval":"monthly","trial_period_days":0,"popular":false,"credits_per_cycle":15000,"yearly_credits_per_cycle":180000,"overdraft_credits":2000,"public":true,"features":["Dedicated support + SLA"],"wallet_usd_per_cycle":150,"yearly_wallet_usd_per_cycle":1800,"max_vms":300,"pool":{"cpus":512,"memory_mb":524288,"disk_size_mb":1048576},"running_pool":{"cpus":64,"memory_mb":131072,"disk_size_mb":1048576},"max_vm_resources":{"cpus":12,"memory_mb":65536,"disk_size_mb":256000}},{"family":"enterprise","name":"Enterprise","description":"Custom infrastructure for organizations","price":null,"yearly_price":null,"yearly_discount_percent":null,"currency":"USD","billing_interval":"monthly","trial_period_days":0,"popular":false,"credits_per_cycle":null,"yearly_credits_per_cycle":null,"overdraft_credits":null,"public":true,"features":["99.99% SLA","On-call engineering"],"wallet_usd_per_cycle":null,"yearly_wallet_usd_per_cycle":null,"max_vms":null,"pool":{"cpus":null,"memory_mb":null,"disk_size_mb":null},"running_pool":{"cpus":null,"memory_mb":null,"disk_size_mb":null},"max_vm_resources":{"cpus":12,"memory_mb":65536,"disk_size_mb":1048576}}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/credits/subscribe":{"post":{"operationId":"credits.subscribe","summary":"Create a personal subscription checkout.","description":"Create a personal subscription checkout.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Creates personal account billing. Namespace monthly capacity subscriptions use the billing module.\n\nRetry guidance: Retry the identical request with the same idempotencyKey. A different purchase must use a new key.","tags":["credits"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["planFamily"],"properties":{"planFamily":{"minLength":1,"maxLength":255,"type":"string"},"billingInterval":{"anyOf":[{"const":"monthly","type":"string"},{"const":"yearly","type":"string"}]},"successUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"cancelUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"allowPromotionCodes":{"type":"boolean"},"checkoutMode":{"anyOf":[{"const":"stripe","type":"string"},{"const":"oblien","type":"string"}]},"idempotencyKey":{"anyOf":[{"pattern":"^[A-Za-z0-9._:-]{8,128}$","type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"planFamily":"hobby"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["sessionId","url","success"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"sessionId":"cs_example","url":"https://checkout.stripe.com/c/pay/cs_example","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.subscribe","x-mcp-tool":"credits_subscribe","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/credits/subscription":{"get":{"operationId":"credits.subscription","summary":"Read the personal account subscription.","description":"Read the personal account subscription.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["subscription","success"],"properties":{"subscription":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","complimentary","renews","plan_family","billing_interval","plan_name","plan_slug","price","yearly_price","yearly_discount_percent","currency","credits_per_cycle","yearly_credits_per_cycle","features","limits"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"status":{"type":"string"},"provider":{"type":"string"},"complimentary":{"type":"boolean"},"renews":{"type":"boolean"},"plan_family":{"type":"string"},"billing_interval":{"type":"string"},"plan_name":{"type":"string"},"plan_slug":{"type":"string"},"price":{"anyOf":[{"type":"number"},{"type":"null"}]},"yearly_price":{"anyOf":[{"type":"number"},{"type":"null"}]},"yearly_discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}]},"currency":{"type":"string"},"credits_per_cycle":{"anyOf":[{"type":"number"},{"type":"null"}]},"yearly_credits_per_cycle":{"anyOf":[{"type":"number"},{"type":"null"}]},"features":{"type":"array","items":{"type":"string"}},"limits":{"additionalProperties":false,"type":"object","properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"pool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"running_pool":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"max_vms":{"anyOf":[{"type":"number"},{"type":"null"}]},"current_period_start":{"anyOf":[{"type":"string"},{"type":"null"}]},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}]},"trial_start":{"anyOf":[{"type":"string"},{"type":"null"}]},"trial_end":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelled_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"message":{"type":"string"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"subscription":null,"message":"No active subscription","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_subscription","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/manage":{"post":{"operationId":"credits.manage","summary":"Open the personal account billing portal.","description":"Open the personal account billing portal.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Read the current state before retrying a mutation after an uncertain response.","tags":["credits"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"returnUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["url","success"],"properties":{"url":{"type":"string"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"url":"https://billing.stripe.com/p/session/example","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.manage","x-mcp-tool":"credits_manage","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/credits/calculate":{"get":{"operationId":"credits.calculateCredits","summary":"Preview credits for a deposit amount.","description":"Preview credits for a deposit amount.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"amount","in":"query","required":true,"schema":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]},"examples":{"example1":{"summary":"Synthetic request and response","value":5}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["amount","credits","rate","success"],"properties":{"amount":{"type":"number"},"credits":{"type":"number"},"rate":{"const":"custom","type":"string"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"amount":5,"credits":500,"rate":"custom","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_calculate_credits","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/purchase":{"post":{"operationId":"credits.purchase","summary":"Create a wallet deposit checkout with shared rate limits and duplicate protection.","description":"Create a wallet deposit checkout with shared rate limits and duplicate protection.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Pricing and wallet identity are server-owned. Creating checkout does not grant credits; only a verified payment receipt can fund the wallet.\n\nRetry guidance: Retry the identical request with the same idempotencyKey. A different purchase must use a new key.","tags":["credits"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"packageId":{"minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"amount":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]},"credits":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]},"successUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"cancelUrl":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}]},"allowPromotionCodes":{"type":"boolean"},"checkoutMode":{"anyOf":[{"const":"stripe","type":"string"},{"const":"oblien","type":"string"}]},"idempotencyKey":{"pattern":"^[A-Za-z0-9._:-]{8,128}$","type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"amount":5,"idempotencyKey":"wallet-example-001"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["sessionId","url","purchase","success"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"purchase":{"additionalProperties":false,"type":"object","required":["amount","credits","rate"],"properties":{"amount":{"type":"number"},"credits":{"type":"number"},"package":{"type":"string"},"rate":{"type":"number"}}},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"sessionId":"cs_example","url":"https://checkout.stripe.com/c/pay/cs_example","purchase":{"amount":5,"credits":500,"rate":100},"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.purchase","x-mcp-tool":"credits_purchase","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/credits/purchases":{"get":{"operationId":"credits.purchaseHistory","summary":"Read owned purchases and aggregate statistics.","description":"Read owned purchases and aggregate statistics.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"},"examples":{"example1":{"summary":"Synthetic request and response","value":20}}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"}},{"name":"light","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["data","total","stats","pagination","mode","success"],"properties":{"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","amount","credits","status","date","completed_at","transaction_id","type"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"amount":{"type":"number"},"credits":{"type":"number"},"status":{"type":"string"},"date":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"transaction_id":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string"}]},{"type":"null"}]},"type":{"type":"string"},"stripe_session_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"stripe_payment_intent":{"anyOf":[{"type":"string"},{"type":"null"}]},"invoice_pdf":{"anyOf":[{"type":"string"},{"type":"null"}]},"invoice_page":{"anyOf":[{"type":"string"},{"type":"null"}]},"receipt":{"anyOf":[{"type":"string"},{"type":"null"}]},"receipt_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_method":{"anyOf":[{"additionalProperties":false,"type":"object","required":["type","card_brand","card_last4"],"properties":{"type":{"type":"string"},"card_brand":{"anyOf":[{"type":"string"},{"type":"null"}]},"card_last4":{"type":"string"}}},{"type":"null"}]},"customer":{"additionalProperties":false,"type":"object","required":["name","email"],"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"total":{"anyOf":[{"type":"number"},{"type":"string"}]},"stats":{"additionalProperties":false,"type":"object","required":["totalTransactions","totalSpent","totalCreditsPurchased","completedCount","pendingCount","failedCount","refundedCount"],"properties":{"totalTransactions":{"type":"number"},"totalSpent":{"type":"number"},"totalCreditsPurchased":{"type":"number"},"completedCount":{"type":"number"},"pendingCount":{"type":"number"},"failedCount":{"type":"number"},"refundedCount":{"type":"number"}}},"pagination":{"additionalProperties":false,"type":"object","required":["limit","hasMore"],"properties":{"limit":{"type":"number"},"offset":{"type":"number"},"count":{"type":"number"},"total":{"anyOf":[{"type":"number"},{"type":"string"}]},"hasMore":{"type":"boolean"},"next":{"additionalProperties":false,"type":"object","required":["after","afterId"],"properties":{"after":{"type":"string"},"afterId":{"type":"string"}}},"nextOffset":{"anyOf":[{"type":"number"},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string"}]},{"type":"null"}]}}},"mode":{"type":"string"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"data":[],"total":0,"stats":{"totalTransactions":0,"totalSpent":0,"totalCreditsPurchased":0,"completedCount":0,"pendingCount":0,"failedCount":0,"refundedCount":0},"pagination":{"limit":20,"hasMore":false},"mode":"full","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_purchase_history","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/purchases/{id}":{"get":{"operationId":"credits.purchaseDetails","summary":"Read an owned purchase and its payment details.","description":"Read an owned purchase and its payment details.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Receipt details are bound to the selected purchase owner and session, including historical purchases.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"123"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["data","success"],"properties":{"data":{"additionalProperties":false,"type":"object","required":["id","amount","credits","status","created_at","completed_at","transaction_id","stripe","payment"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"amount":{"type":"number"},"credits":{"type":"number"},"status":{"type":"string"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"transaction_id":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string"}]},{"type":"null"}]},"stripe":{"additionalProperties":false,"type":"object","required":["session_id","payment_intent"],"properties":{"session_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_intent":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"payment":{"anyOf":[{"additionalProperties":false,"type":"object","required":["invoice_pdf","invoice_page","receipt","receipt_number","billing","card","status"],"properties":{"invoice_pdf":{"anyOf":[{"type":"string"},{"type":"null"}]},"invoice_page":{"anyOf":[{"type":"string"},{"type":"null"}]},"receipt":{"anyOf":[{"type":"string"},{"type":"null"}]},"receipt_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"billing":{"additionalProperties":false,"type":"object","required":["name","email","phone","address"],"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"additionalProperties":false,"type":"object","required":["line1","line2","city","state","postal_code","country"],"properties":{"line1":{"anyOf":[{"type":"string"},{"type":"null"}]},"line2":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"type":"string"},{"type":"null"}]},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"country":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"card":{"additionalProperties":false,"type":"object","required":["brand","last4","funding"],"properties":{"brand":{"anyOf":[{"type":"string"},{"type":"null"}]},"last4":{"anyOf":[{"type":"string"},{"type":"null"}]},"funding":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"status":{"additionalProperties":false,"type":"object","required":["paid","captured","refunded","amount_refunded"],"properties":{"paid":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"captured":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"refunded":{"anyOf":[{"type":"boolean"},{"type":"number"}]},"amount_refunded":{"type":"number"}}}}},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"data":{"id":123,"amount":5,"credits":500,"status":"pending","created_at":"2026-11-01T00:00:00.000Z","completed_at":null,"transaction_id":null,"stripe":{"session_id":"cs_example","payment_intent":null},"payment":null},"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_purchase_details","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/purchases/{id}/session":{"get":{"operationId":"credits.purchaseSession","summary":"Resume the checkout for an owned pending purchase.","description":"Resume the checkout for an owned pending purchase.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Only an owned pending purchase can resume its existing checkout.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"123"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["sessionId","url","status","success"],"properties":{"sessionId":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"sessionId":"cs_example","url":"https://checkout.stripe.com/c/pay/cs_example","status":"open","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_purchase_session","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/purchases/{id}/cancel":{"post":{"operationId":"credits.cancelPurchase","summary":"Cancel an owned pending purchase.","description":"Cancel an owned pending purchase.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Only pending or already canceled purchases are eligible. Subscription invoices cannot be canceled through purchase history.\n\nRetry guidance: Read the current state before retrying a mutation after an uncertain response.","tags":["credits"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"123"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{}},"examples":{"example1":{"summary":"Synthetic request and response","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["message","success"],"properties":{"message":{"type":"string"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"message":"Purchase canceled","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.cancelPurchase","x-mcp-tool":"credits_cancel_purchase","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/credits/balance":{"get":{"operationId":"credits.balance","summary":"Read the authenticated owner wallet balance.","description":"Read the authenticated owner wallet balance.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["balance","success"],"properties":{"balance":{"type":"number"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"balance":0,"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_balance","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/namespaces":{"get":{"operationId":"credits.namespaces","summary":"List owned namespace spending and quotas.","description":"List owned namespace spending and quotas.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":500,"type":"integer"},"examples":{"example1":{"summary":"Synthetic request and response","value":20}}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"}},{"name":"search","in":"query","required":false,"schema":{"maxLength":255,"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["data","pagination","aggregations","success"],"properties":{"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["namespace","name","description","type","service","quotaLimit","quotaUsed","quotaRemaining","totalSpent","enabled","createdAt","status"],"properties":{"namespace":{"type":"string"},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":{"anyOf":[{"type":"string"},{"type":"null"}]},"service":{"type":"string"},"quotaLimit":{"type":"number"},"quotaUsed":{"type":"number"},"quotaRemaining":{"type":"number"},"totalSpent":{"type":"number"},"enabled":{"type":"boolean"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"}}}},"pagination":{"additionalProperties":false,"type":"object","required":["limit","hasMore"],"properties":{"limit":{"type":"number"},"offset":{"type":"number"},"count":{"type":"number"},"total":{"anyOf":[{"type":"number"},{"type":"string"}]},"hasMore":{"type":"boolean"},"next":{"additionalProperties":false,"type":"object","required":["after","afterId"],"properties":{"after":{"type":"string"},"afterId":{"type":"string"}}},"nextOffset":{"anyOf":[{"type":"number"},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string"}]},{"type":"null"}]}}},"aggregations":{"additionalProperties":false,"type":"object","required":["total","active","warning","exceeded"],"properties":{"total":{"type":"number"},"active":{"type":"number"},"warning":{"type":"number"},"exceeded":{"type":"number"}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"data":[],"pagination":{"limit":20,"hasMore":false},"aggregations":{"total":0,"active":0,"warning":0,"exceeded":0},"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_namespaces","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/namespaces/{namespace}":{"get":{"operationId":"credits.namespaceDetails","summary":"Read owned namespace quota and usage details.","description":"Read owned namespace quota and usage details.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- The namespace ID or slug must resolve under the authenticated owner.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"namespace","in":"path","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"sample-project"}}},{"name":"days","in":"query","required":false,"schema":{"minimum":1,"maximum":90,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["namespace","name","service","quotaLimit","quotaUsed","quotaRemaining","quotas","usageStats","serviceBreakdown","recentTransactions","dailyUsage","success"],"properties":{"namespace":{"type":"string"},"name":{"type":"string"},"service":{"type":"string"},"quotaLimit":{"type":"number"},"quotaUsed":{"type":"number"},"quotaRemaining":{"type":"number"},"quotas":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["service","quotaLimit","quotaUsed","quotaRemaining","overdraft","onOverdraftAction","notificationThresholds","lastThresholdFired","enabled","createdAt","updatedAt"],"properties":{"service":{"type":"string"},"quotaLimit":{"type":"number"},"quotaUsed":{"type":"number"},"quotaRemaining":{"type":"number"},"overdraft":{"type":"number"},"onOverdraftAction":{"type":"string"},"notificationThresholds":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}]},"lastThresholdFired":{"anyOf":[{"type":"number"},{"type":"null"}]},"enabled":{"anyOf":[{"type":"number"},{"type":"boolean"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"usageStats":{"additionalProperties":false,"type":"object","required":["totalTransactions","totalSpent","avgPerTransaction"],"properties":{"totalTransactions":{"type":"number"},"totalSpent":{"type":"number"},"avgPerTransaction":{"type":"number"},"firstTransaction":{"anyOf":[{"type":"string"},{"type":"null"}]},"lastTransaction":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"serviceBreakdown":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["service","transactionCount","totalSpent","avgPerTransaction","lastUsed"],"properties":{"service":{"type":"string"},"transactionCount":{"type":"number"},"totalSpent":{"type":"number"},"avgPerTransaction":{"type":"number"},"lastUsed":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"recentTransactions":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","type","amount","service","metadata","createdAt"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"amount":{"type":"number"},"service":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"dailyUsage":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["date","usage","purchases"],"properties":{"date":{"type":"string"},"usage":{"type":"number"},"purchases":{"type":"number"},"transactionCount":{"type":"number"}}}},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"namespace":"sample-project","name":"Sample project","service":"vm_compute","quotaLimit":0,"quotaUsed":0,"quotaRemaining":0,"quotas":[],"usageStats":{"totalTransactions":0,"totalSpent":0,"avgPerTransaction":0},"serviceBreakdown":[],"recentTransactions":[],"dailyUsage":[],"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_namespace_details","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/namespace-quota":{"post":{"operationId":"credits.setNamespaceQuota","summary":"Set an owned namespace allowance and notification thresholds.","description":"Set an owned namespace allowance and notification thresholds.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Read the current state before retrying a mutation after an uncertain response.","tags":["credits"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["namespace","service","quotaLimit"],"properties":{"namespace":{"minLength":1,"maxLength":255,"type":"string"},"service":{"minLength":1,"maxLength":255,"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]},"overdraft":{"anyOf":[{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]},{"type":"null"}]},"onOverdraftAction":{"anyOf":[{"const":"block","type":"string"},{"const":"stop_vms","type":"string"}]},"notificationThresholds":{"anyOf":[{"maxItems":10,"type":"array","items":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"namespace":"sample-project","service":"vm_compute","quotaLimit":500}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["clientId","service","quotaLimit","overdraft","onOverdraftAction","suspendThreshold","success"],"properties":{"clientId":{"type":"string"},"namespace":{"type":"string"},"level":{"type":"string"},"service":{"type":"string"},"quotaLimit":{"type":"number"},"overdraft":{"type":"number"},"onOverdraftAction":{"type":"string"},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"notificationThresholds":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}]},"autoApply":{"type":"boolean"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"clientId":"123","service":"vm_compute","quotaLimit":500,"overdraft":0,"onOverdraftAction":"block","suspendThreshold":null,"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.setNamespaceQuota","x-mcp-tool":"credits_set_namespace_quota","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/credits/defaults":{"post":{"operationId":"credits.setDefaultQuota","summary":"Set default allowances for new namespaces.","description":"Set default allowances for new namespaces.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Default allowances apply when a namespace has no saved service quota and automatic application is enabled; existing namespace policies are retained.\n\nRetry guidance: Read the current state before retrying a mutation after an uncertain response.","tags":["credits"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["service","quotaLimit"],"properties":{"service":{"minLength":1,"maxLength":255,"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]},"autoApply":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"service":"vm_compute","quotaLimit":500}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["clientId","service","quotaLimit","overdraft","onOverdraftAction","suspendThreshold","success"],"properties":{"clientId":{"type":"string"},"namespace":{"type":"string"},"level":{"type":"string"},"service":{"type":"string"},"quotaLimit":{"type":"number"},"overdraft":{"type":"number"},"onOverdraftAction":{"type":"string"},"suspendThreshold":{"anyOf":[{"type":"number"},{"type":"null"}]},"notificationThresholds":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}]},"autoApply":{"type":"boolean"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"clientId":"123","service":"vm_compute","quotaLimit":500,"overdraft":0,"onOverdraftAction":"block","suspendThreshold":null,"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.setDefaultQuota","x-mcp-tool":"credits_set_default_quota","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"get":{"operationId":"credits.defaultQuota","summary":"Read a service default allowance.","description":"Read a service default allowance.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"service","in":"query","required":true,"schema":{"minLength":1,"maxLength":255,"type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"vm_compute"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["config","success"],"properties":{"config":{"anyOf":[{"additionalProperties":false,"type":"object","required":["service","quotaLimit","autoApply","enabled"],"properties":{"service":{"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoApply":{"type":"boolean"},"enabled":{"type":"boolean"}}},{"type":"null"}]},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"config":null,"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_default_quota","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"credits.deleteDefaultQuota","summary":"Delete an owned default allowance.","description":"Delete an owned default allowance.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Read the current state before retrying a mutation after an uncertain response.","tags":["credits"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["service"],"properties":{"service":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"service":"vm_compute"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["message","success"],"properties":{"message":{"type":"string"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"message":"Default quota deleted","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.deleteDefaultQuota","x-mcp-tool":"credits_delete_default_quota","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/credits/defaults/all":{"get":{"operationId":"credits.allDefaultQuotas","summary":"Read all owned default allowances.","description":"Read all owned default allowances.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["configs","success"],"properties":{"configs":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["service","quotaLimit","autoApply","enabled","id","level","createdAt","updatedAt"],"properties":{"service":{"type":"string"},"quotaLimit":{"anyOf":[{"type":"number"},{"type":"null"}]},"autoApply":{"type":"boolean"},"enabled":{"type":"boolean"},"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"level":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"configs":[],"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_all_default_quotas","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/defaults/toggle-auto-apply":{"post":{"operationId":"credits.toggleDefaultQuota","summary":"Set whether a default allowance applies automatically.","description":"Set whether a default allowance applies automatically.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Read the current state before retrying a mutation after an uncertain response.","tags":["credits"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["service","autoApply"],"properties":{"service":{"minLength":1,"maxLength":255,"type":"string"},"autoApply":{"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"service":"vm_compute","autoApply":false}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["autoApply","success"],"properties":{"autoApply":{"type":"boolean"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"autoApply":false,"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.toggleDefaultQuota","x-mcp-tool":"credits_toggle_default_quota","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/credits/history/filters":{"get":{"operationId":"credits.historyFilters","summary":"Read owned ledger namespace and service filters.","description":"Read owned ledger namespace and service filters.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespaces","services","success"],"properties":{"namespaces":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"null"}]}},"services":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"null"}]}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"namespaces":[],"services":[],"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_history_filters","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/history":{"get":{"operationId":"credits.history","summary":"Read owned ledger transactions with cursor or offset pagination.","description":"Read owned ledger transactions with cursor or offset pagination.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Cursor pagination uses both after and afterId; zero balances and caller-visible usage metadata are preserved.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"},"examples":{"example1":{"summary":"Synthetic request and response","value":20}}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"service","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"startDate","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"endDate","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"after","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"afterId","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["data","pagination","success"],"properties":{"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","type","amount","namespace","service","metadata","createdAt"],"properties":{"id":{"type":"string"},"type":{"type":"string"},"amount":{"type":"number"},"balanceAfter":{"type":"number"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"service":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"pagination":{"additionalProperties":false,"type":"object","required":["limit","hasMore"],"properties":{"limit":{"type":"number"},"offset":{"type":"number"},"count":{"type":"number"},"total":{"anyOf":[{"type":"number"},{"type":"string"}]},"hasMore":{"type":"boolean"},"next":{"additionalProperties":false,"type":"object","required":["after","afterId"],"properties":{"after":{"type":"string"},"afterId":{"type":"string"}}},"nextOffset":{"anyOf":[{"type":"number"},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string"}]},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"data":[],"pagination":{"limit":20,"hasMore":false},"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_history","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/summary":{"get":{"operationId":"credits.summary","summary":"Read aggregate costs in the selected owned billing scope.","description":"Read aggregate costs in the selected owned billing scope.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":500,"type":"integer"},"examples":{"example1":{"summary":"Synthetic request and response","value":20}}},{"name":"offset","in":"query","required":false,"schema":{"minimum":0,"maximum":9007199254740991,"type":"integer"}},{"name":"namespace","in":"query","required":false,"schema":{"minLength":1,"maxLength":255,"type":"string"}},{"name":"days","in":"query","required":false,"schema":{"minimum":1,"maximum":90,"type":"integer"},"examples":{"example1":{"summary":"Synthetic request and response","value":30}}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["data","pagination","period","aggregations","success"],"properties":{"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["namespace","service","transaction_count","total_spent","avg_per_transaction","percent_of_total"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"service":{"anyOf":[{"type":"string"},{"type":"null"}]},"transaction_count":{"anyOf":[{"type":"number"},{"type":"string"}]},"total_spent":{"anyOf":[{"type":"number"},{"type":"string"}]},"avg_per_transaction":{"anyOf":[{"type":"number"},{"type":"string"}]},"percent_of_total":{"type":"number"}}}},"pagination":{"additionalProperties":false,"type":"object","required":["limit","hasMore"],"properties":{"limit":{"type":"number"},"offset":{"type":"number"},"count":{"type":"number"},"total":{"anyOf":[{"type":"number"},{"type":"string"}]},"hasMore":{"type":"boolean"},"next":{"additionalProperties":false,"type":"object","required":["after","afterId"],"properties":{"after":{"type":"string"},"afterId":{"type":"string"}}},"nextOffset":{"anyOf":[{"type":"number"},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string"}]},{"type":"null"}]}}},"period":{"type":"string"},"aggregations":{"additionalProperties":false,"type":"object","required":["totalUsage","activeNamespaces","totalNamespaces","topNamespace"],"properties":{"totalUsage":{"type":"number"},"activeNamespaces":{"type":"number"},"totalNamespaces":{"type":"number"},"topNamespace":{"anyOf":[{"additionalProperties":false,"type":"object","required":["namespace","service","totalSpent","percentOfTotal"],"properties":{"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"service":{"anyOf":[{"type":"string"},{"type":"null"}]},"totalSpent":{"type":"number"},"percentOfTotal":{"type":"number"}}},{"type":"null"}]}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"data":[],"pagination":{"limit":20,"hasMore":false},"period":"30 days","aggregations":{"totalUsage":0,"activeNamespaces":0,"totalNamespaces":0,"topNamespace":null},"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_summary","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/usage-stats":{"get":{"operationId":"credits.usageStats","summary":"Read daily owned usage and purchase totals.","description":"Read daily owned usage and purchase totals.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[{"name":"days","in":"query","required":false,"schema":{"minimum":1,"maximum":90,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["data","summary","success"],"properties":{"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["date","usage","purchases"],"properties":{"date":{"type":"string"},"usage":{"type":"number"},"purchases":{"type":"number"},"transactionCount":{"type":"number"}}}},"summary":{"additionalProperties":false,"type":"object","required":["days","totalUsage","totalPurchases","averageDaily","maxUsage","hasData","usageTrend"],"properties":{"days":{"type":"number"},"totalUsage":{"type":"number"},"totalPurchases":{"type":"number"},"averageDaily":{"type":"number"},"maxUsage":{"type":"number"},"hasData":{"type":"boolean"},"usageTrend":{"type":"number"}}},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"data":[],"summary":{"days":7,"totalUsage":0,"totalPurchases":0,"averageDaily":0,"maxUsage":0,"hasData":false,"usageTrend":0},"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_usage_stats","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/calculate-cost":{"post":{"operationId":"credits.calculateCost","summary":"Calculate credits and money using provider pricing.","description":"Calculate credits and money using provider pricing.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","properties":{"packageId":{"minLength":1,"maxLength":100,"pattern":"^[A-Za-z0-9_-]+$","type":"string"},"amount":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]},"credits":{"anyOf":[{"type":"number"},{"maxLength":64,"pattern":"^\\s*[+-]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][+-]?[0-9]+)?\\s*$","type":"string"}]}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"amount":5}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["amount","credits","rate","success"],"properties":{"amount":{"type":"number"},"credits":{"type":"number"},"requestedCredits":{"type":"number"},"packageName":{"type":"string"},"packageId":{"type":"string"},"isPackage":{"type":"boolean"},"rate":{"type":"number"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"amount":5,"credits":500,"rate":100,"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_calculate_cost","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/stats":{"get":{"operationId":"credits.purchaseStats","summary":"Read owned purchase totals.","description":"Read owned purchase totals.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\nRetry guidance: Safe to retry; this operation does not change balances or payment state.","tags":["credits"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["totalTransactions","totalSpent","totalCreditsPurchased","completedCount","pendingCount","failedCount","refundedCount","success"],"properties":{"totalTransactions":{"type":"number"},"totalSpent":{"type":"number"},"totalCreditsPurchased":{"type":"number"},"completedCount":{"type":"number"},"pendingCount":{"type":"number"},"failedCount":{"type":"number"},"refundedCount":{"type":"number"},"success":{"const":true,"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}}}}]},"examples":{"example1":{"summary":"Synthetic request and response","value":{"totalTransactions":0,"totalSpent":0,"totalCreditsPurchased":0,"completedCount":0,"pendingCount":0,"failedCount":0,"refundedCount":0,"success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"message":{"type":"string"},"details":{"additionalProperties":false,"type":"object","properties":{"reference":{"type":"string"},"retryable":{"type":"boolean"},"cause":{"type":"string"},"field":{"type":"string"},"host":{"type":"string"}}},"minimum":{"type":"number"},"maximum":{"type":"number"},"retryAfter":{"type":"number"},"expired":{"type":"boolean"},"existingSession":{"additionalProperties":false,"type":"object","required":["sessionId","url","createdAt"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string"},"createdAt":{"type":"string"}}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":true,"x-mcp-tool":"credits_purchase_stats","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/credits/reset-quota":{"post":{"operationId":"credits.resetQuota","summary":"Reset an owned namespace service allowance.","description":"Reset an owned namespace service allowance.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires the authenticated account owner with admin or billing credentials. Shared owner selection, OAuth and namespace-scoped credentials cannot grant wallet authority.\n\n- Billing inspection and payment remain available while compute is suspended.\n\n- Resets existing namespace usage and rearms notification thresholds. Does not add credits to the owner wallet.\n\nRetry guidance: Read the current state before retrying a mutation after an uncertain response.","tags":["credits"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["namespace","service"],"properties":{"namespace":{"minLength":1,"maxLength":255,"type":"string"},"service":{"minLength":1,"maxLength":255,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"namespace":"sample-project","service":"vm_compute"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["message","success"],"properties":{"message":{"type":"string"},"success":{"const":true,"type":"boolean"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"message":"Namespace quota reset successfully","success":true}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","billing"],"x-authorization-policy":"owner","x-read-only":false,"x-audit-action":"credits.resetQuota","x-mcp-tool":"credits_reset_quota","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/access/accounts":{"get":{"operationId":"access.accounts","summary":"List the personal account and accepted account memberships","description":"List the personal account and accepted account memberships","tags":["access"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","accounts"],"properties":{"success":{"const":true,"type":"boolean"},"accounts":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","image","role","personal","permissions"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string"},"personal":{"type":"boolean"},"permissions":{"type":"array","items":{"type":"string"}},"membership_id":{"type":"string"}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true}},"/access/shared-vms":{"get":{"operationId":"access.sharedVms","summary":"List visible shared VMs with secret-free projections","description":"List visible shared VMs with secret-free projections","tags":["access"],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"before","in":"query","required":false,"schema":{"pattern":"^[a-zA-Z0-9_-]{1,128}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","vms","next_cursor"],"properties":{"success":{"const":true,"type":"boolean"},"vms":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string"},"status":{"type":"string"},"provisioning":{"anyOf":[{"additionalProperties":false,"type":"object","required":["state","phase"],"properties":{"state":{"type":"string"},"phase":{"type":"string"},"message":{"type":"string"},"error":{"anyOf":[{"additionalProperties":false,"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempt":{"type":"number"},"operation_id":{"type":"string"}}},{"type":"null"}]},"ready":{"type":"boolean"},"info":{"additionalProperties":false,"type":"object","required":["status","is_running"],"properties":{"status":{"type":"string"},"is_running":{"type":"boolean"},"user_requested_stop":{"type":"boolean"}}},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_capabilities":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"image_desktop":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"runtime_target":{"type":"string"},"installable":{"type":"boolean"},"prepared":{"type":"boolean"},"minimum_resources":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"}}},"vm_defaults":{"additionalProperties":false,"type":"object","properties":{"cpus":{"exclusiveMinimum":0,"type":"number"},"memory_mb":{"minimum":1,"type":"integer"},"disk_size_mb":{"minimum":1,"type":"integer"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},"ttl_action":{"anyOf":[{"const":"","type":"string"},{"const":"stop","type":"string"},{"const":"pause","type":"string"},{"const":"suspend","type":"string"},{"const":"remove","type":"string"}]},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"public_ingress":{"type":"boolean"}}},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"env":{"type":"array","items":{"type":"string"}},"working_dir":{"type":"string"},"user":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"minimum":0,"type":"integer"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"enabled":{"type":"boolean"},"labels":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},"annotations":{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id"],"properties":{"disk_id":{"type":"string"},"role":{"anyOf":[{"const":"data","type":"string"},{"const":"layer","type":"string"}]},"target":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"}}}}}},"env":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["key"],"properties":{"key":{"type":"string"},"desc":{"type":"string"},"required":{"type":"boolean"},"default":{"type":"string"}}}}}},{"type":"null"}]},"base_os":{"anyOf":[{"additionalProperties":false,"type":"object","required":["family","version"],"properties":{"family":{"type":"string"},"distribution":{"type":"string"},"version":{"type":"string"}}},{"type":"null"}]},"uptime":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"}]},{"type":"null"}]},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}]},"access":{"additionalProperties":false,"type":"object","required":["ssh_enabled"],"properties":{"ssh_enabled":{"type":"boolean"}}},"network":{"additionalProperties":false,"type":"object","properties":{"ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"gateway":{"anyOf":[{"type":"string"},{"type":"null"}]},"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress":{"type":"array","items":{"type":"string"}},"ingress":{"type":"array","items":{"type":"string"}},"public_access":{"type":"boolean"},"private_links":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","ip","name","image_logo","image_color"],"properties":{"id":{"type":"string"},"ip":{"type":"string"},"name":{"type":"string"},"image_logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"image_color":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"outbound_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_country_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"outbound_mode":{"anyOf":[{"const":"custom","type":"string"},{"const":"managed","type":"string"}]},"outbound_proxy":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["host","port","protocol","username","has_credentials"],"properties":{"host":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"type":"string"},"username":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_credentials":{"type":"boolean"}}}]}}},"public_ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["port","hash","domain","label","url"],"properties":{"port":{"type":"number"},"hash":{"type":"string"},"domain":{"type":"string"},"label":{"type":"string"},"url":{"type":"string"}}}},"domain":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"path":{"type":"string"},"port":{"type":"number"},"access":{"type":"string"},"includeWww":{"type":"boolean"},"ssl":{"type":"boolean"},"status":{"type":"string"},"ssl_status":{"type":"string"},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"resources":{"additionalProperties":false,"type":"object","required":["cpus","memory_mb","disk_size_mb"],"properties":{"cpus":{"anyOf":[{"type":"number"},{"type":"null"}]},"memory_mb":{"anyOf":[{"type":"number"},{"type":"null"}]},"disk_size_mb":{"anyOf":[{"type":"number"},{"type":"null"}]}}},"lifecycle":{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"permanent","type":"string"},{"const":"temporary","type":"string"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","required":["suspend_after","stop_after"],"properties":{"suspend_after":{"type":"number"},"stop_after":{"type":"number"}}},{"type":"null"}]},"status":{"type":"string"},"pause_supported":{"type":"boolean"},"snapshot_supported":{"type":"boolean"},"snapshot_unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_policy":{"anyOf":[{"type":"string"},{"type":"null"}]},"max_restarts":{"type":"number"},"restart_info":{"anyOf":[{"additionalProperties":false,"type":"object","required":["restart_count","burst_triggered"],"properties":{"restart_count":{"type":"number"},"remaining_restarts":{"type":"number"},"burst_triggered":{"type":"boolean"},"burst_remaining":{"type":"number"},"burst_window_start":{"type":"string"},"burst_window_reset_at":{"type":"string"}}},{"type":"null"}]},"ttl":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"ttl_action":{"anyOf":[{"type":"string"},{"type":"null"}]},"ttl_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"remove_on_exit":{"type":"boolean"},"uptime":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"sharing":{"additionalProperties":false,"type":"object","required":["role","permissions","owner_id","actor_id"],"properties":{"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"owner_id":{"type":"string"},"actor_id":{"type":"string"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"namespace_access":{"type":"boolean"},"namespace_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"token":{"type":"string"},"stats":{"anyOf":[{"additionalProperties":false,"type":"object","required":["cpu_percent","memory_percent","memory_used_mb","net_rx_bytes","net_tx_bytes","uptime_seconds","disk_used_mb"],"properties":{"cpu_percent":{"type":"number"},"memory_percent":{"type":"number"},"memory_used_mb":{"type":"number"},"net_rx_bytes":{"type":"number"},"net_tx_bytes":{"type":"number"},"uptime_seconds":{"type":"number"},"disk_used_mb":{"type":"number"}}},{"type":"null"}]},"ssh":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"ssh_enabled":{"type":"boolean"},"supported":{"type":"boolean"},"auth_methods":{"type":"array","items":{"type":"string"}},"ssh_id":{"type":"string"},"ssh_password":{"type":"string"},"password_auth_enabled":{"type":"boolean"},"password_affects_desktop":{"type":"boolean"},"ssh_key_set":{"type":"boolean"},"ssh_password_changed":{"type":"boolean"},"requires_account_access":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"string"}},"connection":{"anyOf":[{"additionalProperties":false,"type":"object","required":["user","host","bastion","command","scp_upload","scp_download"],"properties":{"user":{"type":"string"},"host":{"type":"string"},"bastion":{"type":"string"},"command":{"type":"string"},"scp_upload":{"type":"string"},"scp_download":{"type":"string"}}},{"type":"null"}]},"enabled":{"type":"boolean"}}},{"type":"null"}]},"api_access":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"is_running":{"type":"boolean"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"config":{"additionalProperties":false,"type":"object","properties":{"cpus":{"type":"number"},"memory_mb":{"type":"number"},"disk_size_mb":{"type":"number"},"env":{"maxItems":256,"type":"array","items":{"anyOf":[{"pattern":"^[A-Za-z_][A-Za-z0-9_]*=","maxLength":32768,"type":"string"},{"additionalProperties":false,"type":"object","required":["key","value"],"properties":{"key":{"pattern":"^[A-Za-z_][A-Za-z0-9_]*$","type":"string"},"value":{"maxLength":32768,"type":"string"}}}]}},"cmd":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"idle":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"suspend_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]},"stop_after":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"maxLength":64,"type":"string"}]},{"type":"null"}]}}},{"type":"null"}]},"cpu_reservation":{"minimum":0.1,"maximum":1,"type":"number"},"ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"ttl_action":{"type":"string"},"remove_on_exit":{"type":"boolean"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"keep_logs":{"type":"boolean"},"static_network":{"type":"boolean"},"network_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"Mode":{"type":"string"},"IP":{"type":"string"},"Gateway":{"type":"string"},"EgressIP":{"type":"string"}}},{"type":"null"}]},"ssh_access":{"type":"boolean"},"workloads":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["command"],"properties":{"id":{"type":"string"},"vm_id":{"type":"string"},"name":{"type":"string"},"target":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"env":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"user":{"type":"string"},"origin":{"type":"string"},"log_path":{"type":"string"},"restart_policy":{"type":"string"},"max_restarts":{"type":"number"},"restart_delay":{"type":"number"},"restart_backoff":{"type":"boolean"},"max_log_size_mb":{"type":"number"},"log_retention_hours":{"type":"number"},"vm_on_exit":{"type":"string"},"state":{"type":"string"},"pid":{"type":"number"},"exit_code":{"type":"number"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"restart_count":{"type":"number"},"last_seq":{"type":"number"},"labels":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"annotations":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{"type":"string"}}},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"enabled":{"type":"boolean"}}}},"enable_kvm":{"type":"boolean"},"kernel_id":{"type":"string"},"ready_check":{"additionalProperties":false,"type":"object","properties":{"command":{"maxItems":256,"type":"array","items":{"maxLength":32768,"type":"string"}},"target":{"type":"string"},"timeout_seconds":{"type":"number"}}},"wait_for_boot":{"type":"boolean"},"wait_for_init":{"type":"boolean"},"track_dirty_pages":{"type":"boolean"},"macos":{"additionalProperties":false,"type":"object","properties":{"agent":{"anyOf":[{"const":"macos","type":"string"},{"const":"linux","type":"string"}]},"network":{"anyOf":[{"const":"tap","type":"string"},{"const":"user","type":"string"}]},"storage":{"anyOf":[{"const":"nvme","type":"string"},{"const":"sata","type":"string"}]},"disk_cache":{"anyOf":[{"const":"none","type":"string"},{"const":"writeback","type":"string"}]},"warm_boot":{"anyOf":[{"const":"auto","type":"string"},{"const":"off","type":"string"}]},"boot_args":{"type":"string"},"ports":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["host","guest"],"properties":{"host":{"minimum":1,"maximum":65535,"type":"integer"},"guest":{"minimum":1,"maximum":65535,"type":"integer"},"protocol":{"anyOf":[{"const":"tcp","type":"string"},{"const":"udp","type":"string"}]}}}}}},"desktop":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"root_disk_id":{"type":"string"},"disks":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["disk_id","role"],"properties":{"disk_id":{"type":"string"},"role":{"type":"string"},"vm_id":{"type":"string"},"read_only":{"type":"boolean"},"mount_path":{"type":"string"},"target":{"type":"string"},"order":{"type":"number"},"device_id":{"type":"string"},"generation":{"type":"number"}}}},"id":{"type":"string"},"vm_id":{"type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"image":{"type":"string"},"network":{"type":"string"},"cpu_config":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"weight":{"type":"number"},"quota_us":{"type":"number"},"period_us":{"type":"number"}}},{"type":"null"}]},"public_ipv6":{"additionalProperties":false,"type":"object","required":["enabled","tcp_ports","revision"],"properties":{"enabled":{"type":"boolean"},"address":{"type":"string"},"tcp_ports":{"type":"array","items":{"type":"number"}},"revision":{"type":"number"}}},"network_restrictions":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allow_internet":{"type":"boolean"},"ingress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"egress_ports":{"type":"array","items":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"const":-2,"type":"number"}]}},"ingress":{"type":"array","items":{"type":"string"}},"egress":{"type":"array","items":{"type":"string"}},"proxy_mode":{"type":"string"},"managed_proxy":{"type":"boolean"}}},{"type":"null"}]},"network_rate_limit":{"additionalProperties":false,"type":"object","properties":{"rx_mbps":{"type":"number"},"tx_mbps":{"type":"number"},"burst_sec":{"type":"number"}}},"resource_quotas":{"additionalProperties":false,"type":"object","properties":{"data_quota_mb":{"type":"number"},"rx_quota_mb":{"type":"number"},"tx_quota_mb":{"type":"number"},"network_quota_action":{"type":"string"},"cpu_quota_sec":{"type":"number"},"cpu_quota_action":{"type":"string"}}},"volumes":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["guest_path"],"properties":{"guest_path":{"type":"string"},"read_only":{"type":"boolean"},"ephemeral":{"type":"boolean"}}}},"command":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"working_dir":{"type":"string"},"boot_args":{"type":"string"},"use_init":{"type":"boolean"},"vsock_cid":{"type":"number"},"usage_tracking_enabled":{"type":"boolean"},"usage_tracking":{"anyOf":[{"additionalProperties":false,"type":"object","required":["interval_sec"],"properties":{"interval_sec":{"type":"number"},"events":{"type":"array","items":{"type":"string"}}}},{"type":"null"}]},"auto_reclaim":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"interval_sec":{"type":"number"},"guest_available_threshold_pct":{"type":"number"},"release_after_reclaim":{"type":"boolean"},"safety_margin_mb":{"type":"number"},"max_inflate_pct":{"type":"number"},"host_diff_safety_mb":{"type":"number"},"gap_min_mb":{"type":"number"},"disable_active_io_skip":{"type":"boolean"},"active_io_thresh_kib":{"type":"number"},"disable_aggressive_reclaim":{"type":"boolean"}}},"suspended_ttl":{"anyOf":[{"type":"number"},{"type":"string"}]},"server_enabled":{"type":"boolean"},"ssh_jump_enabled":{"type":"boolean"},"max_boot_log_size_mb":{"type":"number"},"max_cmd_log_size_mb":{"type":"number"},"cmd_log_path_guest":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"logo":{"anyOf":[{"type":"string"},{"type":"null"}]},"cpus_requested":{"type":"number"},"catalog_preset":{"additionalProperties":false,"type":"object","required":["id","revision","label","base_image","software"],"properties":{"id":{"type":"string"},"revision":{"type":"string"},"label":{"type":"string"},"base_image":{"type":"string"},"logo":{"type":"string"},"color":{"type":"string"},"software":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"role":{"type":"string"},"target":{"type":"string"},"read_only":{"type":"boolean"},"size_mb":{"type":"number"},"mount_path":{"type":"string"}}}}}}}}}}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true}},"/access/invitations":{"get":{"operationId":"access.invitations","summary":"List unexpired invitations for the verified signed-in recipient","description":"List unexpired invitations for the verified signed-in recipient","tags":["access"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","invitations"],"properties":{"success":{"const":true,"type":"boolean"},"invitations":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","resource_type","resource_id","resource_name","role","expires_at","access_expires_at","owner"],"properties":{"id":{"type":"string"},"resource_type":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]},"resource_id":{"type":"string"},"resource_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string"},"expires_at":{"type":"string"},"access_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true},"post":{"operationId":"access.invite","summary":"Invite a recipient after checking current sharing authority","description":"Invite a recipient after checking current sharing authority","tags":["access"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["email"],"properties":{"account_id":{"anyOf":[{"pattern":"^[1-9][0-9]{0,14}$","type":"string"},{"minimum":1,"maximum":999999999999999,"type":"integer"}]},"resource_type":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]},"resource_id":{"maxLength":128,"pattern":"^[a-zA-Z0-9_-]*$","type":"string"},"role":{"anyOf":[{"const":"viewer","type":"string"},{"const":"developer","type":"string"},{"const":"manager","type":"string"}]},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"minLength":1,"maxLength":254,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","invitation_url","invitation"],"properties":{"success":{"const":true,"type":"boolean"},"invitation_url":{"type":"string"},"invitation":{"additionalProperties":false,"type":"object","required":["id","email","role","expires_at","access_expires_at"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"expires_at":{"type":"string"},"access_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"mutation","x-read-only":false,"x-audit-action":"access.invite"}},"/access/invitations/accept":{"post":{"operationId":"access.accept","summary":"Accept an invitation as its verified intended recipient","description":"Accept an invitation as its verified intended recipient","tags":["access"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"id":{"pattern":"^[a-f0-9]{32}$","type":"string"},"token":{"pattern":"^[A-Za-z0-9_-]{43}$","type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","account_id","resource_type","resource_id"],"properties":{"success":{"const":true,"type":"boolean"},"account_id":{"type":"string"},"resource_type":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]},"resource_id":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"mutation","x-read-only":false,"x-audit-action":"access.accept"}},"/access/invitations/{id}":{"delete":{"operationId":"access.revokeInvitation","summary":"Revoke an invitation using current resource authority","description":"Revoke an invitation using current resource authority","tags":["access"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[a-f0-9]{32}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"mutation","x-read-only":false,"x-audit-action":"access.invitation.revoke"}},"/access/members":{"get":{"operationId":"access.members","summary":"Inspect direct and inherited resource access","description":"Inspect direct and inherited resource access","tags":["access"],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"pattern":"^[1-9][0-9]{0,14}$","type":"string"},{"minimum":1,"maximum":999999999999999,"type":"integer"}]}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]}},{"name":"resource_id","in":"query","required":false,"schema":{"maxLength":128,"pattern":"^[a-zA-Z0-9_-]*$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","owner","members","invitations","inherited"],"properties":{"success":{"const":true,"type":"boolean"},"owner":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"members":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","user","role","expires_at","version","created_at"],"properties":{"id":{"type":"string"},"user":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"role":{"type":"string"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"type":"string"},"created_at":{"type":"string"}}}},"invitations":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","email","role","expires_at","grant_expires_at"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string"},"expires_at":{"type":"string"},"grant_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"inherited":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["user","role","resource_type"],"properties":{"user":{"additionalProperties":false,"type":"object","required":["id","name","image"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"role":{"type":"string"},"resource_type":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true}},"/access/members/{id}":{"patch":{"operationId":"access.members.update","summary":"Update a grant with current authority and an optional version precondition","description":"Update a grant with current authority and an optional version precondition","tags":["access"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[a-f0-9]{32}$","type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"role":{"anyOf":[{"const":"viewer","type":"string"},{"const":"developer","type":"string"},{"const":"manager","type":"string"}]},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"version":{"anyOf":[{"anyOf":[{"minimum":1,"maximum":9007199254740991,"type":"integer"},{"pattern":"^[1-9][0-9]{0,19}$","type":"string"}]},{"type":"null"}]},"revoke":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"mutation","x-read-only":false,"x-audit-action":"access.member.update"},"delete":{"operationId":"access.members.revoke","summary":"Revoke a grant or leave shared access","description":"Revoke a grant or leave shared access","tags":["access"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"pattern":"^[a-f0-9]{32}$","type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"version":{"anyOf":[{"anyOf":[{"minimum":1,"maximum":9007199254740991,"type":"integer"},{"pattern":"^[1-9][0-9]{0,19}$","type":"string"}]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"mutation","x-read-only":false,"x-audit-action":"access.member.revoke"}},"/access/audit":{"get":{"operationId":"access.audit","summary":"Read authorized account or resource sharing activity","description":"Read authorized account or resource sharing activity","tags":["access"],"parameters":[{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"pattern":"^[1-9][0-9]{0,14}$","type":"string"},{"minimum":1,"maximum":999999999999999,"type":"integer"}]}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]}},{"name":"resource_id","in":"query","required":false,"schema":{"maxLength":128,"pattern":"^[a-zA-Z0-9_-]*$","type":"string"}},{"name":"before","in":"query","required":false,"schema":{"pattern":"^[1-9][0-9]{0,19}$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","events","next_cursor"],"properties":{"success":{"const":true,"type":"boolean"},"events":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","action","actor_id","actor_name","subject_id","subject_name","resource_type","resource_id","role","created_at"],"properties":{"id":{"type":"string"},"action":{"type":"string"},"actor_id":{"type":"string"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"resource_type":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]},"resource_id":{"type":"string"},"role":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"}}}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true}},"/access/tokens":{"post":{"operationId":"access.token","summary":"Issue a restricted token bounded by the current personal session and grants","description":"Issue a restricted token bounded by the current personal session and grants","tags":["access"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"account_id":{"anyOf":[{"pattern":"^[1-9][0-9]{0,14}$","type":"string"},{"minimum":1,"maximum":999999999999999,"type":"integer"}]},"resource_type":{"anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"},{"const":"vm","type":"string"}]},"resource_id":{"maxLength":128,"pattern":"^[a-zA-Z0-9_-]*$","type":"string"},"role":{"anyOf":[{"const":"viewer","type":"string"},{"const":"developer","type":"string"},{"const":"manager","type":"string"}]},"ttl":{"minimum":1,"maximum":3600,"type":"integer"},"label":{"maxLength":120,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","expiresAt","scope","ttl","permissions"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"type":"string"},"expiresAt":{"type":"string"},"scope":{"type":"string"},"ttl":{"type":"integer"},"permissions":{"type":"array","items":{"type":"string"}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["identity.personal"],"x-credential-scopes":["admin"],"x-authorization-policy":"mutation","x-read-only":false,"x-audit-action":"access.token.issue"}},"/access/ssh/{vmId}":{"post":{"operationId":"access.ssh","summary":"Prepare a revocable native SSH connection for an authorized VM","description":"Prepare a short-lived, revocable native SSH connection for an authorized VM. The account owner must enable SSH and the VM runtime first. The same VM permission and namespace lifecycle checks apply to HTTP and MCP.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- The response password is a temporary gateway ticket; it is not the owner's persistent guest credential. Keep it private.\n\n- Owner, namespace and credential scope are resolved by the provider. Sharing revocation, expiry, account bans, namespace suspension/deletion, parent credential revocation and SSH generation changes invalidate access.\n\n- This prepares a gateway public key in the VM when necessary. It does not start a stopped VM or grant access to another VM.\n\nRetry guidance: After a transient error, inspect the VM state and retry. Concurrent calls may reuse one current ticket. No client idempotency key is supported.","tags":["access"],"parameters":[{"name":"vmId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Prepare an authorized VM connection","value":"vm_example"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","expires_at","delegated","ssh"],"properties":{"success":{"const":true,"type":"boolean"},"expires_at":{"type":"string"},"delegated":{"type":"boolean"},"ssh":{"additionalProperties":false,"type":"object","required":["host","port","username","password","host_key_fingerprint"],"properties":{"host":{"type":"string"},"port":{"type":"integer"},"username":{"type":"string"},"password":{"type":"string"},"host_key_fingerprint":{"type":"string"}}}}},"examples":{"example1":{"summary":"Prepare an authorized VM connection","value":{"success":true,"expires_at":"2030-01-01T01:00:00.000Z","delegated":true,"ssh":{"host":"ssh.oblien.com","port":22,"username":"vm_example","password":"synthetic-ticket","host_key_fingerprint":"SHA256:synthetic"}}}}}}},"403":{"description":"permission_denied: Current sharing or consent does not authorize VM runtime access.\n\nscope_denied: The credential is bound to a different account, namespace or VM.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"ssh_disabled: The owner must enable SSH first.\n\nruntime_disabled: The VM must be running with its runtime enabled.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Too many access changes; retry after the Retry-After delay.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"503":{"description":"sharing_unavailable: Identity sharing is not enabled on this deployment.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["vm.runtime"],"x-credential-scopes":["admin","namespace","vm"],"x-authorization-policy":"ssh","x-read-only":false,"x-audit-action":"access.ssh.prepare","x-mcp-tool":"vm_ssh_connection","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}}},"/domain/routes/capabilities":{"get":{"operationId":"domain.routes.capabilities","summary":"Read supported route actions and account request limits","description":"Read supported route actions and the account request-body size ceiling before editing rules.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","actions","redirectStatuses","requestBody","maxRules","maxHeaderRules","maxConfigBytes"],"properties":{"success":{"const":true,"type":"boolean"},"actions":{"type":"array","items":{"type":"string"}},"redirectStatuses":{"type":"array","items":{"type":"number"}},"requestBody":{"additionalProperties":false,"type":"object","required":["maxBodyBytes","allowedMaxBodyBytes"],"properties":{"maxBodyBytes":{"type":"number"},"allowedMaxBodyBytes":{"type":"array","items":{"type":"number"}}}},"maxRules":{"type":"number"},"maxHeaderRules":{"type":"number"},"maxConfigBytes":{"type":"number"}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"actions":["proxy","static","redirect"],"redirectStatuses":[301,302,307,308],"requestBody":{"maxBodyBytes":104857600,"allowedMaxBodyBytes":[104857600]},"maxRules":64,"maxHeaderRules":32,"maxConfigBytes":32768}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"domain_routes_capabilities","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/domain/routes":{"get":{"operationId":"domain.routes.list","summary":"List owned domain routes in the authorized namespace","description":"List all owned route categories and statuses within the authenticated account or namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","hostname","slug","domain","route_type","target","owner_type","owner_id","user_id","namespace","is_custom","status","metadata","created_at","updated_at"],"properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"hostname":{"type":"string"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}]},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"route_type":{"type":"string"},"target":{"type":"string"},"owner_type":{"type":"string"},"owner_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_custom":{"type":"boolean"},"status":{"type":"string"},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"data":[]}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"domain_routes_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/domain/routes/{hostname}":{"get":{"operationId":"domain.routes.get","summary":"Read an owned hostname’s route rules and saved revisions","description":"Read the active configuration, immutable saved revisions and publication state for an owned hostname.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[{"name":"hostname","in":"path","required":true,"schema":{"minLength":1,"maxLength":254,"type":"string"},"examples":{"example1":{"summary":"Authorized domain operation","value":"example.test"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","active_version","config","staticPage","publication","route","versions"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"active_version":{"anyOf":[{"type":"integer"},{"type":"null"}]},"config":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"staticPage":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"route":{"additionalProperties":false,"type":"object","required":["type","ownerType","ownerId","target","status"],"properties":{"type":{"type":"string"},"ownerType":{"type":"string"},"ownerId":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"status":{"type":"string"}}},"versions":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["version","created_at","created_by"],"properties":{"version":{"type":"integer"},"created_at":{"type":"string"},"created_by":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]}}}}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"hostname":"example.test","active_version":null,"config":null,"staticPage":null,"publication":null,"route":{"type":"host","ownerType":"vm","ownerId":"vm-id","target":"10.0.0.2:80","status":"active"},"versions":[]}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"domain_routes_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"domain.routes.set","summary":"Replace an owned hostname’s routing configuration","description":"Replace a hostname configuration after validating its owned origins and current revision.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\n- VM proxy routes can be published before the application starts. On hosts with combined firewall rules, the owner enables host ingress (config.network_config.public_ingress on create or public_access on update) and allows the application port. Public IPv6 is separate. Static files are served directly from Edge.\n\n- A 202 response means SQL saved the revision and edge publication will retry. Publication attempts can be absent when its status read is temporarily unavailable. Changing rules on a disabled route never re-enables it.\n\n- Use expectedVersion from the previous read; null means the route has no saved revision.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[{"name":"hostname","in":"path","required":true,"schema":{"minLength":1,"maxLength":254,"type":"string"},"examples":{"example1":{"summary":"Authorized domain operation","value":"example.test"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":{},"type":"object","properties":{}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"action":{"kind":"redirect","to":"https://destination.test/"},"expectedVersion":null}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"hostname":"example.test","version":1,"config":{"v":1,"rules":[{"m":{"t":"prefix","p":"/"},"a":{"k":"redirect","to":"https://destination.test/","status":308}}]}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"domain.routes.set","x-mcp-tool":"domain_routes_set","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/domain/routes/{hostname}/rollback":{"post":{"operationId":"domain.routes.rollback","summary":"Restore a saved route revision with current ownership checks","description":"Create a new revision from a saved revision after revalidating origin ownership and current account limits.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\n- Rollback preserves current owner and namespace checks; it never replays an unverified old backend.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[{"name":"hostname","in":"path","required":true,"schema":{"minLength":1,"maxLength":254,"type":"string"},"examples":{"example1":{"summary":"Authorized domain operation","value":"example.test"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["version"],"properties":{"version":{"minimum":1,"type":"integer"}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"version":1}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"hostname":"example.test","version":2,"restoredFrom":1,"config":{"v":1,"rules":[{"m":{"t":"prefix","p":"/"},"a":{"k":"redirect","to":"https://destination.test/","status":308}}]}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"domain.routes.rollback","x-mcp-tool":"domain_routes_rollback","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/domain/ssls":{"get":{"operationId":"domain.ssl.list","summary":"Read certificates for currently owned custom hostnames","description":"Read certificate issuance and verified edge TLS status for currently owned custom routes.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["domain","namespace","active","status","verification","auto_renew","expires_at","source","last_attempt_at","last_error","renew_attempts"],"properties":{"domain":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"active":{"type":"boolean"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"verification":{"anyOf":[{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}},{"type":"null"}]},"auto_renew":{"type":"boolean"},"expires_at":{"anyOf":[{"type":"number"},{"type":"null"}]},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_attempt_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}]},"renew_attempts":{"type":"number"}}}}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"data":[]}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"domain_ssl_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/domain/ssls/{domain}/auto-renew":{"put":{"operationId":"domain.ssl.autoRenew","summary":"Change automatic renewal for an owned certificate","description":"Change automatic certificate renewal for an owned custom hostname.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"minLength":1,"maxLength":254,"type":"string"},"examples":{"example1":{"summary":"Authorized domain operation","value":"example.test"}}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"enabled":true}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","auto_renew"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"auto_renew":{"type":"boolean"}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"domain":"example.test","auto_renew":true}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"certificate","x-read-only":false,"x-audit-action":"domain.ssl.auto_renew","x-mcp-tool":"domain_ssl_auto_renew","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/domain/ssls/{domain}/renew":{"post":{"operationId":"domain.ssl.renew","summary":"Renew an owned custom hostname’s certificate","description":"Request certificate renewal for the current authorized route owner and verify the resulting edge TLS state.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\n- Issuance and edge publication can complete at different times; inspect returned status before retrying.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"minLength":1,"maxLength":254,"type":"string"},"examples":{"example1":{"summary":"Authorized domain operation","value":"example.test"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"domain":"example.test","ssl":{"status":"pending","expiresAt":null,"error":null}}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"certificate","x-read-only":false,"x-audit-action":"domain.ssl.renew","x-mcp-tool":"domain_ssl_renew","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/domain/check-slug":{"post":{"operationId":"domain.checkSlug","summary":"Check subdomain availability before creating a route","description":"Check public subdomain availability without reserving or creating a route.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\n- Availability can change before creation.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"slug":{"type":"string"},"domain":{"type":"string"}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"slug":"preview"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","slug","domain","hostname","url","available"],"properties":{"success":{"const":true,"type":"boolean"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"url":{"type":"string"},"available":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"}}}]},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"slug":"preview","domain":"example.test","hostname":"preview.example.test","url":"https://preview.example.test","available":true}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"preflight","x-read-only":true,"x-mcp-tool":"domain_check_slug","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/domain/verify":{"post":{"operationId":"domain.verify","summary":"Check DNS before connecting a custom hostname","description":"Check routing for this hostname. A namespace credential receives one reusable ownership TXT for its DNS zone. Keep the TXT published for new routes. An existing binding returns ownership for that exact hostname without another TXT. A delegated subdomain is its own zone. For recovery, supply the owning VM or Page as resource_id.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Account and namespace ownership are checked before reading or changing a hostname.\n\nRetry guidance: Retry transient failures with backoff. A pending publication is already saved; inspect its state before repeating a write. Refresh route revisions after a conflict.","tags":["domain"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"domain":{"type":"string"},"resource_id":{"type":"string"}}},"examples":{"example1":{"summary":"Authorized domain operation","value":{"domain":"example.test"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","domain","enterprise","verified","cname","ownership","records","errors","required_records","edge_ips"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"enterprise":{"type":"boolean"},"verified":{"type":"boolean"},"cname":{"type":"boolean"},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"records":{"type":"object","patternProperties":{"^(.*)$":{"type":"array","items":{"type":"string"}}}},"errors":{"type":"array","items":{"type":"string"}},"required_records":{"additionalProperties":false,"type":"object","required":["cname"],"properties":{"cname":{"additionalProperties":false,"type":"object","required":["host","target"],"properties":{"host":{"type":"string"},"target":{"type":"string"}}},"txt":{"additionalProperties":false,"type":"object","required":["host","value"],"properties":{"host":{"type":"string"},"value":{"type":"string"},"note":{"type":"string"}}}}},"edge_ips":{"type":"array","items":{"type":"string"}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"}}}]},"examples":{"example1":{"summary":"Authorized domain operation","value":{"success":true,"domain":"example.test","enterprise":false,"verified":false,"cname":false,"ownership":null,"records":{},"errors":[],"required_records":{"cname":{"host":"example.test","target":"edge.oblien.com"}},"edge_ips":[]}}}}}},"403":{"description":"scope_denied: The hostname or origin belongs to another namespace.","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}},"404":{"description":"not_found: The hostname or certificate is unavailable in the authorized scope.","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}},"409":{"description":"route_changed: Ownership or a route dependency changed while preparing the operation.","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["domain.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"preflight","x-read-only":true,"x-mcp-tool":"domain_verify","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/cdn/catalog":{"get":{"operationId":"cdn.catalog","summary":"Read the public CDN policy and credit rates.","description":"Read the public CDN policy and credit rates.","tags":["cdn"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","id","tiers","rates","videoPresets","defaultVideoPreset","trashRetentionDays","warningPercentages","billingActive","effectiveAt","creditsPerDollar","storageMonthHours","trafficScope"],"properties":{"success":{"const":true,"type":"boolean"},"id":{"type":"string"},"tiers":{"additionalProperties":false,"type":"object","required":["free","hobby","pro","scale","enterprise"],"properties":{"free":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"hobby":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"pro":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"scale":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"enterprise":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}}},"rates":{"additionalProperties":false,"type":"object","required":["storageCreditsPerGiBMonth","trafficCreditsPerGiB"],"properties":{"storageCreditsPerGiBMonth":{"minimum":0,"type":"number"},"trafficCreditsPerGiB":{"minimum":0,"type":"number"}}},"videoPresets":{"additionalProperties":false,"type":"object","required":["compact","balanced","high"],"properties":{"compact":{"additionalProperties":false,"type":"object","required":["height","crf","fps","audioKbps"],"properties":{"height":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"crf":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"fps":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"audioKbps":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"balanced":{"additionalProperties":false,"type":"object","required":["height","crf","fps","audioKbps"],"properties":{"height":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"crf":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"fps":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"audioKbps":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"high":{"additionalProperties":false,"type":"object","required":["height","crf","fps","audioKbps"],"properties":{"height":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"crf":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"fps":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"audioKbps":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}}},"defaultVideoPreset":{"type":"string"},"trashRetentionDays":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"warningPercentages":{"type":"array","items":{"minimum":0,"maximum":9007199254740991,"type":"integer"}},"billingActive":{"type":"boolean"},"effectiveAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"creditsPerDollar":{"type":"number"},"storageMonthHours":{"type":"number"},"trafficScope":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"public","x-read-only":true}},"/cdn/policy":{"get":{"operationId":"cdn.policy","summary":"Read effective CDN media policy","description":"Read effective CDN media policy\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","formats","provider","version","tier","namespace","billing","effective","usage"],"properties":{"success":{"const":true,"type":"boolean"},"formats":{"type":"object","patternProperties":{"^(.*)$":{"additionalProperties":false,"type":"object","required":["kind","extensions"],"properties":{"kind":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]},"extensions":{"type":"array","items":{"type":"string"}}}}}},"provider":{"additionalProperties":false,"type":"object","required":["id","tiers","rates","videoPresets","defaultVideoPreset","trashRetentionDays","warningPercentages"],"properties":{"id":{"type":"string"},"tiers":{"additionalProperties":false,"type":"object","required":["free","hobby","pro","scale","enterprise"],"properties":{"free":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"hobby":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"pro":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"scale":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"enterprise":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}}},"rates":{"additionalProperties":false,"type":"object","required":["storageCreditsPerGiBMonth","trafficCreditsPerGiB"],"properties":{"storageCreditsPerGiBMonth":{"minimum":0,"type":"number"},"trafficCreditsPerGiB":{"minimum":0,"type":"number"}}},"videoPresets":{"additionalProperties":false,"type":"object","required":["compact","balanced","high"],"properties":{"compact":{"additionalProperties":false,"type":"object","required":["height","crf","fps","audioKbps"],"properties":{"height":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"crf":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"fps":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"audioKbps":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"balanced":{"additionalProperties":false,"type":"object","required":["height","crf","fps","audioKbps"],"properties":{"height":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"crf":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"fps":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"audioKbps":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"high":{"additionalProperties":false,"type":"object","required":["height","crf","fps","audioKbps"],"properties":{"height":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"crf":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"fps":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"audioKbps":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}}},"defaultVideoPreset":{"type":"string"},"trashRetentionDays":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"warningPercentages":{"type":"array","items":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}},"version":{"type":"string"},"tier":{"type":"string"},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"billing":{"additionalProperties":false,"type":"object","required":["active","rates","currency","creditsPerDollar","storageMonthHours","trafficScope","effectiveAt"],"properties":{"active":{"type":"boolean"},"rates":{"additionalProperties":false,"type":"object","required":["storageCreditsPerGiBMonth","trafficCreditsPerGiB"],"properties":{"storageCreditsPerGiBMonth":{"minimum":0,"type":"number"},"trafficCreditsPerGiB":{"minimum":0,"type":"number"}}},"currency":{"type":"string"},"creditsPerDollar":{"type":"number"},"storageMonthHours":{"type":"number"},"trafficScope":{"type":"string"},"effectiveAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"account":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"effective":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"usage":{"additionalProperties":false,"type":"object","required":["namespace"],"properties":{"account":{"additionalProperties":false,"type":"object","required":["stored","ingested","reserved","concurrent"],"properties":{"stored":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"ingested":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"reserved":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"concurrent":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"namespace":{"additionalProperties":false,"type":"object","required":["stored","ingested","reserved","concurrent"],"properties":{"stored":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"ingested":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"reserved":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"concurrent":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"formats":{},"provider":{"id":"","tiers":{"free":{"allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0},"hobby":{"allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0},"pro":{"allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0},"scale":{"allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0},"enterprise":{"allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0}},"rates":{"storageCreditsPerGiBMonth":0,"trafficCreditsPerGiB":0},"videoPresets":{"compact":{"height":0,"crf":0,"fps":0,"audioKbps":0},"balanced":{"height":0,"crf":0,"fps":0,"audioKbps":0},"high":{"height":0,"crf":0,"fps":0,"audioKbps":0}},"defaultVideoPreset":"","trashRetentionDays":0,"warningPercentages":[]},"version":"","tier":"","namespace":"","billing":{"active":false,"rates":{"storageCreditsPerGiBMonth":0,"trafficCreditsPerGiB":0},"currency":"","creditsPerDollar":0,"storageMonthHours":0,"trafficScope":"","effectiveAt":""},"effective":{"allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0},"usage":{"namespace":{"stored":0,"ingested":0,"reserved":0,"concurrent":0}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"policy","x-read-only":true,"x-mcp-tool":"cdn_policy","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/uploads/{uploadId}":{"get":{"operationId":"cdn.uploads.get","summary":"Read an authorized upload operation","description":"Read an authorized upload operation\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"uploadId","in":"path","required":true,"schema":{"pattern":"^[a-f0-9-]{36}$","type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"11111111-1111-4111-8111-111111111111"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","upload"],"properties":{"success":{"const":true,"type":"boolean"},"upload":{"additionalProperties":false,"type":"object","required":["id","status","namespace","expiresAt","reservedBytes"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string"},"reservedBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"result":{"additionalProperties":false,"type":"object","required":["files"],"properties":{"files":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["file_id","url","filename","size","totalBytes","mime","kind","variants","tag"],"properties":{"file_id":{"type":"string"},"url":{"type":"string"},"filename":{"type":"string"},"size":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"totalBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"mime":{"type":"string"},"kind":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]},"variants":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["variant","url"],"properties":{"variant":{"type":"string"},"url":{"type":"string"},"size":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"mime":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"duration":{"type":"number"}}}},"tag":{"anyOf":[{"type":"string"},{"type":"null"}]},"expires_at":{"type":"number"}}}}}},"error":{"type":"string"}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"upload":{"id":"","status":"","namespace":"","expiresAt":"","reservedBytes":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"upload","x-read-only":true,"x-mcp-tool":"cdn_upload","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/token":{"post":{"operationId":"cdn.token","summary":"Issue a quota-governed CDN upload permit with owner backend credentials","description":"Issue a quota-governed CDN upload permit with owner backend credentials\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: For upload admission, reuse the same idempotencyKey and identical options. Inspect operation state before retrying an uncertain file or domain mutation.","tags":["cdn"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"cdnHost":{"maxLength":253,"type":"string"},"tag":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"variants":{"type":"object","patternProperties":{"^(.*)$":{}}},"video":{"type":"object","patternProperties":{"^(.*)$":{}}},"files":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["name","size","mime"],"properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"size":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"mime":{"minLength":1,"maxLength":120,"type":"string"}}}},"maxBytes":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":1,"maximum":100,"type":"integer"},"idempotencyKey":{"pattern":"^[!-~]{1,128}$","type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","scope","permissions","namespace","expiresIn","startWithin","upload","limits","endpoints","message"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"type":"string"},"scope":{"const":"user","type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"expiresIn":{"type":"string"},"startWithin":{"type":"string"},"upload":{"additionalProperties":false,"type":"object","required":["id","status","namespace","expiresAt","reservedBytes"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string"},"reservedBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"result":{"additionalProperties":false,"type":"object","required":["files"],"properties":{"files":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["file_id","url","filename","size","totalBytes","mime","kind","variants","tag"],"properties":{"file_id":{"type":"string"},"url":{"type":"string"},"filename":{"type":"string"},"size":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"totalBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"mime":{"type":"string"},"kind":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]},"variants":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["variant","url"],"properties":{"variant":{"type":"string"},"url":{"type":"string"},"size":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"mime":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"duration":{"type":"number"}}}},"tag":{"anyOf":[{"type":"string"},{"type":"null"}]},"expires_at":{"type":"number"}}}}}},"error":{"type":"string"}}},"limits":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds","maxBytes"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"endpoints":{"additionalProperties":false,"type":"object","required":["multipart","resumable"],"properties":{"multipart":{"type":"string"},"resumable":{"type":"string"}}},"message":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"token":"","scope":"user","permissions":[],"namespace":"","expiresIn":"","startWithin":"","upload":{"id":"","status":"","namespace":"","expiresAt":"","reservedBytes":0},"limits":{"allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0,"maxBytes":0},"endpoints":{"multipart":"","resumable":""},"message":""}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"token","x-read-only":false,"x-audit-action":"token","x-mcp-tool":"cdn_token","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/cdn/token/admin":{"post":{"operationId":"cdn.token.admin","summary":"Issue an ordinary quota-governed upload permit with admin credentials.","description":"Issue an ordinary quota-governed upload permit with admin credentials.","tags":["cdn"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"cdnHost":{"maxLength":253,"type":"string"},"tag":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"variants":{"type":"object","patternProperties":{"^(.*)$":{}}},"video":{"type":"object","patternProperties":{"^(.*)$":{}}},"files":{"minItems":1,"maxItems":100,"type":"array","items":{"additionalProperties":false,"type":"object","required":["name","size","mime"],"properties":{"name":{"minLength":1,"maxLength":255,"type":"string"},"size":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"mime":{"minLength":1,"maxLength":120,"type":"string"}}}},"maxBytes":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":1,"maximum":100,"type":"integer"},"idempotencyKey":{"pattern":"^[!-~]{1,128}$","type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","scope","permissions","namespace","expiresIn","startWithin","upload","limits","endpoints","message"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"type":"string"},"scope":{"const":"user","type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"expiresIn":{"type":"string"},"startWithin":{"type":"string"},"upload":{"additionalProperties":false,"type":"object","required":["id","status","namespace","expiresAt","reservedBytes"],"properties":{"id":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string"},"reservedBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"result":{"additionalProperties":false,"type":"object","required":["files"],"properties":{"files":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["file_id","url","filename","size","totalBytes","mime","kind","variants","tag"],"properties":{"file_id":{"type":"string"},"url":{"type":"string"},"filename":{"type":"string"},"size":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"totalBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"mime":{"type":"string"},"kind":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]},"variants":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["variant","url"],"properties":{"variant":{"type":"string"},"url":{"type":"string"},"size":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"mime":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"duration":{"type":"number"}}}},"tag":{"anyOf":[{"type":"string"},{"type":"null"}]},"expires_at":{"type":"number"}}}}}},"error":{"type":"string"}}},"limits":{"additionalProperties":false,"type":"object","required":["allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds","maxBytes"],"properties":{"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"endpoints":{"additionalProperties":false,"type":"object","required":["multipart","resumable"],"properties":{"multipart":{"type":"string"},"resumable":{"type":"string"}}},"message":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"adminToken","x-read-only":false,"x-audit-action":"adminToken"}},"/cdn/files":{"get":{"operationId":"cdn.files.list","summary":"List files in the authorized CDN scope","description":"List files in the authorized CDN scope\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}},{"name":"page","in":"query","required":false,"schema":{"minimum":1,"maximum":1000000,"type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"tag","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"upload_type","in":"query","required":false,"schema":{"anyOf":[{"const":"upload","type":"string"},{"const":"url","type":"string"}]}},{"name":"media_kind","in":"query","required":false,"schema":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"const":"created_at","type":"string"},{"const":"size","type":"string"},{"const":"filename","type":"string"}]}},{"name":"sort_order","in":"query","required":false,"schema":{"anyOf":[{"const":"ASC","type":"string"},{"const":"DESC","type":"string"},{"const":"asc","type":"string"},{"const":"desc","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["files","pagination"],"properties":{"files":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","user_id","filename","file_path","cdn_url","size","mime_type","variants","metadata","upload_type","is_deleted","created_at","updated_at"],"properties":{"id":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"string"}]},"user_id":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"string"}]},"node_file_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"tag":{"anyOf":[{"type":"string"},{"type":"null"}]},"filename":{"type":"string"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}]},"original_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"file_path":{"type":"string"},"cdn_url":{"type":"string"},"size":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"total_bytes":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},{"type":"null"}]},"mime_type":{"type":"string"},"variants":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["variant","url"],"properties":{"variant":{"type":"string"},"url":{"type":"string"},"size":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"mime":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"duration":{"type":"number"}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"media_kind":{"anyOf":[{"type":"string"},{"type":"null"}]},"storage_state":{"type":"string"},"bytes_served":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},{"type":"null"}]},"hits":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},{"type":"null"}]},"last_served_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"upload_type":{"type":"string"},"is_deleted":{"type":"boolean"},"deleted_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"pending_operation":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","operation","state"],"properties":{"id":{"type":"string"},"operation":{"type":"string"},"state":{"type":"string"}}},{"type":"null"}]}}}},"pagination":{"additionalProperties":false,"type":"object","required":["page","limit","total","totalPages","hasMore"],"properties":{"page":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"limit":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"total":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"totalPages":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"hasMore":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"files":[],"pagination":{"page":0,"limit":0,"total":0,"totalPages":0,"hasMore":false}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"cdn_files","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/stats":{"get":{"operationId":"cdn.stats","summary":"Read storage counts in the authorized scope","description":"Read storage counts in the authorized scope\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["totalFiles","totalSize","activeFiles","activeSize","uploadedFiles","urlFiles"],"properties":{"totalFiles":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"totalSize":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"activeFiles":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"activeSize":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"uploadedFiles":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"urlFiles":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"totalFiles":0,"totalSize":0,"activeFiles":0,"activeSize":0,"uploadedFiles":0,"urlFiles":0}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"cdn_stats","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/usage":{"get":{"operationId":"cdn.usage","summary":"Read CDN storage, delivery and billing usage","description":"Read CDN storage, delivery and billing usage\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}},{"name":"period","in":"query","required":false,"schema":{"pattern":"^\\d{4}-(?:0[1-9]|1[0-2])$","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["namespace","scope","period","ingest","active","storage","served","limits","namespace_limits","defaults","billing","policy"],"properties":{"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"scope":{"type":"string"},"period":{"type":"string"},"ingest":{"additionalProperties":false,"type":"object","required":["bytes","files"],"properties":{"bytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"files":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"active":{"additionalProperties":false,"type":"object","required":["bytes","files"],"properties":{"bytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"files":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"storage":{"additionalProperties":false,"type":"object","required":["bytes","trashBytes","reservedBytes"],"properties":{"bytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"trashBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"reservedBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"served":{"additionalProperties":false,"type":"object","required":["bytes","hits","scope"],"properties":{"bytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"hits":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"scope":{"type":"string"}}},"limits":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]}}},"namespace_limits":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}},"defaults":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes","policy"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}},"billing":{"additionalProperties":false,"type":"object","required":["active","rates","currency","creditsPerDollar","storageMonthHours","trafficScope","effectiveAt","periodCredits","storageCredits","trafficCredits","estimatedStorageCreditsPerMonth"],"properties":{"active":{"type":"boolean"},"rates":{"additionalProperties":false,"type":"object","required":["storageCreditsPerGiBMonth","trafficCreditsPerGiB"],"properties":{"storageCreditsPerGiBMonth":{"minimum":0,"type":"number"},"trafficCreditsPerGiB":{"minimum":0,"type":"number"}}},"currency":{"type":"string"},"creditsPerDollar":{"type":"number"},"storageMonthHours":{"type":"number"},"trafficScope":{"type":"string"},"effectiveAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"periodCredits":{"type":"number"},"storageCredits":{"type":"number"},"trafficCredits":{"type":"number"},"estimatedStorageCreditsPerMonth":{"type":"number"}}},"policy":{"additionalProperties":false,"type":"object","required":["tier","version","allowedKinds","maxFileBytes","maxUploadBytes","storageBytes","monthlyUploadBytes","maxFiles","maxConcurrentUploads","maxVariants","maxImagePixels","maxVideoPixels","maxVideoDurationSeconds"],"properties":{"tier":{"type":"string"},"version":{"type":"string"},"allowedKinds":{"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","required":["image","video","document","archive"],"properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"storageBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"monthlyUploadBytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"maxFiles":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxConcurrentUploads":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVariants":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxImagePixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoPixels":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxVideoDurationSeconds":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"namespace":"","scope":"","period":"","ingest":{"bytes":0,"files":0},"active":{"bytes":0,"files":0},"storage":{"bytes":0,"trashBytes":0,"reservedBytes":0},"served":{"bytes":0,"hits":0,"scope":""},"limits":{"cdn_max_bytes":0,"cdn_monthly_bytes":0},"namespace_limits":{"cdn_max_bytes":0,"cdn_monthly_bytes":0},"defaults":{"cdn_max_bytes":0,"cdn_monthly_bytes":0,"policy":{}},"billing":{"active":false,"rates":{"storageCreditsPerGiBMonth":0,"trafficCreditsPerGiB":0},"currency":"","creditsPerDollar":0,"storageMonthHours":0,"trafficScope":"","effectiveAt":"","periodCredits":0,"storageCredits":0,"trafficCredits":0,"estimatedStorageCreditsPerMonth":0},"policy":{"tier":"","version":"","allowedKinds":[],"maxFileBytes":{"image":0,"video":0,"document":0,"archive":0},"maxUploadBytes":0,"storageBytes":0,"monthlyUploadBytes":0,"maxFiles":0,"maxConcurrentUploads":0,"maxVariants":0,"maxImagePixels":0,"maxVideoPixels":0,"maxVideoDurationSeconds":0}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"cdn_usage","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/usage/series":{"get":{"operationId":"cdn.usage.series","summary":"Read the CDN ingest time series","description":"Read the CDN ingest time series\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}},{"name":"interval","in":"query","required":false,"schema":{"anyOf":[{"const":"day","type":"string"},{"const":"month","type":"string"}]}},{"name":"days","in":"query","required":false,"schema":{"minimum":1,"maximum":366,"type":"integer"}},{"name":"months","in":"query","required":false,"schema":{"minimum":1,"maximum":120,"type":"integer"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["namespace","interval","from","to","series"],"properties":{"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"interval":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"series":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["bucket","bytes","files"],"properties":{"bucket":{"type":"string"},"bytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"files":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"namespace":"","interval":"","from":"","to":"","series":[]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"cdn_usage_series","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/tags":{"get":{"operationId":"cdn.tags","summary":"List CDN classification tags","description":"List CDN classification tags\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["namespace","tags"],"properties":{"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"namespace":"","tags":[]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"cdn_tags","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/quota-defaults":{"get":{"operationId":"cdn.quotaDefaults","summary":"Read owner CDN quota defaults","description":"Read owner CDN quota defaults\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes","policy"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"cdn_max_bytes":0,"cdn_monthly_bytes":0,"policy":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"admin","x-read-only":true,"x-mcp-tool":"cdn_quota_defaults","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"cdn.quotaDefaults.set","summary":"Set owner CDN quota defaults","description":"Set owner CDN quota defaults\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: For upload admission, reuse the same idempotencyKey and identical options. Inspect operation state before retrying an uncertain file or domain mutation.","tags":["cdn"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes","policy"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"cdn_max_bytes":0,"cdn_monthly_bytes":0,"policy":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"admin","x-read-only":false,"x-audit-action":"setQuotaDefaults","x-mcp-tool":"cdn_set_quota_defaults","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/cdn/namespaces":{"get":{"operationId":"cdn.namespaces","summary":"List authorized CDN namespace usage and quotas","description":"List authorized CDN namespace usage and quotas\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}},{"name":"page","in":"query","required":false,"schema":{"minimum":1,"maximum":1000000,"type":"integer"}},{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"integer"}},{"name":"search","in":"query","required":false,"schema":{"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["defaults","namespaces","pagination"],"properties":{"defaults":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes","policy"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}},"namespaces":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["namespace","files","active_bytes","limits","override","has_override"],"properties":{"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"files":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"active_bytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"limits":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]}}},"override":{"additionalProperties":false,"type":"object","required":["cdn_max_bytes","cdn_monthly_bytes","policy"],"properties":{"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}},"has_override":{"type":"boolean"}}}},"pagination":{"additionalProperties":false,"type":"object","required":["page","limit","total","totalPages","hasMore"],"properties":{"page":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"limit":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"total":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"totalPages":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"hasMore":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"defaults":{"cdn_max_bytes":0,"cdn_monthly_bytes":0,"policy":{}},"namespaces":[],"pagination":{"page":0,"limit":0,"total":0,"totalPages":0,"hasMore":false}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"cdn_namespaces","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/namespaces/quota":{"put":{"operationId":"cdn.namespaceQuota.set","summary":"Set a CDN namespace quota","description":"Set a CDN namespace quota\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: For upload admission, reuse the same idempotencyKey and identical options. Inspect operation state before retrying an uncertain file or domain mutation.","tags":["cdn"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["namespace"],"properties":{"namespace":{"minLength":1,"maxLength":64,"type":"string"},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"namespace":"example.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["namespace","cdn_max_bytes","cdn_monthly_bytes","policy"],"properties":{"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"cdn_max_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"cdn_monthly_bytes":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"null"}]},"policy":{"anyOf":[{"additionalProperties":false,"type":"object","properties":{"allowedKinds":{"maxItems":4,"uniqueItems":true,"type":"array","items":{"anyOf":[{"const":"image","type":"string"},{"const":"video","type":"string"},{"const":"document","type":"string"},{"const":"archive","type":"string"}]}},"maxFileBytes":{"additionalProperties":false,"type":"object","properties":{"image":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"video":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"document":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"archive":{"minimum":0,"maximum":9007199254740991,"type":"integer"}}},"maxUploadBytes":{"minimum":0,"maximum":9007199254740991,"type":"integer"},"maxFiles":{"minimum":0,"maximum":100,"type":"integer"},"maxVariants":{"minimum":0,"maximum":12,"type":"integer"}}},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"namespace":"","cdn_max_bytes":0,"cdn_monthly_bytes":0,"policy":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"admin","x-read-only":false,"x-audit-action":"setNamespaceQuota","x-mcp-tool":"cdn_set_namespace_quota","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/cdn/domains":{"post":{"operationId":"cdn.domains.add","summary":"Connect a verified custom CDN domain","description":"Connect a verified custom CDN domain\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: For upload admission, reuse the same idempotencyKey and identical options. Inspect operation state before retrying an uncertain file or domain mutation.","tags":["cdn"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain"],"properties":{"domain":{"minLength":1,"maxLength":254,"type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"domain":"example.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","host","url","ssl","dns"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"host":{"type":"string"},"url":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"dns":{"additionalProperties":false,"type":"object","required":["verified","cname","ownership","errors"],"properties":{"verified":{"type":"boolean"},"cname":{"type":"boolean"},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"errors":{"type":"array","items":{"type":"string"}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"domain":"","host":"","url":"","ssl":{"status":"","expiresAt":""},"dns":{"verified":false,"cname":false,"ownership":false,"errors":[]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"admin","x-read-only":false,"x-audit-action":"addDomain","x-mcp-tool":"cdn_add_domain","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"get":{"operationId":"cdn.domains","summary":"List owner CDN delivery domains","description":"List owner CDN delivery domains\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domains"],"properties":{"success":{"const":true,"type":"boolean"},"domains":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["domain","custom","status","createdAt"],"properties":{"domain":{"type":"string"},"custom":{"type":"boolean"},"status":{"type":"string"},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"domains":[]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"admin","x-read-only":true,"x-mcp-tool":"cdn_domains","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/cdn/domains/{domain}":{"delete":{"operationId":"cdn.domains.remove","summary":"Disconnect an owned custom CDN domain","description":"Disconnect an owned custom CDN domain\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: For upload admission, reuse the same idempotencyKey and identical options. Inspect operation state before retrying an uncertain file or domain mutation.","tags":["cdn"],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"minLength":1,"maxLength":254,"type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"example.com"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","removed"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"removed":""}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"admin","x-read-only":false,"x-audit-action":"removeDomain","x-mcp-tool":"cdn_remove_domain","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/cdn/files/{fileId}":{"get":{"operationId":"cdn.files.get","summary":"Inspect a CDN file","description":"Inspect a CDN file\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: Safe to retry this read.","tags":["cdn"],"parameters":[{"name":"fileId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"sample"}}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","data"],"properties":{"success":{"const":true,"type":"boolean"},"data":{"additionalProperties":false,"type":"object","required":["id","user_id","filename","file_path","cdn_url","size","mime_type","variants","metadata","upload_type","is_deleted","created_at","updated_at"],"properties":{"id":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"string"}]},"user_id":{"anyOf":[{"minimum":0,"maximum":9007199254740991,"type":"integer"},{"type":"string"}]},"node_file_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]},"tag":{"anyOf":[{"type":"string"},{"type":"null"}]},"filename":{"type":"string"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}]},"original_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"file_path":{"type":"string"},"cdn_url":{"type":"string"},"size":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"total_bytes":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},{"type":"null"}]},"mime_type":{"type":"string"},"variants":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["variant","url"],"properties":{"variant":{"type":"string"},"url":{"type":"string"},"size":{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},"mime":{"type":"string"},"width":{"type":"number"},"height":{"type":"number"},"duration":{"type":"number"}}}},"metadata":{"type":"object","patternProperties":{"^(.*)$":{}}},"media_kind":{"anyOf":[{"type":"string"},{"type":"null"}]},"storage_state":{"type":"string"},"bytes_served":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},{"type":"null"}]},"hits":{"anyOf":[{"anyOf":[{"minimum":0,"type":"number"},{"pattern":"^\\d+(?:\\.\\d+)?$","type":"string"}]},{"type":"null"}]},"last_served_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"upload_type":{"type":"string"},"is_deleted":{"type":"boolean"},"deleted_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"pending_operation":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","operation","state"],"properties":{"id":{"type":"string"},"operation":{"type":"string"},"state":{"type":"string"}}},{"type":"null"}]}}}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"data":{"id":0,"user_id":0,"filename":"","file_path":"","cdn_url":"","size":0,"mime_type":"","variants":[],"metadata":{},"upload_type":"","is_deleted":false,"created_at":"","updated_at":""}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"file","x-read-only":true,"x-mcp-tool":"cdn_file","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"delete":{"operationId":"cdn.files.delete","summary":"Trash or permanently delete an owned CDN file","description":"Trash or permanently delete an owned CDN file\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: For upload admission, reuse the same idempotencyKey and identical options. Inspect operation state before retrying an uncertain file or domain mutation.","tags":["cdn"],"parameters":[{"name":"fileId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"sample"}}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}},{"name":"permanent","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","pending"],"properties":{"success":{"const":true,"type":"boolean"},"pending":{"type":"boolean"},"operationId":{"type":"string"},"state":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"pending":false}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","pending"],"properties":{"success":{"const":true,"type":"boolean"},"pending":{"type":"boolean"},"operationId":{"type":"string"},"state":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"fileCleanup","x-read-only":false,"x-audit-action":"deleteFile","x-mcp-tool":"cdn_delete_file","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true}}},"/cdn/files/{fileId}/restore":{"post":{"operationId":"cdn.files.restore","summary":"Restore a CDN file within its storage policy","description":"Restore a CDN file within its storage policy\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Requires account-owner backend credentials. OAuth and shared identities cannot mint durable CDN permits or access account billing.\n\n- Namespace credentials can access only their bound namespace. Omitting a namespace with an account credential means the documented personal or account scope; it never grants another owner access.\n\n- Upload permits reserve allowance for one operation. Start within five minutes and resume the same upload for at most 24 hours. Publication and credit checks remain enforced by the provider.\n\nRetry guidance: For upload admission, reuse the same idempotencyKey and identical options. Inspect operation state before retrying an uncertain file or domain mutation.","tags":["cdn"],"parameters":[{"name":"fileId","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","type":"string"},"examples":{"example1":{"summary":"Synthetic request and response","value":"sample"}}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}]}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"const":"personal","type":"string"},{"const":"all","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","pending"],"properties":{"success":{"const":true,"type":"boolean"},"pending":{"type":"boolean"},"operationId":{"type":"string"},"state":{"type":"string"}}},"examples":{"example1":{"summary":"Synthetic request and response","value":{"success":true,"pending":false}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","pending"],"properties":{"success":{"const":true,"type":"boolean"},"pending":{"type":"boolean"},"operationId":{"type":"string"},"state":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"fileRestore","x-read-only":false,"x-audit-action":"restoreFile","x-mcp-tool":"cdn_restore_file","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/auth/status":{"get":{"operationId":"auth.status","summary":"Read the current session identity, including anonymous sessions","description":"Read the current session identity, including anonymous sessions","tags":["auth"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["authenticated","user"],"properties":{"authenticated":{"type":"boolean"},"user":{"additionalProperties":false,"type":"object","required":["show_welcome"],"properties":{"id":{"anyOf":[{"type":"string"},{"type":"number"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"statue":{"anyOf":[{"type":"string"},{"type":"null"}]},"show_welcome":{"const":false,"type":"boolean"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[],"x-required-permissions":[],"x-credential-scopes":[],"x-authorization-policy":"session-status","x-read-only":true}},"/auth/2fa/status":{"get":{"operationId":"auth.get2FAStatus","summary":"Read the signed-in account authenticator status","description":"Read the signed-in account authenticator status","tags":["auth"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","enabled","configured"],"properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"configured":{"type":"boolean"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"personal","x-read-only":true}},"/auth/2fa/setup":{"post":{"operationId":"auth.setup2FA","summary":"Prepare an authenticator for the signed-in account","description":"Prepare an authenticator for the signed-in account","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","secret","qrCode","message"],"properties":{"success":{"const":true,"type":"boolean"},"secret":{"type":"string"},"qrCode":{"type":"string"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.mfa.setup"}},"/auth/2fa/enable":{"post":{"operationId":"auth.enable2FA","summary":"Enable the signed-in account authenticator","description":"Enable the signed-in account authenticator","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"token":{"minLength":1,"maxLength":128,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"},"backupCodes":{"maxItems":10,"type":"array","items":{"pattern":"^[A-F0-9]{10}$","type":"string"}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.mfa.enable"}},"/auth/2fa/disable":{"post":{"operationId":"auth.disable2FA","summary":"Disable the signed-in account authenticator after step-up verification","description":"Disable the signed-in account authenticator after step-up verification","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"token":{"minLength":1,"maxLength":128,"type":"string"},"password":{"minLength":1,"maxLength":1024,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.mfa.disable"}},"/auth/2fa/delete":{"post":{"operationId":"auth.delete2FA","summary":"Delete the signed-in account authenticator after step-up verification","description":"Delete the signed-in account authenticator after step-up verification","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"token":{"minLength":1,"maxLength":128,"type":"string"},"password":{"minLength":1,"maxLength":1024,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.mfa.delete"}},"/auth/2fa/verify":{"post":{"operationId":"auth.verify2FA","summary":"Verify the signed-in account authenticator or consume a recovery code","description":"Verify the signed-in account authenticator or consume a recovery code","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"token":{"minLength":1,"maxLength":128,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","verified"],"properties":{"success":{"const":true,"type":"boolean"},"verified":{"const":true,"type":"boolean"},"remainingCodes":{"minimum":0,"maximum":10,"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.mfa.verify"}},"/auth/2fa/backup-codes/regenerate":{"post":{"operationId":"auth.regenerateBackupCodes","summary":"Replace the signed-in account recovery codes after verification","description":"Replace the signed-in account recovery codes after verification","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"token":{"minLength":1,"maxLength":128,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","backupCodes"],"properties":{"success":{"const":true,"type":"boolean"},"backupCodes":{"maxItems":10,"type":"array","items":{"pattern":"^[A-F0-9]{10}$","type":"string"}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.mfa.backup_codes.regenerate"}},"/auth/2fa/backup-codes/view":{"post":{"operationId":"auth.viewBackupCodes","summary":"Read the signed-in account recovery codes after verification","description":"Read the signed-in account recovery codes after verification","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"token":{"minLength":1,"maxLength":128,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","backupCodes"],"properties":{"success":{"const":true,"type":"boolean"},"backupCodes":{"maxItems":10,"type":"array","items":{"pattern":"^[A-F0-9]{10}$","type":"string"}}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.mfa.backup_codes.view"}},"/auth/password/change":{"post":{"operationId":"auth.changePassword","summary":"Change the signed-in account password and revoke other sessions","description":"Change the signed-in account password and revoke other sessions","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"currentPassword":{"minLength":1,"maxLength":1024,"type":"string"},"newPassword":{"minLength":1,"maxLength":1024,"type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.password.change"}},"/auth/resend-verification":{"post":{"operationId":"auth.resendVerificationEmail","summary":"Resend the signed-in account email verification","description":"Resend the signed-in account email verification","tags":["auth"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","message"],"properties":{"success":{"const":true,"type":"boolean"},"message":{"type":"string"}}},{"additionalProperties":false,"type":"object","required":["success","error","message"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}}}}]}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}},{"additionalProperties":false,"type":"object","required":["success","error","message","code","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"message":{"type":"string"},"status":{"minimum":400,"maximum":599,"type":"integer"},"details":{"type":"array","items":{"type":"string"}},"code":{"type":"string"},"requestId":{"type":"string"}}}]}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["owner.only"],"x-credential-scopes":["admin"],"x-authorization-policy":"sensitive","x-read-only":false,"x-audit-action":"auth.email.resend_verification"}},"/pages":{"get":{"operationId":"page.list","summary":"List pages in the authenticated account, narrowed by the credential namespace.","description":"List pages in the authenticated account, narrowed by the credential namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","pages"],"properties":{"success":{"const":true,"type":"boolean"},"pages":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["name","slug","domain","url","status","source_vm_id"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"source_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"exported_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"config":{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"}}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"pages":[]}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"list","x-read-only":true,"x-mcp-tool":"page_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"page.create","summary":"Create a page by exporting a folder from a running VM.","description":"Create a page by exporting a folder from a running VM.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\n- Export requires vm.runtime on the source VM, including when it is shared. A viewer grant cannot export guest files.\n\n- The source namespace and destination namespace must both permit mutation; scoped credentials cannot cross namespaces.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["vm_id","path"],"properties":{"vm_id":{"minLength":1,"maxLength":128,"type":"string"},"path":{"minLength":1,"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"vm_id":"vm-example","path":"/app/dist","namespace":"team-a"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","page"],"properties":{"success":{"const":true,"type":"boolean"},"page":{"additionalProperties":false,"type":"object","required":["name","slug","domain","url","status","source_vm_id"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"source_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"exported_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"config":{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"page":{"name":"Preview","slug":"preview","domain":"example.test","url":"https://preview.example.test","status":"active","source_vm_id":"vm-example","namespace":"team-a"}}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage","vm.read","vm.runtime"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"create","x-read-only":false,"x-audit-action":"page.create","x-mcp-tool":"page_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}}},"/pages/{slug}":{"get":{"operationId":"page.get","summary":"Read public page settings and deployment source without internal host paths.","description":"Read public page settings and deployment source without internal host paths.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","page"],"properties":{"success":{"const":true,"type":"boolean"},"page":{"additionalProperties":false,"type":"object","required":["name","slug","domain","url","status","source_vm_id"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"source_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"exported_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"config":{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"page":{"name":"Preview","slug":"preview","domain":"example.test","url":"https://preview.example.test","status":"active","source_vm_id":"vm-example","namespace":"team-a"}}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"page_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"page.update","summary":"Update page metadata or rename its managed subdomain.","description":"Update page metadata or rename its managed subdomain.\n\n- MCP argument new_slug maps to HTTP JSON body field slug; path parameters keep their original names.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\n- HTTP uses body.slug for the new slug; MCP uses new_slug. The path or MCP slug always identifies the existing page.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"slug":"preview","name":"Renamed"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","page"],"properties":{"success":{"const":true,"type":"boolean"},"page":{"additionalProperties":false,"type":"object","required":["name","slug","domain","url","status","source_vm_id"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"source_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"exported_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"config":{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"page":{"name":"Renamed","slug":"renamed","domain":"example.test","url":"https://renamed.example.test","status":"active","source_vm_id":"vm-example","namespace":"team-a"}}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"page.update","x-mcp-tool":"page_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},"delete":{"operationId":"page.delete","summary":"Delete page metadata and owned routes, then attempt to remove exported files from the source node.","description":"Delete page metadata and owned routes, then attempt to remove exported files from the source node.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\n- A 202 response includes a pending publication receipt: metadata deletion is committed and edge withdrawal will retry. File cleanup is best effort.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","removed"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"removed":"preview"}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","removed"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"cleanup","x-read-only":false,"x-audit-action":"page.delete","x-mcp-tool":"page_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}}},"/pages/{slug}/deploy":{"post":{"operationId":"page.deploy","summary":"Replace a page’s files only after the source export succeeds.","description":"Replace a page’s files only after the source export succeeds.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\n- Export requires vm.runtime on the source VM, including when it is shared. A viewer grant cannot export guest files.\n\n- The source namespace and destination namespace must both permit mutation; scoped credentials cannot cross namespaces.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["vm_id","path"],"properties":{"vm_id":{"minLength":1,"maxLength":128,"type":"string"},"path":{"minLength":1,"type":"string"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"vm_id":"vm-example","path":"/app/dist"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","page"],"properties":{"success":{"const":true,"type":"boolean"},"page":{"additionalProperties":false,"type":"object","required":["name","slug","domain","url","status","source_vm_id"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"source_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"exported_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"config":{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"page":{"name":"Preview","slug":"preview","domain":"example.test","url":"https://preview.example.test","status":"active","source_vm_id":"vm-example","namespace":"team-a"}}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage","vm.read","vm.runtime"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"deploy","x-read-only":false,"x-audit-action":"page.deploy","x-mcp-tool":"page_deploy","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/pages/{slug}/enable":{"post":{"operationId":"page.enable","summary":"Enable an existing page and publish its owned routes.","description":"Enable an existing page and publish its owned routes.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","page"],"properties":{"success":{"const":true,"type":"boolean"},"page":{"additionalProperties":false,"type":"object","required":["name","slug","domain","url","status","source_vm_id"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"source_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"exported_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"config":{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"page":{"name":"Preview","slug":"preview","domain":"example.test","url":"https://preview.example.test","status":"active","source_vm_id":"vm-example","namespace":"team-a"}}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"page.enable","x-mcp-tool":"page_enable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pages/{slug}/disable":{"post":{"operationId":"page.disable","summary":"Disable a page’s routes while retaining exported files.","description":"Disable a page’s routes while retaining exported files.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","page"],"properties":{"success":{"const":true,"type":"boolean"},"page":{"additionalProperties":false,"type":"object","required":["name","slug","domain","url","status","source_vm_id"],"properties":{"id":{"anyOf":[{"type":"number"},{"type":"string"}]},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"source_vm_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"exported_path":{"anyOf":[{"type":"string"},{"type":"null"}]},"custom_domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"config":{"additionalProperties":false,"type":"object","properties":{"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"page":{"name":"Preview","slug":"preview","domain":"example.test","url":"https://preview.example.test","status":"disabled","source_vm_id":"vm-example","namespace":"team-a"}}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"cleanup","x-read-only":false,"x-audit-action":"page.disable","x-mcp-tool":"page_disable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}}},"/pages/{slug}/domain":{"get":{"operationId":"page.domain.get","summary":"Read current certificate verification for the page’s connected custom domain.","description":"Read current certificate verification for the page’s connected custom domain.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["domain","ssl","customDomain","sslExpiry","sslStatus","includeWww","url"],"properties":{"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"customDomain":{"type":"string"},"sslExpiry":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslStatus":{"anyOf":[{"type":"string"},{"type":"null"}]},"sslError":{"anyOf":[{"type":"string"},{"type":"null"}]},"includeWww":{"type":"boolean"},"url":{"type":"string"}}}]}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"domain":null}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"page_domain_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"post":{"operationId":"page.domain.connect","summary":"Connect a verified custom hostname and begin certificate publication.","description":"Connect a verified custom hostname and begin certificate publication.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain"],"properties":{"domain":{"minLength":1,"type":"string"},"include_www":{"type":"boolean"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"domain":"customer.example.test"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl","dns","url"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"dns":{"additionalProperties":false,"type":"object","required":["verified","cname","ownership","errors"],"properties":{"verified":{"type":"boolean"},"cname":{"type":"boolean"},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"errors":{"type":"array","items":{"type":"string"}}}},"url":{"type":"string"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"domain":"customer.example.test","ssl":{"status":"pending","expiresAt":null,"error":null},"dns":{"verified":true,"cname":true,"ownership":true,"errors":[]},"url":"https://customer.example.test"}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"page.domain.connect","x-mcp-tool":"page_domain_connect","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}},"delete":{"operationId":"page.domain.disconnect","summary":"Remove the custom hostname claim while retaining the page’s managed domain.","description":"Remove the custom hostname claim while retaining the page’s managed domain.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"removed":"customer.example.test"}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"cleanup","x-read-only":false,"x-audit-action":"page.domain.disconnect","x-mcp-tool":"page_domain_disconnect","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/pages/{slug}/domain/check":{"post":{"operationId":"page.domain.check","summary":"Check ownership and routing for this Page. Publish the returned zone TXT once for new hostnames. An already bound hostname requires no further TXT.","description":"Check ownership and routing for this Page. Publish the returned zone TXT once for new hostnames. An already bound hostname requires no further TXT.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain"],"properties":{"domain":{"minLength":1,"type":"string"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"domain":"customer.example.test"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","enterprise","verified","cname","ownership","records","errors","required_records","edge_ips"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"enterprise":{"type":"boolean"},"verified":{"type":"boolean"},"cname":{"type":"boolean"},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"records":{"type":"object","patternProperties":{"^(.*)$":{"type":"array","items":{"type":"string"}}}},"errors":{"type":"array","items":{"type":"string"}},"required_records":{"additionalProperties":false,"type":"object","required":["cname"],"properties":{"cname":{"additionalProperties":false,"type":"object","required":["host","target"],"properties":{"host":{"type":"string"},"target":{"type":"string"}}},"txt":{"additionalProperties":false,"type":"object","required":["host","value"],"properties":{"host":{"type":"string"},"value":{"type":"string"},"note":{"type":"string"}}}}},"edge_ips":{"type":"array","items":{"type":"string"}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"domain":"customer.example.test","enterprise":false,"verified":false,"cname":false,"ownership":false,"records":{},"errors":[],"required_records":{"cname":{"host":"customer.example.test","target":"edge.oblien.com"},"txt":{"host":"_oblien.example.test","value":"verify=zone-<issued-token>"}},"edge_ips":[]}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"page_domain_check_dns","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/pages/{slug}/domain/ssl/renew":{"post":{"operationId":"page.domain.renew","summary":"Renew the connected hostname’s certificate with current route owner checks.","description":"Renew the connected hostname’s certificate with current route owner checks.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"domain":"customer.example.test","ssl":{"status":"pending","expiresAt":null,"error":null}}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"write","x-read-only":false,"x-audit-action":"page.domain.renew","x-mcp-tool":"page_domain_ssl_renew","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/pages/{slug}/routes":{"get":{"operationId":"page.routes.get","summary":"Inspect the managed hostname’s active route rules and immutable revisions.","description":"Inspect the managed hostname’s active route rules and immutable revisions.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","active_version","config","staticPage","publication","route","versions","slug"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"active_version":{"anyOf":[{"type":"integer"},{"type":"null"}]},"config":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"staticPage":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"route":{"additionalProperties":false,"type":"object","required":["type","ownerType","ownerId","target","status"],"properties":{"type":{"type":"string"},"ownerType":{"type":"string"},"ownerId":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]},"target":{"type":"string"},"status":{"type":"string"}}},"versions":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["version","created_at","created_by"],"properties":{"version":{"type":"integer"},"created_at":{"type":"string"},"created_by":{"anyOf":[{"type":"number"},{"type":"string"},{"type":"null"}]}}}},"slug":{"type":"string"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"slug":"preview","hostname":"preview.example.test","active_version":null,"config":null,"staticPage":null,"publication":null,"route":{"type":"static","ownerType":"page","ownerId":"1","target":"/1","status":"active"},"versions":[]}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"page_routes_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},"put":{"operationId":"page.routes.set","summary":"Replace route rules on the page’s managed and currently connected custom hostnames.","description":"Replace route rules on the page’s managed and currently connected custom hostnames.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\n- VM proxy routes can be published before the application starts. On hosts with combined firewall rules, the owner enables host ingress (config.network_config.public_ingress on create or public_access on update) and allows the application port. Public IPv6 is separate. Static files are served directly from Edge.\n\n- A 202 response means the revision is saved and edge publication is pending. Disabled pages remain disabled.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":{},"type":"object","properties":{}},"examples":{"example1":{"summary":"Authorized page operation","value":{"action":{"kind":"redirect","to":"https://destination.test/"}}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config","slug"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"slug":{"type":"string"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"slug":"preview","hostname":"preview.example.test","version":1,"config":{"v":1,"rules":[{"m":{"t":"prefix","p":"/"},"a":{"k":"redirect","to":"https://destination.test/","status":308}}]}}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config","slug"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"slug":{"type":"string"}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"routeWrite","x-read-only":false,"x-audit-action":"page.routes.set","x-mcp-tool":"page_routes_set","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/pages/{slug}/routes/rollback":{"post":{"operationId":"page.routes.rollback","summary":"Restore a saved configuration on current page hostnames after validating current ownership and origins.","description":"Restore a saved configuration on current page hostnames after validating current ownership and origins.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Page ownership and credential namespace are checked on every request.\n\nRetry guidance: Inspect the page after an uncertain write before repeating it. For pending routing publication, inspect its state; the saved change will retry automatically.","tags":["pages"],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"minLength":1,"maxLength":128,"type":"string"},"examples":{"example1":{"summary":"Authorized page operation","value":"preview"}}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["version"],"properties":{"version":{"minimum":1,"type":"integer"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"version":1}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config","slug"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"slug":{"type":"string"}}},"examples":{"example1":{"summary":"Authorized page operation","value":{"success":true,"slug":"preview","hostname":"preview.example.test","version":2,"config":{"v":1,"rules":[{"m":{"t":"prefix","p":"/"},"a":{"k":"redirect","to":"https://destination.test/","status":308}}]},"restoredFrom":1}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","hostname","version","config","slug"],"properties":{"success":{"const":true,"type":"boolean"},"hostname":{"type":"string"},"version":{"type":"integer"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"restoredFrom":{"type":"integer"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"slug":{"type":"string"}}}}}},"403":{"description":"scope_denied: The page or source VM is outside this credential’s namespace.\n\npermission_denied: This principal lacks page management or source VM runtime access.\n\nnamespace_suspended: The page or source VM namespace is suspended.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The page does not exist under this account.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["pages.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"routeWrite","x-read-only":false,"x-audit-action":"page.routes.rollback","x-mcp-tool":"page_routes_rollback","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}},"/edge/proxies":{"get":{"operationId":"edge.proxy.list","summary":"List edge proxies in the authorized account or namespace","description":"List edge proxies in the credential namespace or authorized account.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","proxies"],"properties":{"success":{"const":true,"type":"boolean"},"proxies":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","target","url","status"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"target":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"examples":{"example1":{"summary":"List edge proxies in the credential namespace or authorized account.","value":{"success":true,"proxies":[{"id":1,"name":"Application","slug":"application","domain":"preview.oblien.com","target":"https://origin.example","url":"https://application.preview.oblien.com","status":"active","namespace":"production"}]}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"edge_proxy_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"post":{"operationId":"edge.proxy.create","summary":"Create a proxy for a verified target","description":"Create a proxy after target proof, domain ownership and resource limits pass.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["name","target"],"properties":{"name":{"minLength":1,"maxLength":100,"type":"string"},"target":{"minLength":1,"maxLength":4096,"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"namespace":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Create a proxy after target proof, domain ownership and resource limits pass.","value":{"name":"Application","target":"https://origin.example","namespace":"production"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","proxy"],"properties":{"success":{"const":true,"type":"boolean"},"proxy":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","target","url","status"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"target":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Create a proxy after target proof, domain ownership and resource limits pass.","value":{"success":true,"proxy":{"id":1,"name":"Application","slug":"application","domain":"preview.oblien.com","target":"https://origin.example","url":"https://application.preview.oblien.com","status":"active","namespace":"production"}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"create","x-read-only":false,"x-audit-action":"create","x-mcp-tool":"edge_proxy_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/edge/proxies/{proxy_id}":{"get":{"operationId":"edge.proxy.get","summary":"Get an edge proxy","description":"Read an owned proxy and its public routing configuration.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"proxy_id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read an owned proxy and its public routing configuration.","value":1}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","proxy"],"properties":{"success":{"const":true,"type":"boolean"},"proxy":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","target","url","status"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"target":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Read an owned proxy and its public routing configuration.","value":{"success":true,"proxy":{"id":1,"name":"Application","slug":"application","domain":"preview.oblien.com","target":"https://origin.example","url":"https://application.preview.oblien.com","status":"active","namespace":"production"}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proxyRead","x-read-only":true,"x-mcp-tool":"edge_proxy_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"edge.proxy.update","summary":"Update an edge proxy","description":"Change an owned proxy; target changes require a proof for the new target.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"proxy_id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Change an owned proxy; target changes require a proof for the new target.","value":1}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"minLength":1,"maxLength":100,"type":"string"},"slug":{"type":"string"},"target":{"minLength":1,"maxLength":4096,"type":"string"},"config":{"type":"object","patternProperties":{"^(.*)$":{}}}}},"examples":{"example1":{"summary":"Change an owned proxy; target changes require a proof for the new target.","value":{"name":"Application"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","proxy"],"properties":{"success":{"const":true,"type":"boolean"},"proxy":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","target","url","status"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"target":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Change an owned proxy; target changes require a proof for the new target.","value":{"success":true,"proxy":{"id":1,"name":"Application","slug":"application","domain":"preview.oblien.com","target":"https://origin.example","url":"https://application.preview.oblien.com","status":"active","namespace":"production"}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proxyWrite","x-read-only":false,"x-audit-action":"update","x-mcp-tool":"edge_proxy_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}},"delete":{"operationId":"edge.proxy.delete","summary":"Delete an edge proxy","description":"Remove an owned proxy and release its route.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"proxy_id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Remove an owned proxy and release its route.","value":1}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","removed"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Remove an owned proxy and release its route.","value":{"success":true,"removed":"application"}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","removed"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proxyCleanup","x-read-only":false,"x-audit-action":"remove","x-mcp-tool":"edge_proxy_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/proxies/{proxy_id}/enable":{"post":{"operationId":"edge.proxy.enable","summary":"Enable an edge proxy","description":"Enable a proxy with valid target authorization.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"proxy_id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Enable a proxy with valid target authorization.","value":1}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","proxy"],"properties":{"success":{"const":true,"type":"boolean"},"proxy":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","target","url","status"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"target":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Enable a proxy with valid target authorization.","value":{"success":true,"proxy":{"id":1,"name":"Application","slug":"application","domain":"preview.oblien.com","target":"https://origin.example","url":"https://application.preview.oblien.com","status":"active","namespace":"production"}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proxyWrite","x-read-only":false,"x-audit-action":"enable","x-mcp-tool":"edge_proxy_enable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/proxies/{proxy_id}/disable":{"post":{"operationId":"edge.proxy.disable","summary":"Disable an edge proxy","description":"Disable routing while retaining the proxy record.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"proxy_id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Disable routing while retaining the proxy record.","value":1}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","proxy"],"properties":{"success":{"const":true,"type":"boolean"},"proxy":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","target","url","status"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"target":{"type":"string"},"url":{"type":"string"},"status":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"config":{"type":"object","patternProperties":{"^(.*)$":{}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Disable routing while retaining the proxy record.","value":{"success":true,"proxy":{"id":1,"name":"Application","slug":"application","domain":"preview.oblien.com","target":"https://origin.example","url":"https://application.preview.oblien.com","status":"disabled","namespace":"production"}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proxyCleanup","x-read-only":false,"x-audit-action":"disable","x-mcp-tool":"edge_proxy_disable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/verifications":{"get":{"operationId":"edge.verification.list","summary":"List target ownership verifications","description":"List proof status without exposing challenge tokens.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","verifications"],"properties":{"success":{"const":true,"type":"boolean"},"verifications":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","target","status","validated_ip","attempts","created_at","verified_at","expires_at","last_checked_at"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"target":{"type":"string"},"status":{"type":"string"},"validated_ip":{"anyOf":[{"type":"string"},{"type":"null"}]},"attempts":{"minimum":0,"type":"integer"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"verified_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_checked_at":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"examples":{"example1":{"summary":"List proof status without exposing challenge tokens.","value":{"success":true,"verifications":[{"id":3,"target":"https://origin.example","status":"verified","validated_ip":"203.0.113.1","attempts":1,"created_at":"2026-01-01T00:00:00Z","verified_at":"2026-01-01T00:00:00Z","expires_at":"2026-04-01T00:00:00Z","last_checked_at":null}]}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.read"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"read","x-read-only":true,"x-mcp-tool":"edge_verification_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"post":{"operationId":"edge.verification.create","summary":"Issue a target ownership challenge","description":"Issue a scoped proof token to serve at the returned target path.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["target"],"properties":{"target":{"minLength":1,"maxLength":4096,"type":"string"},"namespace":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Issue a scoped proof token to serve at the returned target path.","value":{"target":"https://origin.example","namespace":"production"}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","verification"],"properties":{"success":{"const":true,"type":"boolean"},"verification":{"additionalProperties":false,"type":"object","required":["id","target","status","method","path","token","instructions"],"properties":{"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"target":{"type":"string"},"status":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"token":{"type":"string"},"instructions":{"type":"string"}}}}},"examples":{"example1":{"summary":"Issue a scoped proof token to serve at the returned target path.","value":{"success":true,"verification":{"id":3,"target":"https://origin.example","status":"pending","method":"http","path":"/.well-known/oblien-proxy-challenge/example-token","token":"example-token","instructions":"Serve the exact token at the returned path."}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proofCreate","x-read-only":false,"x-audit-action":"createVerification","x-mcp-tool":"edge_verification_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/edge/verifications/{id}/check":{"post":{"operationId":"edge.verification.check","summary":"Check a target ownership challenge","description":"Fetch the proof through an SSRF-safe pinned connection and record the scoped result.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Fetch the proof through an SSRF-safe pinned connection and record the scoped result.","value":3}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"namespace":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Fetch the proof through an SSRF-safe pinned connection and record the scoped result.","value":{"namespace":"production"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","verification"],"properties":{"success":{"const":true,"type":"boolean"},"verification":{"anyOf":[{"additionalProperties":false,"type":"object","required":["id","target","status","validated_ip","expires_at"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"target":{"type":"string"},"status":{"const":"verified","type":"string"},"validated_ip":{"type":"string"},"expires_at":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},{"additionalProperties":false,"type":"object","required":["id","target","status","error"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"target":{"type":"string"},"status":{"const":"failed","type":"string"},"error":{"type":"string"}}}]}}},"examples":{"example1":{"summary":"Fetch the proof through an SSRF-safe pinned connection and record the scoped result.","value":{"success":true,"verification":{"id":3,"target":"https://origin.example","status":"verified","validated_ip":"203.0.113.1","expires_at":"2026-04-01T00:00:00Z"}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proofCheck","x-read-only":false,"x-audit-action":"checkVerification","x-mcp-tool":"edge_verification_check","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/verifications/{id}":{"delete":{"operationId":"edge.verification.delete","summary":"Delete a target ownership verification","description":"Delete the proof belonging to this owner and namespace.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Delete the proof belonging to this owner and namespace.","value":3}}},{"name":"namespace","in":"query","required":false,"schema":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]},"examples":{"example1":{"summary":"Delete the proof belonging to this owner and namespace.","value":"production"}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Delete the proof belonging to this owner and namespace.","value":{"success":true}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin","namespace"],"x-authorization-policy":"proofCleanup","x-read-only":false,"x-audit-action":"deleteVerification","x-mcp-tool":"edge_verification_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/tunnels":{"get":{"operationId":"edge.tunnel.list","summary":"List edge tunnels for the account","description":"List tunnel configuration for the account.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","tunnels"],"properties":{"success":{"const":true,"type":"boolean"},"tunnels":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"examples":{"example1":{"summary":"List tunnel configuration for the account.","value":{"success":true,"tunnels":[{"id":2,"name":"Development","slug":"development","domain":"preview.oblien.com","hostname":"development.preview.oblien.com","tunnel_id":"example-tunnel","port":3000,"status":"active","url":"https://development.preview.oblien.com","is_custom":false}]}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelList","x-read-only":true,"x-mcp-tool":"edge_tunnel_list","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"post":{"operationId":"edge.tunnel.create","summary":"Create an edge tunnel","description":"Create or reuse an owned hostname and local port under account resource limits.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["name","port"],"properties":{"name":{"minLength":1,"maxLength":100,"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"slug":{"type":"string"},"domain":{"type":"string"},"namespace":{"anyOf":[{"minLength":1,"maxLength":128,"type":"string"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Create or reuse an owned hostname and local port under account resource limits.","value":{"name":"Development","port":3000}}}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","tunnel"],"properties":{"success":{"const":true,"type":"boolean"},"tunnel":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Create or reuse an owned hostname and local port under account resource limits.","value":{"success":true,"tunnel":{"id":2,"name":"Development","slug":"development","domain":"preview.oblien.com","hostname":"development.preview.oblien.com","tunnel_id":"example-tunnel","port":3000,"status":"active","url":"https://development.preview.oblien.com","is_custom":false}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelCreate","x-read-only":false,"x-audit-action":"createTunnel","x-mcp-tool":"edge_tunnel_create","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/edge/tunnels/{id}":{"get":{"operationId":"edge.tunnel.get","summary":"Get an edge tunnel","description":"Read an owned tunnel and custom-domain certificate state.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Read an owned tunnel and custom-domain certificate state.","value":2}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","tunnel"],"properties":{"success":{"const":true,"type":"boolean"},"tunnel":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Read an owned tunnel and custom-domain certificate state.","value":{"success":true,"tunnel":{"id":2,"name":"Development","slug":"development","domain":"preview.oblien.com","hostname":"development.preview.oblien.com","tunnel_id":"example-tunnel","port":3000,"status":"active","url":"https://development.preview.oblien.com","is_custom":false}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelRead","x-read-only":true,"x-mcp-tool":"edge_tunnel_get","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}},"put":{"operationId":"edge.tunnel.update","summary":"Update an edge tunnel","description":"Change the owned tunnel name, managed slug or local port.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Change the owned tunnel name, managed slug or local port.","value":2}}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"name":{"minLength":1,"maxLength":100,"type":"string"},"slug":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"}}},"examples":{"example1":{"summary":"Change the owned tunnel name, managed slug or local port.","value":{"port":3000}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","tunnel"],"properties":{"success":{"const":true,"type":"boolean"},"tunnel":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Change the owned tunnel name, managed slug or local port.","value":{"success":true,"tunnel":{"id":2,"name":"Development","slug":"development","domain":"preview.oblien.com","hostname":"development.preview.oblien.com","tunnel_id":"example-tunnel","port":3000,"status":"active","url":"https://development.preview.oblien.com","is_custom":false}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelWrite","x-read-only":false,"x-audit-action":"updateTunnel","x-mcp-tool":"edge_tunnel_update","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}},"delete":{"operationId":"edge.tunnel.delete","summary":"Delete an edge tunnel","description":"Remove the tunnel record and release its route.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Remove the tunnel record and release its route.","value":2}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","removed"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Remove the tunnel record and release its route.","value":{"success":true,"removed":"development"}}}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","removed"],"properties":{"success":{"const":true,"type":"boolean"},"removed":{"type":"string"},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelCleanup","x-read-only":false,"x-audit-action":"removeTunnel","x-mcp-tool":"edge_tunnel_delete","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/tunnels/check-domain":{"post":{"operationId":"edge.tunnel.domain.check","summary":"Check DNS before connecting a tunnel domain","description":"Inspect domain and DNS availability before connecting a tunnel.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["domain"],"properties":{"domain":{"type":"string"},"port":{"anyOf":[{"minimum":1,"maximum":65535,"type":"integer"},{"type":"null"}]}}},"examples":{"example1":{"summary":"Inspect domain and DNS availability before connecting a tunnel.","value":{"domain":"preview.oblien.com"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","mode","domain","available","needs_verification","verified","cname","ownership","records","errors","required_records","edge_ips","verification_id"],"properties":{"success":{"const":true,"type":"boolean"},"mode":{"anyOf":[{"const":"managed_subdomain","type":"string"},{"const":"custom_domain","type":"string"}]},"domain":{"type":"string"},"available":{"type":"boolean"},"needs_verification":{"type":"boolean"},"verified":{"type":"boolean"},"cname":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"ownership":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"records":{"type":"object","patternProperties":{"^(.*)$":{"type":"array","items":{"type":"string"}}}},"errors":{"type":"array","items":{"type":"string"}},"required_records":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["cname"],"properties":{"cname":{"additionalProperties":false,"type":"object","required":["host","target"],"properties":{"host":{"type":"string"},"target":{"type":"string"}}},"txt":{"additionalProperties":false,"type":"object","required":["host","value"],"properties":{"host":{"type":"string"},"value":{"type":"string"},"note":{"type":"string"}}}}}]},"edge_ips":{"type":"array","items":{"type":"string"}},"verification_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"enterprise":{"type":"boolean"},"reusable":{"type":"boolean"},"message":{"type":"string"},"existing_tunnel":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom","same_port"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"same_port":{"anyOf":[{"type":"boolean"},{"type":"null"}]}}}]}}},"examples":{"example1":{"summary":"Inspect domain and DNS availability before connecting a tunnel.","value":{"success":true,"mode":"managed_subdomain","domain":"preview.oblien.com","available":true,"needs_verification":false,"verified":true,"cname":null,"ownership":null,"records":{},"errors":[],"required_records":null,"edge_ips":[],"verification_id":null}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.read"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelCheck","x-read-only":true,"x-mcp-tool":"edge_tunnel_check_domain","x-mcp-annotations":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true}}},"/edge/tunnels/{id}/enable":{"post":{"operationId":"edge.tunnel.enable","summary":"Enable an edge tunnel","description":"Enable an owned tunnel; custom-domain ownership must still hold.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Enable an owned tunnel; custom-domain ownership must still hold.","value":2}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","tunnel"],"properties":{"success":{"const":true,"type":"boolean"},"tunnel":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Enable an owned tunnel; custom-domain ownership must still hold.","value":{"success":true,"tunnel":{"id":2,"name":"Development","slug":"development","domain":"preview.oblien.com","hostname":"development.preview.oblien.com","tunnel_id":"example-tunnel","port":3000,"status":"active","url":"https://development.preview.oblien.com","is_custom":false}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelWrite","x-read-only":false,"x-audit-action":"enableTunnel","x-mcp-tool":"edge_tunnel_enable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/tunnels/{id}/disable":{"post":{"operationId":"edge.tunnel.disable","summary":"Disable an edge tunnel","description":"Disable tunnel routing while retaining its configuration.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Disable tunnel routing while retaining its configuration.","value":2}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","tunnel"],"properties":{"success":{"const":true,"type":"boolean"},"tunnel":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Disable tunnel routing while retaining its configuration.","value":{"success":true,"tunnel":{"id":2,"name":"Development","slug":"development","domain":"preview.oblien.com","hostname":"development.preview.oblien.com","tunnel_id":"example-tunnel","port":3000,"status":"disabled","url":"https://development.preview.oblien.com","is_custom":false}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelCleanup","x-read-only":false,"x-audit-action":"disableTunnel","x-mcp-tool":"edge_tunnel_disable","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/tunnels/{id}/ssl/renew":{"post":{"operationId":"edge.tunnel.ssl.renew","summary":"Renew a tunnel certificate","description":"Request certificate renewal for an owned custom-domain tunnel.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Request certificate renewal for an owned custom-domain tunnel.","value":2}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","domain","ssl","tunnel"],"properties":{"success":{"const":true,"type":"boolean"},"domain":{"type":"string"},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"tunnel":{"additionalProperties":false,"type":"object","required":["id","name","slug","domain","hostname","tunnel_id","port","status","url","is_custom"],"properties":{"id":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"domain":{"type":"string"},"hostname":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"status":{"type":"string"},"url":{"type":"string"},"is_custom":{"type":"boolean"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"ssl":{"additionalProperties":false,"type":"object","required":["status","expiresAt"],"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]},"verification":{"additionalProperties":false,"type":"object","required":["status","checkedAt"],"properties":{"status":{"type":"string"},"checkedAt":{"type":"string"},"code":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"publication":{"anyOf":[{"type":"null"},{"additionalProperties":false,"type":"object","required":["operationId","state","publishedAt"],"properties":{"operationId":{"anyOf":[{"type":"string"},{"type":"number"}]},"state":{"anyOf":[{"const":"pending","type":"string"},{"const":"published","type":"string"}]},"attempts":{"type":"integer"},"publishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]}}}]}}}}},"examples":{"example1":{"summary":"Request certificate renewal for an owned custom-domain tunnel.","value":{"success":true,"domain":"development.preview.oblien.com","ssl":{"status":"active","expiresAt":"2026-04-01T00:00:00Z"},"tunnel":{"id":2,"name":"Development","slug":"development","domain":"preview.oblien.com","hostname":"development.preview.oblien.com","tunnel_id":"example-tunnel","port":3000,"status":"active","url":"https://development.preview.oblien.com","is_custom":false,"ssl":{"status":"active","expiresAt":"2026-04-01T00:00:00Z"}}}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelWrite","x-read-only":false,"x-audit-action":"renewTunnelSSL","x-mcp-tool":"edge_tunnel_renew_ssl","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true}}},"/edge/tunnels/{id}/token":{"post":{"operationId":"edge.tunnel.token","summary":"Issue a short-lived connection token for an owned tunnel","description":"Issue an authenticated broker token bound to this account, tunnel, port and hostname. Expiry accepts 30s through 7d; default 24h. HTTP also accepts expires_in as a query fallback.\n\n- Examples use synthetic IDs and values. Call the operation to obtain current data; example values are never live usage or capacity.\n\n- Identity and owner are derived from the authenticated credential. Shared-account actors cannot manage edge resources.\n\n- Namespace credentials are limited to their bound namespace. Tunnel operations require an account admin credential; namespace credentials cannot issue connection tokens.\n\n- Resetting, deleting or expiring a proof disables its enforced dependent proxy and advanced routing resources atomically; advisory base proxies are unaffected. An IP change also withdraws old pinned routes. Reverify and explicitly enable base proxies; recompile advanced rules before enabling them.\n\n- Delete returns HTTP202 when the durable route withdrawal is pending; inspect its publication receipt. SQL ownership has already changed.\n\n- Routing changes may commit before their durable publication is delivered. Inspect publication and current resource state after a timeout before retrying.\n\n- Proxy targets must pass SSRF validation and ownership proof. The existing explicitly configured domain policy may allow advisory proof; it never relaxes SSRF checks.\n\nRetry guidance: After a timeout, inspect the resource before repeating a write. Retrying challenge or token creation issues a new credential; never log returned tokens.","tags":["edge"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"minimum":1,"maximum":9007199254740991,"type":"integer"},"examples":{"example1":{"summary":"Issue an authenticated broker token bound to this account, tunnel, port and hostname. Expiry accepts 30s through 7d; default 24h. HTTP also accepts expires_in as a query fallback.","value":2}}},{"name":"expires_in","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"number"}]},"description":"Optional alias for JSON body field expires_in; used when the body value is empty or omitted."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","properties":{"expires_in":{"anyOf":[{"type":"string"},{"type":"number"}]}}},"examples":{"example1":{"summary":"Issue an authenticated broker token bound to this account, tunnel, port and hostname. Expiry accepts 30s through 7d; default 24h. HTTP also accepts expires_in as a query fallback.","value":{"expires_in":"1h"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","token","tunnel_id","port","expires_in","expires_at","connect_url"],"properties":{"success":{"const":true,"type":"boolean"},"token":{"type":"string"},"tunnel_id":{"type":"string"},"port":{"minimum":1,"maximum":65535,"type":"integer"},"expires_in":{"type":"string"},"expires_at":{"type":"string"},"connect_url":{"type":"string"}}},"examples":{"example1":{"summary":"Issue an authenticated broker token bound to this account, tunnel, port and hostname. Expiry accepts 30s through 7d; default 24h. HTTP also accepts expires_in as a query fallback.","value":{"success":true,"token":"example-connection-token","tunnel_id":"example-tunnel","port":3000,"expires_in":"1h","expires_at":"2026-01-01T01:00:00Z","connect_url":"wss://edge.oblien.com/connect"}}}}}},"403":{"description":"scope_denied: The credential cannot access this resource or namespace.\n\ntarget_unverified: Prove control of the target in the same namespace before routing it.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"404":{"description":"not_found: The owned resource does not exist.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"429":{"description":"rate_limit: Wait before repeating the request.","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["edge.manage"],"x-credential-scopes":["admin"],"x-authorization-policy":"tunnelWrite","x-read-only":false,"x-audit-action":"issueTunnelToken","x-mcp-tool":"edge_tunnel_token","x-mcp-annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true}}},"/admin/console/me":{"get":{"operationId":"admin.me","summary":"Inspect the current operator and MFA state","description":"Inspect the current operator and MFA state","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","operator","security"],"properties":{"success":{"const":true,"type":"boolean"},"operator":{"additionalProperties":false,"type":"object","required":["user_id","name","email","role","bootstrap","has_2fa","permissions"],"properties":{"user_id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"type":"string"},"bootstrap":{"type":"boolean"},"has_2fa":{"type":"boolean"},"permissions":{"type":"array","items":{"type":"string"}}}},"security":{"additionalProperties":false,"type":"object","required":["enrolled","verified","write_verified"],"properties":{"enrolled":{"type":"boolean"},"verified":{"type":"boolean"},"write_verified":{"type":"boolean"},"verified_at":{"type":"number"},"expires_at":{"type":"number"},"write_expires_at":{"type":"number"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"identity","x-read-only":true}},"/admin/console/security/verify":{"post":{"operationId":"admin.security.verify","summary":"Verify an operator authenticator code","description":"Verify an operator authenticator code","tags":["admin"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["code"],"properties":{"code":{"pattern":"^\\d{6}$","type":"string"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","security"],"properties":{"success":{"const":true,"type":"boolean"},"security":{"additionalProperties":false,"type":"object","required":["enrolled","verified","write_verified"],"properties":{"enrolled":{"type":"boolean"},"verified":{"type":"boolean"},"write_verified":{"type":"boolean"},"verified_at":{"type":"number"},"expires_at":{"type":"number"},"write_expires_at":{"type":"number"}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"verify","x-read-only":false,"x-audit-action":"mfa.verify"}},"/admin/console/security/logout":{"post":{"operationId":"admin.security.logout","summary":"Revoke the current operator MFA proof","description":"Revoke the current operator MFA proof","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success"],"properties":{"success":{"const":true,"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"logout","x-read-only":false,"x-audit-action":"mfa.logout"}},"/admin/console/catalog":{"get":{"operationId":"admin.catalog","summary":"catalog","description":"catalog","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","host_capacity"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","required":["action","permission","target_kind","title","description","confirmation","schema"],"properties":{"action":{"type":"string"},"permission":{"type":"string"},"target_kind":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"confirmation":{"type":"boolean"},"schema":{"type":"object","patternProperties":{"^(.*)$":{}}}}}},"host_capacity":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"catalog","x-read-only":true}},"/admin/console/overview":{"get":{"operationId":"admin.overview","summary":"overview","description":"overview","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","counts","totals","nodes","alerts","activity","reachable_nodes","registry","billing_mode","sampled_at"],"properties":{"success":{"const":true,"type":"boolean"},"counts":{"type":"object","patternProperties":{"^(.*)$":{}}},"totals":{"type":"object","patternProperties":{"^(.*)$":{}}},"nodes":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"alerts":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"activity":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"reachable_nodes":{"minimum":0,"type":"integer"},"registry":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]},"sampled_at":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"overview.read","x-read-only":true}},"/admin/console/health":{"get":{"operationId":"admin.health","summary":"health","description":"health","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","registry","sampled_at","billing_mode"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","required":["name","healthy","latency_ms"],"properties":{"name":{"type":"string"},"healthy":{"type":"boolean"},"latency_ms":{"minimum":0,"type":"number"}}}},"registry":{"type":"object","patternProperties":{"^(.*)$":{}}},"sampled_at":{"type":"string"},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"nodes.read","x-read-only":true}},"/admin/console/nodes":{"get":{"operationId":"admin.nodes","summary":"nodes","description":"nodes","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","registry"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"registry":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"nodes.read","x-read-only":true}},"/admin/console/nodes/{id}":{"get":{"operationId":"admin.nodes.detail","summary":"nodes record","description":"nodes record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","node"],"properties":{"success":{"const":true,"type":"boolean"},"node":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"nodes.read","x-read-only":true}},"/admin/console/nodes/{id}/egress":{"get":{"operationId":"admin.nodes.detail.egress","summary":"nodes record egress","description":"nodes record egress","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","node_id","policy","vms","checked_at"],"properties":{"success":{"const":true,"type":"boolean"},"node_id":{"type":"string"},"policy":{"type":"object","patternProperties":{"^(.*)$":{}}},"vms":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"checked_at":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"nodes.read","x-read-only":true}},"/admin/console/nodes/{id}/vms":{"get":{"operationId":"admin.nodes.detail.vms","summary":"nodes record vms","description":"nodes record vms","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"nodes.read","x-read-only":true}},"/admin/console/vms":{"get":{"operationId":"admin.vms","summary":"vms","description":"vms","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"vms.read","x-read-only":true}},"/admin/console/vms/{id}":{"get":{"operationId":"admin.vms.detail","summary":"vms record","description":"vms record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","vm","operations"],"properties":{"success":{"const":true,"type":"boolean"},"vm":{"type":"object","patternProperties":{"^(.*)$":{}}},"operations":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"vms.read","x-read-only":true}},"/admin/console/vms/{id}/move":{"get":{"operationId":"admin.vms.detail.move","summary":"vms record move","description":"vms record move","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","move"],"properties":{"success":{"const":true,"type":"boolean"},"move":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"vms.read","x-read-only":true}},"/admin/console/vms/{id}/move/preflight":{"get":{"operationId":"admin.vms.detail.move.preflight","summary":"vms record move preflight","description":"vms record move preflight","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","vm_id","source_node_id","eligible","reasons","resources","destinations","move","method"],"properties":{"success":{"const":true,"type":"boolean"},"vm_id":{"type":"string"},"source_node_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"eligible":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}},"resources":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"destinations":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"move":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"method":{"const":"cold","type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"vms.manage","x-read-only":true}},"/admin/console/vms/{id}/views/{view}":{"get":{"operationId":"admin.vms.detail.views.view","summary":"vms record views :view","description":"vms record views :view","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}},{"name":"view","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","view","data"],"properties":{"success":{"const":true,"type":"boolean"},"view":{"type":"string"},"data":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"vm.view","x-read-only":true}},"/admin/console/vms/{id}/disks":{"get":{"operationId":"admin.vms.detail.disks","summary":"vms record disks","description":"vms record disks","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","disks","operation_id"],"properties":{"success":{"const":true,"type":"boolean"},"disks":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"disks.read","x-read-only":true}},"/admin/console/images":{"get":{"operationId":"admin.images","summary":"images","description":"images","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","images"],"properties":{"success":{"const":true,"type":"boolean"},"images":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"vms.read","x-read-only":true}},"/admin/console/resource-accounts/{kind}":{"get":{"operationId":"admin.resource_accounts.kind","summary":"resource accounts :kind","description":"resource accounts :kind","tags":["admin"],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}},{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more","resource_total"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"},"resource_total":{"minimum":0,"type":"integer"},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"resource.accounts","x-read-only":true}},"/admin/console/users":{"get":{"operationId":"admin.users","summary":"users","description":"users","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"users.read","x-read-only":true}},"/admin/console/users/{id}":{"get":{"operationId":"admin.users.detail","summary":"users record","description":"users record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","user","vms","namespaces","operations","billing_mode","protected"],"properties":{"success":{"const":true,"type":"boolean"},"user":{"type":"object","patternProperties":{"^(.*)$":{}}},"vms":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"namespaces":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"operations":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]},"protected":{"type":"boolean"},"subscriptions":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"transactions":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"users.read","x-read-only":true}},"/admin/console/users/{id}/billing":{"get":{"operationId":"admin.users.detail.billing","summary":"users record billing","description":"users record billing","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","billing_mode","plan","usage","limits","namespace_capacity","defaults"],"properties":{"success":{"const":true,"type":"boolean"},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]},"plan":{"type":"object","patternProperties":{"^(.*)$":{}}},"usage":{"type":"object","patternProperties":{"^(.*)$":{}}},"limits":{"type":"object","patternProperties":{"^(.*)$":{}}},"namespace_capacity":{"type":"object","patternProperties":{"^(.*)$":{}}},"defaults":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/users/{id}/related":{"get":{"operationId":"admin.users.detail.related","summary":"users record related","description":"users record related","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","strong","weak"],"properties":{"success":{"const":true,"type":"boolean"},"strong":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"weak":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"fraud.read","x-read-only":true}},"/admin/console/plans":{"get":{"operationId":"admin.plans","summary":"plans","description":"plans","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","billing_mode","items"],"properties":{"success":{"const":true,"type":"boolean"},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/cdn-policy":{"get":{"operationId":"admin.cdn_policy","summary":"cdn policy","description":"cdn policy","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","policy","version","effectiveAt","billingActive"],"properties":{"success":{"const":true,"type":"boolean"},"policy":{"type":"object","patternProperties":{"^(.*)$":{}}},"version":{"type":"string"},"effectiveAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"billingActive":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/cdn-storage":{"get":{"operationId":"admin.cdn_storage","summary":"cdn storage","description":"cdn storage","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","enabled","revision","destinations","nodes","pools"],"properties":{"success":{"const":true,"type":"boolean"},"enabled":{"type":"boolean"},"revision":{"minimum":0,"type":"integer"},"destinations":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"nodes":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"pools":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"nodes.read","x-read-only":true}},"/admin/console/users/{id}/cdn":{"get":{"operationId":"admin.users.detail.cdn","summary":"users record cdn","description":"users record cdn","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","formats","provider","version","tier","namespace","billing","usage","overrides"],"properties":{"success":{"const":true,"type":"boolean"},"formats":{"type":"array","items":{"type":"string"}},"provider":{"type":"object","patternProperties":{"^(.*)$":{}}},"version":{"type":"string"},"tier":{"type":"string"},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"billing":{"type":"object","patternProperties":{"^(.*)$":{}}},"usage":{"type":"object","patternProperties":{"^(.*)$":{}}},"overrides":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/network-policy":{"get":{"operationId":"admin.network_policy","summary":"network policy","description":"network policy","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","policy","revision","environment","effect"],"properties":{"success":{"const":true,"type":"boolean"},"policy":{"type":"object","patternProperties":{"^(.*)$":{}}},"revision":{"minimum":0,"type":"integer"},"environment":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]},"effect":{"const":"improvements_now_reductions_next_period","type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/subscriptions":{"get":{"operationId":"admin.subscriptions","summary":"subscriptions","description":"subscriptions","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more","billing_mode"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/subscriptions/{id}":{"get":{"operationId":"admin.subscriptions.detail","summary":"subscriptions record","description":"subscriptions record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","subscription","billing_mode","provider_available","provider_message","pending_payment","operations"],"properties":{"success":{"const":true,"type":"boolean"},"subscription":{"type":"object","patternProperties":{"^(.*)$":{}}},"billing_mode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]},"provider_available":{"type":"boolean"},"provider_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"pending_payment":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"operations":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/subscriptions/{id}/renewal-preview":{"get":{"operationId":"admin.subscriptions.detail.renewal_preview","summary":"subscriptions record renewal preview","description":"subscriptions record renewal preview","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","quote","expires_at","kind","amount_due","currency","credits","price","interval","current_period_end","invoice_id","effect"],"properties":{"success":{"const":true,"type":"boolean"},"quote":{"type":"string"},"expires_at":{"type":"string"},"kind":{"type":"string"},"amount_due":{"type":"number"},"currency":{"type":"string"},"credits":{"type":"number"},"price":{"type":"number"},"interval":{"type":"string"},"current_period_end":{"type":"string"},"invoice_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"effect":{"type":"string"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"subscriptions.manage","x-read-only":true}},"/admin/console/ledger":{"get":{"operationId":"admin.ledger","summary":"ledger","description":"ledger","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/capacity":{"get":{"operationId":"admin.capacity","summary":"capacity","description":"capacity","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/capacity/{id}":{"get":{"operationId":"admin.capacity.detail","summary":"capacity record","description":"capacity record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","user_id","namespace","capacity","periods"],"properties":{"success":{"const":true,"type":"boolean"},"user_id":{"anyOf":[{"type":"string"},{"type":"number"}]},"namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"capacity":{},"periods":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/disks":{"get":{"operationId":"admin.disks","summary":"disks","description":"disks","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"disks.read","x-read-only":true}},"/admin/console/disks/{id}":{"get":{"operationId":"admin.disks.detail","summary":"disks record","description":"disks record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","disk"],"properties":{"success":{"const":true,"type":"boolean"},"disk":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"disks.read","x-read-only":true}},"/admin/console/disk-operations/{id}":{"get":{"operationId":"admin.disk_operations.detail","summary":"disk operations record","description":"disk operations record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","operation"],"properties":{"success":{"const":true,"type":"boolean"},"operation":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"disks.read","x-read-only":true}},"/admin/console/software":{"get":{"operationId":"admin.software","summary":"software","description":"software","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"disks.read","x-read-only":true}},"/admin/console/namespaces":{"get":{"operationId":"admin.namespaces","summary":"namespaces","description":"namespaces","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespaces.read","x-read-only":true}},"/admin/console/namespaces/{id}":{"get":{"operationId":"admin.namespaces.detail","summary":"namespaces record","description":"namespaces record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","namespace","usage"],"properties":{"success":{"const":true,"type":"boolean"},"namespace":{"type":"object","patternProperties":{"^(.*)$":{}}},"usage":{"type":"object","patternProperties":{"^(.*)$":{}}},"policy":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"entitlement":{"anyOf":[{"type":"object","patternProperties":{"^(.*)$":{}}},{"type":"null"}]},"subscriptions":{"type":"object","patternProperties":{"^(.*)$":{}}},"can_reset_quota":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"namespaces.read","x-read-only":true}},"/admin/console/routing":{"get":{"operationId":"admin.routing","summary":"routing","description":"routing","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"routes.read","x-read-only":true}},"/admin/console/certificates":{"get":{"operationId":"admin.certificates","summary":"certificates","description":"certificates","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"routes.read","x-read-only":true}},"/admin/console/fraud":{"get":{"operationId":"admin.fraud","summary":"fraud","description":"fraud","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"fraud.read","x-read-only":true}},"/admin/console/bans":{"get":{"operationId":"admin.bans","summary":"bans","description":"bans","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"fraud.read","x-read-only":true}},"/admin/console/security-events":{"get":{"operationId":"admin.security_events","summary":"security events","description":"security events","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"audit.read","x-read-only":true}},"/admin/console/promotions":{"get":{"operationId":"admin.promotions","summary":"promotions","description":"promotions","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","currentMode"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}},"total":{"minimum":0,"type":"integer"},"currentMode":{"anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"}]}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/affiliates/policies":{"get":{"operationId":"admin.affiliates.policies","summary":"affiliates policies","description":"affiliates policies","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/promotions/{id}/usage":{"get":{"operationId":"admin.promotions.detail.usage","summary":"promotions record usage","description":"promotions record usage","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}},{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"billing.read","x-read-only":true}},"/admin/console/operations":{"get":{"operationId":"admin.operations","summary":"operations","description":"operations","tags":["admin"],"parameters":[{"name":"q","in":"query","required":false,"schema":{"default":"","type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":25}},{"name":"offset","in":"query","required":false,"schema":{"default":0}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"node_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}$"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","pattern":"^[1-9][0-9]{0,19}$"}},{"name":"target","in":"query","required":false,"schema":{"type":"string","maxLength":290}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"test","type":"string"},{"const":"live","type":"string"},{"const":"all","type":"string"}]}},{"name":"namespace","in":"query","required":false,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{1,255}$"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"account","type":"string"},{"const":"namespace","type":"string"}]}},{"name":"view","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"current","type":"string"},{"const":"attention","type":"string"},{"const":"ending","type":"string"},{"const":"history","type":"string"},{"const":"all","type":"string"}]}},{"name":"plan","in":"query","required":false,"schema":{"type":"string","anyOf":[{"const":"free","type":"string"},{"const":"hobby","type":"string"},{"const":"pro","type":"string"},{"const":"scale","type":"string"},{"const":"enterprise","type":"string"},{"const":"reseller","type":"string"}]}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items","total","limit","offset","has_more"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"additionalProperties":false,"type":"object","required":["id","actor_id","actor_role","action","target_id","target_key","reason","subject_user_id","subject_namespace","state","result","error_code","error_message","created_at","started_at","completed_at"],"properties":{"id":{"type":"string"},"actor_id":{"type":"string"},"actor_role":{"type":"string"},"action":{"type":"string"},"target_id":{"type":"string"},"target_key":{"type":"string"},"reason":{"type":"string"},"subject_user_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"queued","type":"string"},{"const":"running","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"},{"const":"interrupted","type":"string"}]},"result":{},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_email":{"anyOf":[{"type":"string"},{"type":"null"}]}}}},"total":{"minimum":0,"type":"integer"},"limit":{"minimum":0,"type":"integer"},"offset":{"minimum":0,"type":"integer"},"has_more":{"type":"boolean"}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"operations.read_own","x-read-only":true},"post":{"operationId":"admin.operations.enqueue","summary":"Queue an authorized operator action","description":"Queue an authorized operator action","tags":["admin"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","anyOf":[{"const":"vm.move","type":"string"},{"const":"vm.move_cancel","type":"string"},{"const":"node.register","type":"string"},{"const":"node.update","type":"string"},{"const":"node.verify","type":"string"},{"const":"vm.create","type":"string"},{"const":"vm.update","type":"string"},{"const":"vm.resources","type":"string"},{"const":"vm.reinstall","type":"string"},{"const":"vm.retry","type":"string"},{"const":"vm.start","type":"string"},{"const":"vm.stop","type":"string"},{"const":"vm.restart","type":"string"},{"const":"vm.pause","type":"string"},{"const":"vm.resume","type":"string"},{"const":"vm.hibernate","type":"string"},{"const":"vm.restore","type":"string"},{"const":"vm.delete","type":"string"},{"const":"vm.idle","type":"string"},{"const":"vm.permanent","type":"string"},{"const":"vm.temporary","type":"string"},{"const":"vm.ttl","type":"string"},{"const":"vm.network","type":"string"},{"const":"vm.port_expose","type":"string"},{"const":"vm.port_revoke","type":"string"},{"const":"vm.port_slug","type":"string"},{"const":"vm.domain_connect","type":"string"},{"const":"vm.domain_disconnect","type":"string"},{"const":"vm.ssl_renew","type":"string"},{"const":"vm.ssh_enable","type":"string"},{"const":"vm.ssh_disable","type":"string"},{"const":"vm.ssh_password","type":"string"},{"const":"vm.ssh_key","type":"string"},{"const":"vm.desktop_install","type":"string"},{"const":"vm.archive_create","type":"string"},{"const":"vm.archive_delete","type":"string"},{"const":"vm.saved_execution_discard","type":"string"},{"const":"vm.workload_create","type":"string"},{"const":"vm.workload_update","type":"string"},{"const":"vm.workload_start","type":"string"},{"const":"vm.workload_stop","type":"string"},{"const":"vm.workload_delete","type":"string"},{"const":"vm.metadata","type":"string"},{"const":"disk.create","type":"string"},{"const":"disk.clone","type":"string"},{"const":"disk.save","type":"string"},{"const":"disk.fork","type":"string"},{"const":"disk.resize","type":"string"},{"const":"disk.attach","type":"string"},{"const":"disk.detach","type":"string"},{"const":"disk.move","type":"string"},{"const":"disk.delete","type":"string"},{"const":"disk.root","type":"string"},{"const":"disk.retry","type":"string"},{"const":"software.attach","type":"string"},{"const":"namespace.create","type":"string"},{"const":"namespace.update","type":"string"},{"const":"namespace.suspend","type":"string"},{"const":"namespace.activate","type":"string"},{"const":"namespace.stop","type":"string"},{"const":"namespace.delete","type":"string"},{"const":"namespace.policy","type":"string"},{"const":"namespace.quota_reset","type":"string"},{"const":"route.enable","type":"string"},{"const":"route.disable","type":"string"},{"const":"route.rules","type":"string"},{"const":"route.rollback","type":"string"},{"const":"certificate.renew","type":"string"},{"const":"certificate.auto_renew","type":"string"},{"const":"user.suspend","type":"string"},{"const":"user.restore","type":"string"},{"const":"user.sessions_revoke","type":"string"},{"const":"user.keys_revoke","type":"string"},{"const":"user.capacity","type":"string"},{"const":"user.billing_defaults","type":"string"},{"const":"credits.grant","type":"string"},{"const":"credits.adjust","type":"string"},{"const":"promotion.create","type":"string"},{"const":"promotion.disable","type":"string"},{"const":"affiliate.policy_create","type":"string"},{"const":"affiliate.policy_disable","type":"string"},{"const":"subscription.cancel","type":"string"},{"const":"subscription.resume","type":"string"},{"const":"subscription.change_plan","type":"string"},{"const":"subscription.revoke_grant","type":"string"},{"const":"subscription.extend","type":"string"},{"const":"subscription.renew_paid","type":"string"},{"const":"subscription.edit_grant","type":"string"},{"const":"capacity.refund","type":"string"},{"const":"network.policy_publish","type":"string"},{"const":"node.egress_policy","type":"string"},{"const":"cdn.policy_publish","type":"string"},{"const":"user.cdn_policy","type":"string"},{"const":"cdn.storage_create","type":"string"},{"const":"cdn.storage_update","type":"string"},{"const":"cdn.storage_credentials","type":"string"},{"const":"cdn.node_register","type":"string"},{"const":"cdn.storage_enable","type":"string"},{"const":"user.plan_grant","type":"string"},{"const":"fraud.ban","type":"string"},{"const":"fraud.clear","type":"string"},{"const":"operator.set","type":"string"}]},"target_id":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"},"reason":{"type":"string"},"confirmation":{"type":"string","maxLength":255},"payload":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"properties":{}}},"required":["action","target_id","reason"],"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["success","operation"],"properties":{"success":{"const":true,"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","actor_id","actor_role","action","target_id","target_key","reason","subject_user_id","subject_namespace","state","result","error_code","error_message","created_at","started_at","completed_at"],"properties":{"id":{"type":"string"},"actor_id":{"type":"string"},"actor_role":{"type":"string"},"action":{"type":"string"},"target_id":{"type":"string"},"target_key":{"type":"string"},"reason":{"type":"string"},"subject_user_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"queued","type":"string"},{"const":"running","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"},{"const":"interrupted","type":"string"}]},"result":{},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_email":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"enqueue","x-read-only":false,"x-audit-action":"operation.enqueue"}},"/admin/console/operations/{id}":{"get":{"operationId":"admin.operations.detail","summary":"operations record","description":"operations record","tags":["admin"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[a-zA-Z0-9_.:-]+$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","operation"],"properties":{"success":{"const":true,"type":"boolean"},"operation":{"additionalProperties":false,"type":"object","required":["id","actor_id","actor_role","action","target_id","target_key","reason","subject_user_id","subject_namespace","state","result","error_code","error_message","created_at","started_at","completed_at"],"properties":{"id":{"type":"string"},"actor_id":{"type":"string"},"actor_role":{"type":"string"},"action":{"type":"string"},"target_id":{"type":"string"},"target_key":{"type":"string"},"reason":{"type":"string"},"subject_user_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_namespace":{"anyOf":[{"type":"string"},{"type":"null"}]},"state":{"anyOf":[{"const":"queued","type":"string"},{"const":"running","type":"string"},{"const":"succeeded","type":"string"},{"const":"failed","type":"string"},{"const":"interrupted","type":"string"}]},"result":{},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject_email":{"anyOf":[{"type":"string"},{"type":"null"}]}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"operations.read_own","x-read-only":true}},"/admin/console/operators":{"get":{"operationId":"admin.operators","summary":"operators","description":"operators","tags":["admin"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","required":["success","items"],"properties":{"success":{"const":true,"type":"boolean"},"items":{"type":"array","items":{"type":"object","patternProperties":{"^(.*)$":{}}}}}}}}},"default":{"description":"Request failed","content":{"application/json":{"schema":{"additionalProperties":false,"type":"object","required":["success","error","code","message","requestId"],"properties":{"success":{"const":false,"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string"},"details":{},"retryable":{"type":"boolean"},"retryAfter":{"type":"integer"}}}}}}},"security":[{"bearerAuth":[]},{"clientId":[],"clientSecret":[]}],"x-required-permissions":["platform.operator"],"x-credential-scopes":["admin"],"x-authorization-policy":"operators.manage","x-read-only":true}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"clientId":{"type":"apiKey","in":"header","name":"X-Client-ID"},"clientSecret":{"type":"apiKey","in":"header","name":"X-Client-Secret"}}}}