Skip to main content
GET
Fleet Inventory

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

fleet_id
string
必填

查询参数

refresh
boolean
默认值:false

Ask the backend now instead of serving the cached observation.

响应

Successful Response

One observation, carrying enough provenance to be read correctly.

The four statuses are four different facts and are never rounded into each other -- which is the defect this contract replaces, where a Kubernetes API that could not be reached produced the same empty capacity as a cluster with nothing in it:

fresh the backend answered completely; zero resources means zero stale it could not be reached now, and these were seen at observed_at unknown it could not be reached and nothing earlier is held. Nothing may be concluded from this -- not emptiness, and not insufficiency partial some resources were reported; an absent one is not proven gone

fleet_id
string
必填
source
enum<string>
必填
可用选项:
local,
node,
kubernetes,
slurm
status
enum<string>
必填
可用选项:
fresh,
stale,
unknown,
partial
checked_at
string
必填
observed_at
string | null
resources
InventoryResourceOut · object[]
problem
InventoryProblemOut · object | null

Why an observation is incomplete. Sanitized before it leaves the server.

accelerators_by_series
Accelerators By Series · object
machine_count
integer
默认值:0
unreported_machines
integer
默认值:0