Page 1 of 1

Manage Service Templates through REST API

Posted: Tue Nov 14, 2017 4:38 am
by karthek
Is it possible to create/modify Service Templates via REST API.

I know for a fact that, we can create a servicetemplate.cfg and place it in import dir for XI to pick up and insert into DB.
But, are there any recommended ways/commands, we could use to manage following parameters?

1. Service Templates
2. Check_commands
3. Adding service to service templates
4. Assigning Event Handlers to Service Templates

Re: Manage Service Templates through REST API

Posted: Tue Nov 14, 2017 11:22 am
by npolovenko
Hello, @karthek .
As of right now, configs that can be edited through REST API are limited to Host, Service, Servicegroup, Hostgroup. However, there should be more Rest API features in the upcoming version of XI 5.5. I can also put a feature request specifically for Service Templates and Check commands if you'd like?

Re: Manage Service Templates through REST API

Posted: Wed Nov 15, 2017 5:23 am
by karthek
I can also put a feature request specifically for Service Templates and Check commands if you'd like?
That would be great! Can i track the feature request?

Re: Manage Service Templates through REST API

Posted: Wed Nov 15, 2017 11:33 am
by npolovenko
@karthek, Looks like we had a few related API feature requests already. I'll put a note in there. Chances are this feature may be added in the upcoming release of XI, either 5.5 or the next one. Keep an eye on the release announcements and the changelog.

Re: Manage Service Templates through REST API

Posted: Mon Nov 20, 2017 2:03 pm
by karthek
Thank you for the info.

You may lock this thread.