Create IOTP Cloud Rules with Restore in Watson IOTP

I am currently working with IBM IOTP (Internet of Things Platform) services.
I was able to connect to IOTP and successfully transfer data.

Using the web interface of the Watson IOT Platform, I was able to create some cloud rules and run some real-time alerts.

My question is: is it possible to create cloud rules using the RESTFul service or CURL queries? Is there any RESTFul service for this purpose?

+4
source share
2 answers

RTI has published the following API for creating rules.

POST {baseUrl}/rule
{
  "name": "Abnormal Power Usage",
  "description": "Abnormal Power Usage when exceeding 100",
  "disabled": false,
  "severity": 1,
  "schemaId": "f1b2b80f",
  "condition": ".reading > 100",
  "actions": [
    "cc899bdc"
  ]
}

It also allows you to create actions.

POST {baseUrl}/action
Payload:
{
  "type": "node-red",
  "name": "Node-RED Webhook",
  "description": "A webhook for integrating with Node-RED",
  "fields": {
    "url": "http://btnodered.mybluemix.net/rti-webhook"
  }
}

, , .

. .

RTI IoTP, , IBM API IoTP. .

URL- API- IoTP .

https://{6--org_ID}.internetofthings.ibmcloud.com/API/v0002/

, API, , API. API- IoTP .

→ →

API .

+1

Source: https://habr.com/ru/post/1655838/


All Articles