ArchAstro.V1.Agents.AgentComputers (archastro v0.2.0)

Copy Markdown

AgentAgentComputer API resource.

Summary

Functions

Provision a computer for an agent

List computers

Functions

create(client, agent, input)

Provision a computer for an agent

Creates and provisions a new computer resource associated with the specified agent. The computer is allocated in the requested region (defaulting to iad) and its status transitions from provisioning to running once it is ready.

Requires an app-scoped API key. The agent identified by agent must belong to the same app. Supplying a lookup_key lets you retrieve this computer later without storing its ID — the key must be unique within the app.

The newly provisioned computer.

list(client, agent)

List computers

Returns all computers belonging to the authenticated app, ordered by creation time descending. Pass agent to scope the results to a single agent's computers. When agent is omitted, computers for all agents in the app are returned.

Requires an app-scoped API key. If the specified agent does not exist or does not belong to the app, the endpoint returns 404.

Object containing a data array of computer records.