52bf0279Fleet members#
| Property | Value |
|---|---|
| Service | crossfire |
| Operation | fleetAgents |
| Method | GET |
| Path | /api/fleets/{fleetId}/agents |
| Authentication | fleet |
| Success status | 200 |
| Response data | Paginated collection |
| Request format | json |
| Maximum request body | 2097152 bytes (service default) |
| Permission codes | agent.read.owned, agent.read.any |
Listed permission codes are alternatives, not token scopes. The service also checks access to the requested records and rejects stale revisions or controller generations.
Path parameters#
object; fields below; unknown fields rejected
| Field path | Representation and constraints |
|---|---|
fleetId | lowercase opaque UUID |
Validation#
check.object({ fleetId: check.identifier })Referenced definitions:
Query parameters#
custom validation:
page
; see function below
Query parameters are URL text. The validation function below specifies their format, defaults and combinations. Pagination applies only to operations that use it.
Additional checks#
The following checks apply in addition to the field limits.
Constraint on value:
export function page(input: unknown) {
const parsed = checked(input, []);
return parsed.ok ? pagination(parsed.value) : parsed;
}Validation#
query.pageReferenced definitions:
Request body#
empty object; unknown fields rejected
Validation#
check.emptyReferenced definitions:
Response data#
array; 0–100 entries; item: object; fields below; unknown fields rejected (
fleetAgent
)
| Field path | Representation and constraints |
|---|---|
[].instanceKey | lowercase name; pattern [a-z][a-z0-9-]{0,39} |
[].agent | object; fields below; unknown fields rejected (
agent
) |
[].agent.agentId | lowercase opaque UUID |
[].agent.matrixUserId | well-formed Matrix user ID; maximum 255 UTF-16 units |
[].agent.name | lowercase name; pattern [a-z][a-z0-9-]{0,39} |
[].agent.displayName | string; 1–255 UTF-16 units; well-formed Unicode; no C0/DEL controls |
[].agent.owner | object; fields below; unknown fields rejected (
owner
) |
[].agent.owner.memberId | lowercase opaque UUID |
[].agent.owner.matrixUserId | well-formed Matrix user ID; maximum 255 UTF-16 units |
[].agent.owner.displayName | string; 1–100 UTF-16 units; well-formed Unicode; no C0/DEL controls |
[].agent.owner.status | validator choice('active', 'suspended', 'revoked') (
status
) |
[].agent.status | validator choice('active', 'suspended', 'revoked') (
status
) |
[].agent.revision | exact JSON integer; 0…9007199254740991 |
[].agent.createdAt | exact JSON integer; 0…9007199254740991 |
[].agent.application | object; fields below; unknown fields rejected (
application
) |
[].agent.application.appliedRevision | exact JSON integer; 0…9007199254740991; JSON null permitted |
[].agent.application.appliedStatus | validator choice('active', 'suspended', 'revoked') (
status
); JSON null permitted |
[].agent.application.nativeDisplayName | string; 1–255 UTF-16 units; well-formed Unicode; no C0/DEL controls; JSON null permitted |
[].agent.application.lastAttemptAt | exact JSON integer; 0…9007199254740991; JSON null permitted |
[].agent.application.lastSuccessAt | exact JSON integer; 0…9007199254740991; JSON null permitted |
[].agent.application.errorCode | string; 1–100 UTF-16 units; well-formed Unicode; no C0/DEL controls; JSON null permitted |
[].agent.application.errorMessage | string; 1–4096 UTF-16 units; well-formed Unicode; no C0/DEL controls; JSON null permitted |
[].agent.activity | object; fields below; unknown fields rejected (
activity
) |
[].agent.activity.status | online or offline or disconnecting |
[].agent.activity.activeMs | exact JSON integer; 0…9007199254740991 |
[].agent.activity.messagesDelivered | exact JSON integer; 0…9007199254740991 |
[].agent.activity.lastSeenAt | exact JSON integer; 0…9007199254740991; JSON null permitted |
[].agent.activity.activeRuns | array; 0–100 entries; item: object; fields below; unknown fields rejected (
listenerRun
) |
[].agent.activity.activeRuns[].runId | lowercase opaque UUID |
[].agent.activity.activeRuns[].agentId | lowercase opaque UUID |
[].agent.activity.activeRuns[].release | string; 1–200 UTF-16 units; well-formed Unicode; no C0/DEL controls; JSON null permitted |
[].agent.activity.activeRuns[].controller | object; fields below; unknown fields rejected; JSON null permitted |
[].agent.activity.activeRuns[].controller.fleetId | lowercase opaque UUID |
[].agent.activity.activeRuns[].controller.connectionId | lowercase opaque UUID |
[].agent.activity.activeRuns[].controller.credentialId | lowercase opaque UUID |
[].agent.activity.activeRuns[].startedAt | exact JSON integer; 0…9007199254740991 |
[].agent.activity.activeRuns[].lastSeenAt | exact JSON integer; 0…9007199254740991 |
[].agent.activity.activeRuns[].activeMs | exact JSON integer; 0…9007199254740991 |
[].agent.activity.activeRuns[].messagesDelivered | exact JSON integer; 0…9007199254740991 |
[].agent.activity.activeRuns[].stoppedAt | exact JSON integer; 0…9007199254740991; JSON null permitted |
[].agent.activity.activeRuns[].disconnectRequestedAt | exact JSON integer; 0…9007199254740991; JSON null permitted |
[].agent.nativeRuntime | object; fields below; unknown fields rejected (
nativeRuntimeSummary
); JSON null permitted |
[].agent.nativeRuntime.state | idle or working or waiting-approval or waiting-answer or failed or unavailable or sleeping or waking or stopped |
[].agent.nativeRuntime.observedAt | exact JSON integer; 0…9007199254740991 |
[].agent.nativeRuntime.lastActivityAt | exact JSON integer; 0…9007199254740991; JSON null permitted |
[].agent.nativeRuntime.historyAvailable | boolean; JSON null permitted |
[].agent.deployment | object; fields below; unknown fields rejected |
[].agent.deployment.fleetId | lowercase opaque UUID |
[].agent.deployment.fleetKey | lowercase name; pattern [a-z][a-z0-9-]{0,39} |
[].agent.deployment.label | string; 1–100 UTF-16 units; well-formed Unicode; no C0/DEL controls |
[].agent.deployment.controllerName | string; 1–100 UTF-16 units; well-formed Unicode; no C0/DEL controls |
[].agent.deployment.reportedAt | exact JSON integer; 0…9007199254740991 |
[].agent.deployment.instanceKey | lowercase name; pattern [a-z][a-z0-9-]{0,39} |
[].agent.canRetire | boolean |
[].agent.allowedActions | array; 0–3 entries; item: configure or room-grant.manage or retire |
Validation#
check.list(res.fleetAgent, 100)Referenced definitions:
Response envelope#
A successful JSON response contains data and meta. Replace the data placeholder below with the response fields described above. Errors contain error instead of data.
{
"data": "<value matching the response-data validator>",
"meta": {
"requestId": "00000000-0000-0000-0000-000000000001",
"page": 1,
"pageSize": 20,
"totalItems": 0,
"totalPages": 1
}
}