This method allows to update existing scripts此方法允许更新现有脚本.
(object/array)
to be updated被更新.
Returns an object containing the IDs of the updated scripts under the scriptids
property.返回一个包含scriptids
属性下更新脚本的ID的对象。
Change script command更改脚本命令
Change the command of the script to “/bin/ping -c 10 {HOST.CONN} 2>&1”.将脚本的命令更改为“/bin/ping -c 10 {HOST.CONN} 2>&1”.
Response响应:
- {
- "jsonrpc": "2.0",
- "result": {
- "1"
- ]
- },
- "id": 1
CScript::update() in frontends/php/include/classes/api/services/CScript.php.