January 2019
Intermediate to advanced
798 pages
20h 33m
English
And the returned ID will be useful now. Let's delete the host we just created:
$ json='{"jsonrpc":"2.0","method":"host.delete","params":["10277"],"auth":"df83119ab78bbeb2065049412309f9b4","id":1}'
Run the curl command again. The host should be successfully deleted:
{"jsonrpc":"2.0","result":{"hostids":["10277"]},"id":1}
Read now
Unlock full access