Solved

How to stop all backup activity via API call or some other code?

  • 21 March 2023
  • 2 replies
  • 137 views

Badge

Is there a way to stop backup activity via an api call or some sort of workflow or python code? I am trying to figure out a way to do this in such a way that I can pass in certain parameters, such as specifying a client, media agent, etc. 

 

Is this something that could possibly be done through a powershell script or an ansible script? or a python script?

 

Is there an easier way to go about this? My goal is to find a way to automate the process of stopping all backup activity for multiple clients, media agents, etc.

icon

Best answer by Chris Hollis 22 March 2023, 03:20

View original

2 replies

Userlevel 6
Badge +15

Hi @rcordova 


Looks like we have a param for it as per: https://documentation.commvault.com/2022e/essential/45621_rest_api_get_agent.html

 


Does this look like what you are after?

Userlevel 3
Badge +10

@Chris Hollis 

is correct, I will say this though. It is probably to your benefit to create a group with activity disabled and add and remove clients from that group in order to enable to disable activity. This will allow you to know the client status at a glance. 

Reply