RESTful knowledge exchange
Post Reply
Noctis
Lurker
Posts: 2
Liked: never
Joined: Oct 16, 2020 10:02 am
Full Name: Noctis-kun
Contact:

can't get api job

Post by Noctis »

Hello,

my request is correct but does not return any results to me

can you help me ?

Code: Select all

curl -k --location --request GET 'https://192.168.x.x:9398/api/jobs' --header 'x-restsvcsessionid: NGM2MjFlMWQtZTA3NS00ZjRhLWFkZDktYmEwMDZlYTQzYTIy'
<?xml version="1.0" encoding="utf-8"?><EntityReferences xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

I try to have the list of jobs
wishr
Veteran
Posts: 3077
Liked: 453 times
Joined: Aug 07, 2018 3:11 pm
Full Name: Fedor Maslov
Contact:

Re: can't get api job

Post by wishr »

Hi Catarino,

Welcome to Veeam Community Forums!

Could you please let us know what is the response?

Thanks
Noctis
Lurker
Posts: 2
Liked: never
Joined: Oct 16, 2020 10:02 am
Full Name: Noctis-kun
Contact:

Re: can't get api job

Post by Noctis »

Code: Select all

curl -k --location --request GET 'https://192.68.8.0:9398/api/jobs' --header 'x-restsvcsessionid: YTBjYTA1NDItYWQ1ZC00hY2UtZDEzZWI2MGFiNTlj' | xmllint --format -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   195  100   195    0     0   3823      0 --:--:-- --:--:-- --:--:--  3823
<?xml version="1.0" encoding="utf-8"?>
<EntityReferences xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.veeam.com/ent/v1.0"/>
oleg.feoktistov
Veeam Software
Posts: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: can't get api job

Post by oleg.feoktistov »

Hi @Noctis,

It looks like you don't have your VBR server added to Enterprise Manager. That's why you see an empty response as if you had no jobs created.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests