Skip to main content

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?

Uchenna,

 

What is the error that you are getting.

 

Regards,

Edward J Holowienka


Hello Edward

 

se error attached

 

Regards,


Uchenna,

 

Where did you get the values 54656 and 54942 from.

 

Reqards,

Edward J Holowienka


Hello Edward,

 

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

 

Regards,


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


Hello Edward,

 

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

 

Regards,


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


Hello Edward,

 

the whole schedule policy

 

Regards,


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