From 058e2776f8c5c19d69bf400a40f53929eb45f50a Mon Sep 17 00:00:00 2001 From: Sven Riwoldt Date: Thu, 14 Nov 2024 13:24:36 +0000 Subject: [PATCH] Update Api_Notizen.md --- Api_Notizen.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Api_Notizen.md b/Api_Notizen.md index 9f879440..5e7e788f 100644 --- a/Api_Notizen.md +++ b/Api_Notizen.md @@ -3,7 +3,7 @@ curl -H 'Content-Type: application/json' -H 'X-RPC-Auth-Username: ' -H 'X-RPC-Auth-Password: ' --data '{"jsonrpc":"2.0","method":"cmdb.object.create","params":{"type":"C__OBJTYPE__SERVER","title":"SRServer","apikey":""},"id":1}' --header "Content-Type: application/json" https://cmdb.cp.telekom.net/src/jsonrpc.php # Abrufen von Software (ist noch ein leeres Ergebnis, da wohl noch Angaben fehlen) -url -H 'Content-Type: application/json' -H 'X-RPC-Auth-Username: ' -H 'X-RPC-Auth-Password: ' --data '{"jsonrpc":"2.0","method":"cmdb.object.read","params":{"type":"C__CATG__APPLICATION","apikey":""},"id":1}' --header "Content-Type: application/json" https://cmdb.cp.telekom.net/src/jsonrpc.php +`curl -H 'Content-Type: application/json' -H 'X-RPC-Auth-Username: ' -H 'X-RPC-Auth-Password: ' --data '{"jsonrpc":"2.0","method":"cmdb.object.read","params":{"type":"C__CATG__APPLICATION","apikey":""},"id":1}' --header "Content-Type: application/json" https://cmdb.cp.telekom.net/src/jsonrpc.php` - Es wäre ratsam einen schreibenden User noch anzulegen, damit nicht mit dem admin gearbeitet werden muss - API per Python "https://github.com/scaleup-technologies/i-doit-python" \ No newline at end of file