...
The easiest way to start is to use cURL, wget, or any other HTTP client even RouterOS RouterOS fetch tool.
Code Block | ||||
---|---|---|---|---|
| ||||
$ curl -k -u admin: https://10.155.101.214/rest/system/resource [{"architecture-name":"tile","board-name":"CCR1016-12S-1S+", "build-time":"Dec/04/2020 14:19:51","cpu":"tilegx","cpu-count":"16", "cpu-frequency":"1200","cpu-load":"1","free-hdd-space":"83439616", "free-memory":"1503133696","platform":"MikroTik", "total-hdd-space":"134217728","total-memory":"2046820352", "uptime":"2d20h12m20s","version":"7.1beta4 (development)"}] |
...
HTTP Verv | CRUD | ROS | Description |
---|---|---|---|
GET | Read | To get the records. | |
PATCH | Update/Modify | set | To update a single record. |
PUT | Create | add | To create a new record. |
DELETE | Delete | remove | To delete a single record. |
POST | Universal method to get access to all console commands. |
...
GET
This method allows getting the list of all records or a single record from the specified menu encoded in the URL.
For example, get all IP addresses (equivalent to the 'ip/address/print
' command from the CLI):
...