Home > Blogs > VMware {code} > Monthly Archives: July 2018

Monthly Archives: July 2018

Managing VMware Cloud on AWS Elastic DRS via RESTful APIs

There’s been a new batch of features released for VMware Cloud on AWS! While there’s a lot of important new features, there’s one in particular I’d like to focus on. This new feature is called Elastic DRS (EDRS). EDRS allows you to automatically right-size your SDDC for the current workload demand and do it all by way of a policy. Even better, there are RESTful APIs to help you automate the configuration of this policy!

More information about EDRS can be found on this blog by my teammate, Frank Denneman: Introduction to Elastic DRS

Let’s check out some of these new REST APIs for EDRS.

EDRS Policy Management API

There are a couple different methods we can use to view and update the EDRS policy for our SDDC. However, before diving right into retrieving a policy, let’s start a little higher and get a more holistic view of an SDDC’s configuration. We can retrieve the EDRS policies for all of the clusters in our SDDC with the following method:

The response should read like the following:
Example Output: SDDC EDRS Configuration

To obtain the EDRS policy for a single cluster, we’ll need to reference the cluster_id property from the above call. This method will be like the following:

The response should read like the following:
Example: Single Cluster EDRS Configuration

Now that we can retrieve the EDRS policy, we can now make updates to the policy as well. We can take the prior response and use that as the body for the next method.

When you’re making modifications to the prior body, keep a couple things in mind:

  • enable_edrs – Boolean, input should read either true or false
  • max_hosts – Optional, input cannot be higher than the maximum number of hosts per SDDC Cluster
  • min_hosts – Optional, input cannot be lower than the minimum number of hosts per SDDC Cluster
  • policy_type – Optional, input should read either performance or cost. Performance is the default value.

Example Body:

Example: Making an EDRS modification to a cluster

Another thing to note about this method, which you’ll notice by the status above, this runs asynchronously and outputs a running task.


Elastic DRS is one of the latest features to be added to the already incredible VMware Cloud on AWS service. EDRS allows you to automatically right-size your SDDC for the current workload demand and do it all by way of a policy. In keeping with our API-first focus, this feature comes complete with a couple RESTful APIs to help manage the configuration in an automated way.

We covered a couple samples in the above post and each of these are available as part of the vSphere Automation SDK for REST. Download it today and get started integrating these new APIs into your existing processes and/or workflows!

Come meet Mark Burgess at the next VMware {code} meetup with svDevOps!

VMware Cafeteria – Palo Alto, CA

Wednesday, July 18, 2018 (6:30 PM to 9:30 PM)

Mark is a theoretician and practitioner originally from Britain, that currently resides in Norway. However, his occupation as an advisor on all things science and technology related requires him to frequently travel all around the world.

He obtained a first-class honors degree in Physics as well as a PhD in Theoretical Physics from the University of Newcastle upon Tyne. Mark previously worked as a professor of Network and System Administration from Oslo University College and founder of CFEngine and ChiTek-i.

Mark is most known for his different publications regarding Configuration Management and Promise Theory. Mark received the SAGE 2003 Professional Contribution Award for his work in systems administration theory.

Mark’s work was used in the beginning stages of using Promise Theory to discuss business alignment, and later DevOps.

For more information on Mark Burgess visit: http://markburgess.org

Talking Code: Introduction to the VMware Cloud on AWS Developer Center

Today’s edition of Talking Code takes us on a special walkthrough of the new Developer Center, which is built into VMware Cloud on AWS!

Introduction to the VMware Cloud on AWS Developer Center

For more information on the VMware Cloud on AWS Developer Center, see the following blog: Enabling Developers in VMware Cloud on AWS

For more videos in the Talking Code series, see the Talking Code Archive

As always, let us know in the comments what other videos you’d like to see in the future!