Page 1 of 1

Duplicate definition in CCM via API (SVC on a HG)

Posted: Mon Sep 28, 2020 10:29 am
by sigmainformatique
Hello,

When i deploy via API an existing service to a host, the service is overwriten 8-)
When i deploy via API an existing service to a hostgroup i have duplicate definition in the CCM :cry:
i send json file without host_name key but with the hostgroup_name key

Is there a way to overwrite the existing service via api ?

Thanks.

Mickaël.

Re: Duplicate definition in CCM via API (SVC on a HG)

Posted: Tue Sep 29, 2020 10:42 am
by mbellerue
When needing to overwrite an existing host/service/hostgroup/servicegroup definition, you should use a PUT operation. Is that what you're using? Can you post both of the API commands that you are sending?

Re: Duplicate definition in CCM via API (SVC on a HG)

Posted: Tue Oct 27, 2020 4:59 am
by sigmainformatique
Hello,

Api does not support PUT operation, we need to update our solution.

Thanks for your help

Re: Duplicate definition in CCM via API (SVC on a HG)

Posted: Tue Oct 27, 2020 4:31 pm
by benjaminsmith
Hi Mickaël.,

It looks like the PUT operation in the API has a slightly different structure than the POST operation. Have you figured out a workaround in your solution?

If not please post your entire API command, and I can ask the team here possible options/solutions here.

Thanks,
Benjamin