Fleet API
Actions in the fleet namespace of the Nexigon Hub API.
fleet_SetProperty
POST/api/v1/actions/invoke/fleet_SetPropertySet a fleet property manually.
Request SetFleetPropertyAction
Fields (JSON object)
projectId(fromproject_id)requiredID of the project.
ProjectIdstringnamerequiredName of the property.
stringvaluerequiredValue of the property.
JsonValueany
Response Empty
No fields.
fleet_GetProperty
POST/api/v1/actions/invoke/fleet_GetPropertyGet a fleet property by name.
Request GetFleetPropertyAction
Fields (JSON object)
projectId(fromproject_id)requiredID of the project.
ProjectIdstringnamerequiredName of the property.
string
Response GetFleetPropertyOutput
Casesinternally β 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.
stringvaluerequiredCurrent value.
JsonValueanykindrequiredHow this property is managed.
FleetPropertyKind
Casesinternally β 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.
stringlastUpdated(fromlast_updated)requiredWhen the value was last updated.
Timestampstring
fleet_RemoveProperty
POST/api/v1/actions/invoke/fleet_RemovePropertyRemove 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.
ProjectIdstringnamerequiredName of the property.
string
Response RemoveFleetPropertyOutput
Casesinternally β tag field result
NotFoundThe property was not found.
{ "result": "NotFound" }RemovedThe property was removed.
{ "result": "Removed" }
fleet_QueryProperties
POST/api/v1/actions/invoke/fleet_QueryPropertiesQuery all fleet properties of a project.
Request QueryFleetPropertiesAction
Fields (JSON object)
projectId(fromproject_id)requiredID of the project.
ProjectIdstring
Response QueryFleetPropertiesOutput
Fields (JSON object)
propertiesrequiredProperties keyed by name.
object<string, FleetProperty>
Keys
stringValues
FleetProperty
Fields (JSON object)
namerequiredName of the property.
stringvaluerequiredCurrent value.
JsonValueanykindrequiredHow this property is managed.
FleetPropertyKind
Casesinternally β 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.
stringlastUpdated(fromlast_updated)requiredWhen the value was last updated.
Timestampstring
fleet_DefineComputedProperty
POST/api/v1/actions/invoke/fleet_DefineComputedPropertyDefine a computed fleet property.
Request DefineComputedFleetPropertyAction
Fields (JSON object)
projectId(fromproject_id)requiredID of the project.
ProjectIdstringnamerequiredName of the property.
stringinputProperties(frominput_properties)requiredDevice property names fed into the strategy's map function.
array<string>
Items
stringstrategyrequiredName of the computation strategy.
stringconfigoptionalStrategy-specific configuration.
JsonValueany
Response Empty
No fields.
fleet_QueryComputedPropertyDefinitions
POST/api/v1/actions/invoke/fleet_QueryComputedPropertyDefinitionsQuery computed fleet property definitions for a project.
Request QueryComputedFleetPropertyDefinitionsAction
Fields (JSON object)
projectId(fromproject_id)requiredID of the project.
ProjectIdstring
Response QueryComputedFleetPropertyDefinitionsOutput
Fields (JSON object)
definitionsrequiredList of definitions.
array<ComputedFleetPropertyDefinition>
Items
ComputedFleetPropertyDefinition
Fields (JSON object)
namerequiredName of the property.
stringinputProperties(frominput_properties)requiredDevice property names fed into the strategy's map function.
array<string>
Items
stringstrategyrequiredName of the computation strategy.
stringconfigrequiredStrategy-specific configuration.
JsonValueanycreatedAt(fromcreated_at)requiredWhen the definition was created.
Timestampstring