REST API knowledge exchange
-
Cragdoo
- Veeam Software
- Posts: 630
- Liked: 251 times
- Joined: Sep 27, 2011 12:17 pm
- Full Name: Craig Dalrymple
- Location: Scotland
-
Contact:
Post
by Cragdoo »
1 person likes this post
Hoping someone can verify this for me, once I've authenticated I can make a
Code: Select all
GET http://{{Ent_Manager}}/api/backupservers
and see all the VBR servers reporting in to EM
I then want to see the list of jobs for a specific backup server and use
Code: Select all
GET http://{{Ent_Manager}}/api/backupservers/b0469be1-bb6f-41f6-b930-040833eef96c/jobs
but I only get a
Code: Select all
"FirstChanceExceptionMessage": null,
"Message": "Access denied.",
"StackTrace": null,
"Status": null,
"StatusCode": 403
I get the same error if I use the API web explorer
Can anyone confirm?
-
ssimakov
- Veeam Software
- Posts: 268
- Liked: 63 times
- Joined: Jan 01, 2006 1:01 am
- Full Name: Stanislav Simakov
-
Contact:
Post
by ssimakov »
this post
I cannot reproduce it on several different instances. Any clues in Svc.VeeamRestAPI.log on the EM server?
-
Cragdoo
- Veeam Software
- Posts: 630
- Liked: 251 times
- Joined: Sep 27, 2011 12:17 pm
- Full Name: Craig Dalrymple
- Location: Scotland
-
Contact:
Post
by Cragdoo »
this post
Code: Select all
2019 14:52:02] <56> Info [GET] request to [https://bmgm1-vem1.bsolmgm.local:9398/api/backupServers/8d029530-9430-4db2-a73d-c38d37c87039/jobs?_=1560433894541] deserialized. Message: []; Parameters: [8d029530-9430-4db2-a73d-c38d37c87039].
[13.06.2019 14:52:02] <56> Error Failed to retrieve job references. BackupServer: [8d029530-9430-4db2-a73d-c38d37c87039]. RequestUri: [https://bmgm1-vem1.bsolmgm.local:9398/api/backupServers/8d029530-9430-4db2-a73d-c38d37c87039/jobs?_=1560433894541].
[13.06.2019 14:52:02] <56> Error Access denied. (System.UnauthorizedAccessException)
[13.06.2019 14:52:02] <56> Error at Veeam.Backup.Enterprise.RestAPIService.CRestrictedRestApiBServersScope.GetBServerJobRefs(String backupserverIdOrName)
[13.06.2019 14:52:02] <56> Error at Veeam.Backup.Enterprise.RestAPIService.CEnterpriseRestServiceStub.GetBServerJobRefs(String backupserverIdOrName)
[13.06.2019 14:52:02] <56> Error Access denied.
-
ssimakov
- Veeam Software
- Posts: 268
- Liked: 63 times
- Joined: Jan 01, 2006 1:01 am
- Full Name: Stanislav Simakov
-
Contact:
Post
by ssimakov »
this post
Okay, I managed to reproduce it with a user that does not have a Backup Administrator role on the backup server. Is it the same in your case?
-
Cragdoo
- Veeam Software
- Posts: 630
- Liked: 251 times
- Joined: Sep 27, 2011 12:17 pm
- Full Name: Craig Dalrymple
- Location: Scotland
-
Contact:
Post
by Cragdoo »
this post
nope, same error when I add my user account specifically as a backup admin on the backup server .....strange
Users browsing this forum: No registered users and 7 guests