Skip to main content
Answer

Rest Api for Schedule Policy

  • April 5, 2022
  • 2 replies
  • 91 views

Forum|alt.badge.img+3

Hello Team,

I need to fetch data for schedule policy and using below apis *a* and *b* for that

  1. https://documentation.commvault.com/v11/essential/48764_rest_api_get_schedule_policy.html. Tried with http://<webservice>/SchedulePolicy on browser but this throws 404 error code.

whereas 

  1. http://<webconsole>/webconsole/api/Schedules?clientId=2 this works fine without any error.

Can you please help me with below queries:

  1. Are these both a and b api(s) return same data? 
  2. Need help on why “404 Not found” message while hitting api ‘a’ on browser?

 

Best answer by RMcG

Hi Maggie

The HTTP 404 Not Found means the url you are trying is incorrect. Eg no resource found.

The API /SchedulePolicy does exist so please double check that the url you are trying is correct. 

“Tried with http://<webservice>/SchedulePolicy on browser but this throws 404 error code.”

Should be http://<webservicehost>/webconsole/api/SchedulePolicy

 

If you have a question or comment, please create a topic

2 replies

Damian Andre
Vaulter
Forum|alt.badge.img+23

@RMcG may be able to help with this one 😇


Forum|alt.badge.img+6
  • Vaulter
  • Answer
  • April 7, 2022

Hi Maggie

The HTTP 404 Not Found means the url you are trying is incorrect. Eg no resource found.

The API /SchedulePolicy does exist so please double check that the url you are trying is correct. 

“Tried with http://<webservice>/SchedulePolicy on browser but this throws 404 error code.”

Should be http://<webservicehost>/webconsole/api/SchedulePolicy