Skip to main content

DELETE SCHEDULE POLICY USING PYTHON OR POSTMAN REST

  • 20 February 2024
  • 9 replies
  • 45 views

Forum|alt.badge.img+2

Hello Vaulters,

 

I have been to automate schedule policy delete using by calling the API using the syntax on the document but I keep facing error, does any one have an already executed script or guide and how to achieve this?

9 replies

Forum|alt.badge.img+12
  • Vaulter
  • 173 replies
  • February 20, 2024

Uchenna,

 

What is the error that you are getting.

 

Regards,

Edward J Holowienka


Forum|alt.badge.img+2
  • Author
  • Bit
  • 7 replies
  • February 21, 2024

Hello Edward

 

se error attached

 

Regards,


Forum|alt.badge.img+12
  • Vaulter
  • 173 replies
  • February 21, 2024

Uchenna,

 

Where did you get the values 54656 and 54942 from.

 

Reqards,

Edward J Holowienka


Forum|alt.badge.img+2
  • Author
  • Bit
  • 7 replies
  • February 21, 2024

Hello Edward,

 

This is 54656 represent the Schedule task ID and 54942 represent the sub taskID gotten from the postman syntax

 

Regards,


Forum|alt.badge.img+12
  • Vaulter
  • 173 replies
  • February 21, 2024

Uchenna,

You need to get those values from your environment by running the following;

To get the taskid

GET <webservice>/SchedulePolicy HTTP/1.1

Then you would need to run this to get the subtaskid

GET <webservice>/SchedulePolicy/{taskId} HTTP/1.1

 

Reqards,

Edward J Holowienka


Forum|alt.badge.img+2
  • Author
  • Bit
  • 7 replies
  • February 21, 2024

Hello Edward,

 

Exactly what I did but do you have the syntax to delete a schedule policy?

 

Regards,


Forum|alt.badge.img+12
  • Vaulter
  • 173 replies
  • February 21, 2024

Uchenna,

 

Based upon the error that you are getting one of the values is not correct. Do you want to delete the whole schedule policy or just one of the schedules within it.

 

Regards,

Edward J Holowienka


Forum|alt.badge.img+2
  • Author
  • Bit
  • 7 replies
  • February 21, 2024

Hello Edward,

 

the whole schedule policy

 

Regards,


Forum|alt.badge.img+12
  • Vaulter
  • 173 replies
  • February 21, 2024

Uchenna,

If that is the case, then this is the call that you should be using

https://documentation.commvault.com/2023e/essential/rest_api_delete_schedule_policy.html

DELETE <webservice>/SchedulePolicy/{taskId} HTTP/1.1

Regards,

Edward J Holowienka


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