quickconnect

API整理


SYNO.Entry.Request

<p><strong>简要描述:</strong> </p> <ul> <li>用于发API请求,可以同时合并多个请求</li> </ul> <p><strong>API:</strong> </p> <ul> <li><code>SYNO.Entry.Request</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">stop_when_error</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>false 某个API错误时不中断</td> </tr> <tr> <td style="text-align: left;">mode</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>sequential 顺序执行</td> </tr> <tr> <td style="text-align: left;">compound</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>数组,把多个API和参数合并在一起:[{&quot;api&quot;:&quot;SYNO.Core.Directory.LDAP&quot;,&quot;method&quot;:&quot;get&quot;,&quot;version&quot;:1},{&quot;api&quot;:&quot;SYNO.Core.Directory.Domain&quot;,&quot;method&quot;:&quot;get&quot;,&quot;version&quot;:1},...]</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { "data": { "has_fail": false, "result": [ { "api": "SYNO.Core.Directory.LDAP", "data": { "base_dn": "", "enable_cifs": false, "enable_cifs_pam": false, "enable_client": false, "enable_client_certificate": false, "enable_idmap": false, "encryption": "no", "error": 2703, "host": "", "is_syno_server": false, "no_nested_group": false, "profile": "standard", "update_min": 5 }, "method": "get", "success": true, "version": 1 }, { "api": "SYNO.Core.Directory.Domain", "data": { "enable_domain": false }, "method": "get", "success": true, "version": 1 }, { "api": "SYNO.Core.Directory.Domain", "data": { "test_join_success": false }, "method": "test_dc", "success": true, "version": 1 }, { "api": "SYNO.Core.Share", "data": { "desc": "测试", "disable_download": false, "disable_list": false, "disable_modify": false, "is_aclmode": true, "is_usb_share": false, "name": "test", "unite_permission": false, "uuid": "d6909851-74dd-434c-8d31-13f4a0ddc2a3", "vol_path": "/volume1" }, "method": "get", "success": true, "version": 1 }, { "api": "SYNO.Core.Storage.Volume", "data": { "volume": { "container": "internal", "display_name": "存储空间 1", "eppool_used_byte": "0", "fs_type": "ext4", "location": "internal", "raid_type": "basic", "readonly": false, "single_volume": true, "size_free_byte": "1962159104000", "size_total_byte": "1964006481920", "status": "normal", "volume_id": 1, "volume_path": "/volume1" } }, "method": "get", "success": true, "version": 1 }, { "api": "SYNO.Core.Directory.Domain", "data": { "domain_list": [] }, "method": "get_domain_list", "success": true, "version": 2 } ] }, "success": true } </code></pre>

页面列表

ITEM_HTML