Update Api_Notizen.md

This commit is contained in:
2024-11-14 13:25:02 +00:00
parent 058e2776f8
commit d304aebb31

View File

@@ -1,6 +1,6 @@
# Anlegen eines Servers
curl -H 'Content-Type: application/json' -H 'X-RPC-Auth-Username: <User>' -H 'X-RPC-Auth-Password: <Userpasswd>' --data '{"jsonrpc":"2.0","method":"cmdb.object.create","params":{"type":"C__OBJTYPE__SERVER","title":"SRServer","apikey":"<api_key>"},"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: <User>' -H 'X-RPC-Auth-Password: <Userpasswd>' --data '{"jsonrpc":"2.0","method":"cmdb.object.create","params":{"type":"C__OBJTYPE__SERVER","title":"SRServer","apikey":"<api_key>"},"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)
`curl -H 'Content-Type: application/json' -H 'X-RPC-Auth-Username: <User>' -H 'X-RPC-Auth-Password: <Userpasswd>' --data '{"jsonrpc":"2.0","method":"cmdb.object.read","params":{"type":"C__CATG__APPLICATION","apikey":"<api_key>"},"id":1}' --header "Content-Type: application/json" https://cmdb.cp.telekom.net/src/jsonrpc.php`