Home > Software Development, Virtualization > Announcing VimREST 2.0: Filtering, Caching, Multi-user, and App Platform

Announcing VimREST 2.0: Filtering, Caching, Multi-user, and App Platform

January 10th, 2018 Leave a comment Go to comments

We’re pleased to announce VimREST 2.0 which has packed with new features: filtering, caching, multiple users, and application platform. Let’s go over one by one here:

Filtering

Time to learn how to "Google" and manage your VMware and clouds in a fast and secure

HTML5 App

The VimREST was designed to support multiple vCenter servers from day zero. While the scalability is powerful, it does cause cause problem when you only need to list a few virtual machines in certain folder or data centers but get all the virtual machines from all the vCenter servers you have connected. Not only does it take time to transfer the data, but also parse the data as well.
To solve this problem, we now allow you to filter what you want with the root URL parameter. You can specify any node in an inventory tree and the API server returns only the virtual machines under that root node. Better yet, you can specify multiple root node in one or multiple vCenter servers. When only IP or FQDN is there, it’s interpreted as top root of the vCenter server’s inventory.

GET http://:/api/VirtualMachine?root=10.8.0.2:group-v123&root=vc2.prod.hq:group-d1

Caching

When an application retrieves managed object properties from a vCenter, it can slow it down a bit. What if it retrieves lots of data and at a high frequency? What if there are many of these kinds of applications? The performance can reduce dramatically over the time. Most of the vCenter properties are not changing frequently except for the performance data. These properties are perfect target for caching.
Now, we have a new parameter to the URL called cache. When the value is true, the API server will get the values from local cache instead of vCenter directly.

GET http://:/api/VirtualMachine/10.8.0.2:vm-123?cache=true

Multi-user

VimREST supported one vCenter user at a time. To build your own application, you have to manage the users and their permission model by yourself. But the vCenter already has a good security model there, so it’s natural to average the existing vCenter feature. That is exactly what one big customer wanted us to support.

In 2.0, we add an optional URL parameter called user. When you have one user logged in per vCenter, you can simply ignore it. When you have multiple users logged in, you have to provide the user in the URL so that the API server will act on behalf of the particular user.
Now if you have an application that supports multiple vCenter users, you can easily use it with the new VimREST API server. We have included a few samples in the release.

POST http://:/api/VirtualMachine/10.8.0.2:vm-123/powerOffVM_Task?user=root

App Platform

When REST is supported with your vCenter servers, you can do a lot of development easily. In this release, you can put your Web applications in the webapps directory and the VimREST will serve it for you. To illustrate how it works, we have included a few live samples with popular frameworks like Angular and VueJS which you can use it easily. You can copy and paste any of the samples and modify to your own needs and styles.

To open your own Web application, you can use this URL pattern:
http://: /

Well, enough is being said about the new release. To try it out, please download it from the company site: http://www.doublecloud.net/downloads.php

  1. March 22nd, 2018 at 09:40 | #1

    I’ve tested it for several weeks now and I’m really impressed with the app – congrats :)

  1. No trackbacks yet.