Skip to main content
Version: 1.3.0

Retrieve an asset ruleset

GET 

https://demo.openremote.io/api/master/rules/asset/:id

Retrieve an asset ruleset

Request

Path Parameters

    id int64required

Header Parameters

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

Responses

default response

Schema

    idint64
    versionint64
    createdOndate-time
    lastModifieddate-time
    namestringrequired

    Possible values: >= 3 characters and <= 255 characters

    enabledboolean
    rulesstring
    langstringrequired

    Possible values: [JAVASCRIPT, GROOVY, JSON, FLOW]

    meta

    object

    statusstring

    Possible values: [READY, DEPLOYED, COMPILATION_ERROR, VALIDITY_PERIOD_ERROR, EXECUTION_ERROR, LOOP_ERROR, DISABLED, PAUSED, EXPIRED, REMOVED, EMPTY]

    errorstring
    assetIdstring
    accessPublicReadboolean
    realmstring

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/rules/asset/:id' \
-H 'Authorization: Bearer <token>'
Request Collapse all
Base URL
https://demo.openremote.io/api/master
Auth
Parameters
— pathrequired
— header
— header
— header
ResponseClear

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