Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Action-Object

...

Seitenverzeichnis: 

Inhalt
maxLevel2
indent10px
stylesquare


...

Action-Objekt

ParameterTyp
shd_action__id

...

int

...

shd_action__title

...

string

...

shd_action__command

...

string

...

shd_action__icon

...

string

...

shd_action__objtype

...

string

...

shd_action__index

...

int

...

shd_action__arguments

...

string

...

shd_action__condition

...

string

...

shd_action__mode

...

string

...

shd_action__userid

...

int

...

shd_action__primary_action

...

bool


...

shd.action.

...

create

Beschreibung

Erstellen eines Action-Objekts.

Parameter

Parameter
Return
TypVersion
'
action
_id' => intAction-ObjektAb

shd.action.create

erstellen eines Action-Objekt

ParameterReturnVersion

Action-Objekt

"message" => "
arrayab Version 1.0
title

Beispielaufruf:

{"method":"shd.action","params":{"apikey":"24174j3tqj","action_id":"1","language":"en"},"id":1,"version":"2.0"}

...

shd.actions.read

liefert alle Action-Objecte

...

Ab 1.0

Beispielaufruf:

{"method":"shd.actions","params":{"apikey":"24174j3tqj","language":"en"},"id":1,"version":"2.0"}

stringab Version 1.0
commandstringab Version 1.0
iconstringab Version 1.0
objtypestringab Version 1.0
index stringab Version 1.0
argumentsarrayab Version 1.0
conditionarrayab Version 1.0
useridstringab Version 1.0
primary_actionstringab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
messagestring

"action.create.success"

"response" => array:1 [
"
ab Version 1.0
responsestringaction_id
" => int
]
"
ab Version 1.0
current_date
" => dateAb
string-ab Version 1.0

Beispielaufruf

...

Codeblock
languagebash
themeRDark
{"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"}


...

shd.action.

...

read

Beschreibung

Liefert ein Action-Objekt.

Parameter

Parameter
Return
TypVersion
action_idstringab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
Action
-
Objekt
action_object

"

message" => "action.update.success"
"response" => bool
"current_date" => date

Ab 1.0

...

action.create.success"

ab Version 1.0

Beispielaufruf

Codeblock
languagebash
themeRDark
{
    "method": "shd.action",
    "params": {
        "apikey": "24174j3tqj",
        "action_id": "1",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}


...

shd.action.update

Beschreibung

Bearbeiten eines Action-Objekts.

Parameter

ParameterTypVersion
action_idstringab Version 1.0
actionarrayab Version 1.0
titlestringab Version 1.0
commandstringab Version 1.0
iconstringab Version 1.0
objtypestringab Version 1.0
index stringab Version 1.0
argumentsarrayab Version 1.0
conditionarrayab Version 1.0
useridstringab Version 1.0
primary_actionstringab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
messagestring

"action.update.success"

ab Version 1.0
responsebool-ab Version 1.0
current_datestring-ab Version 1.0

Beispielaufruf

Codeblock
languagebash
themeRDark
{"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"}


...

shd.action.delete

Beschreibung

...

Löschen eines Action-

...

Objekts.

Parameter

Parameter
Return
TypVersion
'
action_id
' => int"message" =>
stringab Version 1.0

Rückgabewert

Ab
WertTypBeschreibungVersion
messagestring

"action.delete.success"

"response" => bool
"current_date" => date
ab Version 1.0
responsebool-ab Version 1.0
current_datestring-ab Version 1.0

Beispielaufruf

...

Codeblock
languagebash
themeRDark
{
    "method": "shd.action.delete",
    "params": {
        "apikey": "24174j3tqj",
        "action_id": "3",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}


...

shd.actions.read

Beschreibung

Liefert alle Action-Objekte.

Parameter

Keine

Rückgabewert

WertTypBeschreibungVersion
-array

Array von Action-Objekten

ab Version 1.0

Beispielaufruf

Codeblock
languagebash
themeRDark
{
    "method": "shd.actions",
    "params": {
        "apikey": "24174j3tqj",
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}