Skip to main content
Version: Next

Retrieve assets using a query

POST 

https://demo.openremote.io/api/master/asset/query

Retrieve assets using a query

Request

Header Parameters

    Authorization string
    X-Forwarded-Proto string
    X-Forwarded-Host string

Body

    recursiveboolean
    select object
    basicboolean
    accessstring

    Possible values: [PRIVATE, PROTECTED, PUBLIC]

    idsstring[]
    names object[]
  • Array [
  • matchstring

    Possible values: [EXACT, BEGIN, END, CONTAINS]

    caseSensitiveboolean
    valuestring
    negateboolean
  • ]
  • parents object[]
  • Array [
  • idstring
  • ]
  • paths object[]
  • Array [
  • pathstring[]
  • ]
  • realm object
    namestring
    userIdsstring[]
    typesstring[]
    attributes object
    operatorstring

    Possible values: [AND, OR]

    items object[]
  • Array [
  • name object
    matchstring

    Possible values: [EXACT, BEGIN, END, CONTAINS]

    caseSensitiveboolean
    valuestring
    negateboolean
    negatedboolean
    pathobject[]
    value object
    predicateType stringrequired

    Possible values: []

    meta object[]
  • Array [
  • name object
    matchstring

    Possible values: [EXACT, BEGIN, END, CONTAINS]

    caseSensitiveboolean
    valuestring
    negateboolean
    negatedboolean
    pathobject[]
    value object
    predicateType stringrequired

    Possible values: []

  • ]
  • previousValue object
    predicateType stringrequired

    Possible values: []

    timestampOlderThanstring
  • ]
  • groupsundefined[]
    orderBy object
    propertystring

    Possible values: [CREATED_ON, FIRST_NAME, LAST_NAME, USERNAME, EMAIL]

    descendingboolean
    limitint32

Responses

default response

Schema
  • Array [
  • idstring

    Possible values: Value must match regular expression ^[0-9A-Za-z]{22}$

    versionint64

    Possible values: >= 0

    createdOndate-time
    namestringrequired

    Possible values: non-empty and <= 1023 characters

    accessPublicReadboolean
    parentIdstring

    Possible values: Value must match regular expression ^[0-9A-Za-z]{22}$

    realmstringrequired

    Possible values: non-empty and <= 255 characters

    type string

    Possible values: []

    pathstring[]
    attributes object
    delegate object
    property name* AttributeObject
    type object
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    useGroupingboolean
    minimumIntegerDigitsint32
    minimumFractionDigitsint32
    maximumFractionDigitsint32
    minimumSignificantDigitsint32
    maximumSignificantDigitsint32
    asBooleanboolean
    asDateboolean
    asSliderboolean
    resolutionnumber
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsint32
    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    asNumberboolean
    asOnOffboolean
    asPressedReleasedboolean
    asOpenClosedboolean
    asMomentaryboolean
    multilineboolean
    unitsstring[]
    arrayDimensionsint32
    metaUseOnlyboolean
    jsonTypestring
    namestringrequired

    Possible values: Value must match regular expression ^\w+$

    meta object
    delegate object
    property name* MetaItemObject
    type object
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    useGroupingboolean
    minimumIntegerDigitsint32
    minimumFractionDigitsint32
    maximumFractionDigitsint32
    minimumSignificantDigitsint32
    maximumSignificantDigitsint32
    asBooleanboolean
    asDateboolean
    asSliderboolean
    resolutionnumber
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsint32
    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    asNumberboolean
    asOnOffboolean
    asPressedReleasedboolean
    asOpenClosedboolean
    asMomentaryboolean
    multilineboolean
    unitsstring[]
    arrayDimensionsint32
    metaUseOnlyboolean
    jsonTypestring
    namestringrequired

    Possible values: Value must match regular expression ^\w+$

    property name* MetaItemObject
    type object
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    useGroupingboolean
    minimumIntegerDigitsint32
    minimumFractionDigitsint32
    maximumFractionDigitsint32
    minimumSignificantDigitsint32
    maximumSignificantDigitsint32
    asBooleanboolean
    asDateboolean
    asSliderboolean
    resolutionnumber
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsint32
    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    asNumberboolean
    asOnOffboolean
    asPressedReleasedboolean
    asOpenClosedboolean
    asMomentaryboolean
    multilineboolean
    unitsstring[]
    arrayDimensionsint32
    metaUseOnlyboolean
    jsonTypestring
    namestringrequired

    Possible values: Value must match regular expression ^\w+$

    timestampint64
    property name* AttributeObject
    type object
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    useGroupingboolean
    minimumIntegerDigitsint32
    minimumFractionDigitsint32
    maximumFractionDigitsint32
    minimumSignificantDigitsint32
    maximumSignificantDigitsint32
    asBooleanboolean
    asDateboolean
    asSliderboolean
    resolutionnumber
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsint32
    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    asNumberboolean
    asOnOffboolean
    asPressedReleasedboolean
    asOpenClosedboolean
    asMomentaryboolean
    multilineboolean
    unitsstring[]
    arrayDimensionsint32
    metaUseOnlyboolean
    jsonTypestring
    namestringrequired

    Possible values: Value must match regular expression ^\w+$

    meta object
    delegate object
    property name* MetaItemObject
    type object
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    useGroupingboolean
    minimumIntegerDigitsint32
    minimumFractionDigitsint32
    maximumFractionDigitsint32
    minimumSignificantDigitsint32
    maximumSignificantDigitsint32
    asBooleanboolean
    asDateboolean
    asSliderboolean
    resolutionnumber
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsint32
    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    asNumberboolean
    asOnOffboolean
    asPressedReleasedboolean
    asOpenClosedboolean
    asMomentaryboolean
    multilineboolean
    unitsstring[]
    arrayDimensionsint32
    metaUseOnlyboolean
    jsonTypestring
    namestringrequired

    Possible values: Value must match regular expression ^\w+$

    property name* MetaItemObject
    type object
    namestring

    Possible values: Value must match regular expression ^\w+(\[\])?$

    constraints object[]
  • Array [
  • messagestring
    type stringrequired

    Possible values: []

  • ]
  • format object
    useGroupingboolean
    minimumIntegerDigitsint32
    minimumFractionDigitsint32
    maximumFractionDigitsint32
    minimumSignificantDigitsint32
    maximumSignificantDigitsint32
    asBooleanboolean
    asDateboolean
    asSliderboolean
    resolutionnumber
    dateStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    timeStylestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    dayPeriodstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hour12boolean
    iso8601boolean
    weekdaystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    erastring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    yearstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    monthstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    weekstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    daystring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    hourstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    minutestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    secondstring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    fractionalSecondDigitsint32
    timeZoneNamestring

    Possible values: [numeric, 2-digit, full, long, medium, short, narrow]

    momentJsFormatstring
    asNumberboolean
    asOnOffboolean
    asPressedReleasedboolean
    asOpenClosedboolean
    asMomentaryboolean
    multilineboolean
    unitsstring[]
    arrayDimensionsint32
    metaUseOnlyboolean
    jsonTypestring
    namestringrequired

    Possible values: Value must match regular expression ^\w+$

    timestampint64
  • ]

Authorization: oauth2

name: openidtype: oauth2flows: {
  "clientCredentials": {
    "tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
    "refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
    "scopes": {
      "profile": "profile"
    }
  },
  "authorizationCode": {
    "authorizationUrl": "/auth/realms/master/protocol/openid-connect/auth",
    "tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
    "refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
    "scopes": {
      "profile": "profile"
    }
  }
}
curl -L 'https://demo.openremote.io/api/master/asset/query' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"recursive": true,
"select": {
"basic": true
},
"access": "PRIVATE",
"ids": [
"string"
],
"names": [
{
"match": "EXACT",
"caseSensitive": true,
"value": "string",
"negate": true
}
],
"parents": [
{
"id": "string"
}
],
"paths": [
{
"path": [
"string"
]
}
],
"realm": {
"name": "string"
},
"userIds": [
"string"
],
"types": [
"string"
],
"attributes": {
"operator": "AND",
"items": [
{
"name": {
"match": "EXACT",
"caseSensitive": true,
"value": "string",
"negate": true
},
"negated": true,
"path": [
{}
],
"value": {
"predicateType": "string"
},
"meta": [
{
"name": {
"match": "EXACT",
"caseSensitive": true,
"value": "string",
"negate": true
},
"negated": true,
"path": [
{}
],
"value": {
"predicateType": "string"
}
}
],
"previousValue": {
"predicateType": "string"
},
"timestampOlderThan": "string"
}
],
"groups": [
null
]
},
"orderBy": {
"property": "CREATED_ON",
"descending": true
},
"limit": 0
}'
Request Collapse all
Base URL
https://demo.openremote.io/api/master
Auth
Parameters
— header
— header
— header
Body
{
  "recursive": true,
  "select": {
    "basic": true
  },
  "access": "PRIVATE",
  "ids": [
    "string"
  ],
  "names": [
    {
      "match": "EXACT",
      "caseSensitive": true,
      "value": "string",
      "negate": true
    }
  ],
  "parents": [
    {
      "id": "string"
    }
  ],
  "paths": [
    {
      "path": [
        "string"
      ]
    }
  ],
  "realm": {
    "name": "string"
  },
  "userIds": [
    "string"
  ],
  "types": [
    "string"
  ],
  "attributes": {
    "operator": "AND",
    "items": [
      {
        "name": {
          "match": "EXACT",
          "caseSensitive": true,
          "value": "string",
          "negate": true
        },
        "negated": true,
        "path": [
          {}
        ],
        "value": {
          "predicateType": "string"
        },
        "meta": [
          {
            "name": {
              "match": "EXACT",
              "caseSensitive": true,
              "value": "string",
              "negate": true
            },
            "negated": true,
            "path": [
              {}
            ],
            "value": {
              "predicateType": "string"
            }
          }
        ],
        "previousValue": {
          "predicateType": "string"
        },
        "timestampOlderThan": "string"
      }
    ],
    "groups": [
      null
    ]
  },
  "orderBy": {
    "property": "CREATED_ON",
    "descending": true
  },
  "limit": 0
}
ResponseClear

Click the Send API Request button above and see the response here!