-
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/connection.cgi
Return the list of the current connections.
Parameter | Mandatory | Default value | Description |
---|---|---|---|
api |
Y | Method ID: SYNO.DSM.Connection
|
|
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.connection(function(err, data) {
if (err) throw err;
console.log(data);
});
{
"data": {
"connections": [{
"activity": "Storage1",
"address": "HTPC(192.168.0.26)",
"timestamp": 1376596086,
"type": "samba",
"user": "xbmc"
}, {
"activity": "DiskStation Manager",
"address": "192.168.0.10",
"timestamp": 1376698031,
"type": "dsm",
"user": "john"
}]
},
"success": true
}
?????
?????
?????
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
}
?????
?????
?????
?????
?????
?????