VeritasOS / netbackup-api-code-samples

Contains code samples that demonstrate the use of NetBackup REST API
MIT License
53 stars 52 forks source link

Jobs list empty #88

Closed raelbsd closed 2 years ago

raelbsd commented 2 years ago

Hi, I'm trying the get job's samples (both python and powershell) and I had any issues in the call, but I can't get any jobs (there are plenty). The data list is empty no matter what I try. I got an API key but it's the same. I've tried setting the query_params as saw in a previous issue but no luck. Did I missed something? Thanks in advance

tlkrinke commented 2 years ago

what http status code did you get? My guess is that you dont have permission to view the jobs.

raelbsd commented 2 years ago

I'm getting 200 on the requests.get in get_netbackup_jobs. I can view the jobs with my user thru the Netbackup Administration Console.

tlkrinke commented 2 years ago

The NetBackup Admin Console is not relevant here - RBAC is not used in the NetBackup Admin Console. Only the web UI and the APIs are relevant here. If you are getting a status 200 but no records, you most likely do not have permissions in RBAC.

You can view your RBAC permissions in the web UI

raelbsd commented 2 years ago

Thanks, we wasn't using the web ui, now it's working.

tlkrinke commented 2 years ago

Glad it worked for you