REST API knowledge exchange
Post Reply
jerny_huang
Novice
Posts: 8
Liked: never
Joined: Aug 06, 2014 8:11 am
Full Name: Jerny Huang
Contact:

How to get vm restorePoints by VM

Post by jerny_huang »

I want to get all restorePoints of a vm. How can I do it?
veremin
Product Manager
Posts: 20400
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How to get vm restorePoints by VM

Post by veremin »

You need to query VMRestorePoints, using either VMName or VMDisplayName as query parameter. Thanks.
jerny_huang
Novice
Posts: 8
Liked: never
Joined: Aug 06, 2014 8:11 am
Full Name: Jerny Huang
Contact:

Re: How to get vm restorePoints by VM

Post by jerny_huang »

I have tried but failed.It returns all vmestorePoints list. Can you help me?
http://localhost:9399/api/query?type=Vm ... 4-testvm01
poulpreben
Certified Trainer
Posts: 1025
Liked: 448 times
Joined: Jul 23, 2012 8:16 am
Full Name: Preben Berg
Contact:

Re: How to get vm restorePoints by VM

Post by poulpreben »

You must add the filter parameter like: &filter=VmName==r4-testvm01
jerny_huang
Novice
Posts: 8
Liked: never
Joined: Aug 06, 2014 8:11 am
Full Name: Jerny Huang
Contact:

Re: How to get vm restorePoints by VM

Post by jerny_huang »

Thanks. it has solved
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests