kwent / syno

Simple Node.js wrapper and CLI for Synology DSM REST API 5.x and 6.x.
http://kwent.github.io/syno
MIT License
316 stars 51 forks source link

Some command incompatible with DSM 6.1.1 #36

Open Haraguroicha opened 7 years ago

Haraguroicha commented 7 years ago

$ syno dsm listStorageDisks result to Error: No parameter of API, method or version

All related to storage APIs will result to the same error message.

With listStorageDisks command and also turn on --debug flag, it's appears to use api=SYNO.Core.Storage.Disk&method=list&version=1 to query data, but DSM 6.1.1 changed to use api=SYNO.Storage.CGI.Storage&method=load_info&version=1 and combine all of storages information, aka. iSCSI LUN, Volumes, etc..

kwent commented 7 years ago

Hi @Haraguroicha, looks like i'll have to update syno to support DSN 6.1.1.

I don't have much time lately.

PR is welcome.