Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

script.update

³¢±ð¨ª°ù¨¢²õ

object script.update(object/array scripts)

Ez a m¨®dszer lehet?v¨¦ teszi a megl¨¦v? szkriptek friss¨ªt¨¦s¨¦t.

Ez a m¨®dszer csak a Super admin felhaszn¨¢l¨®t¨ªpus sz¨¢m¨¢ra ¨¦rhet? el. A met¨®dus megh¨ªv¨¢s¨¢ra vonatkoz¨® enged¨¦lyeket a felhaszn¨¢l¨®i szerepk?r be¨¢ll¨ªt¨¢saiban lehet visszavonni. L¨¢t Felhaszn¨¢l¨® roles tov¨¢bbi inform¨¢ci¨®¨¦rt.

±Ê²¹°ù²¹³¾¨¦³Ù±ð°ù±ð°ì

(object/array) Szkript tulajdons¨¢gai ´Ú°ù¾±²õ²õ¨ª³Ù±ð²Ô»å?.

A "scriptid" tulajdons¨¢got minden szkripthez meg kell hat¨¢rozni, minden m¨¢shoz a tulajdons¨¢gok nem k?telez?ek. Csak az ¨¢tadott tulajdons¨¢gok friss¨¹lnek a t?bbi v¨¢ltozatlan marad. Kiv¨¦telt k¨¦pez a "type" tulajdons¨¢g megv¨¢ltoztat¨¢sa 5-r?l (Webhook) m¨¢sikra: a parameters tulajdons¨¢g meg lesz tiszt¨ªtva.

Visszat¨¦r¨¦si ¨¦rt¨¦kek

(object) Egy objektumot ad vissza, amely tartalmazza a friss¨ªtett szkriptek azonos¨ªt¨®it a scriptids tulajdons¨¢g alatt.

±Ê¨¦±ô»å¨¢°ì

Change script command

Change the command of the script to "/bin/ping -c 10 {HOST.CONN} 2>&1".

Request:

{
           "jsonrpc": "2.0",
           "method": "script.update",
           "params": {
               "scriptid": "1",
               "command": "/bin/ping -c 10 {HOST.CONN} 2>&1"
           },
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "scriptids": [
                   "1"
               ]
           },
           "id": 1
       }

¹ó´Ç°ù°ù¨¢²õ

CScript::update() az ui/include/classes/api/services/CScript.php-ban.