-
Notifications
You must be signed in to change notification settings - Fork 13
synology dsm
Yannick Croissant edited this page Aug 16, 2013
·
6 revisions
?????
?????
?????
?????
?????
?????
GET /webapi/dsm/info.cgi
Return informations about the NAS.
Parameter | Mandatory | Default value | Description |
---|---|---|---|
api |
Y | Method ID: SYNO.DSM.Info
|
|
version |
Y | Version of the api to use. Possible values: 1 . |
|
method |
Y | Method to use. Possibles values: getinfo
|
var Synology = require('synology');
var syno = new Synology();
syno.dsm.info(function(err, data) {
if (err) throw err;
console.log(data);
});
{
"data": {
"codepage": "fre",
"model": "DS412+",
"ram": 1024,
"serial": "C8GDN06509",
"temperature": 48,
"temperature_warn": false,
"time": "Sat Aug 17 00:37:38 2013",
"uptime": 3299114,
"version": "3750",
"version_string": "DSM 4.3-3750"
},
"success": true
}
?????
?????
?????
?????
GET /webapi/dsm/service.cgi
Return the service's list and their status.
Parameter | Mandatory | Default value | Description |
---|---|---|---|
api |
Y | Method ID: SYNO.DSM.Service
|
|
version |
Y | Version of the api to use. Possible values: 1 . |
|
method |
Y | Method to use. Possibles values: list
|
var Synology = require('synology');
var syno = new Synology();
syno.dsm.service(function(err, data) {
if (err) throw err;
console.log(data);
});
{
"data": {
"offset": 0,
"services": [{
"enabled": true,
"name": "Samba"
}, {
"enabled": true,
"name": "AutoBlock"
}, {
"enabled": false,
"name": "WebDAV"
}],
"total": 3
},
"success": true
}
?????
?????
?????
?????
?????
?????