Skip to main content
Released

Mass Name change in bulk

Related products:Infra Monitoring - Monitoring
  • October 25, 2023
  • 7 replies
  • 48 views

Forum|alt.badge.img+3

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.

7 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • November 6, 2023

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?


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • November 6, 2023
NewDiscussion ongoing

Forum|alt.badge.img+3
  • Author
  • Steward **
  • November 6, 2023

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!


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • November 17, 2023
Discussion ongoingPlanned

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 2, 2024
PlannedReleased

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 2, 2024

Endpoints were released with 24.04:

PATCH /configuration/services/{service_id}

PATCH /configuration/hosts/{host_id}


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 3, 2024