vCloud Automation Centre (vCAC) REST Helper API
Binary: Downloadhttps://dl.dropboxusercontent.com/u/91543591/files/MBUPUB/DCACAPI5.1.zip
Sample Scripts: Download
Binary: Downloadhttps://dl.dropboxusercontent.com/u/91543591/files/MBUPUB/DCACAPI5.2.zip
Please note that this will not be available in VCAC Version 6. I will blog more details about this soon.
This API is a wrapper around the vCAC ODATA Rest Interface and uses windows integrated security for authentication, it exposes some useful methods such as group, reservation & blueprint creation.
To install, download the binaries and follow the instructions within the document. Additionally run the powershell script located in the bin directory to get the required vCAC dll’s from the server.
Example in how to create a new provisioning group:
# New Group Data
$newGroupName = “PG-” + $clientName;
$srcGroup = “Development”;
$newGroupUrl = $restBaseUrl + “/Groups?Name={0}&Source={1}&Desc={2}” -f ($newGroupName, $srcGroup, “New Group”)
NewRequest $newGroupUrl “POST”
To request a new Amazon machine (there are some additional properties required):
Disclaimer: This is an unsupported VMware API into VCAC.
April 2, 2013 at 2:49 pm
The link to the binaries is broken. Where can I get the binaries?
LikeLike
April 2, 2013 at 3:13 pm
Try again, thanks
LikeLike
April 11, 2013 at 2:03 pm
What is the supported way to do this? Thanks.
Regards,
Howard Tang
LikeLike
May 22, 2013 at 1:44 am
I don't find documentation on how to install the binaries. Should this be installed in the same server where vCAC self service portal is running?
LikeLike
May 22, 2013 at 1:48 am
Sorry, I found the instructors in “View Online Documentation” link. Please ignore my earlier comment as I was looking for document in the zip file that I downloaded.
LikeLike
May 30, 2013 at 9:11 pm
hello,
when I call the WhoAmi method everything works great. when I try to call the Request?BlueprintName=Nostalgia&GroupId=6ED13F6F-E572-4505-992D-5AFBF9FA975C&CpuCount=4&MemoryMb=2096&LeaseDays=30
I am getting a Method not allowed error. any ideas?
Thanks,
George
LikeLike
May 30, 2013 at 9:16 pm
Sounds like you are making an HTTP GET request for requesting the machine. ( you will certainly be if you are using a browser). Take a look at the sample scripts, one shows how to request a new machine
LikeLike
May 31, 2013 at 12:53 pm
This comment has been removed by the author.
LikeLike
June 3, 2013 at 2:17 pm
Hi Tom,
I was able to get passed that one error from the comment before. I'm almost there, but ran into another road block/error. Any idea what this means? Error requesting machine. Inner Exception: Exception has been thrown by the target of an invocation. Base Exception: Allocate reservation operation failed. No reservation available to allocate storage.
V/R
George
LikeLike
June 3, 2013 at 8:37 pm
never mind tom, I was able to create a request all the way through. I was passing in the wrong group name. This rocks!!
LikeLike
June 3, 2013 at 8:40 pm
Great news!
LikeLike
July 30, 2013 at 6:07 am
Hi Tom,
Is there a documentation for the REST API usage in vcac-5.2 version. I am requesting to provision a VM using a REST request(https://vcac52.domain.com/Repository/Data/ManagementModelEntities.svc/Requests()) with the json parameters blueprintname and provisioninggroup name but getting an error “Error processing request stream. The request should be a valid top-level resource object”.
Anantha
LikeLike
October 22, 2014 at 5:52 pm
Hi Tom
Is there a easy way to pull user groups directly from Repository/Data/ManagementModelEntities.svc than using /DCACAPI/DCACRequest/Groups in vCAC 5.2. We have been using this API but we are moving to 6.1 in few weeks. Would it be possible to explain how did you pull user groups in your API ?
LikeLike