bma machines backups
Manage machines backups
Options
bma machines backups list
List a machine’s backups
GET /v1/machines/{machine_id}/backups
bma machines capabilities
Machine interaction capabilities
GET /v1/machines/{machine_id}/capabilities
bma machines create
Create a machine
Create a machine.
persistent: true + machine_pool_id (+ template, display_name, agent_ids) creates a persistent machine owned by the workspace (createWorkspacePersistentMachine): the pool starts its sandbox, no agent is needed, the sessions of agent_ids (every agent of the workspace when empty) may use it and the workspace deletes it; source: byo connects a BYO machine (connectBYOMachine) and returns the one-time token; otherwise createMachine. Deprecated: agent_id + persistent: true creates an agent persistent machine (createAgentPersistentMachine).
POST /v1/machines
bma machines delete
Delete a machine
Delete a machine.
Deletes a persistent or BYO machine the workspace owns. Deprecated: with agent_id it deletes that agent’s persistent machine (deleteAgentMachine).
DELETE /v1/machines/{machine_id}
bma machines executor-tokens
Manage machines executor tokens
Options
bma machines executor-tokens create
Create an executor token
Create an executor token.
Issues one more long-lived credential of a BYO machine; its executor exchanges it at executor.<env>/v1/machines/{machine_id}/token. token is shown only in this response.
POST /v1/machines/{machine_id}/executor_tokens
bma machines executor-tokens list
List executor tokens
List executor tokens.
Newest first, revoked tokens included. Token values are never listed.
GET /v1/machines/{machine_id}/executor_tokens
bma machines executor-tokens revoke
Revoke an executor token
Revoke an executor token.
The executor’s next token exchange with it fails with 401. A token that is already revoked is not found.
POST /v1/machines/{machine_id}/executor_tokens/{token_id}/revoke
bma machines get
Retrieve a machine
Retrieve a machine.
Adds capabilities (getMachineCapabilities), null when the project cannot use the machine.
GET /v1/machines/{machine_id}
bma machines list
List machines
List machines.
persistent=true lists only persistent machines (the workspace’s computers). Deprecated: agent_id lists that agent’s machines (project scope, native listAgentMachines).
GET /v1/machines
bma machines pause
Pause a running machine
POST /v1/machines/{machine_id}/pause
bma machines restore
Rebuild a machine from a backup
Rebuild a machine from a backup.
Rebuilds the machine from backup_id, or from its latest ready backup when omitted. Answers 202 with the backup the rebuild restores.
POST /v1/machines/{machine_id}/restore
bma machines resume
Resume a paused machine
POST /v1/machines/{machine_id}/resume
bma machines update
Update a machine
Update a machine.
agent_ids replaces the agents bound to a persistent machine as a whole ([] opens a persistent pool machine to every agent of its workspace); the managers of the workspace that owns the machine may change it.
POST /v1/machines/{machine_id}