Seitenverzeichnis:
Inhalt |
---|
maxLevel | 2 |
---|
indent | 10px |
---|
style | square |
---|
|
...
Action-Object
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
shd_action__primary_action | bool |
shd.action.create
Beschreibung
Erstellen eines Action-Objekts.
Parameter | Typ | Version |
---|
action | array | ab Version 1.0 |
title | string | ab Version 1.0 |
command | string | ab Version 1.0 |
icon | string | ab Version 1.0 |
objtype | string | ab Version 1.0 |
index | string | ab Version 1.0 |
arguments | array | ab Version 1.0 |
condition | array | ab Version 1.0 |
userid | string | ab Version 1.0 |
primary_action | string | ab Version 1.0 |
Rückgabewert
Wert | Typ | Beschreibung | Version |
---|
message | string | "action.create.success" | ab Version 1.0 |
response | string | action_id | ab Version 1.0 |
current_date | string | - | ab Version 1.0 |
Beispielaufruf
Codeblock |
---|
|
{"method":"shd.action.update","params":{"apikey":"24174j3tqj","action_id":"2","action":{"title":"Putty cmd","command":" open Putty.exe","icon":"icon.png","objtype":"tcp", "index":"2","arguments":"["0" => "C__CATG__GLOBAL-type", "1" => "C__CATG__GLOBAL-title", "2" => "C__CATG__GLOBAL-date"]","condition":"[["category" => "C__CATG__GLOBAL", "property" => "C__CATG__GLOBAL-type", "comparison" =>"=", "value" => "5"], ["category" => "C__CATG__GLOBAL", "property" => "C__CATG__GLOBAL-title", "comparison" =>"like", "value" |
...
=> "Linux"]]","mode":"["insight", "smview"]","userid":"6","primary_action":"0"},"language":"en"},"id":1,"version":"2.0"} |