Api Methoden für WebStation

Thomassino

Benutzer
Mitglied seit
01. Feb 2023
Beiträge
10
Punkte für Reaktionen
2
Punkte
9
Moin,
ich habe eine Frage zur API der DSM 7.x

Die Befehle:

https://HOST:5001/webapi/entry.cgi?api=SYNO.API.Info&version=1&method=query

https://HOST:5001/webapi/entry.cgi?api=SYNO.WebStation.HTTP.VHost&version=1&method=list

Habe ich soweit verstanden und funktionieren. Allerdings erschließt sich mir nicht, wie ich für die API z. B. "SYNO.WebStation.HTTP.VHost" alle Methoden abfragen kann. Im Web habe ich Folgendes gefunden....

http://<nas_ip>:<port>/webapi/entry.cgi?api=SYNO.WebStation.HTTP.VHost&method=query&_sid=<your_session_id>

Hier bekomme ich allerdings nur einen susses:false

Auch in der KnowledgeBase auf der Website wurde ich nicht fündig. Können Ihr mir da vielleicht einen Tipp/Link geben.

Das Dokument: https://global.download.synology.co...s/DSM/All/enu/DSM_Login_Web_API_Guide_enu.pdf

Hat mir da leider auch nicht weiter geholfen.



Mit freundlichem Gruß

Thomassino
 

Thomassino

Benutzer
Mitglied seit
01. Feb 2023
Beiträge
10
Punkte für Reaktionen
2
Punkte
9
Ich antworte mir mal selber:

cat /volume1/@appstore/WebStation/webapi/SYNO.WebStation.lib | jq .

bringt den erwünschten Erfolg.... nach einer Idee von (API methods and parameters)
Das beantwortet erst einmal nicht die generelle Frage, wie ich über einen http(s) Aufruf dran komme, aber ich kann schon mal weiter machen.

{
"SYNO.WebStation.Default": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"get": {
"allowDemo": true,
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"set": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.ErrorPage": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"import": {
"allowUpload": true,
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"export": {
"allowDownload": true,
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"remove": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"update": {
"allowUpload": true,
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"create": {
"allowUpload": true,
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"list": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.HTTP.VHost": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"list": {
"allowDemo": true,
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"add": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"delete": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"update": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.PHP": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"get": {
"allowDemo": true,
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"set": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"set_advanced": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.PHP.Profile": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"list": {
"allowDemo": true,
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"add": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"update": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"delete": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.Python": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"get_version": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"search": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"get": {
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.Python.Profile": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"delete": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"update": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"add": {
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
},
{
"list": {
"allowDemo": true,
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.Shortcut": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"remove": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"list": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"update": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"create": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.Status": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"get": {
"allowDemo": true,
"cgiProcReusable": true,
"grantByDefault": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.WebService.Portal": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"remove": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"create": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"update": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
},
{
"list": {
"allowDemo": true,
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
},
"SYNO.WebStation.WebService.Service": {
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"appPriv": "",
"authLevel": 1,
"disableSocket": false,
"lib": "/var/packages/WebStation/target/webapi/SYNO.WebStation.so",
"maxVersion": 1,
"methods": {
"1": [
{
"list": {
"allowDemo": true,
"allowUser": [
"admin.local",
"admin.domain",
"admin.ldap"
],
"cgiProcReusable": true,
"grantByUser": false,
"grantable": true,
"systemdSlice": ""
}
}
]
},
"minVersion": 1,
"priority": 10,
"socket": "",
"socketConnTimeout": 600
}
}

Grüße Thomassino
 
  • Like
Reaktionen: geimist


 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat