Skip to main content
Solved

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


Forum|alt.badge.img

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.

Best answer by Chris Hollis

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?

View original
Did this answer your question?

2 replies

Chris Hollis
Vaulter
Forum|alt.badge.img+15
  • Vaulter
  • 333 replies
  • Answer
  • March 22, 2023

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?


chrisknows
Byte
Forum|alt.badge.img+10
  • Byte
  • 82 replies
  • March 22, 2023

@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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings