entrysh

查询插件运行状态,主要为了获取入口信息。

调用前应该检查meta数据中flags数组包含entrysh,注意如果是安装插件则检查服务器端的flags,如果是调用已安装插件则检查路由器端的flags。

post/cgi-bin/luci/admin/store/entrysh

Query parameters

tokenstring required
packagestring

包名,例如aria2。支持英文逗号分隔多个包名。如果未提供,则返回所有支持entrysh的包

hostnamestring required

主机名,不包含端口。前端应该使用location.hostname获取

updateinteger

如果为1则强制更新缓存

Response

OK

Changes

Changed in 3 of the 6 revisions of this API.14

    • added the new optional query request parameter update

      new-optional-request-parameter

    • the query request parameter package became optional

      request-parameter-became-optional

    • added the non-success response with the status 400

      response-non-success-status-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation