Hello, I'm having an issue using the query service against VEM server running the latest v11.
According to the docs (https://helpcenter.veeam.com/docs/backup/em_rest/get_query_backupjobsession.html?ver=110) I should be passing the full UID of the Job. However, when I do, I get an HTTP/400.
https://server:9398/api/query?type=BackupJobSession&format=Entities&filter=JobUid==urn:veeam:Backup:9d07cdc3-027d-458f-b21b-cf06a1f29dfe
Returns: HTTP/400
So then I tried URL encoding it.
https://server:9398/api/query?type=BackupJobSession&format=Entities&filter=JobUid==urn%3aveeam%3aBackup%3a9d07cdc3-027d-458f-b21b-cf06a1f29dfe
Returns: HTTP/400
I then tried without the 'urn:veeam:Backup:' part. 
https://server:9398/api/query?type=BackupJobSession&format=Entities&filter=JobUid==9d07cdc3-027d-458f-b21b-cf06a1f29dfe
Returns: HTTP/200 but no results.
I tried this with multiple jobs, all of which are active (run every day). Any thoughts on what I might be doing wrong?
			
			
									
						
										
						- 
				theirpuppet
 - Influencer
 - Posts: 10
 - Liked: never
 - Joined: Jan 20, 2020 10:16 am
 - Full Name: DR
 - Contact:
 
- 
				ronnmartin61
 - Veeam Software
 - Posts: 642
 - Liked: 243 times
 - Joined: Mar 07, 2016 3:55 pm
 - Full Name: Ronn Martin
 - Contact:
 
Re: HTTP/400
Instead of 
			
			
									
						
										
						it needs to beurn:veeam:Backup:9d07cdc3-027d-458f-b21b-cf06a1f29dfe
urn:veeam:Job:9d07cdc3-027d-458f-b21b-cf06a1f29dfe
- 
				theirpuppet
 - Influencer
 - Posts: 10
 - Liked: never
 - Joined: Jan 20, 2020 10:16 am
 - Full Name: DR
 - Contact:
 
Re: HTTP/400
Thanks! I had hoped I was doing something stupid - turns out that I was querying a Backup UID instead of a Job UID.
			
			
									
						
										
						- 
				ronnmartin61
 - Veeam Software
 - Posts: 642
 - Liked: 243 times
 - Joined: Mar 07, 2016 3:55 pm
 - Full Name: Ronn Martin
 - Contact:
 
Re: HTTP/400
Happy to help!
			
			
									
						
										
						Who is online
Users browsing this forum: No registered users and 2 guests