issue 1114 fix for vm and vapp reboot

This commit is contained in:
digitalsanctum 2012-11-25 07:44:48 -05:00
parent 9f95ff1476
commit 2b56393f0a
11 changed files with 1018 additions and 540 deletions

View File

@ -21,6 +21,7 @@ package org.jclouds.vcloud.director.v1_5.domain;
import static com.google.common.base.Objects.equal;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
@ -49,14 +50,14 @@ import com.google.common.collect.Maps;
* </pre>
*
* TODO: this object and the hierarchy is wrong. it is literally a Task with a Task container. please review class diagram
*
*
* @author grkvlt@apache.org
*/
@XmlRootElement(name = "Task")
public class Task extends Entity {
public static final String MEDIA_TYPE = VCloudDirectorMediaType.TASK;
@XmlType(name = "TaskStatus")
@XmlEnum(String.class)
public static enum Status {
@ -75,7 +76,7 @@ public class Task extends Entity {
/** The task was aborted by an administrative action. */
@XmlEnumValue("aborted") ABORTED("aborted"),
@XmlEnumValue("") UNRECOGNIZED("unrecognized");
public static final List<Status> ALL = ImmutableList.of(QUEUED, PRE_RUNNING, RUNNING, SUCCESS, ERROR, CANCELED, ABORTED);
protected final String stringValue;
@ -113,7 +114,7 @@ public class Task extends Entity {
private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
}
public abstract static class Builder<B extends Builder<B>> extends Entity.Builder<B> {
private Error error;
@ -404,8 +405,29 @@ public class Task extends Entity {
equal(this.error, that.error) && equal(this.org, that.org) &&
equal(this.progress, that.progress) && equal(this.status, that.status) &&
equal(this.operation, that.operation) && equal(this.operationName, that.operationName) &&
equal(this.startTime, that.startTime) && equal(this.endTime, that.endTime) &&
equal(this.expiryTime, that.expiryTime);
datesEqual(this.startTime, that.startTime) &&
datesEqual(this.endTime, that.endTime) &&
datesEqual(this.expiryTime, that.expiryTime);
}
private boolean datesEqual(Date date1, Date date2) {
Date cDate1 = null;
if (date1 != null) {
Calendar c1 = Calendar.getInstance();
c1.setTime(date1);
c1.clear(Calendar.MILLISECOND);
cDate1 = c1.getTime();
}
Date cDate2 = null;
if (date2 != null) {
Calendar c2 = Calendar.getInstance();
c2.setTime(date2);
c2.clear(Calendar.MILLISECOND);
cDate2 = c2.getTime();
}
return equal(cDate1, cDate2);
}
@Override

View File

@ -202,7 +202,7 @@ public interface VAppAsyncApi {
* @see VAppApi#reboot(String)
*/
@POST
@Path("/power/action/powerOff")
@Path("/power/action/reboot")
@Consumes(TASK)
@JAXBResponseParser
ListenableFuture<Task> reboot(@EndpointParam(parser = VAppURNToHref.class) String vAppUrn);
@ -480,7 +480,7 @@ public interface VAppAsyncApi {
* @see VAppApi#reboot(URI)
*/
@POST
@Path("/power/action/powerOff")
@Path("/power/action/reboot")
@Consumes(TASK)
@JAXBResponseParser
ListenableFuture<Task> reboot(@EndpointParam URI vAppHref);

View File

@ -201,7 +201,7 @@ public interface VmAsyncApi {
* @see VmApi#reboot(String)
*/
@POST
@Path("/power/action/powerOff")
@Path("/power/action/reboot")
@Consumes(TASK)
@JAXBResponseParser
ListenableFuture<Task> reboot(@EndpointParam(parser = VmURNToHref.class) String vmUrn);
@ -651,7 +651,7 @@ public interface VmAsyncApi {
* @see VmApi#reboot(URI)
*/
@POST
@Path("/power/action/powerOff")
@Path("/power/action/reboot")
@Consumes(TASK)
@JAXBResponseParser
ListenableFuture<Task> reboot(@EndpointParam URI vmHref);

View File

@ -22,8 +22,11 @@ import static org.testng.Assert.assertEquals;
import java.net.URI;
import com.google.common.net.HttpHeaders;
import org.jclouds.dmtf.ovf.NetworkSection;
import org.jclouds.dmtf.ovf.StartupSection;
import org.jclouds.http.HttpRequest;
import org.jclouds.http.HttpResponse;
import org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType;
import org.jclouds.vcloud.director.v1_5.domain.Error;
import org.jclouds.vcloud.director.v1_5.domain.Link;
@ -56,30 +59,34 @@ import org.testng.internal.annotations.Sets;
/**
* Allows us to test the {@link VAppApi} via its side effects.
*
*
* @author grkvlt@apache.org
*/
@Test(groups = { "unit", "user" }, singleThreaded = true, testName = "VAppApiExpectTest")
public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
private String vAppId = "vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be";
private URI vAppURI = URI.create(endpoint + vAppId);
private static final String id = "6ef7767a-9522-4f8a-aa61-772ea1dc3145";
private static final String vAppId = "vapp-" + id;
private static final String vAppUrn = "urn:vcloud:vapp:" + id;
private static final URI vAppURI = URI.create(endpoint + "/vApp/" + vAppId);
@BeforeClass
public void before() {
}
@Test(enabled = false)//TODO
public void testGetVapp() {
VCloudDirectorApi api = orderedRequestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = orderedRequestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId)
.acceptMedia(VCloudDirectorMediaType.VAPP)
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/vApp.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
VApp expected = getVApp();
assertEquals(api.getVAppApi().get(vAppURI), expected);
@ -87,171 +94,171 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVApp() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vAppId)
.xmlFilePayload("/vApp/editVApp.xml", VCloudDirectorMediaType.VAPP)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/modifiedVapp.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
VApp modified = getVApp();
modified.setName("new-name");
modified.setDescription("New Description");
Task expected = editVAppTask();
assertEquals(api.getVAppApi().edit(vAppURI, modified), expected);
}
@Test(enabled = false)
public void testRemoveVApp() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("DELETE", vAppId)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/removeVAppTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = removeVAppTask();
assertEquals(api.getVAppApi().remove(vAppURI), expected);
}
@Test(enabled = false)
public void testControlAccess() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/action/controlAccess")
.xmlFilePayload("/vApp/controlAccessParams.xml", VCloudDirectorMediaType.CONTROL_ACCESS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/controlAccessParams.xml", VCloudDirectorMediaType.CONTROL_ACCESS)
.httpResponseBuilder().build());
ControlAccessParams params = controlAccessParams();
ControlAccessParams expected = controlAccessParams();
assertEquals(api.getVAppApi().editControlAccess(vAppURI, params), expected);
}
@Test(enabled = false)
public void testDeploy() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/action/deploy")
.xmlFilePayload("/vApp/deployParams.xml", VCloudDirectorMediaType.DEPLOY_VAPP_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/deployTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
DeployVAppParams params = DeployVAppParams.builder()
.build();
Task expected = deployTask();
assertEquals(api.getVAppApi().deploy(vAppURI, params), expected);
}
@Test(enabled = false)
public void testDiscardSuspendedState() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/action/discardSuspendedState")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/discardSuspendedStateTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = discardSuspendedStateTask();
assertEquals(api.getVAppApi().discardSuspendedState(vAppURI), expected);
}
@Test(enabled = false)
public void testEnterMaintenanceMode() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/action/enterMaintenanceMode")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.httpResponseBuilder().statusCode(204).build());
// TODO how to test?
api.getVAppApi().enterMaintenanceMode(vAppURI);
}
@Test(enabled = false)
public void testExitMaintenanceMode() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/action/exitMaintenanceMode")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.httpResponseBuilder().statusCode(204).build());
// TODO how to test?
api.getVAppApi().exitMaintenanceMode(vAppURI);
}
@Test(enabled = false)
public void testRecomposeVApp() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/action/recomposeVApp")
.xmlFilePayload("/vApp/recomposeVAppParams.xml", VCloudDirectorMediaType.RECOMPOSE_VAPP_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/recomposeVAppTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
RecomposeVAppParams params = RecomposeVAppParams.builder()
.build();
Task expected = recomposeVAppTask();
assertEquals(api.getVAppApi().recompose(vAppURI, params), expected);
}
@Test(enabled = false)
public void testUndeploy() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/action/undeploy")
.xmlFilePayload("/vApp/undeployParams.xml", VCloudDirectorMediaType.UNDEPLOY_VAPP_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/undeployTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
UndeployVAppParams params = UndeployVAppParams.builder()
.build();
Task expected = undeployTask();
assertEquals(api.getVAppApi().undeploy(vAppURI, params), expected);
}
@Test(enabled = false)
public void testPowerOff() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/power/action/powerOff")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/powerOffTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -263,11 +270,11 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testPowerOn() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/power/action/powerOn")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/powerOnTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -277,29 +284,57 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
assertEquals(api.getVAppApi().powerOn(vAppURI), expected);
}
@Test(enabled = false)
public void testReboot() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/power/action/reboot")
.acceptAnyMedia()
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/rebootTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@Test(enabled = true)
public void testReboot() {
URI vAppRebootUri = URI.create(endpoint + "/vApp/" + vAppId + "/power/action/reboot");
HttpRequest vAppEntityRequest = HttpRequest.builder()
.method("GET")
.endpoint(URI.create(endpoint + "/entity/" + vAppUrn))
.addHeader("Accept", "*/*")
.addHeader("x-vcloud-authorization", token)
.addHeader(HttpHeaders.COOKIE, "vcloud-token=" + token)
.build();
HttpResponse vAppEntityResponse = HttpResponse.builder()
.payload(payloadFromResourceWithContentType("/vapp/vAppEntity.xml", VCloudDirectorMediaType.ENTITY))
.statusCode(200)
.build();
HttpRequest vAppRebootRequest = HttpRequest.builder()
.method("POST")
.endpoint(vAppRebootUri)
.addHeader("Accept", "application/vnd.vmware.vcloud.task+xml")
.addHeader("x-vcloud-authorization", token)
.addHeader(HttpHeaders.COOKIE, "vcloud-token=" + token)
.build();
HttpResponse vAppRebootResponse = HttpResponse.builder()
.payload(payloadFromResourceWithContentType("/vapp/vAppRebootTask.xml", VCloudDirectorMediaType.TASK))
.statusCode(200)
.build();
VCloudDirectorApi vCloudDirectorApi = requestsSendResponses(
loginRequest, sessionResponse,
vAppEntityRequest, vAppEntityResponse,
vAppRebootRequest, vAppRebootResponse
);
Task actual = vCloudDirectorApi.getVAppApi().reboot(vAppUrn);
Task expected = rebootTask();
assertEquals(api.getVAppApi().reboot(vAppURI), expected);
assertEquals(actual, expected);
}
@Test(enabled = false)
public void testReset() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/power/action/reset")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/resetTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -311,11 +346,11 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testShutdown() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/power/action/shutdown")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/shutdownTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -327,27 +362,27 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testSuspend() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vAppId + "/power/action/suspend")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/suspend.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = suspendTask();
assertEquals(api.getVAppApi().suspend(vAppURI), expected);
}
@Test(enabled = false)
public void testGetControlAccesss() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId + "/controlAccess")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getAccessControl.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
@ -359,11 +394,11 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetLeaseSettingsSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId + "/leaseSettingsSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getLeaseSettingsSection.xml", VCloudDirectorMediaType.LEASE_SETTINGS_SECTION)
.httpResponseBuilder().build());
@ -375,83 +410,83 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditLeaseSettingsSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vAppId + "/leaseSettingsSection")
.xmlFilePayload("/vApp/editLeaseSettingsSection.xml", VCloudDirectorMediaType.LEASE_SETTINGS_SECTION)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editLeaseSettingsSectionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
LeaseSettingsSection section = getLeaseSettingsSection().toBuilder()
.build();
Task expected = editLeaseSettingsSectionTask();
assertEquals(api.getVAppApi().editLeaseSettingsSection(vAppURI, section), expected);
}
@Test(enabled = false)
public void testGetNetworkConfigSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId + "/networkConfigSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getNetworkConfigSection.xml", VCloudDirectorMediaType.NETWORK_CONFIG_SECTION)
.httpResponseBuilder().build());
NetworkConfigSection expected = getNetworkConfigSection();
assertEquals(api.getVAppApi().getNetworkConfigSection(vAppURI), expected);
}
@Test(enabled = false)
public void testEditNetworkConfigSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vAppId + "/networkConfigSection")
.xmlFilePayload("/vApp/editNetworkConfigSection.xml", VCloudDirectorMediaType.NETWORK_CONFIG_SECTION)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editNetworkConfigSectionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
NetworkConfigSection section = getNetworkConfigSection().toBuilder()
.build();
Task expected = editNetworkConfigSectionTask();
assertEquals(api.getVAppApi().editNetworkConfigSection(vAppURI, section), expected);
}
@Test(enabled = false)
public void testGetNetworkSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId + "/networkSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getNetworkSection.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
NetworkSection expected = getNetworkSection();
assertEquals(api.getVAppApi().getNetworkSection(vAppURI), expected);
}
@Test(enabled = false)
public void testGetOwner() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId + "/owner")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getOwner.xml", VCloudDirectorMediaType.OWNER)
.httpResponseBuilder().build());
@ -463,28 +498,28 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditOwner() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vAppId + "/owner")
.xmlFilePayload("/vApp/editOwner.xml", VCloudDirectorMediaType.OWNER)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.httpResponseBuilder().statusCode(204).build());
Owner owner = Owner.builder()
.build();
api.getVAppApi().editOwner(vAppURI, owner);
}
@Test(enabled = false)
public void testGetProductSections() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId + "/productSections")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getProductSections.xml", VCloudDirectorMediaType.PRODUCT_SECTION_LIST)
.httpResponseBuilder().build());
@ -496,12 +531,12 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditProductSections() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vAppId + "/productSections")
.xmlFilePayload("/vApp/editProductSections.xml", VCloudDirectorMediaType.PRODUCT_SECTION_LIST)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editProductSections.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
@ -513,37 +548,37 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetStartupSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vAppId + "/startupSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getStartupSection.xml", VCloudDirectorMediaType.STARTUP_SECTION)
.httpResponseBuilder().build());
StartupSection expected = getStartupSection();
assertEquals(api.getVAppApi().getStartupSection(vAppURI), expected);
}
@Test(enabled = false)
public void testEditStartupSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vAppId + "/startupSection")
.xmlFilePayload("/vApp/editStartupSection.xml", VCloudDirectorMediaType.STARTUP_SECTION)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editStartupSectionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
StartupSection section = null; // getStartupSection().toBuilder()
// .build();
Task expected = editStartupSectionTask();
assertEquals(api.getVAppApi().editStartupSection(vAppURI, section), expected);
}
@ -567,7 +602,7 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
// <Link rel="remove" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be"/>
// <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/owner"/>
// <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/metadata"/>
return vApp;
}
@ -663,10 +698,27 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
}
public static Task rebootTask() {
Task task = Task.builder()
return Task.builder()
.id("urn:vcloud:task:5bc25a1b-79cb-4904-b53f-4ca09088e434")
.name("task")
.href(URI.create("https://vcloudbeta.bluelock.com/api/task/5bc25a1b-79cb-4904-b53f-4ca09088e434"))
.link(Link.builder()
.rel(Link.Rel.TASK_CANCEL)
.href(URI.create("https://vcloudbeta.bluelock.com/api/task/5bc25a1b-79cb-4904-b53f-4ca09088e434/action/cancel"))
.build())
.org(Reference.builder()
.href(URI.create("https://vcloudbeta.bluelock.com/api/org/4559b367-8af2-4ee1-8429-a0d39e7df3de"))
.name("jclouds")
.type(VCloudDirectorMediaType.ORG)
.build())
.operation("Rebooting Virtual Machine damn small(b7e995a7-1468-4873-af39-bc703feefd63)")
.operationName("vappReboot")
.progress(0)
.startTime(dateService.cDateParse("Thu Oct 25 13:39:25 EDT 2012"))
.expiryTime(dateService.cDateParse("Wed Jan 23 13:39:25 EST 2013"))
.status(Task.Status.RUNNING)
.type(VCloudDirectorMediaType.TASK)
.build();
return task;
}
public static Task resetTask() {
@ -824,7 +876,7 @@ public class VAppApiExpectTest extends VCloudDirectorAdminApiExpectTest {
}
public static VmQuestionAnswer answerQuestion() {
VmQuestionAnswer answer = null; // = VmQuestionAnswer.builder()
VmQuestionAnswer answer = null; // = VmQuestionAnswer.builder()
// .build();
return answer;

View File

@ -22,8 +22,11 @@ import static org.testng.Assert.assertEquals;
import java.net.URI;
import com.google.common.net.HttpHeaders;
import org.jclouds.dmtf.ovf.NetworkSection;
import org.jclouds.dmtf.ovf.StartupSection;
import org.jclouds.http.HttpRequest;
import org.jclouds.http.HttpResponse;
import org.jclouds.vcloud.director.v1_5.VCloudDirectorMediaType;
import org.jclouds.vcloud.director.v1_5.domain.Error;
import org.jclouds.vcloud.director.v1_5.domain.Link;
@ -60,30 +63,32 @@ import com.google.common.collect.Multimaps;
/**
* Allows us to test the {@link VmApi} via its side effects.
*
*
* @author grkvlt@apache.org
*/
@Test(groups = { "unit", "user" }, singleThreaded = true, testName = "VmApiExpectTest")
public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
private String vmId = "vm-d0e2b6b9-4381-4ddc-9572-cdfae54059be";
private URI vmURI = URI.create(endpoint + vmId);
private static final String id = "dea05479-d7c1-4710-ba1a-a1a18cd0d455";
private static final String vmId = "vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455";
private static final URI vmURI = URI.create(endpoint + "/vApp/" + vmId);
private static final String vmUrn = "urn:vcloud:vm:" + id;
@BeforeClass
public void before() {
}
@Test(enabled = false)//TODO
public void testGetVm() {
VCloudDirectorApi api = orderedRequestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = orderedRequestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId)
.acceptMedia(VCloudDirectorMediaType.VM)
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vm/vm.xml", VCloudDirectorMediaType.VM)
.httpResponseBuilder().build());
Vm expected = getVm();
assertEquals(api.getVmApi().get(vmURI), expected);
@ -91,172 +96,172 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVm() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId)
.xmlFilePayload("/vm/editVm.xml", VCloudDirectorMediaType.VM)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vm/modifiedVm.xml", VCloudDirectorMediaType.VM)
.httpResponseBuilder().build());
Vm modified = getVm();
modified.setName("new-name");
modified.setDescription("New Description");
Task expected = editVmTask();
assertEquals(api.getVmApi().edit(vmURI, modified), expected);
}
@Test(enabled = false)
public void testRemoveVm() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("DELETE", vmId)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vm/removeVmTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = removeVmTask();
assertEquals(api.getVmApi().remove(vmURI), expected);
}
@Test(enabled = false)
public void testConsolidateVm() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/action/consolidate")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vm/consolidateVmTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = consolidateVmTask();
assertEquals(api.getVmApi().consolidate(vmURI), expected);
}
@Test(enabled = false)
public void testDeploy() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/action/deploy")
.xmlFilePayload("/vm/deployParams.xml", VCloudDirectorMediaType.DEPLOY_VAPP_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/deployTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
DeployVAppParams params = DeployVAppParams.builder()
.build();
Task expected = deployTask();
assertEquals(api.getVmApi().deploy(vmURI, params), expected);
}
@Test(enabled = false)
public void testDiscardSuspendedState() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/action/discardSuspendedState")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/discardSuspendedStateTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = discardSuspendedStateTask();
assertEquals(api.getVmApi().discardSuspendedState(vmURI), expected);
}
@Test(enabled = false)
public void testInstallVMwareTools() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/action/installVMwareTools")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/installVMwareToolsTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = installVMwareToolsTask();
assertEquals(api.getVmApi().installVMwareTools(vmURI), expected);
}
@Test(enabled = false)
public void testRelocate() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/action/relocate")
.xmlFilePayload("/vApp/relocateParams.xml", VCloudDirectorMediaType.RELOCATE_VM_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/relocateTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
RelocateParams params = RelocateParams.builder()
.build();
Task expected = relocateTask();
assertEquals(api.getVmApi().relocate(vmURI, params), expected);
}
@Test(enabled = false)
public void testUndeploy() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/action/undeploy")
.xmlFilePayload("/vApp/undeployParams.xml", VCloudDirectorMediaType.UNDEPLOY_VAPP_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/undeployTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
UndeployVAppParams params = UndeployVAppParams.builder()
.build();
Task expected = undeployTask();
assertEquals(api.getVmApi().undeploy(vmURI, params), expected);
}
@Test(enabled = false)
public void testUpgradeHardwareVersion() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/action/upgradeHardwareVersion")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/upgradeHardwareVersionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = upgradeHardwareVersionTask();
assertEquals(api.getVmApi().upgradeHardwareVersion(vmURI), expected);
}
@Test(enabled = false)
public void testPowerOff() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/power/action/powerOff")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/powerOffTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -268,11 +273,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testPowerOn() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/power/action/powerOn")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/powerOnTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -282,29 +287,56 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
assertEquals(api.getVmApi().powerOn(vmURI), expected);
}
@Test(enabled = false)
@Test(enabled = true)
public void testReboot() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/power/action/reboot")
.acceptAnyMedia()
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/rebootTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
HttpRequest vmEntityRequest = HttpRequest.builder()
.method("GET")
.endpoint(URI.create(endpoint + "/entity/" + vmUrn))
.addHeader("Accept", "*/*")
.addHeader("x-vcloud-authorization", token)
.addHeader(HttpHeaders.COOKIE, "vcloud-token=" + token)
.build();
HttpResponse vmEntityResponse = HttpResponse.builder()
.payload(payloadFromResourceWithContentType("/vm/vmEntity.xml", VCloudDirectorMediaType.ENTITY))
.statusCode(200)
.build();
URI vmRebootUri = URI.create(endpoint + "/vApp/" + vmId + "/power/action/reboot");
HttpRequest vmRebootRequest = HttpRequest.builder()
.method("POST")
.endpoint(vmRebootUri)
.addHeader("Accept", "application/vnd.vmware.vcloud.task+xml")
.addHeader("x-vcloud-authorization", token)
.addHeader(HttpHeaders.COOKIE, "vcloud-token=" + token)
.build();
HttpResponse vmRebootResponse = HttpResponse.builder()
.payload(payloadFromResourceWithContentType("/vm/vmRebootTask.xml", VCloudDirectorMediaType.TASK))
.statusCode(200)
.build();
VCloudDirectorApi vCloudDirectorApi = requestsSendResponses(
loginRequest, sessionResponse,
vmEntityRequest, vmEntityResponse,
vmRebootRequest, vmRebootResponse
);
Task actual = vCloudDirectorApi.getVmApi().reboot(vmUrn);
Task expected = rebootTask();
assertEquals(api.getVmApi().reboot(vmURI), expected);
assertEquals(actual, expected);
}
@Test(enabled = false)
public void testReset() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/power/action/reset")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/resetTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -316,11 +348,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testShutdown() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/power/action/shutdown")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/shutdownTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -332,48 +364,48 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testSuspend() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/power/action/suspend")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/suspend.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
Task expected = suspendTask();
assertEquals(api.getVmApi().suspend(vmURI), expected);
}
@Test(enabled = false)
public void testGetGuestCustomizationSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/guestCustomizationSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getGuestCustomizationSection.xml", VCloudDirectorMediaType.GUEST_CUSTOMIZATION_SECTION)
.httpResponseBuilder().build());
GuestCustomizationSection expected = getGuestCustomizationSection();
assertEquals(api.getVmApi().getGuestCustomizationSection(vmURI), expected);
}
@Test(enabled = false)
public void testEditGuestCustomizationSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/guestCustomizationSection")
.xmlFilePayload("/vApp/editGuestCustomizationSection.xml", VCloudDirectorMediaType.GUEST_CUSTOMIZATION_SECTION)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editGuestCustomizationSectionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
GuestCustomizationSection section = getGuestCustomizationSection().toBuilder()
.build();
@ -384,16 +416,16 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEjectMedia() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/media/action/ejectMedia")
.xmlFilePayload("/vApp/ejectMediaParams.xml", VCloudDirectorMediaType.MEDIA_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/ejectMediaTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
MediaInsertOrEjectParams params = MediaInsertOrEjectParams.builder()
.build();
@ -404,16 +436,16 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testInsertMedia() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/media/action/insertMedia")
.xmlFilePayload("/vApp/insertMediaParams.xml", VCloudDirectorMediaType.MEDIA_PARAMS)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/insertMediaTask.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
MediaInsertOrEjectParams params = MediaInsertOrEjectParams.builder()
.build();
@ -424,11 +456,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetNetworkConnectionSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/networkConnectionSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getNetworkConnectionSection.xml", VCloudDirectorMediaType.NETWORK_CONNECTION_SECTION)
.httpResponseBuilder().build());
@ -440,67 +472,67 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditNetworkConnectionSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/networkConnectionSection")
.xmlFilePayload("/vApp/editNetworkConnectionSection.xml", VCloudDirectorMediaType.NETWORK_CONNECTION_SECTION)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editNetworkConnectionSectionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
NetworkConnectionSection section = getNetworkConnectionSection().toBuilder()
.build();
Task expected = editNetworkConnectionSectionTask();
assertEquals(api.getVmApi().editNetworkConnectionSection(vmURI, section), expected);
}
@Test(enabled = false)
public void testGetOperatingSystemSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/operatingSystemSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getOperatingSystemSection.xml", VCloudDirectorMediaType.OPERATING_SYSTEM_SECTION)
.httpResponseBuilder().build());
OperatingSystemSection expected = getOperatingSystemSection();
assertEquals(api.getVmApi().getOperatingSystemSection(vmURI), expected);
}
@Test(enabled = false)
public void testEditOperatingSystemSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/operatingSystemSection")
.xmlFilePayload("/vApp/editOperatingSystemSection.xml", VCloudDirectorMediaType.OPERATING_SYSTEM_SECTION)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editOperatingSystemSectionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
OperatingSystemSection section = getOperatingSystemSection().toBuilder()
.build();
Task expected = editOperatingSystemSectionTask();
assertEquals(api.getVmApi().editOperatingSystemSection(vmURI, section), expected);
}
@Test(enabled = false)
public void testGetProductSections() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/productSections")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getProductSections.xml", VCloudDirectorMediaType.PRODUCT_SECTION_LIST)
.httpResponseBuilder().build());
@ -512,12 +544,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditProductSections() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/productSections")
.xmlFilePayload("/vApp/editProductSections.xml", VCloudDirectorMediaType.PRODUCT_SECTION_LIST)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editProductSections.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
@ -529,11 +561,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetPendingQuestion() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/question")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getPendingQuestion.xml", VCloudDirectorMediaType.VM_PENDING_QUESTION)
.httpResponseBuilder().build());
@ -545,12 +577,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testAnswerQuestion() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/question/action/answer")
.xmlFilePayload("/vApp/answerQuestion.xml", VCloudDirectorMediaType.VM_PENDING_ANSWER)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.httpResponseBuilder().statusCode(204).build());
@ -562,11 +594,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetRuntimeInfoSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/runtimeInfoSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getRuntimeInfoSection.xml", VCloudDirectorMediaType.RUNTIME_INFO_SECTION)
.httpResponseBuilder().build());
@ -578,45 +610,45 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetScreenImage() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/screen")
.acceptMedia(VCloudDirectorMediaType.ANY_IMAGE)
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.httpResponseBuilder()
.headers(Multimaps.forMap(ImmutableMap.of("Content-Type", "image/png")))
.message(new String(getScreenImage()))
.build());
byte[] expected = getScreenImage();
assertEquals(api.getVmApi().getScreenImage(vmURI), expected);
}
@Test(enabled = false)
public void testGetScreenTicket() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("POST", vmId + "/screen/action/acquireTicket")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getScreenTicket.xml", VCloudDirectorMediaType.SCREEN_TICKET)
.httpResponseBuilder().build());
ScreenTicket expected = getScreenTicket();
assertEquals(api.getVmApi().getScreenTicket(vmURI), expected);
}
@Test(enabled = false)
public void testGetVirtualHardwareSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/virtualHardwareSection")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getVirtualHardwareSection.xml", VCloudDirectorMediaType.VIRTUAL_HARDWARE_SECTION)
.httpResponseBuilder().build());
@ -628,12 +660,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVirtualHardwareSection() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/virtualHardwareSection")
.xmlFilePayload("/vApp/editVirtualHardwareSection.xml", VCloudDirectorMediaType.VIRTUAL_HARDWARE_SECTION)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editVirtualHardwareSectionTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -642,17 +674,17 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
.build();
Task expected = editVirtualHardwareSectionTask();
assertEquals(api.getVmApi().editVirtualHardwareSection(vmURI, section), expected);
}
@Test(enabled = false)
public void testGetVirtualHardwareSectionCpu() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/virtualHardwareSection/cpu")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getVirtualHardwareSectionCpu.xml", VCloudDirectorMediaType.OVF_RASD_ITEM)
.httpResponseBuilder().build());
@ -664,12 +696,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVirtualHardwareSectionCpu() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("", vmId + "/virtualHardwareSection/cpu")
.xmlFilePayload("/vApp/editVirtualHardwareSectionCpu.xml", VCloudDirectorMediaType.OVF_RASD_ITEM)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editVirtualHardwareSectionCpuTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -684,11 +716,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetVirtualHardwareSectionDisks() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/virtualHardwareSection/disks")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getVirtualHardwareSectionDisks.xml", VCloudDirectorMediaType.OVF_RASD_ITEMS_LIST)
.httpResponseBuilder().build());
@ -700,12 +732,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVirtualHardwareSectionDisks() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/virtualHardwareSection/disks")
.xmlFilePayload("/vApp/editVirtualHardwareSectionDisks.xml", VCloudDirectorMediaType.OVF_RASD_ITEMS_LIST)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editVirtualHardwareSectionDisksTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -720,11 +752,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetVirtualHardwareSectionMedia() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/virtualHardwareSection/media")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getVirtualHardwareSectionMedia.xml", VCloudDirectorMediaType.OVF_RASD_ITEMS_LIST)
.httpResponseBuilder().build());
@ -736,11 +768,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetVirtualHardwareSectionMemory() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/virtualHardwareSection/memory")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getVirtualHardwareSectionMemory.xml", VCloudDirectorMediaType.OVF_RASD_ITEM)
.httpResponseBuilder().build());
@ -752,12 +784,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVirtualHardwareSectionMemory() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/virtualHardwareSection/memory")
.xmlFilePayload("/vApp/editVirtualHardwareSectionMemory.xml", VCloudDirectorMediaType.VAPP)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editVirtualHardwareSectionMemoryTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -772,11 +804,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetVirtualHardwareSectionNetworkCards() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/virtualHardwareSection/networkCards")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getVirtualHardwareSectionNetworkCards.xml", VCloudDirectorMediaType.OVF_RASD_ITEMS_LIST)
.httpResponseBuilder().build());
@ -788,12 +820,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVirtualHardwareSectionNetworkCards() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/virtualHardwareSection/networkCards")
.xmlFilePayload("/vApp/editVirtualHardwareSectionNetworkCards.xml", VCloudDirectorMediaType.OVF_RASD_ITEMS_LIST)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editVirtualHardwareSectionNetworkCardsTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -808,11 +840,11 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testGetVirtualHardwareSectionSerialPorts() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("GET", vmId + "/virtualHardwareSection/serialPorts")
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/getVirtualHardwareSectionSerialPorts.xml", VCloudDirectorMediaType.VAPP)
.httpResponseBuilder().build());
@ -824,12 +856,12 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
@Test(enabled = false)
public void testEditVirtualHardwareSectionSerialPorts() {
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
VCloudDirectorApi api = requestsSendResponses(loginRequest, sessionResponse,
new VcloudHttpRequestPrimer()
.apiCommand("PUT", vmId + "/virtualHardwareSection/serialPorts")
.xmlFilePayload("/vApp/editVirtualHardwareSectionSerialPorts.xml", VCloudDirectorMediaType.OVF_RASD_ITEMS_LIST)
.acceptAnyMedia()
.httpRequestBuilder().build(),
.httpRequestBuilder().build(),
new VcloudHttpResponsePrimer()
.xmlFilePayload("/vApp/editVirtualHardwareSectionSerialPortsTask.xml", VCloudDirectorMediaType.TASK)
.httpResponseBuilder().build());
@ -862,7 +894,7 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
// <Link rel="remove" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be"/>
// <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/owner"/>
// <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/metadata"/>
return vm;
}
@ -958,10 +990,27 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
}
public static Task rebootTask() {
Task task = Task.builder()
return Task.builder()
.id("urn:vcloud:task:8d188b18-c2dd-4e29-a1b2-118e5f6a8276")
.name("task")
.href(URI.create("https://vcloudbeta.bluelock.com/api/task/8d188b18-c2dd-4e29-a1b2-118e5f6a8276"))
.link(Link.builder()
.rel(Link.Rel.TASK_CANCEL)
.href(URI.create("https://vcloudbeta.bluelock.com/api/task/8d188b18-c2dd-4e29-a1b2-118e5f6a8276/action/cancel"))
.build())
.org(Reference.builder()
.href(URI.create("https://vcloudbeta.bluelock.com/api/org/4559b367-8af2-4ee1-8429-a0d39e7df3de"))
.name("jclouds")
.type(VCloudDirectorMediaType.ORG)
.build())
.operation("Rebooting Virtual Machine ubuntu(dea05479-d7c1-4710-ba1a-a1a18cd0d455)")
.operationName("vappRebootGuest")
.progress(0)
.startTime(dateService.cDateParse("Wed Nov 21 08:51:42 EST 2012"))
.expiryTime(dateService.cDateParse("Tue Feb 19 08:51:42 EST 2013"))
.status(Task.Status.RUNNING)
.type(VCloudDirectorMediaType.TASK)
.build();
return task;
}
public static Task resetTask() {
@ -1119,7 +1168,7 @@ public class VmApiExpectTest extends VCloudDirectorAdminApiExpectTest {
}
public static VmQuestionAnswer answerQuestion() {
VmQuestionAnswer answer = null; // = VmQuestionAnswer.builder()
VmQuestionAnswer answer = null; // = VmQuestionAnswer.builder()
// .build();
return answer;

View File

@ -1,266 +1,348 @@
<?xml version="1.0" encoding="UTF-8"?>
<VApp xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" deployed="false" status="8" name="test-vapp" id="urn:vcloud:vapp:d0e2b6b9-4381-4ddc-9572-cdfae54059be" type="application/vnd.vmware.vcloud.vApp+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://mycloud.greenhousedata.com/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
<Link rel="power:powerOn" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/power/action/powerOn"/>
<Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/action/deploy"/>
<Link rel="down" type="application/vnd.vmware.vcloud.vAppNetwork+xml" name="orgNet-cloudsoft-External" href="https://mycloud.greenhousedata.com/api/network/2a2e2da4-446a-4ebc-a086-06df7c9570f0"/>
<Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/controlAccess/"/>
<Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/action/controlAccess"/>
<Link rel="recompose" type="application/vnd.vmware.vcloud.recomposeVAppParams+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/action/recomposeVApp"/>
<Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://mycloud.greenhousedata.com/api/vdc/e9cd3387-ac57-4d27-a481-9bee75e0690f"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be"/>
<Link rel="remove" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be"/>
<Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/owner"/>
<Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/metadata"/>
<Description>Test VApp</Description>
<LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/leaseSettingsSection/" ovf:required="false">
<ovf:Info>Lease settings section</ovf:Info>
<Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/leaseSettingsSection/"/>
<DeploymentLeaseInSeconds>5184000</DeploymentLeaseInSeconds>
<StorageLeaseInSeconds>5184000</StorageLeaseInSeconds>
<StorageLeaseExpiration>2012-05-11T10:41:19.420-06:00</StorageLeaseExpiration>
</LeaseSettingsSection>
<ovf:StartupSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/startupSection/" vcloud:type="application/vnd.vmware.vcloud.startupSection+xml">
<ovf:Info>VApp startup section</ovf:Info>
<ovf:Item ovf:stopDelay="0" ovf:stopAction="powerOff" ovf:startDelay="0" ovf:startAction="powerOn" ovf:order="0" ovf:id="UbuntuServer-x64-2GB"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/startupSection/"/>
</ovf:StartupSection>
<ovf:NetworkSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/networkSection/" vcloud:type="application/vnd.vmware.vcloud.networkSection+xml">
<ovf:Info>The list of logical networks</ovf:Info>
<ovf:Network ovf:name="orgNet-cloudsoft-External">
<ovf:Description>Direct access to internet</ovf:Description>
</ovf:Network>
<ovf:Network ovf:name="none">
<ovf:Description>This is a special place-holder used for disconnected network interfaces.</ovf:Description>
</ovf:Network>
</ovf:NetworkSection>
<NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/networkConfigSection/" ovf:required="false">
<ovf:Info>The configuration parameters for logical networks</ovf:Info>
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be/networkConfigSection/"/>
<NetworkConfig networkName="orgNet-cloudsoft-External">
<Link rel="repair" href="https://mycloud.greenhousedata.com/api/admin/network/2a2e2da4-446a-4ebc-a086-06df7c9570f0/action/reset"/>
<Description>Direct access to internet</Description>
<Configuration>
<IpScope>
<IsInherited>true</IsInherited>
<Gateway>68.168.252.1</Gateway>
<Netmask>255.255.255.0</Netmask>
<Dns1>208.89.160.139</Dns1>
<Dns2>69.146.232.254</Dns2>
<DnsSuffix>greenhousedata.com</DnsSuffix>
<IpRanges>
<IpRange>
<StartAddress>68.168.252.5</StartAddress>
<EndAddress>68.168.252.254</EndAddress>
</IpRange>
</IpRanges>
</IpScope>
<ParentNetwork type="application/vnd.vmware.vcloud.network+xml" name="orgNet-cloudsoft-External" href="https://mycloud.greenhousedata.com/api/network/b466c0c5-8a5c-4335-b703-a2e2e6b5f3e1"/>
<FenceMode>bridged</FenceMode>
<RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
<Features>
<DhcpService>
<IsEnabled>false</IsEnabled>
<DefaultLeaseTime>3600</DefaultLeaseTime>
<MaxLeaseTime>7200</MaxLeaseTime>
<IpRange>
<StartAddress>68.168.252.2</StartAddress>
<EndAddress>68.168.252.4</EndAddress>
</IpRange>
</DhcpService>
<FirewallService>
<IsEnabled>true</IsEnabled>
<DefaultAction>drop</DefaultAction>
<LogDefaultAction>false</LogDefaultAction>
<FirewallRule>
<IsEnabled>true</IsEnabled>
<Description>Allow all outgoing traffic</Description>
<Policy>allow</Policy>
<Protocols>
<Any>true</Any>
</Protocols>
<Port>-1</Port>
<DestinationIp>Any</DestinationIp>
<SourcePort>-1</SourcePort>
<SourceIp>Any</SourceIp>
<Direction>out</Direction>
<EnableLogging>false</EnableLogging>
</FirewallRule>
</FirewallService>
<NatService>
<IsEnabled>true</IsEnabled>
<NatType>ipTranslation</NatType>
<Policy>allowTraffic</Policy>
</NatService>
<StaticRoutingService>
<IsEnabled>false</IsEnabled>
</StaticRoutingService>
</Features>
<SyslogServerSettings/>
</Configuration>
<IsDeployed>false</IsDeployed>
</NetworkConfig>
<NetworkConfig networkName="none">
<Description>This is a special place-holder used for disconnected network interfaces.</Description>
<Configuration>
<IpScope>
<IsInherited>false</IsInherited>
<Gateway>196.254.254.254</Gateway>
<Netmask>255.255.0.0</Netmask>
<Dns1>196.254.254.254</Dns1>
</IpScope>
<FenceMode>isolated</FenceMode>
</Configuration>
<IsDeployed>false</IsDeployed>
</NetworkConfig>
</NetworkConfigSection>
<Owner type="application/vnd.vmware.vcloud.owner+xml">
<User type="application/vnd.vmware.admin.user+xml" name="acole" href="https://mycloud.greenhousedata.com/api/admin/user/c090335b-708c-4c1c-9e3d-89560d002120"/>
</Owner>
<InMaintenanceMode>false</InMaintenanceMode>
<Children>
<Vm needsCustomization="true" deployed="false" status="8" name="UbuntuServer-x64-2GB" id="urn:vcloud:vm:5a030301-0928-48a4-a834-57edd16fdccd" type="application/vnd.vmware.vcloud.vm+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd">
<Link rel="power:powerOn" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/power/action/powerOn"/>
<Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/action/deploy"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd"/>
<Link rel="remove" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd"/>
<Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/metadata"/>
<Link rel="screen:thumbnail" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/screen"/>
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/media/action/insertMedia"/>
<Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/media/action/ejectMedia"/>
<Link rel="upgrade" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/action/upgradeHardwareVersion"/>
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://mycloud.greenhousedata.com/api/vApp/vapp-d0e2b6b9-4381-4ddc-9572-cdfae54059be"/>
<Description/>
<ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" ovf:transport="" vcloud:href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
<ovf:Info>Virtual hardware requirements</ovf:Info>
<ovf:System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>UbuntuServer-x64-2GB</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
</ovf:System>
<ovf:Item>
<rasd:Address>00:50:56:01:01:dc</rasd:Address>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Connection vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="NONE">none</rasd:Connection>
<rasd:Description>PCNet32 ethernet adapter</rasd:Description>
<rasd:ElementName>Network adapter 0</rasd:ElementName>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:Description>Hard disk</rasd:Description>
<rasd:ElementName>Hard disk 1</rasd:ElementName>
<rasd:HostResource vcloud:capacity="2048" vcloud:busSubType="lsilogic" vcloud:busType="6"/>
<rasd:InstanceID>2000</rasd:InstanceID>
<rasd:Parent>2</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>CD/DVD Drive</rasd:Description>
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>3000</rasd:InstanceID>
<rasd:Parent>3</rasd:Parent>
<rasd:ResourceType>15</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>Floppy Drive</rasd:Description>
<rasd:ElementName>Floppy Drive 1</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>8000</rasd:InstanceID>
<rasd:ResourceType>14</rasd:ResourceType>
</ovf:Item>
<ovf:Item vcloud:href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/cpu"/>
</ovf:Item>
<ovf:Item vcloud:href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>256 MB of memory</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>256</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/memory"/>
</ovf:Item>
<Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/cpu"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/cpu"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/memory"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/memory"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/disks"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/disks"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/media"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/networkCards"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/networkCards"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/serialPorts"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/virtualHardwareSection/serialPorts"/>
</ovf:VirtualHardwareSection>
<ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="94" vcloud:href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="ubuntu64Guest">
<ovf:Info>Specifies the operating system installed</ovf:Info>
<ovf:Description>Ubuntu Linux (64-bit)</ovf:Description>
<Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/operatingSystemSection/"/>
</ovf:OperatingSystemSection>
<NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/networkConnectionSection/" ovf:required="false">
<ovf:Info>Specifies the available VM network connections</ovf:Info>
<PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
<NetworkConnection network="none" needsCustomization="true">
<NetworkConnectionIndex>0</NetworkConnectionIndex>
<IsConnected>false</IsConnected>
<MACAddress>00:50:56:01:01:dc</MACAddress>
<IpAddressAllocationMode>NONE</IpAddressAllocationMode>
</NetworkConnection>
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/networkConnectionSection/"/>
</NetworkConnectionSection>
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/guestCustomizationSection/" ovf:required="false">
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
<Enabled>true</Enabled>
<ChangeSid>false</ChangeSid>
<VirtualMachineId>5a030301-0928-48a4-a834-57edd16fdccd</VirtualMachineId>
<JoinDomainEnabled>false</JoinDomainEnabled>
<UseOrgSettings>false</UseOrgSettings>
<AdminPasswordEnabled>true</AdminPasswordEnabled>
<AdminPasswordAuto>true</AdminPasswordAuto>
<ResetPasswordRequired>false</ResetPasswordRequired>
<ComputerName>UbuntuServer</ComputerName>
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/guestCustomizationSection/"/>
</GuestCustomizationSection>
<RuntimeInfoSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="https://mycloud.greenhousedata.com/api/vApp/vm-5a030301-0928-48a4-a834-57edd16fdccd/runtimeInfoSection" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
<ovf:Info>Specifies Runtime info</ovf:Info>
<VMWareTools version="8295"/>
</RuntimeInfoSection>
<VAppScopedLocalId>f114ade7-a63f-4f8b-b30b-44e9ff77e068</VAppScopedLocalId>
</Vm>
</Children>
<VApp xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" deployed="true" status="4" name="vApp_switbeck_18" id="urn:vcloud:vapp:6ef7767a-9522-4f8a-aa61-772ea1dc3145" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145" xsi:schemaLocation="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://www.vmware.com/schema/ovf http://www.vmware.com/schema/ovf http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://schemas.dmtf.org/ovf/environment/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8027_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://vcloudbeta.bluelock.com/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
<Link rel="power:powerOff" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/power/action/powerOff"/>
<Link rel="power:reboot" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/power/action/reboot"/>
<Link rel="power:reset" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/power/action/reset"/>
<Link rel="power:shutdown" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/power/action/shutdown"/>
<Link rel="power:suspend" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/power/action/suspend"/>
<Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/action/deploy"/>
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/action/undeploy"/>
<Link rel="down" type="application/vnd.vmware.vcloud.vAppNetwork+xml" name="internet01-Cloudsoft" href="https://vcloudbeta.bluelock.com/api/network/d26523dc-3247-4cca-91ba-c1dcd5ff435e"/>
<Link rel="down" type="application/vnd.vmware.vcloud.vAppNetwork+xml" name="Routed01-Cloudsoft" href="https://vcloudbeta.bluelock.com/api/network/1a44e442-cef9-4e68-94dd-ae9a2e7126d0"/>
<Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/controlAccess/"/>
<Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/action/controlAccess"/>
<Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://vcloudbeta.bluelock.com/api/vdc/48eccd77-02e8-4c3d-b92d-ed1cb64b9729"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145"/>
<Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/owner"/>
<Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/metadata"/>
<Link rel="ovf" type="text/xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/ovf"/>
<Link rel="down" type="application/vnd.vmware.vcloud.productSections+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/productSections/"/>
<Link rel="snapshot:create" type="application/vnd.vmware.vcloud.createSnapshotParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/action/createSnapshot"/>
<Description/>
<LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/leaseSettingsSection/" ovf:required="false">
<ovf:Info>Lease settings section</ovf:Info>
<Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/leaseSettingsSection/"/>
<DeploymentLeaseInSeconds>0</DeploymentLeaseInSeconds>
<StorageLeaseInSeconds>0</StorageLeaseInSeconds>
</LeaseSettingsSection>
<ovf:StartupSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/startupSection/" ns12:type="application/vnd.vmware.vcloud.startupSection+xml">
<ovf:Info>VApp startup section</ovf:Info>
<ovf:Item ovf:stopDelay="0" ovf:stopAction="powerOff" ovf:startDelay="0" ovf:startAction="powerOn" ovf:order="0" ovf:id="ubuntu"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/startupSection/"/>
</ovf:StartupSection>
<ovf:NetworkSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/networkSection/" ns12:type="application/vnd.vmware.vcloud.networkSection+xml">
<ovf:Info>The list of logical networks</ovf:Info>
<ovf:Network ovf:name="internet01-Cloudsoft">
<ovf:Description/>
</ovf:Network>
<ovf:Network ovf:name="Routed01-Cloudsoft">
<ovf:Description/>
</ovf:Network>
</ovf:NetworkSection>
<NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/networkConfigSection/" ovf:required="false">
<ovf:Info>The configuration parameters for logical networks</ovf:Info>
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/networkConfigSection/"/>
<NetworkConfig networkName="internet01-Cloudsoft">
<Link rel="repair" href="https://vcloudbeta.bluelock.com/api/admin/network/d26523dc-3247-4cca-91ba-c1dcd5ff435e/action/reset"/>
<Description/>
<Configuration>
<IpScopes>
<IpScope>
<IsInherited>true</IsInherited>
<Gateway>173.240.104.1</Gateway>
<Netmask>255.255.255.0</Netmask>
<Dns1>173.240.111.52</Dns1>
<Dns2>173.240.111.53</Dns2>
<IsEnabled>true</IsEnabled>
<IpRanges>
<IpRange>
<StartAddress>173.240.104.128</StartAddress>
<EndAddress>173.240.104.254</EndAddress>
</IpRange>
</IpRanges>
</IpScope>
</IpScopes>
<ParentNetwork name="internet01-Cloudsoft" id="aac5200f-9bd1-4b81-95f4-b8126eec3c96" href="https://vcloudbeta.bluelock.com/api/admin/network/aac5200f-9bd1-4b81-95f4-b8126eec3c96"/>
<FenceMode>bridged</FenceMode>
<RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
</Configuration>
<IsDeployed>true</IsDeployed>
</NetworkConfig>
<NetworkConfig networkName="Routed01-Cloudsoft">
<Link rel="repair" href="https://vcloudbeta.bluelock.com/api/admin/network/1a44e442-cef9-4e68-94dd-ae9a2e7126d0/action/reset"/>
<Description/>
<Configuration>
<IpScopes>
<IpScope>
<IsInherited>true</IsInherited>
<Gateway>192.168.10.1</Gateway>
<Netmask>255.255.255.0</Netmask>
<Dns1>173.240.111.52</Dns1>
<Dns2>173.240.111.53</Dns2>
<IsEnabled>true</IsEnabled>
<IpRanges>
<IpRange>
<StartAddress>192.168.10.2</StartAddress>
<EndAddress>192.168.10.254</EndAddress>
</IpRange>
</IpRanges>
</IpScope>
</IpScopes>
<ParentNetwork name="Routed01-Cloudsoft" id="47ef6de9-8396-4402-a7a2-61aff52af881" href="https://vcloudbeta.bluelock.com/api/admin/network/47ef6de9-8396-4402-a7a2-61aff52af881"/>
<FenceMode>bridged</FenceMode>
<RetainNetInfoAcrossDeployments>false</RetainNetInfoAcrossDeployments>
</Configuration>
<IsDeployed>true</IsDeployed>
</NetworkConfig>
</NetworkConfigSection>
<SnapshotSection type="application/vnd.vmware.vcloud.snapshotSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145/snapshotSection" ovf:required="false">
<ovf:Info>Snapshot information section</ovf:Info>
</SnapshotSection>
<DateCreated>2012-11-15T12:06:24.710-05:00</DateCreated>
<Owner type="application/vnd.vmware.vcloud.owner+xml">
<User type="application/vnd.vmware.admin.user+xml" name="switbeck" href="https://vcloudbeta.bluelock.com/api/admin/user/9d9a4da6-4b54-4797-98d8-068819001c0f"/>
</Owner>
<InMaintenanceMode>false</InMaintenanceMode>
<Children>
<Vm nestedHypervisorEnabled="false" needsCustomization="false" deployed="true" status="4" name="ubuntu" id="urn:vcloud:vm:dea05479-d7c1-4710-ba1a-a1a18cd0d455" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455">
<Link rel="power:powerOff" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/powerOff"/>
<Link rel="power:reboot" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/reboot"/>
<Link rel="power:reset" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/reset"/>
<Link rel="power:shutdown" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/shutdown"/>
<Link rel="power:suspend" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/suspend"/>
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/undeploy"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455"/>
<Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/metadata"/>
<Link rel="down" type="application/vnd.vmware.vcloud.productSections+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/productSections/"/>
<Link rel="screen:thumbnail" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/screen"/>
<Link rel="screen:acquireTicket" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/screen/action/acquireTicket"/>
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/media/action/insertMedia"/>
<Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/media/action/ejectMedia"/>
<Link rel="disk:attach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/disk/action/attach"/>
<Link rel="disk:detach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/disk/action/detach"/>
<Link rel="installVmwareTools" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/installVMwareTools"/>
<Link rel="snapshot:create" type="application/vnd.vmware.vcloud.createSnapshotParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/createSnapshot"/>
<Link rel="reconfigureVm" type="application/vnd.vmware.vcloud.vm+xml" name="ubuntu" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/reconfigureVm"/>
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145"/>
<Description/>
<ovf:VirtualHardwareSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ovf:transport="" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/" ns12:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
<ovf:Info>Virtual hardware requirements</ovf:Info>
<ovf:System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>ubuntu</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>vmx-09</vssd:VirtualSystemType>
</ovf:System>
<ovf:Item>
<rasd:Address>00:50:56:0a:02:13</rasd:Address>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection ns12:ipAddress="192.168.10.2" ns12:primaryNetworkConnection="false" ns12:ipAddressingMode="POOL">Routed01-Cloudsoft</rasd:Connection>
<rasd:Description>E1000 ethernet adapter on "Routed01-Cloudsoft"</rasd:Description>
<rasd:ElementName>Network adapter 0</rasd:ElementName>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceSubType>E1000</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>00:50:56:0a:02:14</rasd:Address>
<rasd:AddressOnParent>1</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection ns12:ipAddress="173.240.104.172" ns12:primaryNetworkConnection="true" ns12:ipAddressingMode="POOL">internet01-Cloudsoft</rasd:Connection>
<rasd:Description>E1000 ethernet adapter on "internet01-Cloudsoft"</rasd:Description>
<rasd:ElementName>Network adapter 1</rasd:ElementName>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceSubType>E1000</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:Description>Hard disk</rasd:Description>
<rasd:ElementName>Hard disk 1</rasd:ElementName>
<rasd:HostResource ns12:capacity="8192" ns12:busSubType="lsilogic" ns12:busType="6"/>
<rasd:InstanceID>2000</rasd:InstanceID>
<rasd:Parent>3</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>1</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>CD/DVD Drive</rasd:Description>
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>3000</rasd:InstanceID>
<rasd:Parent>4</rasd:Parent>
<rasd:ResourceType>15</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>1</rasd:Address>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:ElementName>IDE Controller 1</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>CD/DVD Drive</rasd:Description>
<rasd:ElementName>CD/DVD Drive 2</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>3002</rasd:InstanceID>
<rasd:Parent>5</rasd:Parent>
<rasd:ResourceType>15</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>Floppy Drive</rasd:Description>
<rasd:ElementName>Floppy Drive 1</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>8000</rasd:InstanceID>
<rasd:ResourceType>14</rasd:ResourceType>
</ovf:Item>
<ovf:Item ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu" ns12:type="application/vnd.vmware.vcloud.rasdItem+xml">
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
<rasd:InstanceID>6</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu"/>
</ovf:Item>
<ovf:Item ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory" ns12:type="application/vnd.vmware.vcloud.rasdItem+xml">
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>1024 MB of memory</rasd:ElementName>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>1024</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory"/>
</ovf:Item>
<Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/disks"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/disks"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/media"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/networkCards"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/networkCards"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/serialPorts"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/serialPorts"/>
</ovf:VirtualHardwareSection>
<ovf:OperatingSystemSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ovf:id="94" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/operatingSystemSection/" ns12:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="ubuntu64Guest">
<ovf:Info>Specifies the operating system installed</ovf:Info>
<ovf:Description>Ubuntu Linux (64-bit)</ovf:Description>
<Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/operatingSystemSection/"/>
</ovf:OperatingSystemSection>
<NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/networkConnectionSection/" ovf:required="false">
<ovf:Info>Specifies the available VM network connections</ovf:Info>
<PrimaryNetworkConnectionIndex>1</PrimaryNetworkConnectionIndex>
<NetworkConnection network="Routed01-Cloudsoft" needsCustomization="false">
<NetworkConnectionIndex>0</NetworkConnectionIndex>
<IpAddress>192.168.10.2</IpAddress>
<IsConnected>true</IsConnected>
<MACAddress>00:50:56:0a:02:13</MACAddress>
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
</NetworkConnection>
<NetworkConnection network="internet01-Cloudsoft" needsCustomization="false">
<NetworkConnectionIndex>1</NetworkConnectionIndex>
<IpAddress>173.240.104.172</IpAddress>
<IsConnected>true</IsConnected>
<MACAddress>00:50:56:0a:02:14</MACAddress>
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
</NetworkConnection>
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/networkConnectionSection/"/>
</NetworkConnectionSection>
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/guestCustomizationSection/" ovf:required="false">
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
<Enabled>true</Enabled>
<ChangeSid>false</ChangeSid>
<VirtualMachineId>dea05479-d7c1-4710-ba1a-a1a18cd0d455</VirtualMachineId>
<JoinDomainEnabled>false</JoinDomainEnabled>
<UseOrgSettings>false</UseOrgSettings>
<AdminPasswordEnabled>true</AdminPasswordEnabled>
<AdminPasswordAuto>true</AdminPasswordAuto>
<AdminPassword>A%6kC9pq</AdminPassword>
<ResetPasswordRequired>false</ResetPasswordRequired>
<ComputerName>Ubuntu-1110-001</ComputerName>
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/guestCustomizationSection/"/>
</GuestCustomizationSection>
<RuntimeInfoSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/runtimeInfoSection" ns12:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
<ovf:Info>Specifies Runtime info</ovf:Info>
<VMWareTools version="9281"/>
</RuntimeInfoSection>
<SnapshotSection type="application/vnd.vmware.vcloud.snapshotSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/snapshotSection" ovf:required="false">
<ovf:Info>Snapshot information section</ovf:Info>
</SnapshotSection>
<DateCreated>2012-11-15T12:06:35.120-05:00</DateCreated>
<VAppScopedLocalId>vm</VAppScopedLocalId>
<ovfenv:Environment xmlns:ns12="http://www.vmware.com/schema/ovfenv" ovfenv:id="" ns12:vCenterId="vm-1072">
<ovfenv:PlatformSection>
<ovfenv:Kind>VMware ESXi</ovfenv:Kind>
<ovfenv:Version>5.1.0</ovfenv:Version>
<ovfenv:Vendor>VMware, Inc.</ovfenv:Vendor>
<ovfenv:Locale>en</ovfenv:Locale>
</ovfenv:PlatformSection>
<ovfenv:PropertySection>
<ovfenv:Property ovfenv:value="None" ovfenv:key="vCloud_UseSysPrep"/>
<ovfenv:Property ovfenv:value="" ovfenv:key="vCloud_adminPassword"/>
<ovfenv:Property ovfenv:value="11" ovfenv:key="vCloud_bitMask"/>
<ovfenv:Property ovfenv:value="static" ovfenv:key="vCloud_bootproto_0"/>
<ovfenv:Property ovfenv:value="static" ovfenv:key="vCloud_bootproto_1"/>
<ovfenv:Property ovfenv:value="Ubuntu-1110-001" ovfenv:key="vCloud_computerName"/>
<ovfenv:Property ovfenv:value="173.240.111.52" ovfenv:key="vCloud_dns1_0"/>
<ovfenv:Property ovfenv:value="173.240.111.52" ovfenv:key="vCloud_dns1_1"/>
<ovfenv:Property ovfenv:value="173.240.111.53" ovfenv:key="vCloud_dns2_0"/>
<ovfenv:Property ovfenv:value="173.240.111.53" ovfenv:key="vCloud_dns2_1"/>
<ovfenv:Property ovfenv:value="192.168.10.1" ovfenv:key="vCloud_gateway_0"/>
<ovfenv:Property ovfenv:value="173.240.104.1" ovfenv:key="vCloud_gateway_1"/>
<ovfenv:Property ovfenv:value="192.168.10.2" ovfenv:key="vCloud_ip_0"/>
<ovfenv:Property ovfenv:value="173.240.104.172" ovfenv:key="vCloud_ip_1"/>
<ovfenv:Property ovfenv:value="00:50:56:0a:02:13" ovfenv:key="vCloud_macaddr_0"/>
<ovfenv:Property ovfenv:value="00:50:56:0a:02:14" ovfenv:key="vCloud_macaddr_1"/>
<ovfenv:Property ovfenv:value="da0ad29e-1345-47d7-9f4d-d6b9391e7703" ovfenv:key="vCloud_markerid"/>
<ovfenv:Property ovfenv:value="255.255.255.0" ovfenv:key="vCloud_netmask_0"/>
<ovfenv:Property ovfenv:value="255.255.255.0" ovfenv:key="vCloud_netmask_1"/>
<ovfenv:Property ovfenv:value="2" ovfenv:key="vCloud_numnics"/>
<ovfenv:Property ovfenv:value="1" ovfenv:key="vCloud_primaryNic"/>
<ovfenv:Property ovfenv:value="308709094" ovfenv:key="vCloud_reconfigToken"/>
<ovfenv:Property ovfenv:value="0" ovfenv:key="vCloud_resetPassword"/>
<ovfenv:Property ovfenv:value="" ovfenv:key="vCloud_suffix_0"/>
<ovfenv:Property ovfenv:value="" ovfenv:key="vCloud_suffix_1"/>
</ovfenv:PropertySection>
<ve:EthernetAdapterSection xmlns:ve="http://www.vmware.com/schema/ovfenv" xmlns="http://schemas.dmtf.org/ovf/environment/1" xmlns:oe="http://schemas.dmtf.org/ovf/environment/1">
<ve:Adapter ve:mac="00:50:56:0a:02:13" ve:network="dvs.VCDVSRouted01-Cloudsoft-cfc25721-2dde-4f8e-9b2e-cdc45f280624" ve:unitNumber="7"/>
<ve:Adapter ve:mac="00:50:56:0a:02:14" ve:network="pcep_internet_336" ve:unitNumber="8"/>
</ve:EthernetAdapterSection>
</ovfenv:Environment>
<VmCapabilities type="application/vnd.vmware.vcloud.vmCapabilitiesSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/vmCapabilities/">
<Link rel="edit" type="application/vnd.vmware.vcloud.vmCapabilitiesSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/vmCapabilities/"/>
<MemoryHotAddEnabled>true</MemoryHotAddEnabled>
<CpuHotAddEnabled>true</CpuHotAddEnabled>
</VmCapabilities>
<StorageProfile type="application/vnd.vmware.vcloud.vdcStorageProfile+xml" name="*" href="https://vcloudbeta.bluelock.com/api/vdcStorageProfile/ba343e95-c9e2-4da8-b185-6c7410bd920a"/>
</Vm>
</Children>
</VApp>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Entity xmlns="http://www.vmware.com/vcloud/v1.5" name="urn:vcloud:vapp:6ef7767a-9522-4f8a-aa61-772ea1dc3145" id="urn:vcloud:vapp:6ef7767a-9522-4f8a-aa61-772ea1dc3145" type="application/vnd.vmware.vcloud.entity+xml" href="https://vcloudbeta.bluelock.com/api/entity/urn:vcloud:vapp:6ef7767a-9522-4f8a-aa61-772ea1dc3145" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloudbeta.bluelock.com/api/v1.5/schema/master.xsd">
<Link rel="alternate" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145"/>
</Entity>

View File

@ -0,0 +1,15 @@
<Task xmlns="http://www.vmware.com/vcloud/v1.5" status="running" startTime="2012-10-25T13:39:25.380-04:00"
serviceNamespace="com.vmware.vcloud" operationName="vappReboot"
operation="Rebooting Virtual Machine damn small(b7e995a7-1468-4873-af39-bc703feefd63)"
expiryTime="2013-01-23T13:39:25.380-05:00" cancelRequested="false" name="task"
id="urn:vcloud:task:5bc25a1b-79cb-4904-b53f-4ca09088e434" type="application/vnd.vmware.vcloud.task+xml"
href="https://vcloudbeta.bluelock.com/api/task/5bc25a1b-79cb-4904-b53f-4ca09088e434"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloudbeta.bluelock.com/api/v1.5/schema/master.xsd">
<Link rel="task:cancel" href="https://vcloudbeta.bluelock.com/api/task/5bc25a1b-79cb-4904-b53f-4ca09088e434/action/cancel"/>
<Owner type="application/vnd.vmware.vcloud.vm+xml" name="foo" href="https://vcloudbeta.bluelock.com/api/vApp/vm-b7e995a7-1468-4873-af39-bc703feefd63"/>
<User type="application/vnd.vmware.admin.user+xml" name="switbeck" href="https://vcloudbeta.bluelock.com/api/admin/user/9d9a4da6-4b54-4797-98d8-068819001c0f"/>
<Organization type="application/vnd.vmware.vcloud.org+xml" name="jclouds" href="https://vcloudbeta.bluelock.com/api/org/4559b367-8af2-4ee1-8429-a0d39e7df3de"/>
<Progress>0</Progress>
<Details/>
</Task>

View File

@ -0,0 +1,241 @@
<?xml version="1.0" encoding="UTF-8"?>
<Vm xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" nestedHypervisorEnabled="false" needsCustomization="false" deployed="true" status="4" name="ubuntu" id="urn:vcloud:vm:dea05479-d7c1-4710-ba1a-a1a18cd0d455" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455" xsi:schemaLocation="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://www.vmware.com/schema/ovf http://www.vmware.com/schema/ovf http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://schemas.dmtf.org/ovf/environment/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8027_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://vcloudbeta.bluelock.com/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
<Link rel="power:powerOff" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/powerOff"/>
<Link rel="power:reboot" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/reboot"/>
<Link rel="power:reset" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/reset"/>
<Link rel="power:shutdown" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/shutdown"/>
<Link rel="power:suspend" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/power/action/suspend"/>
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/undeploy"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455"/>
<Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/metadata"/>
<Link rel="down" type="application/vnd.vmware.vcloud.productSections+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/productSections/"/>
<Link rel="screen:thumbnail" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/screen"/>
<Link rel="screen:acquireTicket" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/screen/action/acquireTicket"/>
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/media/action/insertMedia"/>
<Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/media/action/ejectMedia"/>
<Link rel="disk:attach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/disk/action/attach"/>
<Link rel="disk:detach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/disk/action/detach"/>
<Link rel="installVmwareTools" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/installVMwareTools"/>
<Link rel="snapshot:create" type="application/vnd.vmware.vcloud.createSnapshotParams+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/createSnapshot"/>
<Link rel="reconfigureVm" type="application/vnd.vmware.vcloud.vm+xml" name="ubuntu" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/action/reconfigureVm"/>
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vapp-6ef7767a-9522-4f8a-aa61-772ea1dc3145"/>
<Description/>
<ovf:VirtualHardwareSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ovf:transport="" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/" ns12:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
<ovf:Info>Virtual hardware requirements</ovf:Info>
<ovf:System>
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
<vssd:InstanceID>0</vssd:InstanceID>
<vssd:VirtualSystemIdentifier>ubuntu</vssd:VirtualSystemIdentifier>
<vssd:VirtualSystemType>vmx-09</vssd:VirtualSystemType>
</ovf:System>
<ovf:Item>
<rasd:Address>00:50:56:0a:02:13</rasd:Address>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection ns12:ipAddress="192.168.10.2" ns12:primaryNetworkConnection="false" ns12:ipAddressingMode="POOL">Routed01-Cloudsoft</rasd:Connection>
<rasd:Description>E1000 ethernet adapter on "Routed01-Cloudsoft"</rasd:Description>
<rasd:ElementName>Network adapter 0</rasd:ElementName>
<rasd:InstanceID>1</rasd:InstanceID>
<rasd:ResourceSubType>E1000</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>00:50:56:0a:02:14</rasd:Address>
<rasd:AddressOnParent>1</rasd:AddressOnParent>
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
<rasd:Connection ns12:ipAddress="173.240.104.172" ns12:primaryNetworkConnection="true" ns12:ipAddressingMode="POOL">internet01-Cloudsoft</rasd:Connection>
<rasd:Description>E1000 ethernet adapter on "internet01-Cloudsoft"</rasd:Description>
<rasd:ElementName>Network adapter 1</rasd:ElementName>
<rasd:InstanceID>2</rasd:InstanceID>
<rasd:ResourceSubType>E1000</rasd:ResourceSubType>
<rasd:ResourceType>10</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
<rasd:InstanceID>3</rasd:InstanceID>
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:Description>Hard disk</rasd:Description>
<rasd:ElementName>Hard disk 1</rasd:ElementName>
<rasd:HostResource ns12:capacity="8192" ns12:busSubType="lsilogic" ns12:busType="6"/>
<rasd:InstanceID>2000</rasd:InstanceID>
<rasd:Parent>3</rasd:Parent>
<rasd:ResourceType>17</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>0</rasd:Address>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
<rasd:InstanceID>4</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>1</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>CD/DVD Drive</rasd:Description>
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>3000</rasd:InstanceID>
<rasd:Parent>4</rasd:Parent>
<rasd:ResourceType>15</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:Address>1</rasd:Address>
<rasd:Description>IDE Controller</rasd:Description>
<rasd:ElementName>IDE Controller 1</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceType>5</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>CD/DVD Drive</rasd:Description>
<rasd:ElementName>CD/DVD Drive 2</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>3002</rasd:InstanceID>
<rasd:Parent>5</rasd:Parent>
<rasd:ResourceType>15</rasd:ResourceType>
</ovf:Item>
<ovf:Item>
<rasd:AddressOnParent>0</rasd:AddressOnParent>
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
<rasd:Description>Floppy Drive</rasd:Description>
<rasd:ElementName>Floppy Drive 1</rasd:ElementName>
<rasd:HostResource/>
<rasd:InstanceID>8000</rasd:InstanceID>
<rasd:ResourceType>14</rasd:ResourceType>
</ovf:Item>
<ovf:Item ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu" ns12:type="application/vnd.vmware.vcloud.rasdItem+xml">
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
<rasd:Description>Number of Virtual CPUs</rasd:Description>
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
<rasd:InstanceID>6</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>3</rasd:ResourceType>
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu"/>
</ovf:Item>
<ovf:Item ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory" ns12:type="application/vnd.vmware.vcloud.rasdItem+xml">
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
<rasd:Description>Memory Size</rasd:Description>
<rasd:ElementName>1024 MB of memory</rasd:ElementName>
<rasd:InstanceID>7</rasd:InstanceID>
<rasd:Reservation>0</rasd:Reservation>
<rasd:ResourceType>4</rasd:ResourceType>
<rasd:VirtualQuantity>1024</rasd:VirtualQuantity>
<rasd:Weight>0</rasd:Weight>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory"/>
</ovf:Item>
<Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/cpu"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/memory"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/disks"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/disks"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/media"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/networkCards"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/networkCards"/>
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/serialPorts"/>
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/virtualHardwareSection/serialPorts"/>
</ovf:VirtualHardwareSection>
<ovf:OperatingSystemSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ovf:id="94" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/operatingSystemSection/" ns12:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="ubuntu64Guest">
<ovf:Info>Specifies the operating system installed</ovf:Info>
<ovf:Description>Ubuntu Linux (64-bit)</ovf:Description>
<Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/operatingSystemSection/"/>
</ovf:OperatingSystemSection>
<NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/networkConnectionSection/" ovf:required="false">
<ovf:Info>Specifies the available VM network connections</ovf:Info>
<PrimaryNetworkConnectionIndex>1</PrimaryNetworkConnectionIndex>
<NetworkConnection network="Routed01-Cloudsoft" needsCustomization="false">
<NetworkConnectionIndex>0</NetworkConnectionIndex>
<IpAddress>192.168.10.2</IpAddress>
<IsConnected>true</IsConnected>
<MACAddress>00:50:56:0a:02:13</MACAddress>
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
</NetworkConnection>
<NetworkConnection network="internet01-Cloudsoft" needsCustomization="false">
<NetworkConnectionIndex>1</NetworkConnectionIndex>
<IpAddress>173.240.104.172</IpAddress>
<IsConnected>true</IsConnected>
<MACAddress>00:50:56:0a:02:14</MACAddress>
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
</NetworkConnection>
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/networkConnectionSection/"/>
</NetworkConnectionSection>
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/guestCustomizationSection/" ovf:required="false">
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
<Enabled>true</Enabled>
<ChangeSid>false</ChangeSid>
<VirtualMachineId>dea05479-d7c1-4710-ba1a-a1a18cd0d455</VirtualMachineId>
<JoinDomainEnabled>false</JoinDomainEnabled>
<UseOrgSettings>false</UseOrgSettings>
<AdminPasswordEnabled>true</AdminPasswordEnabled>
<AdminPasswordAuto>true</AdminPasswordAuto>
<AdminPassword>A%6kC9pq</AdminPassword>
<ResetPasswordRequired>false</ResetPasswordRequired>
<ComputerName>Ubuntu-1110-001</ComputerName>
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/guestCustomizationSection/"/>
</GuestCustomizationSection>
<RuntimeInfoSection xmlns:ns12="http://www.vmware.com/vcloud/v1.5" ns12:href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/runtimeInfoSection" ns12:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
<ovf:Info>Specifies Runtime info</ovf:Info>
<VMWareTools version="9281"/>
</RuntimeInfoSection>
<SnapshotSection type="application/vnd.vmware.vcloud.snapshotSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/snapshotSection" ovf:required="false">
<ovf:Info>Snapshot information section</ovf:Info>
</SnapshotSection>
<DateCreated>2012-11-15T12:06:35.120-05:00</DateCreated>
<VAppScopedLocalId>vm</VAppScopedLocalId>
<ovfenv:Environment xmlns:ns12="http://www.vmware.com/schema/ovfenv" ovfenv:id="" ns12:vCenterId="vm-1072">
<ovfenv:PlatformSection>
<ovfenv:Kind>VMware ESXi</ovfenv:Kind>
<ovfenv:Version>5.1.0</ovfenv:Version>
<ovfenv:Vendor>VMware, Inc.</ovfenv:Vendor>
<ovfenv:Locale>en</ovfenv:Locale>
</ovfenv:PlatformSection>
<ovfenv:PropertySection>
<ovfenv:Property ovfenv:value="None" ovfenv:key="vCloud_UseSysPrep"/>
<ovfenv:Property ovfenv:value="" ovfenv:key="vCloud_adminPassword"/>
<ovfenv:Property ovfenv:value="11" ovfenv:key="vCloud_bitMask"/>
<ovfenv:Property ovfenv:value="static" ovfenv:key="vCloud_bootproto_0"/>
<ovfenv:Property ovfenv:value="static" ovfenv:key="vCloud_bootproto_1"/>
<ovfenv:Property ovfenv:value="Ubuntu-1110-001" ovfenv:key="vCloud_computerName"/>
<ovfenv:Property ovfenv:value="173.240.111.52" ovfenv:key="vCloud_dns1_0"/>
<ovfenv:Property ovfenv:value="173.240.111.52" ovfenv:key="vCloud_dns1_1"/>
<ovfenv:Property ovfenv:value="173.240.111.53" ovfenv:key="vCloud_dns2_0"/>
<ovfenv:Property ovfenv:value="173.240.111.53" ovfenv:key="vCloud_dns2_1"/>
<ovfenv:Property ovfenv:value="192.168.10.1" ovfenv:key="vCloud_gateway_0"/>
<ovfenv:Property ovfenv:value="173.240.104.1" ovfenv:key="vCloud_gateway_1"/>
<ovfenv:Property ovfenv:value="192.168.10.2" ovfenv:key="vCloud_ip_0"/>
<ovfenv:Property ovfenv:value="173.240.104.172" ovfenv:key="vCloud_ip_1"/>
<ovfenv:Property ovfenv:value="00:50:56:0a:02:13" ovfenv:key="vCloud_macaddr_0"/>
<ovfenv:Property ovfenv:value="00:50:56:0a:02:14" ovfenv:key="vCloud_macaddr_1"/>
<ovfenv:Property ovfenv:value="da0ad29e-1345-47d7-9f4d-d6b9391e7703" ovfenv:key="vCloud_markerid"/>
<ovfenv:Property ovfenv:value="255.255.255.0" ovfenv:key="vCloud_netmask_0"/>
<ovfenv:Property ovfenv:value="255.255.255.0" ovfenv:key="vCloud_netmask_1"/>
<ovfenv:Property ovfenv:value="2" ovfenv:key="vCloud_numnics"/>
<ovfenv:Property ovfenv:value="1" ovfenv:key="vCloud_primaryNic"/>
<ovfenv:Property ovfenv:value="308709094" ovfenv:key="vCloud_reconfigToken"/>
<ovfenv:Property ovfenv:value="0" ovfenv:key="vCloud_resetPassword"/>
<ovfenv:Property ovfenv:value="" ovfenv:key="vCloud_suffix_0"/>
<ovfenv:Property ovfenv:value="" ovfenv:key="vCloud_suffix_1"/>
</ovfenv:PropertySection>
<ve:EthernetAdapterSection xmlns:ve="http://www.vmware.com/schema/ovfenv" xmlns="http://schemas.dmtf.org/ovf/environment/1" xmlns:oe="http://schemas.dmtf.org/ovf/environment/1">
<ve:Adapter ve:mac="00:50:56:0a:02:13" ve:network="dvs.VCDVSRouted01-Cloudsoft-cfc25721-2dde-4f8e-9b2e-cdc45f280624" ve:unitNumber="7"/>
<ve:Adapter ve:mac="00:50:56:0a:02:14" ve:network="pcep_internet_336" ve:unitNumber="8"/>
</ve:EthernetAdapterSection>
</ovfenv:Environment>
<VmCapabilities type="application/vnd.vmware.vcloud.vmCapabilitiesSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/vmCapabilities/">
<Link rel="edit" type="application/vnd.vmware.vcloud.vmCapabilitiesSection+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455/vmCapabilities/"/>
<MemoryHotAddEnabled>true</MemoryHotAddEnabled>
<CpuHotAddEnabled>true</CpuHotAddEnabled>
</VmCapabilities>
<StorageProfile type="application/vnd.vmware.vcloud.vdcStorageProfile+xml" name="*" href="https://vcloudbeta.bluelock.com/api/vdcStorageProfile/ba343e95-c9e2-4da8-b185-6c7410bd920a"/>
</Vm>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<Entity xmlns="http://www.vmware.com/vcloud/v1.5" name="urn:vcloud:vm:dea05479-d7c1-4710-ba1a-a1a18cd0d455" id="urn:vcloud:vm:dea05479-d7c1-4710-ba1a-a1a18cd0d455" type="application/vnd.vmware.vcloud.entity+xml" href="https://vcloudbeta.bluelock.com/api/entity/urn:vcloud:vm:dea05479-d7c1-4710-ba1a-a1a18cd0d455" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloudbeta.bluelock.com/api/v1.5/schema/master.xsd">
<Link rel="alternate" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455"/>
</Entity>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Task xmlns="http://www.vmware.com/vcloud/v1.5" status="running" startTime="2012-11-21T08:51:42.300-05:00" serviceNamespace="com.vmware.vcloud" operationName="vappRebootGuest" operation="Rebooting Virtual Machine ubuntu(dea05479-d7c1-4710-ba1a-a1a18cd0d455)" expiryTime="2013-02-19T08:51:42.300-05:00" cancelRequested="false" name="task" id="urn:vcloud:task:8d188b18-c2dd-4e29-a1b2-118e5f6a8276" type="application/vnd.vmware.vcloud.task+xml" href="https://vcloudbeta.bluelock.com/api/task/8d188b18-c2dd-4e29-a1b2-118e5f6a8276" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://vcloudbeta.bluelock.com/api/v1.5/schema/master.xsd">
<Link rel="task:cancel" href="https://vcloudbeta.bluelock.com/api/task/8d188b18-c2dd-4e29-a1b2-118e5f6a8276/action/cancel"/>
<Owner type="application/vnd.vmware.vcloud.vm+xml" name="ubuntu" href="https://vcloudbeta.bluelock.com/api/vApp/vm-dea05479-d7c1-4710-ba1a-a1a18cd0d455"/>
<User type="application/vnd.vmware.admin.user+xml" name="switbeck" href="https://vcloudbeta.bluelock.com/api/admin/user/9d9a4da6-4b54-4797-98d8-068819001c0f"/>
<Organization type="application/vnd.vmware.vcloud.org+xml" name="jclouds" href="https://vcloudbeta.bluelock.com/api/org/4559b367-8af2-4ee1-8429-a0d39e7df3de"/>
<Progress>0</Progress>
<Details/>
</Task>