diff --git a/Api_Notizen.md b/Api_Notizen.md new file mode 100644 index 00000000..81d385f3 --- /dev/null +++ b/Api_Notizen.md @@ -0,0 +1,9 @@ +# Anlegen eines Servers + +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 Ergenis, 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 + +- 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