REST API knowledge exchange
Post Reply
sumwu
Expert
Posts: 109
Liked: never
Joined: Apr 02, 2013 7:55 am
Full Name: Sum Wu
Contact:

I need some Guidance

Post by sumwu »

Hi;

I'm creating a portal for customer using. but I can't find the following information. Can someone give me a help?
1. I can use the "lookupsvc" to get VM infomration. The information will give me a "id" if the VM. But I do not know how to bind with this id? have any suggestions?
2. Can I change the "VM" after I use the "Clone job" to create a new job?
3. any api for "Delete job"?
4. any api for " last 24 hours" job history/information?

Thanks for help.
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: I need some Guidance

Post by veremin »

1. Lookup service gives you unique VM identifier. What do you need to bind this identifier to?
2. You mean you want to change job source options?
3. Currently, neither EM nor RestAPI allows you to delete jobs.
4. Have you already tried to query backup sessions?

Thanks.
sumwu
Expert
Posts: 109
Liked: never
Joined: Apr 02, 2013 7:55 am
Full Name: Sum Wu
Contact:

Re: I need some Guidance

Post by sumwu »

for question 2. Yes. How can I do?
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: I need some Guidance

Post by veremin »

You can change those options, using the following requests - (POST) /jobs/{ID}/includes, (DELETE) /jobs/{ID}/includes/{ID}. Thanks.
sumwu
Expert
Posts: 109
Liked: never
Joined: Apr 02, 2013 7:55 am
Full Name: Sum Wu
Contact:

Re: I need some Guidance

Post by sumwu »

Thanks how about if I want to get the information for "VM size, Load, …., etc..... Do Veeam have Api for it?
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: I need some Guidance

Post by veremin »

You can query /backupTaskSessions/, or more specifically, TotalSize parameter (regardless of what is written in documentation, it contains information regarding size of processed VM). Thanks.
jerny_huang
Novice
Posts: 8
Liked: never
Joined: Aug 06, 2014 8:11 am
Full Name: Jerny Huang
Contact:

[MERGED] : How to get vms total size of a job

Post by jerny_huang »

I want to get the all vms size of a job. How can I do it?
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: I need some Guidance

Post by veremin »

Check TotalSize parameter of /BackupTaskSessions entity and see whether it's something you're after. Thanks.
jerny_huang
Novice
Posts: 8
Liked: never
Joined: Aug 06, 2014 8:11 am
Full Name: Jerny Huang
Contact:

Re: I need some Guidance

Post by jerny_huang »

I want to calculate the size of the original vms in a backup job, not the size of backup files. Which API should I call?
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: I need some Guidance

Post by veremin »

Did you check the parameter I was talking about? It provides the exact information you're looking for. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests