How do we create Option list to fetch existing backup jobs and backup sets in Morpheus

I’m working on creating a service catalog in Morpheus to schedule backup jobs via Commvault. However, I’m unable to create an option list to fetch existing backup jobs and backup sets from Morpheus with the Commvault integration.

I don’t have the integration but have you tried the endpoints under the ‘Backups’ section in the API docs? I would assume what you are looking for would be there.

Thanks @Tyler_Boyd for the response. Yes I see the end points and this is feasible when i try to fetch via the API’s. But here i am trying to create option list which fetch them for me, So that i can list them in the service catalogue.

You would need to create a custom option list. You can find documentation here: Options — Morpheus Docs documentation

Custom option lists have been covered many times in the forum, I will provided one below but you can also find more examples looking at other posts.

for(var x=0;x < data.jobs.length; x++) {
  results.push({name: data.jobs[x].name,value:data.jobs[x].id});
}