Template API Endpoint
Template API Endpoint
Just wanted to check before I wrote something for it. Are there any POST options off the config API endpoint for host\service template creation? I'm not seeing anything in the API reference but wanted to validate real quick.
Re: Template API Endpoint
You could always try the raw config/import endpoint with a raw host template definition (a host template is a regular host definition with register 0):
Code: Select all
curl -X POST 'http://127.0.0.1/nagiosxi/api/v1/config/import?apikey=<MY API KEY>&pretty=1' -d '
define host {
host_name my_new_host_template
use xiwizard_generic_host
register 0
}'If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Template API Endpoint
Oooh that's certainly an idea worth trying. I didn't think of that. Thank you!
Re: Template API Endpoint
@J.A.K, let us know if you have any further questions or if it is safe to close the topic. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Template API Endpoint
I think I'm satisfied feel free to close it.