vCloud 5.1 API Support in PowerCLI 5.1 R2

June 11, 2013

Table of Contents

It has been clear that some people were curious to know when the vCloud 5.1 feature will support powerCLI , wait no more! The powerCLI 5.1 R2 has officially stopped  and the new vCloud 5.1 feature are built in.

these new properties and featuresd are found in the .extensiondata of objects like a VM returned by Get-CVIM. Snapshots are a frequent request and I will show you how to find them:

$vm=Get-CIVM “MyVM”

$vm.ExtensionData | Get-Member

The good thing is that the .extensiondata is just the same as you would usually get from theGet-CIVeiw cmdlet.if you want to know how the new 5.1 VM snapshot properties and methods are available to us this is how to find out:

$vm=Get-CIVM “MyVM”

$vm.ExtensionData | Get-Member snapshot

You will now see that you have the ability to automate the creation, removal and revert of snapshots in vcloud Director 5.1

# Create Snapshot (Snapshot memory false, quiece true, snapshot name, description)

$vm.extensiondata.CreateSnapshot($false,$true,”Snapshot”,”Description”)

# Get VM snapshot

$vm.ExtensionData.GetSnapshotSection().snapshot

# Remove Snapshots

$vm.ExtensionData.RemoveAllSnapshots()

Edge gateways are a new feature in in vCloud Director 5.1, this is how to find them withoutany newcmdlets by using the Search-Cloud

Search-Cloud -QueryType EdgeGateway | Get-CIView

The search cloud returns a search object from which we can get the .NET object with all the properties and methods

$edge | Get-Member

You would have noticed that we did not use the .extensiondata, we just used the Get-CIView to get the .NET object configuration. This how you have a look at the .configuration:

$edge.configuration

If your vCloud provider is running on 5.1 you will be in a good position to enjoty the new features like both the vCloud Admin and Tenant PowerCLI snaps – ins which have been updated.

If more interested you can read about all the updates on the officia

Share on
Facebook
Twitter
LinkedIn
Pinterest
More posts

Dedicated Servers Quick Guide

What is a Dedicated Servers? Why bother using a dedicated server over a VPS or Shared Hosting?A dedicated server is a server 100% dedicated to your website/project or business needs.

What Cloud Computing Really Means

Cloud Computing 1. SaaS – Software As A Service This type of cloud computing delivers a single application through the browser to thousands of customers using a multitenant architecture. On the

How to be a PowerCLI Ninja

Many people are becoming curious about the powershell/powerCLI and how to become a Powershell/PowerCLI ninja and I think the following tips will help one go a long way to become

SolusVM Easy Quick Install

Quick Easy Install Debian/Ubuntu apt update reboot wget https://files.soluslabs.com/install.shsh install.sh Centos yum update reboot wget https://files.soluslabs.com/install.shsh install.sh If you get an error it is because you need to install: wget Try a

vSphere 5.1 New Storage Features

VMFS File Sharing Limits In previous versions of vSphere, the maximum number of hosts which could share a read-only file on a VMFS volume was 8. The primary use case

Get 90% Discount

First 3 People gets the Bonus!
Don't Miss Out Our Big Sale

Get 0-90% On All
247Rack Services

247Rack

The Sale Is Until The End Of March