Agent instances API#
Served by: GeoNeMo agent service API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
List monitored agent instances |
|
|
Get monitored agent instance |
|
|
List monitored agent instance history |
|
|
List agent instances |
|
|
Launch agent instance |
|
|
Get agent instance |
|
|
Update agent instance |
|
|
List agent instance history |
|
|
Stop agent instance |
|
|
Submit instance task |
|
|
Wake agent instance |
|
|
List wake deliveries |
|
|
Set wake policy |
|
|
List wake history |
GET /v1/agent-instance-monitoring#
List monitored agent instances
Lists instances, optionally for one agent, live ones only (live_only) or matching a search string. Paged by limit (at most 100) and offset. The monitoring path returns the same list with each instance’s failure, if any.
Operation:
list_instances_v1_agent_instance_monitoring_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instance-monitoring" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string or null |
||
|
query |
boolean |
||
|
query |
string |
||
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-instance-monitoring/{instance_id}#
Get monitored agent instance
Returns one instance with its deployment state, and its recent resource history and activity when monitoring is available. The monitoring path also reports the instance’s failure, if any. Returns 404 for an unknown instance.
Operation:
get_instance_v1_agent_instance_monitoring__instance_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instance-monitoring/<instance_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-instance-monitoring/{instance_id}/history#
List monitored agent instance history
Lists the runs an instance has performed, paged by limit (at most 100) and offset. The monitoring path also reports each run’s failure, if any. Returns 404 for an unknown instance.
Operation:
instance_history_v1_agent_instance_monitoring__instance_id__history_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instance-monitoring/<instance_id>/history" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-instances#
List agent instances
Lists instances, optionally for one agent, live ones only (live_only) or matching a search string. Paged by limit (at most 100) and offset. The monitoring path returns the same list with each instance’s failure, if any.
Operation:
list_instances_v1_agent_instances_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instances" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string or null |
||
|
query |
boolean |
||
|
query |
string |
||
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/agent-instances#
Launch agent instance
Launches an agent instance and returns 202 with it and its detail URL. The Idempotency-Key header is required: a repeat returns the original instance and reuse with a different request returns 409. The agent must be active and its release must carry the execution contract (409 otherwise). Returns 422 when required collections are missing or unavailable.
Operation:
launch_instance_v1_agent_instances_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-instances" \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: <idempotency-key>" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
header |
string |
yes |
|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Accepted |
|
|
Validation Error |
GET /v1/agent-instances/{instance_id}#
Get agent instance
Returns one instance with its deployment state, and its recent resource history and activity when monitoring is available. The monitoring path also reports the instance’s failure, if any. Returns 404 for an unknown instance.
Operation:
get_instance_v1_agent_instances__instance_id__getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
PATCH /v1/agent-instances/{instance_id}#
Update agent instance
Renames an instance or sets its swarm name; an empty swarm name clears it. Returns 404 for an unknown instance.
Operation:
update_instance_v1_agent_instances__instance_id__patchAccess: bearer token or console session cookie
curl -X PATCH "https://geonemo.example.com/v1/agent-instances/<instance_id>" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-instances/{instance_id}/history#
List agent instance history
Lists the runs an instance has performed, paged by limit (at most 100) and offset. The monitoring path also reports each run’s failure, if any. Returns 404 for an unknown instance.
Operation:
instance_history_v1_agent_instances__instance_id__history_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>/history" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/agent-instances/{instance_id}/stop#
Stop agent instance
Requests that an instance stop. Returns 202 once its deployment is marked stopping and its active runs are cancelled.
Operation:
stop_instance_v1_agent_instances__instance_id__stop_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/stop" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Accepted |
|
|
Validation Error |
POST /v1/agent-instances/{instance_id}/tasks#
Submit instance task
Queues follow-up work for an interactive instance and returns 202. The Idempotency-Key header is required. Returns 409 when the instance is not interactive or is not yet available for follow-up work.
Operation:
submit_task_v1_agent_instances__instance_id__tasks_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/tasks" \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: <idempotency-key>" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
header |
string |
yes |
|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Accepted |
|
|
Validation Error |
POST /v1/agent-instances/{instance_id}/wake#
Wake agent instance
Wakes a sleeping instance manually and returns 202 with the instance. The Idempotency-Key header is required.
Operation:
wake_instance_v1_agent_instances__instance_id__wake_postAccess: bearer token or console session cookie
curl -X POST "https://geonemo.example.com/v1/agent-instances/<instance_id>/wake" \
-H "Authorization: Bearer $TOKEN" \
-H "Idempotency-Key: <idempotency-key>"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
header |
string |
yes |
|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
Accepted |
|
|
Validation Error |
GET /v1/agent-instances/{instance_id}/wake-deliveries#
List wake deliveries
Lists the events considered for waking an instance and the decision made for each, paged by limit (at most 100) and offset. Events carry references and revisions, never private media locators. Returns 503 when event history is unavailable.
Operation:
wake_deliveries_v1_agent_instances__instance_id__wake_deliveries_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>/wake-deliveries" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
PUT /v1/agent-instances/{instance_id}/wake-policy#
Set wake policy
Sets the events that wake a sleeping instance and returns the instance. Returns 409 when the policy conflicts with the instance’s capabilities.
Operation:
set_wake_policy_v1_agent_instances__instance_id__wake_policy_putAccess: bearer token or console session cookie
curl -X PUT "https://geonemo.example.com/v1/agent-instances/<instance_id>/wake-policy" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @body.json
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/agent-instances/{instance_id}/wakes#
List wake history
Lists an instance’s wake attempts and outcomes, paged by limit (at most 100) and offset. Returns 503 when event history is unavailable.
Operation:
wake_history_v1_agent_instances__instance_id__wakes_getAccess: bearer token or console session cookie
curl -X GET "https://geonemo.example.com/v1/agent-instances/<instance_id>/wakes" \
-H "Authorization: Bearer $TOKEN"
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The agent instance ID. |
|
query |
integer |
||
|
query |
integer |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |