Versionen im Vergleich

Schlüssel

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

Untergeordnete Seiten (Anzeige untergeordneter Seiten)

Seitenverzeichnis: 

Inhalt
maxLevel2
indent10px
stylesquare

shd.filter.create

Parameter

...

Rückgabewert

...

Beispiel 

...

Beispielaufruf

...

Beispielantwort

Codeblock
languagebash
themeRDark
{  
   "method":"shd.filter.create",
   "params":{  
      "apikey":"1ialbgclm9",
      "title":"Server KAtegorie",
      "obj_type_id":"5",
      "display_rows":"50",
      "page":"1",
      "default":"true",
      "empty_values":"0",
      "locked_column":"2",
      "display_relations":"0",
      "columns":[  
         {  
            "id":"670",
            "width":"80",
            "sort":""
         },
         {  
            "id":"682",
            "width":"80",
            "sort":""
         },
         {  
            "id":"679",
            "width":"50",
            "sort":""
         },
         {  
            "id":"676",
            "width":"50",
            "sort":""
         },
         {  
            "id":"630",
            "width":"50",
            "sort":""
         }
      ],
      "language":"en"
   },
   "id":1,
   "version":"2.0"
}
Codeblock
languagebash
themeRDark
{
   "jsonrpc":"2.0",
   "result":{  
      "message":"filter.create.erfolg",
      "response":{  
         "filter_id":"5"
      },
      "current_date":"2017-12-22"
   },
   "id":1
}

shd.filter.read

Parameter

...

Rückgabewert

...

Beispiel 

...

Beispielaufruf

...

Beispielantwort

...

languagebash
themeRDark

...

Seitenverzeichnis: 

Inhalt
maxLevel2
indent10px
stylesquare


...

shd.filter.create

Erstellen eines Filter-Objekts.

Parameter

ParameterTypVersion
titlestringab Version 1.0
obj_type_idstringab Version 1.0
display_rowsstringab Version 1.0
pagestringab Version 1.0
empty_valuesstringab Version 1.0
defaultstringab Version 1.0
display_relationsstringab Version 1.0
locked_columnstringab Version 1.0
columnsarrayab Version 1.0
conditionarrayab Version 1.0
context-ab Version 1.0

Rückgabewert

WertTypVersion
filter_idintab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{  
   "method":"shd.filter.create",
   "params":{  
      "apikey":"1ialbgclm9",
      "title":"Server KAtegorie",
      "obj_type_id":"5",
      "display_rows":"50",
      "page":"1",
      "default":"true",
      "empty_values":"0",
      "locked_column":"2",
      "display_relations":"0",
      "columns":[  
         {  
            "id":"670",
            "width":"80",
            "sort":""
         },
         {  
            "id":"682",
            "width":"80",
            "sort":""
         },
         {  
            "id":"679",
            "width":"50",
            "sort":""
         },
         {  
            "id":"676",
            "width":"50",
            "sort":""
         },
         {  
            "id":"630",
            "width":"50",
            "sort":""
         }
      ],
      "language":"en"
   },
   "id":1,
   "version":"2.0"
}



Codeblock
languagebash
themeRDark
{
   "jsonrpc":"2.0",
   "result":{  
      "message":"filter.create.erfolg",
      "response":{  
         "filter_id": 5
      },
      "current_date":"2017-12-22"
   },
   "id":1
}



...

shd.filter.read

Auslesen von Detailinformationen eines Filter-Objekts.

Parameter

ParameterTypBeschreibungVersion
filter_idstringID des zu holenden Filtersab Version 1.0
obj_type_idstringFür den Default-Filterab Version 1.0
user_idstringID des Benutzersab Version 1.0
count_objects--ab Version 1.0

Rückgabewert

WertTypVersion
idstringab Version 1.0
titlestringab Version 1.0
obj_type_idstringab Version 1.0
display_rowsstringab Version 1.0
pagestringab Version 1.0
user_idstringab Version 1.0
empty_valuesstringab Version 1.0
defaultstringab Version 1.0
display_relationsstringab Version 1.0
columnsarrayab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{  
	"method": "shd.filter",
    "params": {
        "apikey": "20b61krclh",
        "filter_id": "3",
        "count_objects": true,
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}


Codeblock
languagebash
themeRDark
{
    "jsonrpc":"2.0",
    "result":{ 
        "shd_filter__id":"3",
        "shd_filter__title":"Layer 3-Net (1)",
        "shd_filter__obj_type_id":"31",
        "shd_filter__display_rows":"50",
        "shd_filter__page":"0",
        "shd_filter__user_id":"9",
        "shd_filter__default":"0",
        "shd_filter__display_relations":"0",
        "shd_filter__empty_values":"1",
        "shd_filter__columns":[ 
            { 
                "width":"240",
                "id":"C__CATG__GLOBAL-title",
                "sort":""
            },
            { 
                "width":"100",
                "id":"C__CATG__GLOBAL-cmdb_status",
                "sort":""
            },
            { 
                "width":"160",
                "id":"C__CATG__GLOBAL-created",
                "sort":""
            },
            { 
                "width":"160",
                "id":"C__CATG__GLOBAL-changed",
                "sort":""
            }
        ],
        "shd_filter__condition":[ 

        ],
        "count":"2"
    },
    "id":1
}



...

shd.filter.update

Bearbeiten eines Filter-Objekts.

Parameter

ParameterTypBeschreibungVersion
filter_idstringID des zu holenden Filtersab Version 1.0

title

stringName des Filtersab Version 1.0
obj_type_idstring-ab Version 1.0
display_rowsstringDie Anzahl der Elemente des Viewsab Version 1.0
pagestring-ab Version 1.0
empty_valuesstring-ab Version 1.0
defaultstring-ab Version 1.0
display_relationsstring-ab Version 1.0
locked_columnstring-ab Version 1.0
columnsarrayEin Array von Column-Objektenab Version 1.0
conditionarrayEin Array von Condition-Objektenab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
messagestringfilter.update.success"ab Version 1.0
responsebooltrue oder falseab Version 1.0
current_datestring-ab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "params": {
        "columns": [
            {
                "width": 80,
                "sort": "",
                "id": "C__CATG__GLOBAL-title"
            }
        ],
        "title": "Neuer Test Filter",
        "obj_type_id": "5",
        "condition": [
            {
                "property": "",
                "category": "",
                "comparison": "LIKE %...%",
                "value": ""
            }
        ],
        "filter_id": "85",
        "locked_column": 0,
        "page": "0",
        "context": "Test_Context",
        "context_value": "Test_Value",
        "default": false,
        "display_rows": "22",
        "apikey": "1ialbgclm9"
    },
    "id": "1",
    "version": "2.0",
    "method": "shd.filter.update"
}



Codeblock
languagebash
themeRDark
{
    "id": "1",
    "jsonrpc": "2.0",
    "result": {
        "message": "filter.update.success",
        "response": true,
        "current_date": "2019-01-28"
    }
}



...

shd.filter.delete

Löschen eines Filter-Objekts.

Parameter

ParameterTypBeschreibungVersion
filter_idstringID des zu holenden Filtersab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
messagestringfilter.delete.success"ab Version 1.0
responsebooltrue oder falseab Version 1.0
current_datestring-ab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "params": {
        "filter_id": "85",
        "apikey": "1ialbgclm9"
    },
    "id": "1",
    "version": "2.0",
    "method": "shd.filter.delete"
}



Codeblock
languagebash
themeRDark
{
    "id": "1",
    "jsonrpc": "2.0",
    "result": {
        "message": "filter.delete.success",
        "response": true,
        "current_date": "2019-01-28"
    }
}



shd.filter.duplicate

Duplizieren eines Filters, einer anderen Personen-Gruppe oder einer anderen Person.

Parameter

ParameterTypBeschreibungVersion
filter_idstringID des zu holenden Filtersab Version 1.0
person_idintegerID des neuen Benutzers
person_group_idintegerID der neuen Benutzergruppe

Rückgabewert

WertTypBeschreibungVersion
messagestringfilter.delete.success"ab Version 1.0
responseintegerneue Filter-Idab Version 1.0
current_datestring-ab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "params": {
        "filter_id": "85",
		"person_id": "25",
        "apikey": "1ialbgclm9"
    },
    "id": "1",
    "version": "2.0",
    "method": "shd.filter.duplicate"
}



Codeblock
languagebash
themeRDark
{
    "id": "1",
    "jsonrpc": "2.0",
    "result": {
        "message": "filter.duplicate.success",
        "response": 86,
        "current_date": "2019-04-08"
    }
}




...

shd.filter.query

Auslesen eines Filter-Views oder eines dynamischen Filter-Views.

Parameter

ParameterTypBeschreibungVersion
filter_idstringID des zu holenden Filtersab Version 1.0
obj_type_idstring-ab Version 1.0
display_rowsstringDie Anzahl der Elemente des Viewsab Version 1.0
pageStringDer Startindex der Elemente des Viewsab Version 1.0
columnarrayEin Array von Column-Objektenab Version 1.0
conditionarrayEin Array von Condition-Objektenab Version 1.0

Rückgabewert

WertTypVersion
-SHD.FilterViewab Version 1.0

Trivia:

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark



Codeblock
languagebash
themeRDark



...

shd.filters.read

Auslesen eines Arrays von Filter-Objekten.

Parameter

ParameterTypBeschreibungVersion
obj_type_idstringAbfrage nach dem Typ des Filtersab Version 1.0
display_rowsstringDie Anzahl der Elemente des Viewsab Version 1.0
pageStringDer Startindex der Elemente des Viewsab Version 1.0
columnarrayEin Array von Column-Objektenab Version 1.0
conditionarrayEin Array von Condition-Objektenab Version 1.0

Rückgabewert

WertTypBeschreibungVersion
-arrayArray von Filter-Objektenab Version 1.0

Beispiel 

Beispielaufruf

Beispielantwort


Codeblock
languagebash
themeRDark
{
    "method": "shd.filters",
    "params": {
        "apikey": "20b61krclh",
        "obj_type_id": "31",
        "count_objects": false,
        "debug": true,
        "language": "en"
    },
    "id": 1,
    "version": "2.0"
}



Codeblock
languagebash
themeRDark
{ 
    "jsonrpc":"2.0",
    "result":[ 
        { 
            "shd_filter__id":"2",
            "shd_filter__title":"Layer 3-Net neu",
            "shd_filter__obj_type_id":"31",
            "shd_filter__display_rows":"50",
            "shd_filter__page":"0",
            "shd_filter__user_id":"9",
            "shd_filter__default":"0",
            "shd_filter__display_relations":"0",
            "shd_filter__empty_values":"1",
            "shd_filter__columns":[ 
                { 
                    "width":"240",
                    "id":"C__CATG__GLOBAL-title",
                    "sort":""
                },
                { 
                    "width":"100",
                    "id":"C__CATG__GLOBAL-cmdb_status",
                    "sort":""
                },
                { 
                    "width":"160",
                    "id":"C__CATG__GLOBAL-created",
                    "sort":""
                },
                { 
                    "width":"160",
                    "id":"C__CATG__GLOBAL-changed",
                    "sort":""
                }
            ],
            "shd_filter__condition":[ 

            ],
            "count":"2"
        },
        { 
            "shd_filter__id":"3",
            "shd_filter__title":"Layer 3-Net (1)",
            "shd_filter__obj_type_id":"31",
            "shd_filter__display_rows":"50",
            "shd_filter__
id
page":
"
3
0",
            "
count_objects": true,
shd_filter__user_id":"9",
            
"language
"shd_filter__default":
"
en
0",
       
},
     "
id
shd_filter__display_relations":"0",
1,
     
"version":
 
"2.0"
 
} Codeblock
languagebash
themeRDark
{
     "
jsonrpc
shd_filter__empty_values":"
2.0
1",

  
"result":{
          "shd_filter__
id
columns":
"3",
[ 
        
"shd_filter__title":"Layer
 
3-Net
 
(1)",
      { 
 
"shd_filter__obj_type_id":"31",
         
"shd_filter__display_rows":"50",
          "
shd_filter__page
width":"
0
240",
                    "id":"
shd
C_
filter
_CATG_
user_id":"9
_GLOBAL-title",
           
"shd_filter__default":"0",
         "
shd_filter__display_relations
sort":"
0
"
,

          
"shd_filter__empty_values":"1",
      },
  
"shd_filter__columns":[
              { 
                    "width":"
240
100",
                    "id":"C__CATG__GLOBAL-
title
cmdb_status",
                    "sort":""
                },
                { 
                    "width":"
100
160",
                    "id":"C__CATG__GLOBAL-
cmdb_status
created",
                    "sort":""
                },
                { 
                    "width":"160",
                    "id":"C__CATG__GLOBAL-
created
changed",
                    "sort":""

           
},
     }
       
{
     
"width":"160",
],
            "
id":"C__CATG__GLOBAL-changed",
shd_filter__condition":[ 

            ],
    
"sort":""
        "count":"2"
    
}
    },
		[...]
   
],
         "shd_filter__condition":[ 

            ],
            "count":"2"
        }
    ],
    "id":1
}