Fleet API
Actions in the fleet namespace of the Nexigon Hub API.
fleet_SetProperty
POST /api/v1/actions/invoke/fleet_SetProperty Set a fleet property manually.
Request SetFleetPropertyAction
Fields (JSON object)
projectId(fromproject_id) requiredID of the project.
ProjectId stringnamerequiredName of the property.
string valuerequiredValue of the property.
JsonValue any
Response Empty
No fields.
fleet_GetProperty
POST /api/v1/actions/invoke/fleet_GetProperty Get a fleet property by name.
Request GetFleetPropertyAction
Fields (JSON object)
projectId(fromproject_id) requiredID of the project.
ProjectId stringnamerequiredName of the property.
string
Response GetFleetPropertyOutput
Cases
internally
β tag field result
NotFoundThe property was not found.
{ "result": "NotFound" }FoundThe property was found.
{ "result": "Found", ...<payload fields> } β or "content" for non-object payloadsFleetProperty
Fields (JSON object)
namerequiredName of the property.
string
valuerequiredCurrent value.
JsonValue
anykindrequiredHow this property is managed.
FleetPropertyKind
Cases internally β tag field
kindManualSet manually via the API.
{ "kind": "Manual" }ComputedComputed from device properties via a user-defined strategy.
{ "kind": "Computed" }BuiltinComputed from device properties via a built-in strategy.
{ "kind": "Builtin" }
versionrequiredIncremental version number, bumped on each update.
integer (i64)
erroroptionalError from the last computation attempt, if any.
string
lastUpdated(fromlast_updated) requiredWhen the value was last updated.
Timestamp
string
fleet_RemoveProperty
POST /api/v1/actions/invoke/fleet_RemoveProperty Remove a fleet property.
Handles both manual and computed properties. For computed properties, the associated definition is removed as well.
Request RemoveFleetPropertyAction
Fields (JSON object)
projectId(fromproject_id) requiredID of the project.
ProjectId stringnamerequiredName of the property.
string
Response RemoveFleetPropertyOutput
Cases
internally
β tag field result
NotFoundThe property was not found.
{ "result": "NotFound" }RemovedThe property was removed.
{ "result": "Removed" }
fleet_QueryProperties
POST /api/v1/actions/invoke/fleet_QueryProperties Query all fleet properties of a project.
Request QueryFleetPropertiesAction
Fields (JSON object)
projectId(fromproject_id) requiredID of the project.
ProjectId string
Response QueryFleetPropertiesOutput
Fields (JSON object)
propertiesrequiredProperties keyed by name.
object<string, FleetProperty>
Keys
string
Values
FleetProperty
Fields (JSON object)
namerequiredName of the property.
string
valuerequiredCurrent value.
JsonValue
anykindrequiredHow this property is managed.
FleetPropertyKind
Cases internally β tag field
kindManualSet manually via the API.
{ "kind": "Manual" }ComputedComputed from device properties via a user-defined strategy.
{ "kind": "Computed" }BuiltinComputed from device properties via a built-in strategy.
{ "kind": "Builtin" }
versionrequiredIncremental version number, bumped on each update.
integer (i64)
erroroptionalError from the last computation attempt, if any.
string
lastUpdated(fromlast_updated) requiredWhen the value was last updated.
Timestamp
string
fleet_DefineComputedProperty
POST /api/v1/actions/invoke/fleet_DefineComputedProperty Define a computed fleet property.
Request DefineComputedFleetPropertyAction
Fields (JSON object)
projectId(fromproject_id) requiredID of the project.
ProjectId stringnamerequiredName of the property.
string inputProperties(frominput_properties) requiredDevice property names fed into the strategy's map function.
array<string>
Items
string
strategyrequiredName of the computation strategy.
string configoptionalStrategy-specific configuration.
JsonValue any
Response Empty
No fields.
fleet_QueryComputedPropertyDefinitions
POST /api/v1/actions/invoke/fleet_QueryComputedPropertyDefinitions Query computed fleet property definitions for a project.
Request QueryComputedFleetPropertyDefinitionsAction
Fields (JSON object)
projectId(fromproject_id) requiredID of the project.
ProjectId string
Response QueryComputedFleetPropertyDefinitionsOutput
Fields (JSON object)
definitionsrequiredList of definitions.
array<ComputedFleetPropertyDefinition>
Items
ComputedFleetPropertyDefinition
Fields (JSON object)
namerequiredName of the property.
string
inputProperties(frominput_properties) requiredDevice property names fed into the strategy's map function.
array<string>
Items
string
strategyrequiredName of the computation strategy.
string
configrequiredStrategy-specific configuration.
JsonValue
anycreatedAt(fromcreated_at) requiredWhen the definition was created.
Timestamp
string