Skip to main content

What would be the best way to do this?
I have 50 services and want to change name of these services from X to Y. What would be the best solution for this that is not doing it manually one by one.

There is no way to do this currently. If you do not need to keep the history of your services, these can be removed and the new templates will re-create services with the new name.

We can add a “patch service” endpoint to the API in a future version that will let you script the name change. What about that?


NewDiscussion ongoing

There is no way to do this currently. If you do not need to keep the history of your services, these can be removed and the new templates will re-create services with the new name.

We can add a “patch service” endpoint to the API in a future version that will let you script the name change. What about that?

Would be great, thanks!


Discussion ongoingPlanned

PlannedReleased

Endpoints were released with 24.04:

PATCH /configuration/services/{service_id}

PATCH /configuration/hosts/{host_id}


see https://docs-api.centreon.com/api/centreon-web/24.04/#tag/Service/paths/~1configuration~1services~1%7Bservice_id%7D/patch