Skip to main content
Released

Mass Name change in bulk

Related products:Infra Monitoring - Monitoring
  • Oct 25, 2023 10:54 AM UTC
  • 7 replies
  • 86 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
  • Nov 6, 2023 10:18 AM UTC

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
  • Nov 6, 2023 10:18 AM UTC
New→Discussion ongoing

Forum|alt.badge.img+3
  • Author
  • Steward **
  • Nov 6, 2023 3:55 PM UTC

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
  • Nov 17, 2023 1:15 PM UTC
Discussion ongoing→Planned

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 2, 2024 2:59 PM UTC
Planned→Released

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 2, 2024 3:00 PM UTC

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 12:45 PM UTC