Skip to main content

Discover Device Context

POST 

/api/v1/device/discover/deviceContext

This service message allows a device to post the discovery context.

Request

Body

required

    id stringrequired
    snapshotDate string

    Timestamp when the discovery snapshot was taken

    deviceTypeToken string

    Name or ID (as string) of the deviceType (e.g., router, switch, server, etc.), used for discovery of devices of type "device"

    platform

    object

    token stringrequired

    Name or ID (as string) of the platform type being discovered.

    platformId string

    ID (as string) of system or machine being discovered.

    devices array

    Array of devices discovered within this platform. Each device contains detailed discovery information of type "DiscoveryMessageV2Dto".

    deviceData

    object

    snapshotDate date-time

    Timestamp of the last metadata snapshot

    deviceId string

    Device identifier

    deviceType string[]

    Device type tokens

    platformId string

    Platform identifier

    platform string

    Platform name

    urlGetAppServerAvailable string[]

    Available GetApp server URLs

    deliverySource string

    Delivery source mode

    orchestrateMe boolean

    When true, requests that a master agent orchestrate this device

    reactiveMode boolean

    When true, the device subscribes to the master SSE command channel

    orchestratedBy string

    Master device-id that is currently orchestrating this device

    orchestratorId string

    Orchestrator identifier

    metadata

    object

    Device metadata. Known fields are listed above. Any additional key-value pairs reported by the agent are flattened into this object (mirrors the Rust serde flatten pattern).

    macAddress string

    MAC address

    ipAddress string

    IP address

    name string

    Device name

    location

    object

    lat stringrequired
    long stringrequired
    alt string
    os string

    Operating system

    osRelease string

    OS release version

    storageAvailable number

    Available storage in bytes

    battery

    object

    level uint16required

    Battery level as a percentage (0–100)

    isPluggedIn boolean
    health uint16

    Battery health as a percentage (0–100)

    timeRemainingMinutes uint32

    Estimated time remaining in minutes

    state stringrequired

    Battery state: Charging | Discharging | Full | Empty | Unknown

    isVirtual boolean

    Whether this is a virtual/emulated battery

    urlGetAppServerActive string

    Currently active GetApp server URL

    property name* any

    Device metadata. Known fields are listed above. Any additional key-value pairs reported by the agent are flattened into this object (mirrors the Rust serde flatten pattern).

    general

    object

    personalDevice

    object

    name string
    idNumber string
    personalNumber string

    situationalDevice

    object

    weather number
    bandwidth number
    time date-time
    operativeState boolean
    power number
    availableStorage string

    location

    object

    lat stringrequired
    long stringrequired
    alt string

    physicalDevice

    object

    MAC string
    IP string
    ID stringdeprecated
    OS string

    Possible values: [android, windows, linux, macos]

    serialNumber string
    possibleBandwidth string
    availableStorage stringdeprecated
    metaData object
    discoveryType stringrequired

    Possible values: [get-app, get-map, mTls]

    softwareData

    object

    formations string[]deprecated
    platforms string[]deprecated

    components

    object[]

  • Array [

  • catalogId stringrequired
    state stringrequired

    Possible values: [offering, push, delivery, downloaded, deleted, deploy, installed, uninstalled]

    error string
  • ]

  • supportedFields

    object[]

    List of fields that the device supports for evaluation, including their types (e.g., number, string, boolean)

  • Array [

  • name stringrequired

    Field name in JSONPath format (e.g., $.battery.level)

    type stringrequired

    Field data type (number, string, boolean)

    label string

    Human-readable label for the field

    description string

    Field description

  • ]

Responses

Schema

    id stringrequired
    snapshotDate string

    Timestamp when the discovery snapshot was taken

    deviceTypeToken string

    Name or ID (as string) of the deviceType (e.g., router, switch, server, etc.), used for discovery of devices of type "device"

    platform

    object

    token stringrequired

    Name or ID (as string) of the platform type being discovered.

    platformId string

    ID (as string) of system or machine being discovered.

    devices array

    Array of devices discovered within this platform. Each device contains detailed discovery information of type "DiscoveryMessageV2Dto".

    deviceData

    object

    snapshotDate date-time

    Timestamp of the last metadata snapshot

    deviceId string

    Device identifier

    deviceType string[]

    Device type tokens

    platformId string

    Platform identifier

    platform string

    Platform name

    urlGetAppServerAvailable string[]

    Available GetApp server URLs

    deliverySource string

    Delivery source mode

    orchestrateMe boolean

    When true, requests that a master agent orchestrate this device

    reactiveMode boolean

    When true, the device subscribes to the master SSE command channel

    orchestratedBy string

    Master device-id that is currently orchestrating this device

    orchestratorId string

    Orchestrator identifier

    metadata

    object

    Device metadata. Known fields are listed above. Any additional key-value pairs reported by the agent are flattened into this object (mirrors the Rust serde flatten pattern).

    macAddress string

    MAC address

    ipAddress string

    IP address

    name string

    Device name

    location

    object

    lat stringrequired
    long stringrequired
    alt string
    os string

    Operating system

    osRelease string

    OS release version

    storageAvailable number

    Available storage in bytes

    battery

    object

    level uint16required

    Battery level as a percentage (0–100)

    isPluggedIn boolean
    health uint16

    Battery health as a percentage (0–100)

    timeRemainingMinutes uint32

    Estimated time remaining in minutes

    state stringrequired

    Battery state: Charging | Discharging | Full | Empty | Unknown

    isVirtual boolean

    Whether this is a virtual/emulated battery

    urlGetAppServerActive string

    Currently active GetApp server URL

    property name* any

    Device metadata. Known fields are listed above. Any additional key-value pairs reported by the agent are flattened into this object (mirrors the Rust serde flatten pattern).

    general

    object

    personalDevice

    object

    name string
    idNumber string
    personalNumber string

    situationalDevice

    object

    weather number
    bandwidth number
    time date-time
    operativeState boolean
    power number
    availableStorage string

    location

    object

    lat stringrequired
    long stringrequired
    alt string

    physicalDevice

    object

    MAC string
    IP string
    ID stringdeprecated
    OS string

    Possible values: [android, windows, linux, macos]

    serialNumber string
    possibleBandwidth string
    availableStorage stringdeprecated
    metaData object
    discoveryType stringrequired

    Possible values: [get-app, get-map, mTls]

    softwareData

    object

    formations string[]deprecated
    platforms string[]deprecated

    components

    object[]

  • Array [

  • catalogId stringrequired
    state stringrequired

    Possible values: [offering, push, delivery, downloaded, deleted, deploy, installed, uninstalled]

    error string
  • ]

  • supportedFields

    object[]

    List of fields that the device supports for evaluation, including their types (e.g., number, string, boolean)

  • Array [

  • name stringrequired

    Field name in JSONPath format (e.g., $.battery.level)

    type stringrequired

    Field data type (number, string, boolean)

    label string

    Human-readable label for the field

    description string

    Field description

  • ]

Loading...